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
d19ad396
Commit
d19ad396
authored
Nov 06, 2000
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Better error message when an include file is not found by makedep.
Added support for .mc extension. Do not try to open *.tab.h and *.mc.rc include files.
parent
f3613815
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
43 additions
and
12 deletions
+43
-12
Makefile.in
debugger/Makefile.in
+0
-2
Makefile.in
programs/winhelp/Makefile.in
+0
-2
makedep.c
tools/makedep.c
+42
-5
Makefile.in
tools/wmc/Makefile.in
+1
-1
Makefile.in
tools/wrc/Makefile.in
+0
-2
No files found.
debugger/Makefile.in
View file @
d19ad396
...
...
@@ -32,8 +32,6 @@ EXTRA_OBJS = y.tab.o lex.yy.o
all
:
$(PROGRAMS)
depend
:
y.tab.h
@MAKE_RULES@
y.tab.c y.tab.h
:
dbg.y
...
...
programs/winhelp/Makefile.in
View file @
d19ad396
...
...
@@ -22,8 +22,6 @@ RC_SRCS = rsrc.rc
all
:
$(PROGRAMS)
depend
:
y.tab.h
@MAKE_RULES@
$(SPEC_SRCS
:
.spec=.spec.c): $(RC_SRCS:.rc=.res)
...
...
tools/makedep.c
View file @
d19ad396
...
...
@@ -18,6 +18,8 @@ typedef struct _INCL_FILE
struct
_INCL_FILE
*
next
;
char
*
name
;
char
*
filename
;
struct
_INCL_FILE
*
included_by
;
/* file that included this one */
int
included_line
;
/* line where this file was included */
struct
_INCL_FILE
*
owner
;
struct
_INCL_FILE
*
files
[
MAX_INCLUDES
];
}
INCL_FILE
;
...
...
@@ -78,6 +80,23 @@ static char *xstrdup( const char *str )
/*******************************************************************
* is_generated
*
* Test if a given file type is generated during the make process
*/
static
int
is_generated
(
const
char
*
name
)
{
static
const
char
*
const
extensions
[]
=
{
".tab.h"
,
".mc.rc"
};
int
i
,
len
=
strlen
(
name
);
for
(
i
=
0
;
i
<
sizeof
(
extensions
)
/
sizeof
(
extensions
[
0
]);
i
++
)
{
if
(
len
<=
strlen
(
extensions
[
i
]))
continue
;
if
(
!
strcmp
(
name
+
len
-
strlen
(
extensions
[
i
]),
extensions
[
i
]
))
return
1
;
}
return
0
;
}
/*******************************************************************
* add_include_path
*
* Add a directory to the include path.
...
...
@@ -115,7 +134,7 @@ static INCL_FILE *add_src_file( const char *name )
*
* Add an include file if it doesn't already exists.
*/
static
INCL_FILE
*
add_include
(
INCL_FILE
*
pFile
,
const
char
*
name
)
static
INCL_FILE
*
add_include
(
INCL_FILE
*
pFile
,
const
char
*
name
,
int
line
)
{
INCL_FILE
**
p
=
&
firstInclude
;
int
pos
;
...
...
@@ -134,6 +153,8 @@ static INCL_FILE *add_include( INCL_FILE *pFile, const char *name )
*
p
=
xmalloc
(
sizeof
(
INCL_FILE
)
);
memset
(
*
p
,
0
,
sizeof
(
INCL_FILE
)
);
(
*
p
)
->
name
=
xstrdup
(
name
);
(
*
p
)
->
included_by
=
pFile
;
(
*
p
)
->
included_line
=
line
;
}
pFile
->
files
[
pos
]
=
*
p
;
return
*
p
;
...
...
@@ -191,6 +212,12 @@ static FILE *open_include_file( INCL_FILE *pFile )
if
(
firstPath
)
perror
(
pFile
->
name
);
else
fprintf
(
stderr
,
"%s: %s: File not found
\n
"
,
ProgramName
,
pFile
->
name
);
while
(
pFile
->
included_by
)
{
fprintf
(
stderr
,
" %s was first included from %s:%d
\n
"
,
pFile
->
name
,
pFile
->
included_by
->
name
,
pFile
->
included_line
);
pFile
=
pFile
->
included_by
;
}
exit
(
1
);
}
return
file
;
...
...
@@ -205,8 +232,17 @@ static void parse_file( INCL_FILE *pFile, int src )
char
buffer
[
1024
];
char
*
include
;
int
line
=
0
;
FILE
*
file
;
if
(
is_generated
(
pFile
->
name
))
{
/* file is generated during make, don't try to open it */
pFile
->
filename
=
xstrdup
(
pFile
->
name
);
return
;
}
file
=
src
?
open_src_file
(
pFile
)
:
open_include_file
(
pFile
);
FILE
*
file
=
src
?
open_src_file
(
pFile
)
:
open_include_file
(
pFile
);
while
(
fgets
(
buffer
,
sizeof
(
buffer
)
-
1
,
file
))
{
char
*
p
=
buffer
;
...
...
@@ -227,7 +263,7 @@ static void parse_file( INCL_FILE *pFile, int src )
exit
(
1
);
}
*
p
=
0
;
add_include
(
pFile
,
include
);
add_include
(
pFile
,
include
,
line
);
}
fclose
(
file
);
}
...
...
@@ -263,6 +299,7 @@ static void output_src( FILE *file, INCL_FILE *pFile, int *column )
{
char
*
obj
=
xstrdup
(
pFile
->
name
);
char
*
ext
=
strrchr
(
obj
,
'.'
);
if
(
ext
&&
strchr
(
ext
,
'/'
))
ext
=
NULL
;
if
(
ext
)
{
*
ext
++
=
0
;
...
...
@@ -278,9 +315,9 @@ static void output_src( FILE *file, INCL_FILE *pFile, int *column )
{
*
column
+=
fprintf
(
file
,
"%s.res: %s"
,
obj
,
pFile
->
filename
);
}
else
if
(
!
strcmp
(
ext
,
"
rc16"
))
/* Win16 resourc
e file */
else
if
(
!
strcmp
(
ext
,
"
mc"
))
/* messag
e file */
{
*
column
+=
fprintf
(
file
,
"%s.
s
: %s"
,
obj
,
pFile
->
filename
);
*
column
+=
fprintf
(
file
,
"%s.
mc.rc
: %s"
,
obj
,
pFile
->
filename
);
}
else
{
...
...
tools/wmc/Makefile.in
View file @
d19ad396
...
...
@@ -20,7 +20,7 @@ EXTRA_OBJS = y.tab.o
all
:
$(PROGRAMS)
depend
mcl.o
:
y.tab.h
mcl.o
:
y.tab.h
@MAKE_RULES@
...
...
tools/wrc/Makefile.in
View file @
d19ad396
...
...
@@ -25,8 +25,6 @@ EXTRA_OBJS = y.tab.o lex.yy.o
all
:
$(PROGRAMS)
depend
:
y.tab.h ppy.tab.h
@MAKE_RULES@
wrc
:
$(OBJS) $(TOPOBJDIR)/libwine_unicode.$(LIBEXT)
...
...
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