📄 fixincl.x
字号:
(char*)NULL };/* * * * * * * * * * * * * * * * * * * * * * * * * * * * Description 57 - Pthread_Page_Size fix */tSCC zPthread_Page_SizeName[] = "Pthread_Page_Size";/* * File name selection pattern */tSCC zPthread_Page_SizeList[] = "|pthread.h|";/* * Machine/OS name selection pattern */#define apzPthread_Page_SizeMachs (const char**)NULL/* * content selection pattern - do fix if pattern found */tSCC zPthread_Page_SizeSelect0[] = "^int __page_size";#define PTHREAD_PAGE_SIZE_TEST_CT 1#define PTHREAD_PAGE_SIZE_RE_CT 1tTestDesc aPthread_Page_SizeTests[] = { { TT_EGREP, zPthread_Page_SizeSelect0, (regex_t*)NULL }, };/* * Fix Command Arguments for Pthread_Page_Size */const char* apzPthread_Page_SizePatch[] = { "sed", "-e", "s/^int __page_size/extern int __page_size/", (char*)NULL };/* * * * * * * * * * * * * * * * * * * * * * * * * * * * Description 58 - Rs6000_Double fix */tSCC zRs6000_DoubleName[] = "Rs6000_Double";/* * File name selection pattern */tSCC zRs6000_DoubleList[] = "|math.h|";/* * Machine/OS name selection pattern */#define apzRs6000_DoubleMachs (const char**)NULL/* * content selection pattern - do fix if pattern found */tSCC zRs6000_DoubleSelect0[] = "[^a-zA-Z_]class\\(";#define RS6000_DOUBLE_TEST_CT 1#define RS6000_DOUBLE_RE_CT 1tTestDesc aRs6000_DoubleTests[] = { { TT_EGREP, zRs6000_DoubleSelect0, (regex_t*)NULL }, };/* * Fix Command Arguments for Rs6000_Double */const char* apzRs6000_DoublePatch[] = { "sed", "-e", "/class[(]/i\\\n\#ifndef __cplusplus\n", "-e", "/class[(]/a\\\n\#endif\n", (char*)NULL };/* * * * * * * * * * * * * * * * * * * * * * * * * * * * Description 59 - Rs6000_Fchmod fix */tSCC zRs6000_FchmodName[] = "Rs6000_Fchmod";/* * File name selection pattern */tSCC zRs6000_FchmodList[] = "|sys/stat.h|";/* * Machine/OS name selection pattern */#define apzRs6000_FchmodMachs (const char**)NULL/* * content selection pattern - do fix if pattern found */tSCC zRs6000_FchmodSelect0[] = "fchmod\\(char";#define RS6000_FCHMOD_TEST_CT 1#define RS6000_FCHMOD_RE_CT 1tTestDesc aRs6000_FchmodTests[] = { { TT_EGREP, zRs6000_FchmodSelect0, (regex_t*)NULL }, };/* * Fix Command Arguments for Rs6000_Fchmod */const char* apzRs6000_FchmodPatch[] = { "sed", "-e", "s/fchmod(char \\*/fchmod(int/", (char*)NULL };/* * * * * * * * * * * * * * * * * * * * * * * * * * * * Description 60 - Rs6000_Param fix */tSCC zRs6000_ParamName[] = "Rs6000_Param";/* * File name selection pattern */tSCC zRs6000_ParamList[] = "|stdio.h|unistd.h|";/* * Machine/OS name selection pattern */#define apzRs6000_ParamMachs (const char**)NULL#define RS6000_PARAM_TEST_CT 0#define RS6000_PARAM_RE_CT 0#define aRs6000_ParamTests (tTestDesc*)NULL/* * Fix Command Arguments for Rs6000_Param */const char* apzRs6000_ParamPatch[] = { "sed", "-e", "s@rename(const char \\*old, const char \\*new)@rename(const char *_old, const char *_new)@", (char*)NULL };/* * * * * * * * * * * * * * * * * * * * * * * * * * * * Description 61 - Sony_Include fix */tSCC zSony_IncludeName[] = "Sony_Include";/* * File name selection pattern */tSCC zSony_IncludeList[] = "|machine/machparam.h|";/* * Machine/OS name selection pattern */#define apzSony_IncludeMachs (const char**)NULL/* * content selection pattern - do fix if pattern found */tSCC zSony_IncludeSelect0[] = "\"\\.\\./machine/endian.h\"";#define SONY_INCLUDE_TEST_CT 1#define SONY_INCLUDE_RE_CT 1tTestDesc aSony_IncludeTests[] = { { TT_EGREP, zSony_IncludeSelect0, (regex_t*)NULL }, };/* * Fix Command Arguments for Sony_Include */const char* apzSony_IncludePatch[] = { "sed", "-e", "s@\"../machine/endian.h\"@<machine/endian.h>@", (char*)NULL };/* * * * * * * * * * * * * * * * * * * * * * * * * * * * Description 62 - Statsswtch fix */tSCC zStatsswtchName[] = "Statsswtch";/* * File name selection pattern */tSCC zStatsswtchList[] = "|rpcsvc/rstat.h|";/* * Machine/OS name selection pattern */#define apzStatsswtchMachs (const char**)NULL/* * content selection pattern - do fix if pattern found */tSCC zStatsswtchSelect0[] = "boottime$";#define STATSSWTCH_TEST_CT 1#define STATSSWTCH_RE_CT 1tTestDesc aStatsswtchTests[] = { { TT_EGREP, zStatsswtchSelect0, (regex_t*)NULL }, };/* * Fix Command Arguments for Statsswtch */const char* apzStatsswtchPatch[] = { "sed", "-e", "s/boottime$/boottime;/", (char*)NULL };/* * * * * * * * * * * * * * * * * * * * * * * * * * * * Description 63 - Stdio_Va_List fix */tSCC zStdio_Va_ListName[] = "Stdio_Va_List";/* * File name selection pattern */tSCC zStdio_Va_ListList[] = "|stdio.h|";/* * Machine/OS name selection pattern */#define apzStdio_Va_ListMachs (const char**)NULL#define STDIO_VA_LIST_TEST_CT 0#define STDIO_VA_LIST_RE_CT 0#define aStdio_Va_ListTests (tTestDesc*)NULL/* * Fix Command Arguments for Stdio_Va_List */const char* apzStdio_Va_ListPatch[] = { "sh", "-c", "if ( egrep \"__need___va_list\" $file ) > /dev/null 2>&1 ; then\n\ :\n\ else\n\ echo \"#define __need___va_list\"\n\ echo \"#include <stdarg.h>\"\n\ fi\n\\n\ sed -e 's@ va_list @ __gnuc_va_list @' \\\n\ -e 's@ va_list)@ __gnuc_va_list)@' \\\n\ -e 's@ _BSD_VA_LIST_));@ __gnuc_va_list));@' \\\n\ -e 's@ _VA_LIST_));@ __gnuc_va_list));@' \\\n\ -e 's@ va_list@ __va_list__@' \\\n\ -e 's@\\*va_list@*__va_list__@' \\\n\ -e 's@ __va_list)@ __gnuc_va_list)@' \\\n\ -e 's@GNUC_VA_LIST@GNUC_Va_LIST@' \\\n\ -e 's@_NEED___VA_LIST@_NEED___Va_LIST@' \\\n\ -e 's@VA_LIST@DUMMY_VA_LIST@' \\\n\ -e 's@_Va_LIST@_VA_LIST@'", (char*)NULL };/* * * * * * * * * * * * * * * * * * * * * * * * * * * * Description 64 - Sun_Bogus_Ifdef fix */tSCC zSun_Bogus_IfdefName[] = "Sun_Bogus_Ifdef";/* * File name selection pattern */tSCC zSun_Bogus_IfdefList[] = "|hsfs/hsfs_spec.h|hsfs/iso_spec.h|";/* * Machine/OS name selection pattern */#define apzSun_Bogus_IfdefMachs (const char**)NULL/* * content selection pattern - do fix if pattern found */tSCC zSun_Bogus_IfdefSelect0[] = "#ifdef __i386__ || __vax__";#define SUN_BOGUS_IFDEF_TEST_CT 1#define SUN_BOGUS_IFDEF_RE_CT 1tTestDesc aSun_Bogus_IfdefTests[] = { { TT_EGREP, zSun_Bogus_IfdefSelect0, (regex_t*)NULL }, };/* * Fix Command Arguments for Sun_Bogus_Ifdef */const char* apzSun_Bogus_IfdefPatch[] = { "sed", "-e", "s/\\#ifdef __i386__ || __vax__/\\#if __i386__ || __vax__/g", (char*)NULL };/* * * * * * * * * * * * * * * * * * * * * * * * * * * * Description 65 - Sun_Bogus_Ifdef_Sun4c fix */tSCC zSun_Bogus_Ifdef_Sun4cName[] = "Sun_Bogus_Ifdef_Sun4c";/* * File name selection pattern */tSCC zSun_Bogus_Ifdef_Sun4cList[] = "|hsfs/hsnode.h|";/* * Machine/OS name selection pattern */#define apzSun_Bogus_Ifdef_Sun4cMachs (const char**)NULL/* * content selection pattern - do fix if pattern found */tSCC zSun_Bogus_Ifdef_Sun4cSelect0[] = "#ifdef __i386__ || __sun4c__";#define SUN_BOGUS_IFDEF_SUN4C_TEST_CT 1#define SUN_BOGUS_IFDEF_SUN4C_RE_CT 1tTestDesc aSun_Bogus_Ifdef_Sun4cTests[] = { { TT_EGREP, zSun_Bogus_Ifdef_Sun4cSelect0, (regex_t*)NULL }, };/* * Fix Command Arguments for Sun_Bogus_Ifdef_Sun4c */const char* apzSun_Bogus_Ifdef_Sun4cPatch[] = { "sed", "-e", "s/\\#ifdef __i386__ || __sun4c__/\\#if __i386__ || __sun4c__/g", (char*)NULL };/* * * * * * * * * * * * * * * * * * * * * * * * * * * * Description 66 - Sun_Catmacro fix */tSCC zSun_CatmacroName[] = "Sun_Catmacro";/* * File name selection pattern */tSCC zSun_CatmacroList[] = "|pixrect/memvar.h|";/* * Machine/OS name selection pattern */#define apzSun_CatmacroMachs (const char**)NULL/* * content selection pattern - do fix if pattern found */tSCC zSun_CatmacroSelect0[] = "^#define[ \t]+CAT\\(a,b\\)";#define SUN_CATMACRO_TEST_CT 1#define SUN_CATMACRO_RE_CT 1tTestDesc aSun_CatmacroTests[] = { { TT_EGREP, zSun_CatmacroSelect0, (regex_t*)NULL }, };/* * Fix Command Arguments for Sun_Catmacro */const char* apzSun_CatmacroPatch[] = { "sed", "-e", "/^#define[ \t]CAT(a,b)/ i\\\n\#ifdef __STDC__ \\\n\#define CAT(a,b) a##b\\\n\#else\n", "-e", "/^#define[ \t]CAT(a,b)/ a\\\n\#endif\n", (char*)NULL };/* * * * * * * * * * * * * * * * * * * * * * * * * * * * Description 67 - Sun_Malloc fix */tSCC zSun_MallocName[] = "Sun_Malloc";/* * File name selection pattern */tSCC zSun_MallocList[] = "|malloc.h|";/* * Machine/OS name selection pattern */#define apzSun_MallocMachs (const char**)NULL#define SUN_MALLOC_TEST_CT 0#define SUN_MALLOC_RE_CT 0#define aSun_MallocTests (tTestDesc*)NULL/* * Fix Command Arguments for Sun_Malloc */const char* apzSun_MallocPatch[] = { "sed", "-e", "s/typedef[ \t]char \\*\tmalloc_t/typedef void \\*\tmalloc_t/g", "-e", "s/int[ \t][ \t]*free/void\tfree/g", "-e", "s/char\\([ \t]*\\*[ \t]*malloc\\)/void\\1/g", "-e", "s/char\\([ \t]*\\*[ \t]*realloc\\)/void\\1/g", (char*)NULL };/* * * * * * * * * * * * * * * * * * * * * * * * * * * * Description 68 - Sun_Memcpy fix */tSCC zSun_MemcpyName[] = "Sun_Memcpy";/* * File name selection pattern */tSCC zSun_MemcpyList[] = "|memory.h|";/* * Machine/OS name selection pattern */#define apzSun_MemcpyMachs (const char**)NULL/* * content selection pattern - do fix if pattern found */tSCC zSun_MemcpySelect0[] = "/\\*\t@\\(#\\)(head/memory.h\t50.1\t |memory\\.h 1\\.[2-4] 8./../.. SMI; from S5R2 1\\.2\t)\\*/";#define SUN_MEMCPY_TEST_CT 1#define SUN_MEMCPY_RE_CT 1tTestDesc aSun_MemcpyTests[] = { { TT_EGREP, zSun_MemcpySelect0, (regex_t*)NULL }, };/* * Fix Command Arguments for Sun_Memcpy */const char* apzSun_MemcpyPatch[] = { "sed", "-e", "1i\\\n\/* This file was generated by fixincludes */\\\n\#ifndef __memory_h__\\\n\#define __memory_h__\\\n\\\\n\#ifdef __STDC__\\\n\extern void *memccpy();\\\n\extern void *memchr();\\\n\extern void *memcpy();\\\n\extern void *memset();\\\n\#else\\\n\extern char *memccpy();\\\n\extern char *memchr();\\\n\extern char *memcpy();\\\n\extern char *memset();\\\n\#endif /* __STDC__ */\\\n\\\\n\extern int memcmp();\\\n\\\\n\#endif /* __memory_h__ */\n", "-e", "1,$d", (char*)NULL };/* * * * * * * * * * * * * * * * * * * * * * * * * * * * Description 69 - Sun_Rusers_Semi fix */tSCC zSun_Rusers_SemiName[] = "Sun_Rusers_Semi";/* * File name selection pattern */tSCC zSun_Rusers_SemiList[] = "|rpcsvc/rusers.h|";/* * Machine/OS name selection pattern */#define apzSun_Rusers_SemiMachs (const char**)NULL/* * content selection pattern - do fix if pattern found */tSCC zSun_Rusers_SemiSelect0[] = "_cnt$";#define SUN_RUSERS_SEMI_TEST_CT 1#define SUN_RUSERS_SEMI_RE_CT 1tTestDesc aSun_Rusers_SemiTests[] = { { TT_EGREP, zSun_Rusers_SemiSelect0, (regex_t*)NULL }, };/* * Fix Command Arguments for Sun_Rusers_Semi */const char* apzSun_Rusers_SemiPatch[] = { "sed", "-e", "/^struct/,/^};/s/_cnt$/_cnt;/", (char*)NULL };/* * * * * * * * * * * * * * * * * * * * * * * * * * * * Description 70 - Sun_Signal fix */tSCC zSun_SignalName[] = "Sun_Signal";/* * File name selection pattern */tSCC zSun_SignalList[] = "|sys/signal.h|signal.h|";/* * Machine/OS name selection pattern */#define apzSun_SignalMachs (const char**)NULL/* * content selection pattern - do fix if pattern found */tSCC zSun_SignalSelect0[] = "^void\t\\(\\*signal\\(\\)\\)\\(\\);";#define SUN_SIGNAL_TEST_CT 1#define SUN_SIGNAL_RE_CT 1tTestDesc aSun_SignalTests[] = { { TT_EGREP, zSun_SignalSelect0, (regex_t*)NULL }, };/* * Fix Command Arguments for Sun_Signal */const char* apzSun_SignalPatch[] = { "sed", "-e", "/^void\t(\\*signal())();$/i\\\n\#ifdef __cplusplus\\\n\void\t(*signal(...))(...);\\\n\#else\n", "-e", "/^void\t(\\*signal())();$/a\\\n\#endif\n", (char*)NULL };/* * * * * * * * * * * * * * * * * * * * * * * * * * * * Description 71 - Sun_
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -