Paul Eggert
d1b680c63b
(skip_comment, handle_directive): Don't use uninitialized vars.
...
From-SVN: r11948
1996-05-07 01:37:49 +00:00
Richard Kenner
9c906e8127
(default_include): For C++, also search OLD_GPLUSPLUS_INCLUDE_DIR.
...
From-SVN: r11931
1996-05-05 22:12:23 -04:00
Doug Evans
3973362409
(sys/param.h): Delete inclusion.
...
This was a CYGNUS LOCAL patch accidentally installed at the FSF.
From-SVN: r11117
1996-01-27 16:31:31 +00:00
Richard Kenner
a5827481f4
(finclude): Set current input pointer when input is not a regular
...
file.
From-SVN: r10549
1995-11-04 10:44:33 -05:00
Richard Kenner
a8259c76b8
(output_line_command): If not emitting #line directives delay
...
returning until after adjust_position has been called.
From-SVN: r10101
1995-07-01 11:57:25 -04:00
Richard Kenner
bcad7343b5
(progname): Remove definition from here.
...
From-SVN: r10082
1995-06-28 17:53:55 -04:00
Richard Kenner
940d9d638b
Update FSF address.
...
From-SVN: r9959
1995-06-15 07:33:25 -04:00
Richard Kenner
27f3162f4b
(cpp_push_buffer): Include filename in error message.
...
From-SVN: r9901
1995-06-08 12:02:22 -04:00
Richard Kenner
55420ce980
(initialize_builtins): Add missing parm to timestamp call.
...
From-SVN: r9778
1995-05-23 14:33:04 -04:00
Per Bothner
a2baccf6e0
* cpplib.c (collect_expansion): Don't escape '@' inside string.
...
From-SVN: r9744
1995-05-19 11:19:56 -07:00
Richard Kenner
3efba298c7
Use FATAL_EXIT_CODE instead of FAILURE_EXIT_CODE.
...
From-SVN: r9725
1995-05-16 18:03:31 -04:00
Richard Kenner
ddd5a7c180
Fix typos in comments.
...
From-SVN: r9711
1995-05-16 08:14:26 -04:00
Per Bothner
3232050ccc
Fix reporting of unterminated strings.
...
From-SVN: r9637
1995-05-12 01:13:44 -07:00
Per Bothner
e8037d57d4
cpplib.c (line_for_error): Make it work; add extra parameter.
...
* cpplib.c (line_for_error): Make it work; add extra parameter.
(skip_quoted_string, cpp_get_token): Update calls to line_for_error.
(macroexpand): Remember initial line so we can report it if the
call is unterminated. Also, simplify error logic slightly.
(do_include): Cast alloca return value, to avoid pcc warning.
From-SVN: r9635
1995-05-11 19:33:33 -07:00
Per Bothner
782331f47d
Bunch of fixes. See ChangeLog.
...
From-SVN: r9552
1995-04-30 14:43:12 -07:00
Richard Kenner
0e45ccbdb6
Don't include <sys/stat.h> twice.
...
(cpp_grow_buffer, init_parse_file): Cast {xmalloc,xrealloc} for token_buffer
to U_CHAR* instead of char*.
From-SVN: r9507
1995-04-27 11:43:23 -04:00
Per Bothner
b13b05f6ab
cpplib.c: Rename make_definition to cpp_define.
...
* cpplib.c: Rename make_definition to cpp_define.
* cpplib.c (special_symbol): For T_SPECLINE, calculate __LINE__
in enclosing file buffer, not current buffer (if macro expanding).
(cpp_get_token): Fix thinko (in code for chopping unneeded space).
From-SVN: r9403
1995-04-17 16:43:46 -07:00
Per Bothner
22bbceaf8e
Bunch of little fixes. See ChangeLog.
...
From-SVN: r9360
1995-04-11 13:43:19 -07:00
Richard Kenner
5f972d0c29
(init_parse_options, cpp_reader): Cast args to bcopy, bcmp, and bzero to char *.
...
(init_parse_options, cpp_reader): Cast args to bcopy, bcmp, and bzero to
char *.
(add_import, push_parse_file, init_parse_file): Likewise.
From-SVN: r9352
1995-04-10 09:23:06 -04:00
Per Bothner
86c041d275
* cpplib.c (bcopy, bzero, bcmp): Remove #undefs.
...
From-SVN: r9323
1995-04-07 01:42:27 -07:00
Per Bothner
6bac1e6496
cpplib.c (SELF_DIR_DUMMY): New macro.
...
* cpplib.c (SELF_DIR_DUMMY): New macro.
(do_include): Don't pass searchptr to finclude if it is dsp,
since that is on the stack, and would cause a dangling pointer.
If handling #include_next, recognize SELF_DIR_DUMMY.
From-SVN: r9320
1995-04-06 23:20:52 -07:00
Per Bothner
355142da80
Moved 'high-level' error functions from cpperror.c to cpplib.c.
...
From-SVN: r9315
1995-04-05 13:34:58 -07:00
Per Bothner
6be492abc2
Merged in earlier cccp.c changes
...
From-SVN: r9218
1995-03-21 17:06:47 -08:00
Per Bothner
7f2935c734
Initial revision
...
From-SVN: r9191
1995-03-16 13:59:07 -08:00