#include "fixlib.h"

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 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 |
| #define SCRATCHSZ 64 |
| typedef void t_fix_proc PARAMS((const char *, const char *, tFixDesc *)) |
Definition at line 61 of file fixfixes.c.
| 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 | ) |
Definition at line 662 of file fixfixes.c.
References compile_re(), emit_gnu_type(), exit(), EXIT_BROKEN, fprintf(), fputs(), GTYPE_SE_CT, IGNORE_ARG, test_desc::pz_test_text, regexec, rm, TT_EGREP, test_desc::type, and zNeedsArg.
| FIX_PROC_HEAD | ( | wrap_fix | ) |
| FIX_PROC_HEAD | ( | machine_name_fix | ) |
Definition at line 499 of file fixfixes.c.
References abort, base, fputs(), fwrite, IGNORE_ARG, len, memcpy, mn_get_regexps(), p, q, REG_NOTBOL, regexec, regmatch_t::rm_eo, regmatch_t::rm_so, scratch, SCRATCHSZ, strchr, and strncmp().
| FIX_PROC_HEAD | ( | char_macro_def_fix | ) |
Definition at line 404 of file fixfixes.c.
References compile_re(), exit(), EXIT_BROKEN, fprintf(), fputs(), fwrite, IGNORE_ARG, ISALPHA, ISIDNUM, ISUPPER, len, NULL, p, putchar(), regexec, rm, regmatch_t::rm_eo, str, strchr, strlen(), strncmp(), and zNeedsArg.
| FIX_PROC_HEAD | ( | char_macro_use_fix | ) |
Definition at line 319 of file fixfixes.c.
References compile_re(), exit(), EXIT_BROKEN, fprintf(), fputs(), fwrite, IGNORE_ARG, ISALPHA, ISIDNUM, ISSPACE, ISUPPER, len, NULL, p, putchar(), regexec, rm, regmatch_t::rm_eo, str, strchr, strlen(), strncmp(), and zNeedsArg.
| FIX_PROC_HEAD | ( | format_fix | ) |
Definition at line 246 of file fixfixes.c.
References compile_re(), exit(), EXIT_BROKEN, format_write(), fprintf(), fputs(), fwrite, IGNORE_ARG, NULL, test_desc::pz_test_text, regexec, rm, regmatch_t::rm_eo, tCC, TT_EGREP, test_desc::type, and zNeedsArg.
| 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] |
1.5.6