⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 fixincl.x

📁 gcc-2.95.3 Linux下最常用的C编译器
💻 X
📖 第 1 页 / 共 5 页
字号:
/* *  DO NOT EDIT THIS FILE - it has been generated * * Install modified versions of certain ANSI-incompatible system header * files which are fixed to work correctly with ANSI C and placed in a * directory that GNU C will search. * * This file contains 103 fixup descriptions. * * See README-fixinc for more information. * *  inclhack copyright (c) 1999 The Free Software Foundation, Inc. * *  inclhack is free software. *   *  You may redistribute it and/or modify it under the terms of the *  GNU General Public License, as published by the Free Software *  Foundation; either version 2, or (at your option) any later version. *   *  inclhack is distributed in the hope that it will be useful, *  but WITHOUT ANY WARRANTY; without even the implied warranty of *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. *  See the GNU General Public License for more details. *   *  You should have received a copy of the GNU General Public License *  along with inclhack.  See the file "COPYING".  If not, *  write to:  The Free Software Foundation, Inc., *             59 Temple Place - Suite 330, *             Boston,  MA  02111-1307, USA. * * *  Description   1 - Aix_Syswait fix */tSCC zAix_SyswaitName[] =     "Aix_Syswait";/* *  File name selection pattern */tSCC zAix_SyswaitList[] =  "|sys/wait.h|";/* *  Machine/OS name selection pattern */#define apzAix_SyswaitMachs (const char**)NULL/* *  content selection pattern - do fix if pattern found */tSCC zAix_SyswaitSelect0[] =       "bos325,";#define    AIX_SYSWAIT_TEST_CT  1#define    AIX_SYSWAIT_RE_CT    1tTestDesc aAix_SyswaitTests[] = {  { TT_EGREP,  zAix_SyswaitSelect0,   (regex_t*)NULL }, };/* *  Fix Command Arguments for Aix_Syswait */const char* apzAix_SyswaitPatch[] = { "sed",    "-e", "/^extern pid_t wait3();$/i\\\n\struct rusage;\n",    (char*)NULL };/* * * * * * * * * * * * * * * * * * * * * * * * * * * *  Description   2 - Aix_Volatile fix */tSCC zAix_VolatileName[] =     "Aix_Volatile";/* *  File name selection pattern */tSCC zAix_VolatileList[] =  "|sys/signal.h|";/* *  Machine/OS name selection pattern */#define apzAix_VolatileMachs (const char**)NULL/* *  content selection pattern - do fix if pattern found */tSCC zAix_VolatileSelect0[] =       "typedef volatile int sig_atomic_t";#define    AIX_VOLATILE_TEST_CT  1#define    AIX_VOLATILE_RE_CT    1tTestDesc aAix_VolatileTests[] = {  { TT_EGREP,  zAix_VolatileSelect0,   (regex_t*)NULL }, };/* *  Fix Command Arguments for Aix_Volatile */const char* apzAix_VolatilePatch[] = { "sed",    "-e", "s/typedef volatile int sig_atomic_t/typedef int sig_atomic_t/",    (char*)NULL };/* * * * * * * * * * * * * * * * * * * * * * * * * * * *  Description   3 - Alpha_Getopt fix */tSCC zAlpha_GetoptName[] =     "Alpha_Getopt";/* *  File name selection pattern */tSCC zAlpha_GetoptList[] =  "|stdio.h|stdlib.h|";/* *  Machine/OS name selection pattern */#define apzAlpha_GetoptMachs (const char**)NULL/* *  content selection pattern - do fix if pattern found */tSCC zAlpha_GetoptSelect0[] =       "getopt\\(int, char \\*\\[";#define    ALPHA_GETOPT_TEST_CT  1#define    ALPHA_GETOPT_RE_CT    1tTestDesc aAlpha_GetoptTests[] = {  { TT_EGREP,  zAlpha_GetoptSelect0,   (regex_t*)NULL }, };/* *  Fix Command Arguments for Alpha_Getopt */const char* apzAlpha_GetoptPatch[] = { "sed",    "-e", "s/getopt(int, char \\*\\[\\],[ ]*char \\*)/getopt(int, char *const[], const char *)/",    (char*)NULL };/* * * * * * * * * * * * * * * * * * * * * * * * * * * *  Description   4 - Alpha_Parens fix */tSCC zAlpha_ParensName[] =     "Alpha_Parens";/* *  File name selection pattern */tSCC zAlpha_ParensList[] =  "|sym.h|";/* *  Machine/OS name selection pattern */#define apzAlpha_ParensMachs (const char**)NULL/* *  content selection pattern - do fix if pattern found */tSCC zAlpha_ParensSelect0[] =       "#ifndef\\(__mips64\\)";#define    ALPHA_PARENS_TEST_CT  1#define    ALPHA_PARENS_RE_CT    1tTestDesc aAlpha_ParensTests[] = {  { TT_EGREP,  zAlpha_ParensSelect0,   (regex_t*)NULL }, };/* *  Fix Command Arguments for Alpha_Parens */const char* apzAlpha_ParensPatch[] = { "sed",    "-e", "s/#ifndef(__mips64)/#ifndef __mips64/",    (char*)NULL };/* * * * * * * * * * * * * * * * * * * * * * * * * * * *  Description   5 - Alpha_Sbrk fix */tSCC zAlpha_SbrkName[] =     "Alpha_Sbrk";/* *  File name selection pattern */tSCC zAlpha_SbrkList[] =  "|unistd.h|";/* *  Machine/OS name selection pattern */#define apzAlpha_SbrkMachs (const char**)NULL/* *  content selection pattern - do fix if pattern found */tSCC zAlpha_SbrkSelect0[] =       "char[ \t]*\\*[\t ]*sbrk[ \t]*\\(";#define    ALPHA_SBRK_TEST_CT  1#define    ALPHA_SBRK_RE_CT    1tTestDesc aAlpha_SbrkTests[] = {  { TT_EGREP,  zAlpha_SbrkSelect0,   (regex_t*)NULL }, };/* *  Fix Command Arguments for Alpha_Sbrk */const char* apzAlpha_SbrkPatch[] = { "sed",    "-e", "s/char\\([ \t]*\\*[\t ]*sbrk[ \t]*(\\)/void\\1/",    (char*)NULL };/* * * * * * * * * * * * * * * * * * * * * * * * * * * *  Description   6 - Arm_Norcroft_Hint fix */tSCC zArm_Norcroft_HintName[] =     "Arm_Norcroft_Hint";/* *  File name selection pattern */tSCC zArm_Norcroft_HintList[] =  "|X11/Intrinsic.h|";/* *  Machine/OS name selection pattern */#define apzArm_Norcroft_HintMachs (const char**)NULL/* *  content selection pattern - do fix if pattern found */tSCC zArm_Norcroft_HintSelect0[] =       "___type p_type";#define    ARM_NORCROFT_HINT_TEST_CT  1#define    ARM_NORCROFT_HINT_RE_CT    1tTestDesc aArm_Norcroft_HintTests[] = {  { TT_EGREP,  zArm_Norcroft_HintSelect0,   (regex_t*)NULL }, };/* *  Fix Command Arguments for Arm_Norcroft_Hint */const char* apzArm_Norcroft_HintPatch[] = { "sed",    "-e", "s/___type p_type/p_type/",    (char*)NULL };/* * * * * * * * * * * * * * * * * * * * * * * * * * * *  Description   7 - Arm_Wchar fix */tSCC zArm_WcharName[] =     "Arm_Wchar";/* *  File name selection pattern */tSCC zArm_WcharList[] =  "|stdlib.h|";/* *  Machine/OS name selection pattern */#define apzArm_WcharMachs (const char**)NULL/* *  content selection pattern - do fix if pattern found */tSCC zArm_WcharSelect0[] =       "#[ \t]*define[ \t]*__wchar_t";#define    ARM_WCHAR_TEST_CT  1#define    ARM_WCHAR_RE_CT    1tTestDesc aArm_WcharTests[] = {  { TT_EGREP,  zArm_WcharSelect0,   (regex_t*)NULL }, };/* *  Fix Command Arguments for Arm_Wchar */const char* apzArm_WcharPatch[] = { "sed",    "-e", "s/\\(#[ \t]*ifndef[ \t]*\\)__wchar_t/\\1_GCC_WCHAR_T/",    "-e", "s/\\(#[ \t]*define[ \t]*\\)__wchar_t/\\1_GCC_WCHAR_T/",    (char*)NULL };/* * * * * * * * * * * * * * * * * * * * * * * * * * * *  Description   8 - Aux_Asm fix */tSCC zAux_AsmName[] =     "Aux_Asm";/* *  File name selection pattern */tSCC zAux_AsmList[] =  "|sys/param.h|";/* *  Machine/OS name selection pattern */#define apzAux_AsmMachs (const char**)NULL/* *  content selection pattern - do fix if pattern found */tSCC zAux_AsmSelect0[] =       "#ifndef NOINLINE";#define    AUX_ASM_TEST_CT  1#define    AUX_ASM_RE_CT    1tTestDesc aAux_AsmTests[] = {  { TT_EGREP,  zAux_AsmSelect0,   (regex_t*)NULL }, };/* *  Fix Command Arguments for Aux_Asm */const char* apzAux_AsmPatch[] = { "sed",    "-e", "s|#ifndef NOINLINE|#if !defined(NOINLINE) \\&\\& !defined(__GNUC__)|",    (char*)NULL };/* * * * * * * * * * * * * * * * * * * * * * * * * * * *  Description   9 - Avoid_Bool fix */tSCC zAvoid_BoolName[] =     "Avoid_Bool";/* *  File name selection pattern */tSCC zAvoid_BoolList[] =  "|curses.h|curses_colr/curses.h|term.h|tinfo.h|";/* *  Machine/OS name selection pattern */#define apzAvoid_BoolMachs (const char**)NULL#define AVOID_BOOL_TEST_CT  0#define AVOID_BOOL_RE_CT    0#define aAvoid_BoolTests   (tTestDesc*)NULL/* *  Fix Command Arguments for Avoid_Bool */const char* apzAvoid_BoolPatch[] = { "sed",    "-e", "/^#[ \t]*define[ \t][ \t]*bool[ \t][ \t]*char[ \t]*$/i\\\n\#ifndef __cplusplus\n",    "-e", "/^#[ \t]*define[ \t][ \t]*bool[ \t][ \t]*char[ \t]*$/a\\\n\#endif\n",    "-e", "/^typedef[ \t][ \t]*char[ \t][ \t]*bool[ \t]*;/i\\\n\#ifndef __cplusplus\n",    "-e", "/^typedef[ \t][ \t]*char[ \t][ \t]*bool[ \t]*;/a\\\n\#endif\n",    "-e", "/^[ ]*typedef[ \t][ \t]*unsigned char[ \t][ \t]*bool[ \t]*;/i\\\n\#ifndef __cplusplus\n",    "-e", "/^[ ]*typedef[ \t][ \t]*unsigned char[ \t][ \t]*bool[ \t]*;/a\\\n\#endif\n",    "-e", "/^typedef[ \t][ \t]*int[ \t][ \t]*bool[ \t]*;/i\\\n\#ifndef __cplusplus\n",    "-e", "/^typedef[ \t][ \t]*int[ \t][ \t]*bool[ \t]*;/a\\\n\#endif\n",    "-e", "/^[ ]*typedef[ \t][ \t]*unsigned int[ \t][ \t]*bool[ \t]*;/i\\\n\#ifndef __cplusplus\n",    "-e", "/^[ ]*typedef[ \t][ \t]*unsigned int[ \t][ \t]*bool[ \t]*;/a\\\n\#endif\n",    (char*)NULL };/* * * * * * * * * * * * * * * * * * * * * * * * * * * *  Description  10 - Bad_Struct_Term fix */tSCC zBad_Struct_TermName[] =     "Bad_Struct_Term";/* *  File name selection pattern */tSCC zBad_Struct_TermList[] =  "|curses.h|";/* *  Machine/OS name selection pattern */#define apzBad_Struct_TermMachs (const char**)NULL/* *  content selection pattern - do fix if pattern found */tSCC zBad_Struct_TermSelect0[] =       "^[ \t]*typedef[ \t]+struct[ \t]+term[ \t]*;";#define    BAD_STRUCT_TERM_TEST_CT  1#define    BAD_STRUCT_TERM_RE_CT    1tTestDesc aBad_Struct_TermTests[] = {  { TT_EGREP,  zBad_Struct_TermSelect0,   (regex_t*)NULL }, };/* *  Fix Command Arguments for Bad_Struct_Term */const char* apzBad_Struct_TermPatch[] = { "sed",    "-e", "s/^[ \t]*typedef[ \t][ \t]*\\(struct[ \t][ \t]*term[ \t]*;[ \t]*\\)$/\\1/",    (char*)NULL };/* * * * * * * * * * * * * * * * * * * * * * * * * * * *  Description  11 - Badquote fix */tSCC zBadquoteName[] =     "Badquote";/* *  File name selection pattern */tSCC zBadquoteList[] =  "|sundev/vuid_event.h|";/* *  Machine/OS name selection pattern */#define apzBadquoteMachs (const char**)NULL#define BADQUOTE_TEST_CT  0#define BADQUOTE_RE_CT    0#define aBadquoteTests   (tTestDesc*)NULL/* *  Fix Command Arguments for Badquote */const char* apzBadquotePatch[] = { "sed",    "-e", "s/doesn't/does not/",    (char*)NULL };/* * * * * * * * * * * * * * * * * * * * * * * * * * * *  Description  12 - Bad_Lval fix */tSCC zBad_LvalName[] =     "Bad_Lval";/* *  File name selection pattern */tSCC zBad_LvalList[] =  "|libgen.h|dirent.h|ftw.h|grp.h|ndbm.h|pthread.h|pwd.h|signal.h|standards.h|stdlib.h|string.h|stropts.h|time.h|unistd.h|";/* *  Machine/OS name selection pattern */#define apzBad_LvalMachs (const char**)NULL#define BAD_LVAL_TEST_CT  0#define BAD_LVAL_RE_CT    0#define aBad_LvalTests   (tTestDesc*)NULL/* *  Fix Command Arguments for Bad_Lval */const char* apzBad_LvalPatch[] = { "sed",    "-e", "s/^[ \t]*#[ \t]*define[ \t]*\\([^(]*\\)\\(([^)]*)\\)[ \t]*\\(_.\\)\\1\\2[ \t]*$/#define \\1 \\3\\1/",    (char*)NULL };/* * * * * * * * * * * * * * * * * * * * * * * * * * * *  Description  13 - Broken_Assert_Stdio fix */tSCC zBroken_Assert_StdioName[] =     "Broken_Assert_Stdio";/* *  File name selection pattern */tSCC zBroken_Assert_StdioList[] =  "|assert.h|";/* *  Machine/OS name selection pattern */#define apzBroken_Assert_StdioMachs (const char**)NULL/* *  content selection pattern - do fix if pattern found */tSCC zBroken_Assert_StdioSelect0[] =       "stderr";/* *  content bypass pattern - skip fix if pattern found */tSCC zBroken_Assert_StdioBypass0[] =       "include.*stdio.h";#define    BROKEN_ASSERT_STDIO_TEST_CT  2#define    BROKEN_ASSERT_STDIO_RE_CT    2tTestDesc aBroken_Assert_StdioTests[] = {  { TT_NEGREP, zBroken_Assert_StdioBypass0,   (regex_t*)NULL },  { TT_EGREP,  zBroken_Assert_StdioSelect0,   (regex_t*)NULL }, };/* *  Fix Command Arguments for Broken_Assert_Stdio */const char* apzBroken_Assert_StdioPatch[] = { "sed",    "-e", "1i\\\n\#include <stdio.h>\n",    (char*)NULL };/* * * * * * * * * * * * * * * * * * * * * * * * * * * *  Description  14 - Broken_Assert_Stdlib fix */tSCC zBroken_Assert_StdlibName[] =     "Broken_Assert_Stdlib";/* *  File name selection pattern */tSCC zBroken_Assert_StdlibList[] =  "|assert.h|";/* *  Machine/OS name selection pattern */#define apzBroken_Assert_StdlibMachs (const char**)NULL/* *  content selection pattern - do fix if pattern found */tSCC zBroken_Assert_StdlibSelect0[] =       "exit *\\(|abort *\\(";/* *  content bypass pattern - skip fix if pattern found */tSCC zBroken_Assert_StdlibBypass0[] =       "include.*stdlib.h";#define    BROKEN_ASSERT_STDLIB_TEST_CT  2#define    BROKEN_ASSERT_STDLIB_RE_CT    2tTestDesc aBroken_Assert_StdlibTests[] = {  { TT_NEGREP, zBroken_Assert_StdlibBypass0,   (regex_t*)NULL },  { TT_EGREP,  zBroken_Assert_StdlibSelect0,   (regex_t*)NULL }, };/* *  Fix Command Arguments for Broken_Assert_Stdlib */const char* apzBroken_Assert_StdlibPatch[] = { "sed",

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -