Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-cw
Commits
cf1e01eb
Commit
cf1e01eb
authored
Jun 13, 2007
by
Andrew Talbot
Committed by
Alexandre Julliard
Jun 14, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msi: Constify some variables.
parent
1081a9b1
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
19 additions
and
18 deletions
+19
-18
msipriv.h
dlls/msi/msipriv.h
+2
-2
query.h
dlls/msi/query.h
+1
-1
table.c
dlls/msi/table.c
+10
-9
update.c
dlls/msi/update.c
+1
-1
where.c
dlls/msi/where.c
+5
-5
No files found.
dlls/msi/msipriv.h
View file @
cf1e01eb
...
...
@@ -570,7 +570,7 @@ extern UINT read_raw_stream_data( MSIDATABASE*, LPCWSTR stname,
extern
UINT
read_stream_data
(
IStorage
*
stg
,
LPCWSTR
stname
,
USHORT
**
pdata
,
UINT
*
psz
);
extern
UINT
write_stream_data
(
IStorage
*
stg
,
LPCWSTR
stname
,
LPVOID
data
,
UINT
sz
,
BOOL
bTable
);
LP
C
VOID
data
,
UINT
sz
,
BOOL
bTable
);
/* transform functions */
extern
UINT
msi_table_apply_transform
(
MSIDATABASE
*
db
,
IStorage
*
stg
);
...
...
@@ -609,7 +609,7 @@ extern UINT MSI_RecordCopyField( MSIRECORD *, unsigned int, MSIRECORD *, unsigne
extern
UINT
get_raw_stream
(
MSIHANDLE
hdb
,
LPCWSTR
stname
,
IStream
**
stm
);
extern
UINT
db_get_raw_stream
(
MSIDATABASE
*
db
,
LPCWSTR
stname
,
IStream
**
stm
);
extern
void
enum_stream_names
(
IStorage
*
stg
);
extern
BOOL
decode_streamname
(
LPWSTR
in
,
LPWSTR
out
);
extern
BOOL
decode_streamname
(
LP
C
WSTR
in
,
LPWSTR
out
);
extern
LPWSTR
encode_streamname
(
BOOL
bTable
,
LPCWSTR
in
);
/* database internals */
...
...
dlls/msi/query.h
View file @
cf1e01eb
...
...
@@ -114,7 +114,7 @@ UINT CREATE_CreateView( MSIDATABASE *db, MSIVIEW **view, LPWSTR table,
UINT
INSERT_CreateView
(
MSIDATABASE
*
db
,
MSIVIEW
**
view
,
LPCWSTR
table
,
column_info
*
columns
,
column_info
*
values
,
BOOL
temp
);
UINT
UPDATE_CreateView
(
MSIDATABASE
*
db
,
MSIVIEW
**
,
LPWSTR
table
,
UINT
UPDATE_CreateView
(
MSIDATABASE
*
db
,
MSIVIEW
**
,
LP
C
WSTR
table
,
column_info
*
list
,
struct
expr
*
expr
);
UINT
DELETE_CreateView
(
MSIDATABASE
*
db
,
MSIVIEW
**
view
,
MSIVIEW
*
table
);
...
...
dlls/msi/table.c
View file @
cf1e01eb
...
...
@@ -206,7 +206,7 @@ static int mime2utf(int x)
return
'_'
;
}
BOOL
decode_streamname
(
LPWSTR
in
,
LPWSTR
out
)
BOOL
decode_streamname
(
LP
C
WSTR
in
,
LPWSTR
out
)
{
WCHAR
ch
;
DWORD
count
=
0
;
...
...
@@ -408,7 +408,7 @@ end:
}
UINT
write_stream_data
(
IStorage
*
stg
,
LPCWSTR
stname
,
LPVOID
data
,
UINT
sz
,
BOOL
bTable
)
LP
C
VOID
data
,
UINT
sz
,
BOOL
bTable
)
{
HRESULT
r
;
UINT
ret
=
ERROR_FUNCTION_FAILED
;
...
...
@@ -819,7 +819,7 @@ static UINT get_table( MSIDATABASE *db, LPCWSTR name, MSITABLE **table_ret )
return
ERROR_SUCCESS
;
}
static
UINT
save_table
(
MSIDATABASE
*
db
,
MSITABLE
*
t
)
static
UINT
save_table
(
MSIDATABASE
*
db
,
const
MSITABLE
*
t
)
{
BYTE
*
rawdata
=
NULL
,
*
p
;
UINT
rawsize
,
r
,
i
,
j
,
row_size
;
...
...
@@ -933,12 +933,12 @@ static void msi_free_colinfo( MSICOLUMNINFO *colinfo, UINT count )
}
}
static
LPWSTR
msi_makestring
(
MSIDATABASE
*
db
,
UINT
stringid
)
static
LPWSTR
msi_makestring
(
const
MSIDATABASE
*
db
,
UINT
stringid
)
{
return
strdupW
(
msi_string_lookup_id
(
db
->
strings
,
stringid
));
}
static
UINT
read_table_int
(
BYTE
**
data
,
UINT
row
,
UINT
col
,
UINT
bytes
)
static
UINT
read_table_int
(
BYTE
*
const
*
data
,
UINT
row
,
UINT
col
,
UINT
bytes
)
{
UINT
ret
=
0
,
i
;
...
...
@@ -1720,7 +1720,8 @@ MSICONDITION MSI_DatabaseIsTablePersistent( MSIDATABASE *db, LPCWSTR table )
return
MSICONDITION_FALSE
;
}
static
MSIRECORD
*
msi_get_transform_record
(
MSITABLEVIEW
*
tv
,
string_table
*
st
,
USHORT
*
rawdata
)
static
MSIRECORD
*
msi_get_transform_record
(
const
MSITABLEVIEW
*
tv
,
const
string_table
*
st
,
const
USHORT
*
rawdata
)
{
UINT
i
,
val
,
ofs
=
0
;
USHORT
mask
=
*
rawdata
++
;
...
...
@@ -1793,7 +1794,7 @@ static void dump_record( MSIRECORD *rec )
}
}
static
void
dump_table
(
string_table
*
st
,
USHORT
*
rawdata
,
UINT
rawsize
)
static
void
dump_table
(
const
string_table
*
st
,
const
USHORT
*
rawdata
,
UINT
rawsize
)
{
LPCWSTR
sval
;
UINT
i
;
...
...
@@ -1805,7 +1806,7 @@ static void dump_table( string_table *st, USHORT *rawdata, UINT rawsize )
}
}
static
UINT
*
msi_record_to_row
(
MSITABLEVIEW
*
tv
,
MSIRECORD
*
rec
)
static
UINT
*
msi_record_to_row
(
const
MSITABLEVIEW
*
tv
,
MSIRECORD
*
rec
)
{
LPCWSTR
str
;
UINT
i
,
r
,
*
data
;
...
...
@@ -1845,7 +1846,7 @@ static UINT* msi_record_to_row( MSITABLEVIEW *tv, MSIRECORD *rec )
return
data
;
}
static
UINT
msi_row_matches
(
MSITABLEVIEW
*
tv
,
UINT
row
,
UINT
*
data
)
static
UINT
msi_row_matches
(
MSITABLEVIEW
*
tv
,
UINT
row
,
const
UINT
*
data
)
{
UINT
i
,
r
,
x
,
ret
=
ERROR_FUNCTION_FAILED
;
...
...
dlls/msi/update.c
View file @
cf1e01eb
...
...
@@ -186,7 +186,7 @@ static const MSIVIEWOPS update_ops =
UPDATE_find_matching_rows
};
UINT
UPDATE_CreateView
(
MSIDATABASE
*
db
,
MSIVIEW
**
view
,
LPWSTR
table
,
UINT
UPDATE_CreateView
(
MSIDATABASE
*
db
,
MSIVIEW
**
view
,
LP
C
WSTR
table
,
column_info
*
columns
,
struct
expr
*
expr
)
{
MSIUPDATEVIEW
*
uv
=
NULL
;
...
...
dlls/msi/where.c
View file @
cf1e01eb
...
...
@@ -139,8 +139,8 @@ static INT INT_evaluate_unary( INT lval, UINT op )
return
0
;
}
static
const
WCHAR
*
STRING_evaluate
(
string_table
*
st
,
MSIVIEW
*
table
,
UINT
row
,
struct
expr
*
expr
,
MSIRECORD
*
record
)
static
const
WCHAR
*
STRING_evaluate
(
const
string_table
*
st
,
MSIVIEW
*
table
,
UINT
row
,
const
struct
expr
*
expr
,
const
MSIRECORD
*
record
)
{
UINT
val
=
0
,
r
;
...
...
@@ -165,8 +165,8 @@ static const WCHAR *STRING_evaluate( string_table *st,
return
NULL
;
}
static
UINT
STRCMP_Evaluate
(
string_table
*
st
,
MSIVIEW
*
table
,
UINT
row
,
struct
expr
*
cond
,
INT
*
val
,
MSIRECORD
*
record
)
static
UINT
STRCMP_Evaluate
(
const
string_table
*
st
,
MSIVIEW
*
table
,
UINT
row
,
const
struct
expr
*
cond
,
INT
*
val
,
const
MSIRECORD
*
record
)
{
int
sr
;
const
WCHAR
*
l_str
,
*
r_str
;
...
...
@@ -190,7 +190,7 @@ static UINT STRCMP_Evaluate( string_table *st, MSIVIEW *table, UINT row,
}
static
UINT
WHERE_evaluate
(
MSIDATABASE
*
db
,
MSIVIEW
*
table
,
UINT
row
,
struct
expr
*
cond
,
INT
*
val
,
MSIRECORD
*
record
)
const
struct
expr
*
cond
,
INT
*
val
,
MSIRECORD
*
record
)
{
UINT
r
,
tval
;
INT
lval
,
rval
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment