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
0bcf7755
Commit
0bcf7755
authored
Jun 20, 2003
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added support for #include in IDL files (based on a patch by Robert
Shearman).
parent
499cfcaf
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
5 deletions
+20
-5
makedep.c
tools/makedep.c
+20
-5
No files found.
tools/makedep.c
View file @
0bcf7755
...
...
@@ -292,24 +292,39 @@ static void parse_idl_file( INCL_FILE *pFile, FILE *file )
while
(
fgets
(
buffer
,
sizeof
(
buffer
)
-
1
,
file
))
{
char
quote
;
char
*
p
=
buffer
;
line
++
;
while
(
*
p
&&
isspace
(
*
p
))
p
++
;
if
(
strncmp
(
p
,
"import"
,
6
))
continue
;
if
(
!
strncmp
(
p
,
"import"
,
6
))
{
p
+=
6
;
while
(
*
p
&&
isspace
(
*
p
))
p
++
;
if
(
*
p
!=
'\"'
)
continue
;
p
++
;
}
else
{
if
(
*
p
++
!=
'#'
)
continue
;
while
(
*
p
&&
isspace
(
*
p
))
p
++
;
if
(
strncmp
(
p
,
"include"
,
7
))
continue
;
p
+=
7
;
while
(
*
p
&&
isspace
(
*
p
))
p
++
;
if
(
*
p
!=
'\"'
&&
*
p
!=
'<'
)
continue
;
}
quote
=
*
p
++
;
if
(
quote
==
'<'
)
quote
=
'>'
;
include
=
p
;
while
(
*
p
&&
(
*
p
!=
'\"'
))
p
++
;
while
(
*
p
&&
(
*
p
!=
quote
))
p
++
;
if
(
!*
p
)
{
fprintf
(
stderr
,
"%s:%d: Malformed import directive
\n
"
,
fprintf
(
stderr
,
"%s:%d: Malformed
#include or
import directive
\n
"
,
pFile
->
filename
,
line
);
exit
(
1
);
}
*
p
=
0
;
add_include
(
pFile
,
include
,
line
,
0
);
add_include
(
pFile
,
include
,
line
,
(
quote
==
'>'
)
);
}
}
...
...
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