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

📄 fixincl.x

📁 gcc-2.95.3 Linux下最常用的C编译器
💻 X
📖 第 1 页 / 共 5 页
字号:
/* *  content selection pattern - do fix if pattern found */tSCC zIo_Def_QuotesSelect0[] =       "[ \t]*[ \t](_|DES)IO[A-Z]*[ \t]*\\( *[^,']";#define    IO_DEF_QUOTES_TEST_CT  1#define    IO_DEF_QUOTES_RE_CT    1tTestDesc aIo_Def_QuotesTests[] = {  { TT_EGREP,  zIo_Def_QuotesSelect0,   (regex_t*)NULL }, };/* *  Fix Command Arguments for Io_Def_Quotes */const char* apzIo_Def_QuotesPatch[] = { "sed",    "-e", "s/\\([ \t]*[ \t]_IO[A-Z]*[ \t]*(\\)\\([^,']\\),/\\1'\\2',/",    "-e", "s/\\([ \t]*[ \t]DESIO[A-Z]*[ \t]*(\\)\\([^,']\\),/\\1'\\2',/",    "-e", "/#[ \t]*define[ \t]*[ \t]_IO/s/'\\([cgxtf]\\)'/\\1/g",    "-e", "/#[ \t]*define[ \t]*[ \t]DESIOC/s/'\\([cdgx]\\)'/\\1/g",    (char*)NULL };/* * * * * * * * * * * * * * * * * * * * * * * * * * * *  Description  30 - Ioctl_Fix_Ctrl fix */tSCC zIoctl_Fix_CtrlName[] =     "Ioctl_Fix_Ctrl";/* *  File name selection pattern */#define zIoctl_Fix_CtrlList (char*)NULL/* *  Machine/OS name selection pattern */#define apzIoctl_Fix_CtrlMachs (const char**)NULL/* *  content selection pattern - do fix if pattern found */tSCC zIoctl_Fix_CtrlSelect0[] =       "CTRL[ \t]*\\(";#define    IOCTL_FIX_CTRL_TEST_CT  1#define    IOCTL_FIX_CTRL_RE_CT    1tTestDesc aIoctl_Fix_CtrlTests[] = {  { TT_EGREP,  zIoctl_Fix_CtrlSelect0,   (regex_t*)NULL }, };/* *  Fix Command Arguments for Ioctl_Fix_Ctrl */const char* apzIoctl_Fix_CtrlPatch[] = { "sed",    "-e", "/[^A-Z0-9_]CTRL[ \t]*(/s/\\([^']\\))/'\\1')/",    "-e", "/[^A-Z0-9]_CTRL[ \t]*(/s/\\([^']\\))/'\\1')/",    "-e", "/#[ \t]*define[ \t]*[ \t]CTRL/s/'\\([cgx]\\)'/\\1/g",    "-e", "/#[ \t]*define[ \t]*[ \t]_CTRL/s/'\\([cgx]\\)'/\\1/g",    "-e", "/#[ \t]*define[ \t]*[ \t]BSD43_CTRL/s/'\\([cgx]\\)'/\\1/g",    "-e", "/#[ \t]*define[ \t]*[ \t]_*ISCTRL/s/'\\([cgx]\\)'/\\1/g",    (char*)NULL };/* * * * * * * * * * * * * * * * * * * * * * * * * * * *  Description  31 - Ip_Missing_Semi fix */tSCC zIp_Missing_SemiName[] =     "Ip_Missing_Semi";/* *  File name selection pattern */tSCC zIp_Missing_SemiList[] =  "|netinet/ip.h|";/* *  Machine/OS name selection pattern */#define apzIp_Missing_SemiMachs (const char**)NULL#define IP_MISSING_SEMI_TEST_CT  0#define IP_MISSING_SEMI_RE_CT    0#define aIp_Missing_SemiTests   (tTestDesc*)NULL/* *  Fix Command Arguments for Ip_Missing_Semi */const char* apzIp_Missing_SemiPatch[] = { "sed",    "-e", "/^struct/,/^};/s/}$/};/",    (char*)NULL };/* * * * * * * * * * * * * * * * * * * * * * * * * * * *  Description  32 - Irix_Multiline_Cmnt fix */tSCC zIrix_Multiline_CmntName[] =     "Irix_Multiline_Cmnt";/* *  File name selection pattern */tSCC zIrix_Multiline_CmntList[] =  "|sys/types.h|";/* *  Machine/OS name selection pattern */#define apzIrix_Multiline_CmntMachs (const char**)NULL#define IRIX_MULTILINE_CMNT_TEST_CT  0#define IRIX_MULTILINE_CMNT_RE_CT    0#define aIrix_Multiline_CmntTests   (tTestDesc*)NULL/* *  Fix Command Arguments for Irix_Multiline_Cmnt */const char* apzIrix_Multiline_CmntPatch[] = { "sed",    "-e", "s@type of the result@type of the result */@",    "-e", "s@of the sizeof@/* of the sizeof@",    (char*)NULL };/* * * * * * * * * * * * * * * * * * * * * * * * * * * *  Description  33 - Irix_Sockaddr fix */tSCC zIrix_SockaddrName[] =     "Irix_Sockaddr";/* *  File name selection pattern */tSCC zIrix_SockaddrList[] =  "|rpc/auth.h|";/* *  Machine/OS name selection pattern */#define apzIrix_SockaddrMachs (const char**)NULL/* *  content selection pattern - do fix if pattern found */tSCC zIrix_SockaddrSelect0[] =       "authdes_create.*struct sockaddr";#define    IRIX_SOCKADDR_TEST_CT  1#define    IRIX_SOCKADDR_RE_CT    1tTestDesc aIrix_SockaddrTests[] = {  { TT_EGREP,  zIrix_SockaddrSelect0,   (regex_t*)NULL }, };/* *  Fix Command Arguments for Irix_Sockaddr */const char* apzIrix_SockaddrPatch[] = { "sed",    "-e", "/authdes_create.*struct sockaddr/i\\\n\struct sockaddr;\n",    (char*)NULL };/* * * * * * * * * * * * * * * * * * * * * * * * * * * *  Description  34 - Irix_Struct__File fix */tSCC zIrix_Struct__FileName[] =     "Irix_Struct__File";/* *  File name selection pattern */tSCC zIrix_Struct__FileList[] =  "|rpc/xdr.h|";/* *  Machine/OS name selection pattern */#define apzIrix_Struct__FileMachs (const char**)NULL#define IRIX_STRUCT__FILE_TEST_CT  0#define IRIX_STRUCT__FILE_RE_CT    0#define aIrix_Struct__FileTests   (tTestDesc*)NULL/* *  Fix Command Arguments for Irix_Struct__File */const char* apzIrix_Struct__FilePatch[] = { "sed",    "-e", "/xdrstdio_create.*struct __file_s/i\\\n\struct __file_s;\n",    (char*)NULL };/* * * * * * * * * * * * * * * * * * * * * * * * * * * *  Description  35 - Isc_Fmod fix */tSCC zIsc_FmodName[] =     "Isc_Fmod";/* *  File name selection pattern */tSCC zIsc_FmodList[] =  "|math.h|";/* *  Machine/OS name selection pattern */#define apzIsc_FmodMachs (const char**)NULL/* *  content selection pattern - do fix if pattern found */tSCC zIsc_FmodSelect0[] =       "fmod\\(double\\)";#define    ISC_FMOD_TEST_CT  1#define    ISC_FMOD_RE_CT    1tTestDesc aIsc_FmodTests[] = {  { TT_EGREP,  zIsc_FmodSelect0,   (regex_t*)NULL }, };/* *  Fix Command Arguments for Isc_Fmod */const char* apzIsc_FmodPatch[] = { "sed",    "-e", "s/fmod(double)/fmod(double, double)/",    (char*)NULL };/* * * * * * * * * * * * * * * * * * * * * * * * * * * *  Description  36 - Motorola_Nested fix */tSCC zMotorola_NestedName[] =     "Motorola_Nested";/* *  File name selection pattern */tSCC zMotorola_NestedList[] =  "|limits.h|sys/limits.h|";/* *  Machine/OS name selection pattern */tSCC* apzMotorola_NestedMachs[] = {        "m68k-motorola-sysv*",        (const char*)NULL };#define MOTOROLA_NESTED_TEST_CT  0#define MOTOROLA_NESTED_RE_CT    0#define aMotorola_NestedTests   (tTestDesc*)NULL/* *  Fix Command Arguments for Motorola_Nested */const char* apzMotorola_NestedPatch[] = { "sed",    "-e", "s@^\\(#undef[ \t][ \t]*PIPE_BUF[ \t]*/\\* max # bytes atomic in write to a\\)$@\\1 */@",    "-e", "s@\\(/\\*#define\tHUGE_VAL\t3.40282346638528860e+38 \\)\\(/\\*error value returned by Math lib\\*/\\)$@\\1*/ \\2@",    (char*)NULL };/* * * * * * * * * * * * * * * * * * * * * * * * * * * *  Description  37 - Isc_Sys_Limits fix */tSCC zIsc_Sys_LimitsName[] =     "Isc_Sys_Limits";/* *  File name selection pattern */tSCC zIsc_Sys_LimitsList[] =  "|sys/limits.h|";/* *  Machine/OS name selection pattern */#define apzIsc_Sys_LimitsMachs (const char**)NULL/* *  content selection pattern - do fix if pattern found */tSCC zIsc_Sys_LimitsSelect0[] =       "CHILD_MAX";#define    ISC_SYS_LIMITS_TEST_CT  1#define    ISC_SYS_LIMITS_RE_CT    1tTestDesc aIsc_Sys_LimitsTests[] = {  { TT_EGREP,  zIsc_Sys_LimitsSelect0,   (regex_t*)NULL }, };/* *  Fix Command Arguments for Isc_Sys_Limits */const char* apzIsc_Sys_LimitsPatch[] = { "sed",    "-e", "/CHILD_MAX/s,/\\* Max, Max,",    "-e", "/OPEN_MAX/s,/\\* Max, Max,",    (char*)NULL };/* * * * * * * * * * * * * * * * * * * * * * * * * * * *  Description  38 - Kandr_Concat fix */tSCC zKandr_ConcatName[] =     "Kandr_Concat";/* *  File name selection pattern */tSCC zKandr_ConcatList[] =  "|sparc/asm_linkage.h|sun3/asm_linkage.h|sun3x/asm_linkage.h|sun4/asm_linkage.h|sun4c/asm_linkage.h|sun4m/asm_linkage.h|sun4c/debug/asm_linkage.h|sun4m/debug/asm_linkage.h|arm/as_support.h|arm/mc_type.h|arm/xcb.h|dev/chardefmac.h|dev/ps_irq.h|dev/screen.h|dev/scsi.h|sys/tty.h|Xm.acorn/XmP.h|bsd43/bsd43_.h|";/* *  Machine/OS name selection pattern */#define apzKandr_ConcatMachs (const char**)NULL/* *  content selection pattern - do fix if pattern found */tSCC zKandr_ConcatSelect0[] =       "/\\*\\*/";#define    KANDR_CONCAT_TEST_CT  1#define    KANDR_CONCAT_RE_CT    1tTestDesc aKandr_ConcatTests[] = {  { TT_EGREP,  zKandr_ConcatSelect0,   (regex_t*)NULL }, };/* *  Fix Command Arguments for Kandr_Concat */const char* apzKandr_ConcatPatch[] = { "sed",    "-e", "s|/\\*\\*/|##|g",    (char*)NULL };/* * * * * * * * * * * * * * * * * * * * * * * * * * * *  Description  39 - Limits_Ifndefs fix */tSCC zLimits_IfndefsName[] =     "Limits_Ifndefs";/* *  File name selection pattern */tSCC zLimits_IfndefsList[] =  "|limits.h|sys/limits.h|";/* *  Machine/OS name selection pattern */#define apzLimits_IfndefsMachs (const char**)NULL/* *  content bypass pattern - skip fix if pattern found */tSCC zLimits_IfndefsBypass0[] =       "ifndef[ \t]+FLT_MIN";#define    LIMITS_IFNDEFS_TEST_CT  1#define    LIMITS_IFNDEFS_RE_CT    1tTestDesc aLimits_IfndefsTests[] = {  { TT_NEGREP, zLimits_IfndefsBypass0,   (regex_t*)NULL }, };/* *  Fix Command Arguments for Limits_Ifndefs */const char* apzLimits_IfndefsPatch[] = { "sed",    "-e", "/[ \t]FLT_MIN[ \t]/i\\\n\#ifndef FLT_MIN\n",    "-e", "/[ \t]FLT_MIN[ \t]/a\\\n\#endif\n",    "-e", "/[ \t]FLT_MAX[ \t]/i\\\n\#ifndef FLT_MAX\n",    "-e", "/[ \t]FLT_MAX[ \t]/a\\\n\#endif\n",    "-e", "/[ \t]FLT_DIG[ \t]/i\\\n\#ifndef FLT_DIG\n",    "-e", "/[ \t]FLT_DIG[ \t]/a\\\n\#endif\n",    "-e", "/[ \t]DBL_MIN[ \t]/i\\\n\#ifndef DBL_MIN\n",    "-e", "/[ \t]DBL_MIN[ \t]/a\\\n\#endif\n",    "-e", "/[ \t]DBL_MAX[ \t]/i\\\n\#ifndef DBL_MAX\n",    "-e", "/[ \t]DBL_MAX[ \t]/a\\\n\#endif\n",    "-e", "/[ \t]DBL_DIG[ \t]/i\\\n\#ifndef DBL_DIG\n",    "-e", "/[ \t]DBL_DIG[ \t]/a\\\n\#endif\n",    "-e", "/^\\(\\/\\*#define\tHUGE_VAL\t3\\.[0-9e+]* *\\)\\/\\*/s//\\1/",    (char*)NULL };/* * * * * * * * * * * * * * * * * * * * * * * * * * * *  Description  40 - Lynx_Void_Int fix */tSCC zLynx_Void_IntName[] =     "Lynx_Void_Int";/* *  File name selection pattern */tSCC zLynx_Void_IntList[] =  "|curses.h|";/* *  Machine/OS name selection pattern */#define apzLynx_Void_IntMachs (const char**)NULL/* *  content selection pattern - do fix if pattern found */tSCC zLynx_Void_IntSelect0[] =       "#[ \t]*define[ \t]+void[ \t]+int";#define    LYNX_VOID_INT_TEST_CT  1#define    LYNX_VOID_INT_RE_CT    1tTestDesc aLynx_Void_IntTests[] = {  { TT_EGREP,  zLynx_Void_IntSelect0,   (regex_t*)NULL }, };/* *  Fix Command Arguments for Lynx_Void_Int */const char* apzLynx_Void_IntPatch[] = { "sed",    "-e", "/#[ \t]*define[ \t][ \t]*void[ \t]int/d",    (char*)NULL };/* * * * * * * * * * * * * * * * * * * * * * * * * * * *  Description  41 - Lynxos_Fcntl_Proto fix */tSCC zLynxos_Fcntl_ProtoName[] =     "Lynxos_Fcntl_Proto";/* *  File name selection pattern */tSCC zLynxos_Fcntl_ProtoList[] =  "|fcntl.h|";/* *  Machine/OS name selection pattern */#define apzLynxos_Fcntl_ProtoMachs (const char**)NULL/* *  content selection pattern - do fix if pattern found */tSCC zLynxos_Fcntl_ProtoSelect0[] =       "fcntl.*\\(int, int, int\\)";#define    LYNXOS_FCNTL_PROTO_TEST_CT  1#define    LYNXOS_FCNTL_PROTO_RE_CT    1tTestDesc aLynxos_Fcntl_ProtoTests[] = {  { TT_EGREP,  zLynxos_Fcntl_ProtoSelect0,   (regex_t*)NULL }, };/* *  Fix Command Arguments for Lynxos_Fcntl_Proto */const char* apzLynxos_Fcntl_ProtoPatch[] = { "sed",    "-e", "s/\\(fcntl.*(int, int, \\)int)/\\1...)/",    (char*)NULL };/* * * * * * * * * * * * * * * * * * * * * * * * * * * *  Description  42 - M88k_Bad_Hypot_Opt fix */tSCC zM88k_Bad_Hypot_OptName[] =     "M88k_Bad_Hypot_Opt";/* *  File name selection pattern */tSCC zM88k_Bad_Hypot_OptList[] =  "|math.h|";/* *  Machine/OS name selection pattern */tSCC* apzM88k_Bad_Hypot_OptMachs[] = {        "m88k-motorola-sysv3*",        (const char*)NULL };#define M88K_BAD_HYPOT_OPT_TEST_CT  0#define M88K_BAD_HYPOT_OPT_RE_CT    0#define aM88k_Bad_Hypot_OptTests   (tTestDesc*)NULL/* *  Fix Command Arguments for M88k_Bad_Hypot_Opt */const char* apzM88k_Bad_Hypot_OptPatch[] = { "sed",    "-e", "s/extern double floor(), ceil(), fmod(), fabs();/extern double floor(), ceil(), fmod(), fabs _PARAMS((double));/",    "-e", "/^extern double hypot();$/a\\\n\\\/* Workaround a stupid Motorola optimization if one\\\n\   of x or y is 0.0 and the other is negative!  *\\/\\\n\#ifdef __STDC__\\\n\static __inline__ double fake_hypot (double x, double y)\\\n\#else\\\n\static __inline__ double fake_hypot (x, y)\\\n\\tdouble x, y;\\\n\#endif\\\n\{\\\n\\treturn fabs (hypot (x, y));\\\n\}\\\n\#define hypot\tfake_hypot\n",    (char*)NULL };/* * * * * * * * * * * * * * * * * * * * * * * * * * * *  Description  43 - M88k_Bad_S_If fix */tSCC zM88k_Bad_S_IfName[] =     "M88k_Bad_S_If";/* *  File name selection pattern */tSCC zM88k_Bad_S_IfList[] =  "|sys/stat.h|";/* *  Machine/OS name selection pattern */tSCC* apzM88k_Bad_S_IfMachs[] = {        "m88k-*-sysv3*",        (const char*)NULL };/* *  content selection pattern - do fix if pattern found */tSCC zM88k_Bad_S_IfSelect0[] =       "#define[ \t]+S_IS[A-Z]*(m)[ \t]";#define    M88K_BAD_S_IF_TEST_CT  1#define    M88K_BAD_S_IF_RE_CT    1tTestDesc aM88k_Bad_S_IfTests[] = {  { TT_EGREP,  zM88k_Bad_S_IfSelect0,   (regex_t*)NULL }, };/* *  Fix Command Arguments for M88k_Bad_S_If */const char* apzM88k_Bad_S_IfPatch[] = { "sed",    "-e", "s/^\\(#define[ \t]*S_IS[A-Z]*(m)\\)[ \t]*(m[ \t]*&[ \t]*\\(S_IF[A-Z][A-Z][A-Z][A-Z]*\\)[ \t]*)/\\1 (((m)\\&S_IFMT)==\\2)/",    "-e", "s/^\\(#define[ \t]*S_IS[A-Z]*(m)\\)[ \t]*(m[ \t]*&[ \t]*\\(0[0-9]*\\)[ \t]*)/\\1 (((m)\\&S_IFMT)==\\2)/",    (char*)NULL };/* * * * * * * * * * * * * * * * * * * * * * * * * * * *  Description  44 - M88k_Multi_Incl fix

⌨️ 快捷键说明

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