diff options
author | Nathanael Nerode <neroden@gcc.gnu.org> | 2003-08-01 23:07:04 +0000 |
---|---|---|
committer | Nathanael Nerode <neroden@gcc.gnu.org> | 2003-08-01 23:07:04 +0000 |
commit | f4dbf936c77b638c3e61a22cbc4f45f8ae0c0d87 (patch) | |
tree | f06e481c77f0e34114e323d2ed676853d80a181b /gcc/fixinc/fixlib.c | |
parent | c76becbdce5b2e59546bd576dc72326801d1bda1 (diff) | |
download | gcc-f4dbf936c77b638c3e61a22cbc4f45f8ae0c0d87.zip gcc-f4dbf936c77b638c3e61a22cbc4f45f8ae0c0d87.tar.gz gcc-f4dbf936c77b638c3e61a22cbc4f45f8ae0c0d87.tar.bz2 |
fixfixes.c, [...]: ANSIfy function prototypes and defintions.
* fixinc/fixfixes.c, fixinc/fixlib.c, fixinc/fixlib.h,
fixinc/fixtests.c, fixinc/procopen.c, fixinc/server.c,
fixinc/server.h, fixinc/fixincl.c: ANSIfy function prototypes
and defintions.
Add missed (?!) ChangeLog entry from previous commit earlier today:
* fixinc/inclhack.def (broken_cabs): Make matching more generous.
* fixinc/fixincl.x: Regenerate.
* fixinc/tests/base/math.h: Regenerate to match test_text change.
From-SVN: r70078
Diffstat (limited to 'gcc/fixinc/fixlib.c')
-rw-r--r-- | gcc/fixinc/fixlib.c | 28 |
1 files changed, 6 insertions, 22 deletions
diff --git a/gcc/fixinc/fixlib.c b/gcc/fixinc/fixlib.c index 32f65d9..99d04cc 100644 --- a/gcc/fixinc/fixlib.c +++ b/gcc/fixinc/fixlib.c @@ -32,8 +32,7 @@ Boston, MA 02111-1307, USA. */ is presumed to be an ASCII text file containing no NULs. */ char * -load_file_data (fp) - FILE* fp; +load_file_data (FILE* fp) { char *pz_data = (char*)NULL; int space_left = -1; /* allow for terminating NUL */ @@ -81,9 +80,7 @@ load_file_data (fp) #ifdef IS_CXX_HEADER_NEEDED t_bool -is_cxx_header (fname, text) - tCC *fname; - tCC *text; +is_cxx_header (tCC* fname, tCC* text) { /* First, check to see if the file is in a C++ directory */ for (;;) @@ -147,9 +144,7 @@ template[ \t]*<|\ * We are not doing a correctness syntax check here. */ tCC* -skip_quote( q, text ) - char q; - char* text; +skip_quote(char q, char* text ) { for (;;) { @@ -188,12 +183,7 @@ skip_quote( q, text ) REG_EXTENDED|REG_NEWLINE produces identical regex syntax/semantics to egrep (verified from 4.4BSD Programmer's Reference Manual). */ void -compile_re( pat, re, match, e1, e2 ) - tCC *pat; - regex_t *re; - int match; - tCC *e1; - tCC *e2; +compile_re( tCC* pat, regex_t* re, int match, tCC* e1, tCC* e2 ) { tSCC z_bad_comp[] = "fixincl ERROR: cannot compile %s regex for %s\n\ \texpr = `%s'\n\terror %s\n"; @@ -228,10 +218,7 @@ static regex_t mn_name_re; static int mn_compiled = 0; void -mn_get_regexps( label_re, name_re, who ) - regex_t **label_re; - regex_t **name_re; - tCC *who; +mn_get_regexps(regex_t** label_re, regex_t** name_re, tCC* who ) { if (! mn_compiled) { @@ -248,10 +235,7 @@ mn_get_regexps( label_re, name_re, who ) #ifdef SEPARATE_FIX_PROC char* -make_raw_shell_str( pz_d, pz_s, smax ) - char* pz_d; - tCC* pz_s; - size_t smax; +make_raw_shell_str( char* pz_d, tCC* pz_s, size_t smax ) { tSCC zQ[] = "'\\''"; size_t dtaSize; |