Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
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-winehq
Commits
b075f03a
Commit
b075f03a
authored
May 30, 2005
by
Mike McCormack
Committed by
Alexandre Julliard
May 30, 2005
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove more types from the parser.
parent
cac6387c
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
21 deletions
+12
-21
insert.c
dlls/msi/insert.c
+3
-3
query.h
dlls/msi/query.h
+1
-1
sql.y
dlls/msi/sql.y
+8
-17
No files found.
dlls/msi/insert.c
View file @
b075f03a
...
@@ -44,7 +44,7 @@ typedef struct tagMSIINSERTVIEW
...
@@ -44,7 +44,7 @@ typedef struct tagMSIINSERTVIEW
MSIDATABASE
*
db
;
MSIDATABASE
*
db
;
BOOL
bIsTemp
;
BOOL
bIsTemp
;
MSIVIEW
*
sv
;
MSIVIEW
*
sv
;
value_list
*
vals
;
column_info
*
vals
;
}
MSIINSERTVIEW
;
}
MSIINSERTVIEW
;
static
UINT
INSERT_fetch_int
(
struct
tagMSIVIEW
*
view
,
UINT
row
,
UINT
col
,
UINT
*
val
)
static
UINT
INSERT_fetch_int
(
struct
tagMSIVIEW
*
view
,
UINT
row
,
UINT
col
,
UINT
*
val
)
...
@@ -62,7 +62,7 @@ static UINT INSERT_fetch_int( struct tagMSIVIEW *view, UINT row, UINT col, UINT
...
@@ -62,7 +62,7 @@ static UINT INSERT_fetch_int( struct tagMSIVIEW *view, UINT row, UINT col, UINT
* Merge a value_list and a record to create a second record.
* Merge a value_list and a record to create a second record.
* Replace wildcard entries in the valuelist with values from the record
* Replace wildcard entries in the valuelist with values from the record
*/
*/
static
MSIRECORD
*
INSERT_merge_record
(
UINT
fields
,
value_list
*
vl
,
MSIRECORD
*
rec
)
static
MSIRECORD
*
INSERT_merge_record
(
UINT
fields
,
column_info
*
vl
,
MSIRECORD
*
rec
)
{
{
MSIRECORD
*
merged
;
MSIRECORD
*
merged
;
DWORD
wildcard_count
=
1
,
i
;
DWORD
wildcard_count
=
1
,
i
;
...
@@ -255,7 +255,7 @@ MSIVIEWOPS insert_ops =
...
@@ -255,7 +255,7 @@ MSIVIEWOPS insert_ops =
};
};
UINT
INSERT_CreateView
(
MSIDATABASE
*
db
,
MSIVIEW
**
view
,
LPWSTR
table
,
UINT
INSERT_CreateView
(
MSIDATABASE
*
db
,
MSIVIEW
**
view
,
LPWSTR
table
,
column_info
*
columns
,
value_list
*
values
,
BOOL
temp
)
column_info
*
columns
,
column_info
*
values
,
BOOL
temp
)
{
{
MSIINSERTVIEW
*
iv
=
NULL
;
MSIINSERTVIEW
*
iv
=
NULL
;
UINT
r
;
UINT
r
;
...
...
dlls/msi/query.h
View file @
b075f03a
...
@@ -115,7 +115,7 @@ UINT CREATE_CreateView( MSIDATABASE *db, MSIVIEW **view, LPWSTR table,
...
@@ -115,7 +115,7 @@ UINT CREATE_CreateView( MSIDATABASE *db, MSIVIEW **view, LPWSTR table,
column_info
*
col_info
,
BOOL
temp
);
column_info
*
col_info
,
BOOL
temp
);
UINT
INSERT_CreateView
(
MSIDATABASE
*
db
,
MSIVIEW
**
view
,
LPWSTR
table
,
UINT
INSERT_CreateView
(
MSIDATABASE
*
db
,
MSIVIEW
**
view
,
LPWSTR
table
,
column_info
*
columns
,
value_list
*
values
,
BOOL
temp
);
column_info
*
columns
,
column_info
*
values
,
BOOL
temp
);
UINT
UPDATE_CreateView
(
MSIDATABASE
*
db
,
MSIVIEW
**
,
LPWSTR
table
,
UINT
UPDATE_CreateView
(
MSIDATABASE
*
db
,
MSIVIEW
**
,
LPWSTR
table
,
column_info
*
list
,
struct
expr
*
expr
);
column_info
*
list
,
struct
expr
*
expr
);
...
...
dlls/msi/sql.y
View file @
b075f03a
...
@@ -74,7 +74,6 @@ static struct expr * EXPR_wildcard( void *info );
...
@@ -74,7 +74,6 @@ static struct expr * EXPR_wildcard( void *info );
struct sql_str str;
struct sql_str str;
LPWSTR string;
LPWSTR string;
column_info *column_list;
column_info *column_list;
value_list *val_list;
MSIVIEW *query;
MSIVIEW *query;
struct expr *expr;
struct expr *expr;
USHORT column_type;
USHORT column_type;
...
@@ -126,12 +125,11 @@ static struct expr * EXPR_wildcard( void *info );
...
@@ -126,12 +125,11 @@ static struct expr * EXPR_wildcard( void *info );
%type <string> table id
%type <string> table id
%type <column_list> selcollist column column_and_type column_def table_def
%type <column_list> selcollist column column_and_type column_def table_def
%type <column_list> column_assignment update_assign_list
%type <column_list> column_assignment update_assign_list
constlist
%type <query> query from fromtable selectfrom unorderedsel
%type <query> query from fromtable selectfrom unorderedsel
%type <query> oneupdate onedelete oneselect onequery onecreate oneinsert
%type <query> oneupdate onedelete oneselect onequery onecreate oneinsert
%type <expr> expr val column_val const_val
%type <expr> expr val column_val const_val
%type <column_type> column_type data_type data_type_l data_count
%type <column_type> column_type data_type data_type_l data_count
%type <val_list> constlist
%%
%%
...
@@ -498,25 +496,18 @@ val:
...
@@ -498,25 +496,18 @@ val:
constlist:
constlist:
const_val
const_val
{
{
value_list *vals;
$$ = parser_alloc_column( info, NULL, NULL );
if( !$$ )
vals = parser_alloc( info, sizeof *vals );
if( !vals )
YYABORT;
YYABORT;
vals->val = $1;
$$->val = $1;
vals->next = NULL;
$$ = vals;
}
}
| const_val TK_COMMA constlist
| const_val TK_COMMA constlist
{
{
value_list *vals;
$$ = parser_alloc_column( info, NULL, NULL );
if( !$$ )
vals = parser_alloc( info, sizeof *vals );
if( !vals )
YYABORT;
YYABORT;
vals->val = $1;
$$->val = $1;
vals->next = $3;
$$->next = $3;
$$ = vals;
}
}
;
;
...
...
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