msi: Constify some parameters.
This commit is contained in:
parent
50d75d480e
commit
2018de00e1
|
@ -42,7 +42,7 @@ typedef struct tagMSICREATEVIEW
|
|||
{
|
||||
MSIVIEW view;
|
||||
MSIDATABASE *db;
|
||||
LPWSTR name;
|
||||
LPCWSTR name;
|
||||
BOOL bIsTemp;
|
||||
BOOL hold;
|
||||
column_info *col_info;
|
||||
|
@ -145,9 +145,9 @@ static const MSIVIEWOPS create_ops =
|
|||
NULL,
|
||||
};
|
||||
|
||||
static UINT check_columns( column_info *col_info )
|
||||
static UINT check_columns( const column_info *col_info )
|
||||
{
|
||||
column_info *c1, *c2;
|
||||
const column_info *c1, *c2;
|
||||
|
||||
/* check for two columns with the same name */
|
||||
for( c1 = col_info; c1; c1 = c1->next )
|
||||
|
@ -158,7 +158,7 @@ static UINT check_columns( column_info *col_info )
|
|||
return ERROR_SUCCESS;
|
||||
}
|
||||
|
||||
UINT CREATE_CreateView( MSIDATABASE *db, MSIVIEW **view, LPWSTR table,
|
||||
UINT CREATE_CreateView( MSIDATABASE *db, MSIVIEW **view, LPCWSTR table,
|
||||
column_info *col_info, BOOL hold )
|
||||
{
|
||||
MSICREATEVIEW *cv = NULL;
|
||||
|
|
|
@ -98,7 +98,7 @@ UINT ORDER_CreateView( MSIDATABASE *db, MSIVIEW **view, MSIVIEW *table,
|
|||
UINT WHERE_CreateView( MSIDATABASE *db, MSIVIEW **view, MSIVIEW *table,
|
||||
struct expr *cond );
|
||||
|
||||
UINT CREATE_CreateView( MSIDATABASE *db, MSIVIEW **view, LPWSTR table,
|
||||
UINT CREATE_CreateView( MSIDATABASE *db, MSIVIEW **view, LPCWSTR table,
|
||||
column_info *col_info, BOOL hold );
|
||||
|
||||
UINT INSERT_CreateView( MSIDATABASE *db, MSIVIEW **view, LPCWSTR table,
|
||||
|
|
|
@ -54,7 +54,7 @@ static UINT SQL_getstring( void *info, const struct sql_str *strdata, LPWSTR *st
|
|||
static INT SQL_getint( void *info );
|
||||
static int sql_lex( void *SQL_lval, SQL_input *info );
|
||||
|
||||
static LPWSTR parser_add_table( LPWSTR list, LPWSTR table );
|
||||
static LPWSTR parser_add_table( LPWSTR list, LPCWSTR table );
|
||||
static void *parser_alloc( void *info, unsigned int sz );
|
||||
static column_info *parser_alloc_column( void *info, LPCWSTR table, LPCWSTR column );
|
||||
|
||||
|
@ -696,7 +696,7 @@ number:
|
|||
|
||||
%%
|
||||
|
||||
static LPWSTR parser_add_table(LPWSTR list, LPWSTR table)
|
||||
static LPWSTR parser_add_table(LPWSTR list, LPCWSTR table)
|
||||
{
|
||||
DWORD size = lstrlenW(list) + lstrlenW(table) + 2;
|
||||
static const WCHAR space[] = {' ',0};
|
||||
|
|
Loading…
Reference in New Issue