aboutsummaryrefslogtreecommitdiff
path: root/gcc/fixinc/fixlib.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/fixinc/fixlib.c')
-rw-r--r--gcc/fixinc/fixlib.c32
1 files changed, 8 insertions, 24 deletions
diff --git a/gcc/fixinc/fixlib.c b/gcc/fixinc/fixlib.c
index 49edda776d1..99d04cc5531 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 */
@@ -49,7 +48,7 @@ load_file_data (fp)
if (space_left < 1024)
{
space_left += 4096;
- pz_data = xrealloc ((void*)pz_data, space_left + space_used + 1 );
+ pz_data = xrealloc (pz_data, space_left + space_used + 1 );
}
size_read = fread (pz_data + space_used, 1, space_left, fp);
@@ -73,7 +72,7 @@ load_file_data (fp)
space_used += size_read;
} while (! feof (fp));
- pz_data = xrealloc ((void*)pz_data, space_used+1 );
+ pz_data = xrealloc (pz_data, space_used+1 );
pz_data[ space_used ] = NUL;
return pz_data;
@@ -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;