osprey/kgccfe/gnu/fixinc/fixfixes.c File Reference

#include "fixlib.h"

Include dependency graph for fixfixes.c:

Go to the source code of this file.

Data Types

type  fix_entry_t

Defines

#define GTYPE_SE_CT   1
#define FIXUP_TABLE
#define FIX_PROC_HEAD(fix)
#define SCRATCHSZ   64
#define _FT_(n, p)   { n, p },
#define FIX_TABLE_CT   (ARRAY_SIZE (fix_table)-1)

Typedefs

typedef void t_fix_proc PARAMS ((const char *, const char *, tFixDesc *))

Functions/Subroutines

static const char *emit_gnu_type PARAMS ((const char *, regmatch_t *))
static const char * emit_gnu_type (char *text, regmatch_t *rm) const
static void format_write PARAMS ((tCC *, tCC *, regmatch_t[]))
static void format_write (tCC *format, tCC *text, av)
 FIX_PROC_HEAD (format_fix)
 FIX_PROC_HEAD (char_macro_use_fix)
 FIX_PROC_HEAD (char_macro_def_fix)
 FIX_PROC_HEAD (machine_name_fix)
 FIX_PROC_HEAD (wrap_fix)
 FIX_PROC_HEAD (gnu_type_fix)
void apply_fix (tFixDesc *p_fixd, tCC *filname)

Variables

tSCC zNeedsArg [] = "fixincl error: `%s' needs %s argument (c_fix_arg[%d])\n"


Define Documentation

#define _FT_ ( n,
p   )     { n, p },

#define FIX_PROC_HEAD ( fix   ) 

Value:

static void fix PARAMS ((const char *, const char *, tFixDesc *)); /* avoid warning */      \
static void fix ( filname, text, p_fixd )       \
    const char* filname;                        \
    const char* text;                           \
    tFixDesc* p_fixd;

Definition at line 76 of file fixfixes.c.

#define FIX_TABLE_CT   (ARRAY_SIZE (fix_table)-1)

Referenced by apply_fix().

#define FIXUP_TABLE

Value:

_FT_( "char_macro_def",   char_macro_def_fix ) \
  _FT_( "char_macro_use",   char_macro_use_fix ) \
  _FT_( "format",           format_fix )         \
  _FT_( "machine_name",     machine_name_fix )   \
  _FT_( "wrap",             wrap_fix )           \
  _FT_( "gnu_type",         gnu_type_fix )

Definition at line 67 of file fixfixes.c.

Referenced by apply_fix().

#define GTYPE_SE_CT   1

Definition at line 53 of file fixfixes.c.

Referenced by FIX_PROC_HEAD().

#define SCRATCHSZ   64

Definition at line 497 of file fixfixes.c.

Referenced by FIX_PROC_HEAD().


Typedef Documentation

typedef void t_fix_proc PARAMS((const char *, const char *, tFixDesc *))

Definition at line 61 of file fixfixes.c.


Function Documentation

void apply_fix ( tFixDesc p_fixd,
tCC*  filname 
)

Definition at line 712 of file fixfixes.c.

Referenced by internal_fix().

static const char* emit_gnu_type ( char*  text,
regmatch_t rm 
) const [static]

Definition at line 135 of file fixfixes.c.

References fwrite, NUL, pe, printf(), regmatch_t::rm_eo, regmatch_t::rm_so, strcmp(), TOUPPER, and tSCC.

Referenced by FIX_PROC_HEAD().

FIX_PROC_HEAD ( gnu_type_fix   ) 

FIX_PROC_HEAD ( wrap_fix   ) 

FIX_PROC_HEAD ( machine_name_fix   ) 

FIX_PROC_HEAD ( char_macro_def_fix   ) 

FIX_PROC_HEAD ( char_macro_use_fix   ) 

FIX_PROC_HEAD ( format_fix   ) 

static void format_write ( tCC*  format,
tCC*  text,
av   
) [static]

Definition at line 186 of file fixfixes.c.

References c, fwrite, ISDIGIT, len, NUL, putchar(), regmatch_t::rm_eo, regmatch_t::rm_so, and unsigned.

Referenced by FIX_PROC_HEAD().

static void format_write PARAMS ( (tCC *, tCC *, regmatch_t[])   )  [static]

static const char* emit_gnu_type PARAMS ( (const char *, regmatch_t *)   )  [static]


Variable Documentation

tSCC zNeedsArg[] = "fixincl error: `%s' needs %s argument (c_fix_arg[%d])\n"

Definition at line 59 of file fixfixes.c.

Referenced by FIX_PROC_HEAD().


Generated on Wed Apr 8 15:50:11 2009 for Open64 by  doxygen 1.5.6