18:25:40 t/libast/common: parsing source stream for iffe(5) statements. 18:25:40 t/libast/common[1]: <<< iff AST_COMMON 18:25:40 t/libast/common[1]: iffe statement contains a command that will now be processed. 18:25:40 t/libast/common[2]: <<< hdr pthread,stdarg,stddef,stdint,inttypes,types,unistd 18:25:40 t/libast/common[2]: iffe statement contains a command that will now be processed. 18:25:40 t/libast/common[3]: <<< sys types 18:25:40 t/libast/common[3]: iffe statement contains a command that will now be processed. 18:25:40 t/libast/common[4]: <<< typ long.double,size_t,ssize_t 18:25:40 t/libast/common[4]: iffe statement contains a command that will now be processed. 18:25:40 t/libast/common[5]: <<< typ __va_list stdio.h 18:25:40 t/libast/common[5]: iffe statement contains a command that will now be processed. 18:25:40 t/libast/common[6]: <<< 18:25:40 t/libast/common[7]: <<< mac SF_APPEND,SF_CLOSE sys/stat.h sys/socket.h 18:25:40 t/libast/common[7]: iffe statement contains a command that will now be processed. 18:25:40 t/libast/common[8]: <<< 18:25:40 t/libast/common[9]: <<< dll import note{ Microsoft import/export nonsense }end execute{ 18:25:41 t/libast/common[9]: iffe statement contains a command that will now be processed. 18:25:41 t/libast/common[9]: ends with a start of block tag (execute). 18:25:41 t/libast/common[10]: <<< __declspec(dllimport) int foo; 18:25:41 t/libast/common[11]: <<< int main() { return foo == 5 ? 0 : 1; } 18:25:41 t/libast/common[12]: <<< int bar = 5; 18:25:41 t/libast/common[13]: <<< int* _imp__foo = &bar; 18:25:41 t/libast/common[14]: <<< }end 18:25:41 t/libast/common[14]: detected end of code block (execute). 18:25:41 t/libast/common[15]: <<< 18:25:41 t/libast/common[16]: <<< std proto note{ standard C prototypes ok }end compile{ 18:25:41 t/libast/common[16]: iffe statement contains a command that will now be processed. 18:25:41 t/libast/common[16]: ends with a start of block tag (compile). 18:25:41 t/libast/common[17]: <<< extern int foo(int, int); 18:25:41 t/libast/common[18]: <<< bar() foo(1 t/libast/common[18]: <<< bar() 1); 18:25:41 t/libast/common[19]: <<< }end 18:25:41 t/libast/common[19]: detected end of code block (compile). 18:25:41 t/libast/common[20]: <<< 18:25:41 t/libast/common[21]: <<< tst ptr_void note{ standard C void* ok }end compile{ 18:25:41 t/libast/common[21]: iffe statement contains a command that will now be processed. 18:25:42 t/libast/common[21]: ends with a start of block tag (compile). 18:25:42 t/libast/common[22]: <<< extern void* foo(); 18:25:42 t/libast/common[23]: <<< void* bar() { return foo(); } 18:25:42 t/libast/common[24]: <<< }end 18:25:42 t/libast/common[24]: detected end of code block (compile). 18:25:42 t/libast/common[25]: <<< 18:25:42 t/libast/common[26]: <<< cat{ 18:25:42 t/libast/common[26]: iffe statement contains a command and a code block (cat). 18:25:42 t/libast/common[27]: <<< /* disable non-standard linux/gnu inlines */ 18:25:42 t/libast/common[28]: <<< #ifdef __GNUC__ 18:25:42 t/libast/common[29]: <<< # undef __OPTIMIZE_SIZE__ 18:25:42 t/libast/common[30]: <<< # define __OPTIMIZE_SIZE__ 1 18:25:42 t/libast/common[31]: <<< #endif 18:25:42 t/libast/common[32]: <<< 18:25:42 t/libast/common[33]: <<< /* __STD_C indicates that the language is ANSI-C or C++ */ 18:25:42 t/libast/common[34]: <<< #if !defined(__STD_C) && __STDC__ 18:25:42 t/libast/common[35]: <<< # define __STD_C 1 18:25:42 t/libast/common[36]: <<< #endif 18:25:42 t/libast/common[37]: <<< #if !defined(__STD_C) && (__cplusplus || c_plusplus) 18:25:43 t/libast/common[38]: <<< # define __STD_C 1 18:25:43 t/libast/common[39]: <<< #endif 18:25:43 t/libast/common[40]: <<< #if !defined(__STD_C) && _std_proto 18:25:43 t/libast/common[41]: <<< # define __STD_C 1 18:25:43 t/libast/common[42]: <<< #endif 18:25:43 t/libast/common[43]: <<< #if !defined(__STD_C) 18:25:43 t/libast/common[44]: <<< # define __STD_C 0 18:25:43 t/libast/common[45]: <<< #endif 18:25:43 t/libast/common[46]: <<< 18:25:43 t/libast/common[47]: <<< /* extern symbols must be protected against C++ name mangling */ 18:25:43 t/libast/common[48]: <<< #ifndef _BEGIN_EXTERNS_ 18:25:43 t/libast/common[49]: <<< # if __cplusplus || c_plusplus 18:25:43 t/libast/common[50]: <<< # define _BEGIN_EXTERNS_ extern "C" { 18:25:43 t/libast/common[51]: <<< # define _END_EXTERNS_ } 18:25:43 t/libast/common[52]: <<< # else 18:25:43 t/libast/common[53]: <<< # define _BEGIN_EXTERNS_ 18:25:43 t/libast/common[54]: <<< # define _END_EXTERNS_ 18:25:43 t/libast/common[55]: <<< # endif 18:25:44 t/libast/common[56]: <<< #endif 18:25:44 t/libast/common[57]: <<< 18:25:44 t/libast/common[58]: <<< /* _ARG_ simplifies function prototyping among flavors of C */ 18:25:44 t/libast/common[59]: <<< #ifndef _ARG_ 18:25:44 t/libast/common[60]: <<< # if __STD_C 18:25:44 t/libast/common[61]: <<< # define _ARG_(x) x 18:25:44 t/libast/common[62]: <<< # else 18:25:44 t/libast/common[63]: <<< # define _ARG_(x) () 18:25:44 t/libast/common[64]: <<< # endif 18:25:44 t/libast/common[65]: <<< #endif 18:25:44 t/libast/common[66]: <<< 18:25:44 t/libast/common[67]: <<< /* _NIL_ simplifies defining nil pointers to a given type */ 18:25:44 t/libast/common[68]: <<< #ifndef _NIL_ 18:25:44 t/libast/common[69]: <<< # define _NIL_(x) ((x)0) 18:25:44 t/libast/common[70]: <<< #endif 18:25:44 t/libast/common[71]: <<< 18:25:44 t/libast/common[72]: <<< /* __INLINE__, if defined, is the inline keyword */ 18:25:45 t/libast/common[73]: <<< #if !defined(__INLINE__) && defined(__cplusplus) 18:25:45 t/libast/common[74]: <<< # define __INLINE__ inline 18:25:45 t/libast/common[75]: <<< #endif 18:25:45 t/libast/common[76]: <<< #if !defined(__INLINE__) && defined(_WIN32) && !defined(__GNUC__) 18:25:45 t/libast/common[77]: <<< # define __INLINE__ __inline 18:25:45 t/libast/common[78]: <<< #endif 18:25:45 t/libast/common[79]: <<< 18:25:45 t/libast/common[80]: <<< /* Void_t is defined so that Void_t* can address any type */ 18:25:45 t/libast/common[81]: <<< #ifndef Void_t 18:25:45 t/libast/common[82]: <<< # if __STD_C 18:25:45 t/libast/common[83]: <<< # define Void_t void 18:25:45 t/libast/common[84]: <<< # else 18:25:45 t/libast/common[85]: <<< # define Void_t char 18:25:45 t/libast/common[86]: <<< # endif 18:25:45 t/libast/common[87]: <<< #endif 18:25:45 t/libast/common[88]: <<< 18:25:45 t/libast/common[89]: <<< /* windows variants and veneers */ 18:25:45 t/libast/common[90]: <<< #if !defined(_WINIX) && (_UWIN || __CYGWIN__ || __EMX__) 18:25:45 t/libast/common[91]: <<< # define _WINIX 1 18:25:46 t/libast/common[92]: <<< #endif 18:25:46 t/libast/common[93]: <<< 18:25:46 t/libast/common[94]: <<< /* dynamic linked library external scope handling */ 18:25:46 t/libast/common[95]: <<< #ifdef __DYNAMIC__ 18:25:46 t/libast/common[96]: <<< # undef __DYNAMIC__ 18:25:46 t/libast/common[97]: <<< # ifndef _DLL 18:25:46 t/libast/common[98]: <<< # define _DLL 1 18:25:46 t/libast/common[99]: <<< # endif 18:25:46 t/libast/common[100]: <<< #endif 18:25:46 t/libast/common[101]: <<< #if _dll_import 18:25:46 t/libast/common[102]: <<< # if _BLD_STATIC && !_BLD_DLL 18:25:46 t/libast/common[103]: <<< # undef _DLL 18:25:46 t/libast/common[104]: <<< # else 18:25:46 t/libast/common[105]: <<< # if !_UWIN && !defined(_DLL) 18:25:46 t/libast/common[106]: <<< # define _DLL 1 18:25:47 t/libast/common[107]: <<< # endif 18:25:47 t/libast/common[108]: <<< # endif 18:25:47 t/libast/common[109]: <<< # if !defined(__EXPORT__) && _BLD_DLL 18:25:47 t/libast/common[110]: <<< # define __EXPORT__ __declspec(dllexport) 18:25:47 t/libast/common[111]: <<< # endif 18:25:47 t/libast/common[112]: <<< # if !defined(__IMPORT__) && ( _BLD_DLL || defined(_DLL) ) 18:25:47 t/libast/common[113]: <<< # define __IMPORT__ __declspec(dllimport) 18:25:47 t/libast/common[114]: <<< # endif 18:25:47 t/libast/common[115]: <<< # if _BLD_DLL && _UWIN 18:25:47 t/libast/common[116]: <<< # define __DYNAMIC__(v) (_ast_getdll()->_ast_ ## v) 18:25:47 t/libast/common[117]: <<< # endif 18:25:47 t/libast/common[118]: <<< #endif 18:25:47 t/libast/common[119]: <<< #if !defined(_astimport) 18:25:47 t/libast/common[120]: <<< # if defined(__IMPORT__) && defined(_DLL) 18:25:47 t/libast/common[121]: <<< # define _astimport __IMPORT__ 18:25:47 t/libast/common[122]: <<< # else 18:25:47 t/libast/common[123]: <<< # define _astimport extern 18:25:47 t/libast/common[124]: <<< # endif 18:25:47 t/libast/common[125]: <<< #endif 18:25:48 t/libast/common[126]: <<< #if _dll_import && ( !_BLD_DLL || _WINIX && !_UWIN ) 18:25:48 t/libast/common[127]: <<< # ifdef __STDC__ 18:25:48 t/libast/common[128]: <<< # define __EXTERN__(T,obj) extern T obj; T* _imp__ ## obj = &obj 18:25:48 t/libast/common[129]: <<< # define __DEFINE__(T,obj,val) T obj = val; T* _imp__ ## obj = &obj 18:25:48 t/libast/common[130]: <<< # else 18:25:48 t/libast/common[131]: <<< # define __EXTERN__(T,obj) extern T obj; T* _imp__/**/obj = &obj 18:25:48 t/libast/common[132]: <<< # define __DEFINE__(T,obj,val) T obj = val; T* _imp__/**/obj = &obj 18:25:48 t/libast/common[133]: <<< # endif 18:25:48 t/libast/common[134]: <<< #else 18:25:48 t/libast/common[135]: <<< # define __EXTERN__(T,obj) extern T obj 18:25:48 t/libast/common[136]: <<< # define __DEFINE__(T,obj,val) T obj = val 18:25:48 t/libast/common[137]: <<< #endif 18:25:48 t/libast/common[138]: <<< }end 18:25:48 t/libast/common[138]: detected end of code block (raw-cat). 18:25:48 t/libast/common[139]: <<< 18:25:48 t/libast/common[140]: <<< if tst - note{ + works }end compile{ 18:25:48 t/libast/common[140]: iffe statement includes an if clause 18:25:48 t/libast/common[140]: iffe statement contains a command that will now be processed. 18:25:49 t/libast/common[140]: ends with a start of block tag (compile). 18:25:49 t/libast/common[141]: <<< /**/ 18:25:49 t/libast/common[142]: <<< #include 18:25:49 t/libast/common[143]: <<< #include 18:25:49 t/libast/common[144]: <<< }end 18:25:49 t/libast/common[144]: detected end of code block (compile). 18:25:49 t/libast/common[145]: <<< elif tst - note{ explicit before + }end compile{ 18:25:49 t/libast/common[145]: iffe statement includes an elif clause 18:25:49 t/libast/common[145]: iffe statement contains a command that will now be processed. 18:25:49 t/libast/common[145]: ends with a start of block tag (compile). 18:25:49 t/libast/common[146]: <<< /**/ 18:25:49 t/libast/common[147]: <<< #include 18:25:49 t/libast/common[148]: <<< #include 18:25:49 t/libast/common[149]: <<< #include 18:25:49 t/libast/common[150]: <<< }end { 18:25:49 t/libast/common[150]: detected end of code block (compile). 18:25:49 t/libast/common[151]: <<< #include 18:25:50 t/libast/common[152]: <<< } 18:25:50 t/libast/common[152]: detected end of code block (IF). 18:25:50 t/libast/common[153]: <<< endif 18:25:50 t/libast/common[153]: iffe statement contains a command that will now be processed. 18:25:50 t/libast/common[154]: <<< 18:25:50 t/libast/common[155]: <<< tst ast_LL note{ LL numeric suffix supported }end compile{ 18:25:50 t/libast/common[155]: iffe statement contains a command that will now be processed. 18:25:50 t/libast/common[155]: ends with a start of block tag (compile). 18:25:50 t/libast/common[156]: <<< int i = 1LL; 18:25:50 t/libast/common[157]: <<< unsigned int u = 1ULL; /* NOTE: some compilers choke on 1LLU */ 18:25:50 t/libast/common[158]: <<< }end 18:25:50 t/libast/common[158]: detected end of code block (compile). 18:25:50 t/libast/common[159]: <<< 18:25:50 t/libast/common[160]: <<< tst - -DN=1 - -DN=2 - -DN=3 - -DN=4 - -DN=5 - -DN=6 - -DN=7 - -DN=8 - -DN=0 output{ 18:25:50 t/libast/common[160]: iffe statement contains a command that will now be processed. 18:25:50 t/libast/common[160]: ends with a start of block tag (output). 18:25:50 t/libast/common[161]: <<< #define _BYTESEX_H 18:25:51 t/libast/common[162]: <<< 18:25:51 t/libast/common[163]: <<< #include 18:25:51 t/libast/common[164]: <<< #include 18:25:51 t/libast/common[165]: <<< 18:25:51 t/libast/common[166]: <<< #if _STD_ 18:25:51 t/libast/common[167]: <<< #if N == 1 18:25:51 t/libast/common[168]: <<< #define _ast_int8_t long 18:25:51 t/libast/common[169]: <<< #define _ast_int8_str "long" 18:25:51 t/libast/common[170]: <<< #endif 18:25:51 t/libast/common[171]: <<< #if N == 2 18:25:51 t/libast/common[172]: <<< #define _ast_int8_t long long 18:25:51 t/libast/common[173]: <<< #define _ast_int8_str "long long" 18:25:51 t/libast/common[174]: <<< #endif 18:25:51 t/libast/common[175]: <<< #if N == 3 18:25:51 t/libast/common[176]: <<< #define _ast_int8_t __int64 18:25:51 t/libast/common[177]: <<< #define _ast_int8_str "__int64" 18:25:51 t/libast/common[178]: <<< #endif 18:25:52 t/libast/common[179]: <<< #if N == 4 18:25:52 t/libast/common[180]: <<< #define _ast_int8_t __int64_t 18:25:52 t/libast/common[181]: <<< #define _ast_int8_str "__int64_t" 18:25:52 t/libast/common[182]: <<< #endif 18:25:52 t/libast/common[183]: <<< #if N == 5 18:25:52 t/libast/common[184]: <<< #define _ast_int8_t _int64_t 18:25:52 t/libast/common[185]: <<< #define _ast_int8_str "_int64_t" 18:25:52 t/libast/common[186]: <<< #endif 18:25:52 t/libast/common[187]: <<< #if N == 6 18:25:52 t/libast/common[188]: <<< #define _ast_int8_t int64_t 18:25:52 t/libast/common[189]: <<< #define _ast_int8_str "int64_t" 18:25:52 t/libast/common[190]: <<< #endif 18:25:52 t/libast/common[191]: <<< #if N == 7 18:25:52 t/libast/common[192]: <<< #define _ast_int8_t _int64 18:25:52 t/libast/common[193]: <<< #define _ast_int8_str "_int64" 18:25:53 t/libast/common[194]: <<< #endif 18:25:53 t/libast/common[195]: <<< #if N == 8 18:25:53 t/libast/common[196]: <<< #define _ast_int8_t int64 18:25:53 t/libast/common[197]: <<< #define _ast_int8_str "int64" 18:25:53 t/libast/common[198]: <<< #endif 18:25:53 t/libast/common[199]: <<< #endif 18:25:53 t/libast/common[200]: <<< 18:25:53 t/libast/common[201]: <<< #define elementsof(x) (sizeof(x)/sizeof(x[0])) 18:25:53 t/libast/common[202]: <<< 18:25:53 t/libast/common[203]: <<< static char i_char = 1; 18:25:53 t/libast/common[204]: <<< static short i_short = 1; 18:25:53 t/libast/common[205]: <<< static int i_int = 1; 18:25:53 t/libast/common[206]: <<< static long i_long = 1L; 18:25:53 t/libast/common[207]: <<< #ifdef _ast_int8_t 18:25:53 t/libast/common[208]: <<< #if _ast_LL 18:25:53 t/libast/common[209]: <<< static _ast_int8_t i_long_long = 1LL; 18:25:54 t/libast/common[210]: <<< static unsigned _ast_int8_t u_long_long = 18446744073709551615ULL; 18:25:54 t/libast/common[211]: <<< #else 18:25:54 t/libast/common[212]: <<< static _ast_int8_t i_long_long = 1; 18:25:54 t/libast/common[213]: <<< static unsigned _ast_int8_t u_long_long = 18446744073709551615; 18:25:54 t/libast/common[214]: <<< #endif 18:25:54 t/libast/common[215]: <<< #endif 18:25:54 t/libast/common[216]: <<< 18:25:54 t/libast/common[217]: <<< static struct 18:25:54 t/libast/common[218]: <<< { 18:25:54 t/libast/common[219]: <<< char* name; 18:25:54 t/libast/common[220]: <<< int size; 18:25:54 t/libast/common[221]: <<< char* swap; 18:25:54 t/libast/common[222]: <<< } int_type[] = 18:25:54 t/libast/common[223]: <<< { 18:25:54 t/libast/common[224]: <<< "char", sizeof(char), (char*)&i_char, 18:25:54 t/libast/common[225]: <<< "short", sizeof(short), (char*)&i_short, 18:25:55 t/libast/common[226]: <<< "int", sizeof(int), (char*)&i_int, 18:25:55 t/libast/common[227]: <<< "long", sizeof(long), (char*)&i_long, 18:25:55 t/libast/common[228]: <<< #ifdef _ast_int8_t 18:25:55 t/libast/common[229]: <<< _ast_int8_str, sizeof(_ast_int8_t), (char*)&i_long_long, 18:25:55 t/libast/common[230]: <<< #endif 18:25:55 t/libast/common[231]: <<< }; 18:25:55 t/libast/common[232]: <<< 18:25:55 t/libast/common[233]: <<< static int int_size[] = 1; t/libast/common[233]: <<< static int int_size[] = 2; t/libast/common[233]: <<< static int int_size[] = 4; t/libast/common[233]: <<< static int int_size[] = 8 ; 18:25:55 t/libast/common[234]: <<< 18:25:55 t/libast/common[235]: <<< int 18:25:55 t/libast/common[236]: <<< main() 18:25:55 t/libast/common[237]: <<< { 18:25:55 t/libast/common[238]: <<< register int t; 18:25:55 t/libast/common[239]: <<< register int s; 18:25:55 t/libast/common[240]: <<< register int m = 1; 18:25:55 t/libast/common[241]: <<< register int b = 1; 18:25:56 t/libast/common[242]: <<< register int w = 0; 18:25:56 t/libast/common[243]: <<< 18:25:56 t/libast/common[244]: <<< #ifdef _ast_int8_t 18:25:56 t/libast/common[245]: <<< unsigned _ast_int8_t p; 18:25:56 t/libast/common[246]: <<< char buf[64]; 18:25:56 t/libast/common[247]: <<< 18:25:56 t/libast/common[248]: <<< if (int_type[elementsof(int_type)-1].size <= 4) 18:25:56 t/libast/common[249]: <<< return 1; 18:25:56 t/libast/common[250]: <<< p = 0x12345678; 18:25:56 t/libast/common[251]: <<< p <<= 32; 18:25:56 t/libast/common[252]: <<< p |= 0x9abcdef0; 18:25:56 t/libast/common[253]: <<< sprintf(buf, "0x%016llx", p); 18:25:56 t/libast/common[254]: <<< if (strcmp(buf, "0x123456789abcdef0")) 18:25:56 t/libast/common[255]: <<< return 1; 18:25:56 t/libast/common[256]: <<< #endif 18:25:56 t/libast/common[257]: <<< for (s = 0; s < elementsof(int_size); s++) 18:25:57 t/libast/common[258]: <<< { 18:25:57 t/libast/common[259]: <<< for (t = 0; t < elementsof(int_type) && int_type[t].size < int_size[s]; t++); 18:25:57 t/libast/common[260]: <<< if (t < elementsof(int_type)) 18:25:57 t/libast/common[261]: <<< { 18:25:57 t/libast/common[262]: <<< m = int_size[s]; 18:25:57 t/libast/common[263]: <<< #if __INTERIX 18:25:57 t/libast/common[264]: <<< if (m == 8) 18:25:57 t/libast/common[265]: <<< { 18:25:57 t/libast/common[266]: <<< printf("#ifdef _MSC_VERn"); 18:25:57 t/libast/common[267]: <<< printf("#define _ast_int8_t __int64n"); 18:25:57 t/libast/common[268]: <<< printf("#elsen"); 18:25:57 t/libast/common[269]: <<< printf("#define _ast_int8_t long longn"); 18:25:57 t/libast/common[270]: <<< printf("#endifn"); 18:25:57 t/libast/common[271]: <<< } 18:25:57 t/libast/common[272]: <<< else 18:25:57 t/libast/common[273]: <<< #endif 18:25:57 t/libast/common[274]: <<< printf("#define _ast_int%d_t %sn", m, int_type[t].name); 18:25:58 t/libast/common[275]: <<< if (m > 1) 18:25:58 t/libast/common[276]: <<< { 18:25:58 t/libast/common[277]: <<< if (*int_type[t].swap) 18:25:58 t/libast/common[278]: <<< w |= b; 18:25:58 t/libast/common[279]: <<< b <<= 1; 18:25:58 t/libast/common[280]: <<< } 18:25:58 t/libast/common[281]: <<< } 18:25:58 t/libast/common[282]: <<< } 18:25:58 t/libast/common[283]: <<< printf("#define _ast_intmax_t _ast_int%d_tn", m); 18:25:58 t/libast/common[284]: <<< if (m == sizeof(long)) 18:25:58 t/libast/common[285]: <<< printf("#define _ast_intmax_long 1n"); 18:25:58 t/libast/common[286]: <<< printf("#define _ast_intswap %dn", w); 18:25:58 t/libast/common[287]: <<< printf("n"); 18:25:58 t/libast/common[288]: <<< printf("#define _ast_sizeof_intmax_t %d /* sizeof(intmax_t) */n", m); 18:25:58 t/libast/common[289]: <<< return 0; 18:25:58 t/libast/common[290]: <<< } 18:25:58 t/libast/common[291]: <<< }end 18:25:59 t/libast/common[291]: detected end of code block (output). 18:25:59 t/libast/common[292]: <<< 18:25:59 t/libast/common[293]: <<< tst - output{ 18:25:59 t/libast/common[293]: iffe statement contains a command that will now be processed. 18:25:59 t/libast/common[294]: <<< #include 18:25:59 t/libast/common[295]: <<< #include 18:25:59 t/libast/common[296]: <<< 18:25:59 t/libast/common[297]: <<< #if _X86_ || _X64_ 18:25:59 t/libast/common[298]: <<< #define COND 1 18:25:59 t/libast/common[299]: <<< #define CONDNAME "_X64_" 18:25:59 t/libast/common[300]: <<< #else 18:25:59 t/libast/common[301]: <<< #define COND 0 18:25:59 t/libast/common[302]: <<< #endif 18:25:59 t/libast/common[303]: <<< 18:25:59 t/libast/common[304]: <<< #define elementsof(x) (sizeof(x)/sizeof(x[0])) 18:25:59 t/libast/common[305]: <<< 18:25:59 t/libast/common[306]: <<< static struct 18:26:00 t/libast/common[307]: <<< { 18:26:00 t/libast/common[308]: <<< char* name; 18:26:00 t/libast/common[309]: <<< int size; 18:26:00 t/libast/common[310]: <<< int cond; 18:26:00 t/libast/common[311]: <<< } types[] = 18:26:00 t/libast/common[312]: <<< { 18:26:00 t/libast/common[313]: <<< "short", sizeof(short), 0, 18:26:00 t/libast/common[314]: <<< "int", sizeof(int), 0, 18:26:00 t/libast/common[315]: <<< "long", sizeof(long), 0, 18:26:00 t/libast/common[316]: <<< "size_t", sizeof(size_t), 0, 18:26:00 t/libast/common[317]: <<< "off_t", sizeof(off_t), 0, 18:26:00 t/libast/common[318]: <<< "pointer", sizeof(void*), COND * 4, 18:26:00 t/libast/common[319]: <<< "float", sizeof(float), 0, 18:26:00 t/libast/common[320]: <<< "double", sizeof(double), 0, 18:26:00 t/libast/common[321]: <<< #ifdef _typ_long_double 18:26:00 t/libast/common[322]: <<< "long_double", sizeof(long double), 0, 18:26:00 t/libast/common[323]: <<< #endif 18:26:00 t/libast/common[324]: <<< }; 18:26:01 t/libast/common[325]: <<< 18:26:01 t/libast/common[326]: <<< int 18:26:01 t/libast/common[327]: <<< main() 18:26:01 t/libast/common[328]: <<< { 18:26:01 t/libast/common[329]: <<< register int t; 18:26:01 t/libast/common[330]: <<< 18:26:01 t/libast/common[331]: <<< for (t = 0; t < elementsof(types); t++) 18:26:01 t/libast/common[332]: <<< #if COND 18:26:01 t/libast/common[333]: <<< if (types[t].cond) 18:26:01 t/libast/common[334]: <<< { 18:26:01 t/libast/common[335]: <<< printf("#if %sn", CONDNAME); 18:26:01 t/libast/common[336]: <<< printf("#define _ast_sizeof_%s%s %d /* sizeof(%s) */n", types[t].name, strlen(types[t].name) < 4 ? "t" : "", types[t].cond * 2, types[t].name); 18:26:01 t/libast/common[337]: <<< printf("#elsen"); 18:26:01 t/libast/common[338]: <<< printf("#define _ast_sizeof_%s%s %d /* sizeof(%s) */n", types[t].name, strlen(types[t].name) < 4 ? "t" : "", types[t].cond, types[t].name); 18:26:01 t/libast/common[339]: <<< printf("#endifn"); 18:26:01 t/libast/common[340]: <<< } 18:26:01 t/libast/common[341]: <<< else 18:26:02 t/libast/common[342]: <<< #endif 18:26:02 t/libast/common[343]: <<< printf("#define _ast_sizeof_%s%s %d /* sizeof(%s) */n", types[t].name, strlen(types[t].name) < 4 ? "t" : "", types[t].size, types[t].name); 18:26:02 t/libast/common[344]: <<< printf("n"); 18:26:02 t/libast/common[345]: <<< return 0; 18:26:02 t/libast/common[346]: <<< } 18:26:02 t/libast/common[347]: <<< }end 18:26:02 t/libast/common[347]: detected end of code block (). 18:26:02 t/libast/common[348]: <<< 18:26:02 t/libast/common[349]: <<< tst - -DN=1 - -DN=0 output{ 18:26:02 t/libast/common[349]: iffe statement contains a command that will now be processed. 18:26:02 t/libast/common[349]: ends with a start of block tag (output). 18:26:02 t/libast/common[350]: <<< #define _BYTESEX_H 18:26:02 t/libast/common[351]: <<< 18:26:02 t/libast/common[352]: <<< #include 18:26:02 t/libast/common[353]: <<< #include 18:26:02 t/libast/common[354]: <<< 18:26:02 t/libast/common[355]: <<< #if !N || !_STD_ 18:26:02 t/libast/common[356]: <<< #undef _typ_long_double 18:26:03 t/libast/common[357]: <<< #endif 18:26:03 t/libast/common[358]: <<< 18:26:03 t/libast/common[359]: <<< #define elementsof(x) (sizeof(x)/sizeof(x[0])) 18:26:03 t/libast/common[360]: <<< 18:26:03 t/libast/common[361]: <<< static struct 18:26:03 t/libast/common[362]: <<< { 18:26:03 t/libast/common[363]: <<< char* name; 18:26:03 t/libast/common[364]: <<< int size; 18:26:03 t/libast/common[365]: <<< } flt_type[] = 18:26:03 t/libast/common[366]: <<< { 18:26:03 t/libast/common[367]: <<< "float", sizeof(float), 18:26:03 t/libast/common[368]: <<< "double", sizeof(double), 18:26:03 t/libast/common[369]: <<< #ifdef _typ_long_double 18:26:03 t/libast/common[370]: <<< "long double", sizeof(long double), 18:26:03 t/libast/common[371]: <<< #endif 18:26:03 t/libast/common[372]: <<< }; 18:26:03 t/libast/common[373]: <<< 18:26:04 t/libast/common[374]: <<< int 18:26:04 t/libast/common[375]: <<< main() 18:26:04 t/libast/common[376]: <<< { 18:26:04 t/libast/common[377]: <<< register int t; 18:26:04 t/libast/common[378]: <<< register int m = 1; 18:26:04 t/libast/common[379]: <<< 18:26:04 t/libast/common[380]: <<< #ifdef _typ_long_double 18:26:04 t/libast/common[381]: <<< long double p; 18:26:04 t/libast/common[382]: <<< char buf[64]; 18:26:04 t/libast/common[383]: <<< 18:26:04 t/libast/common[384]: <<< if (flt_type[elementsof(flt_type)-1].size <= sizeof(double)) 18:26:04 t/libast/common[385]: <<< return 1; 18:26:04 t/libast/common[386]: <<< p = 1.12345E-55; 18:26:04 t/libast/common[387]: <<< sprintf(buf, "%1.5LE", p); 18:26:04 t/libast/common[388]: <<< if (strcmp(buf, "1.12345E-55")) 18:26:04 t/libast/common[389]: <<< return 1; 18:26:04 t/libast/common[390]: <<< #endif 18:26:05 t/libast/common[391]: <<< for (t = 0; t < elementsof(flt_type); t++) 18:26:05 t/libast/common[392]: <<< { 18:26:05 t/libast/common[393]: <<< while (t < (elementsof(flt_type) - 1) && flt_type[t].size == flt_type[t + 1].size) 18:26:05 t/libast/common[394]: <<< t++; 18:26:05 t/libast/common[395]: <<< m = flt_type[t].size; 18:26:05 t/libast/common[396]: <<< printf("#define _ast_flt%d_t %sn", flt_type[t].size, flt_type[t].name); 18:26:05 t/libast/common[397]: <<< } 18:26:05 t/libast/common[398]: <<< printf("#define _ast_fltmax_t _ast_flt%d_tn", m); 18:26:05 t/libast/common[399]: <<< if (m == sizeof(double)) 18:26:05 t/libast/common[400]: <<< printf("#define _ast_fltmax_double 1n"); 18:26:05 t/libast/common[401]: <<< return 0; 18:26:05 t/libast/common[402]: <<< } 18:26:05 t/libast/common[403]: <<< }end 18:26:05 t/libast/common[403]: detected end of code block (output). 18:26:05 t/libast/common[404]: <<< 18:26:05 t/libast/common[405]: <<< typ int8_t stdint.h inttypes.h no{ 18:26:05 t/libast/common[405]: iffe statement contains a command that will now be processed. 18:26:05 t/libast/common[405]: ends with a start of block tag (no). 18:26:06 t/libast/common[406]: <<< #undef _typ_int8_t 18:26:06 t/libast/common[407]: <<< #define _typ_int8_t 1 18:26:06 t/libast/common[408]: <<< typedef _ast_int1_t int8_t; 18:26:06 t/libast/common[409]: <<< }end 18:26:06 t/libast/common[409]: detected end of code block (no). 18:26:06 t/libast/common[410]: <<< typ uint8_t stdint.h inttypes.h no{ 18:26:06 t/libast/common[410]: iffe statement contains a command that will now be processed. 18:26:06 t/libast/common[410]: ends with a start of block tag (no). 18:26:06 t/libast/common[411]: <<< #undef _typ_uint8_t 18:26:06 t/libast/common[412]: <<< #define _typ_uint8_t 1 18:26:06 t/libast/common[413]: <<< typedef unsigned _ast_int1_t uint8_t; 18:26:06 t/libast/common[414]: <<< }end 18:26:06 t/libast/common[414]: detected end of code block (no). 18:26:06 t/libast/common[415]: <<< typ int16_t stdint.h inttypes.h no{ 18:26:06 t/libast/common[415]: iffe statement contains a command that will now be processed. 18:26:06 t/libast/common[415]: ends with a start of block tag (no). 18:26:06 t/libast/common[416]: <<< #undef _typ_int16_t 18:26:06 t/libast/common[417]: <<< #define _typ_int16_t 1 18:26:07 t/libast/common[418]: <<< typedef _ast_int2_t int16_t; 18:26:07 t/libast/common[419]: <<< }end 18:26:07 t/libast/common[419]: detected end of code block (no). 18:26:07 t/libast/common[420]: <<< typ uint16_t stdint.h inttypes.h no{ 18:26:07 t/libast/common[420]: iffe statement contains a command that will now be processed. 18:26:07 t/libast/common[420]: ends with a start of block tag (no). 18:26:07 t/libast/common[421]: <<< #undef _typ_uint16_t 18:26:07 t/libast/common[422]: <<< #define _typ_uint16_t 1 18:26:07 t/libast/common[423]: <<< typedef unsigned _ast_int2_t uint16_t; 18:26:07 t/libast/common[424]: <<< }end 18:26:07 t/libast/common[424]: detected end of code block (no). 18:26:07 t/libast/common[425]: <<< typ int32_t stdint.h inttypes.h no{ 18:26:07 t/libast/common[425]: iffe statement contains a command that will now be processed. 18:26:07 t/libast/common[425]: ends with a start of block tag (no). 18:26:07 t/libast/common[426]: <<< #undef _typ_int32_t 18:26:07 t/libast/common[427]: <<< #define _typ_int32_t 1 18:26:07 t/libast/common[428]: <<< typedef _ast_int4_t int32_t; 18:26:07 t/libast/common[429]: <<< }end 18:26:08 t/libast/common[429]: detected end of code block (no). 18:26:08 t/libast/common[430]: <<< typ uint32_t stdint.h inttypes.h no{ 18:26:08 t/libast/common[430]: iffe statement contains a command that will now be processed. 18:26:08 t/libast/common[430]: ends with a start of block tag (no). 18:26:08 t/libast/common[431]: <<< #undef _typ_uint32_t 18:26:08 t/libast/common[432]: <<< #define _typ_uint32_t 1 18:26:08 t/libast/common[433]: <<< typedef unsigned _ast_int4_t uint32_t; 18:26:08 t/libast/common[434]: <<< }end 18:26:08 t/libast/common[434]: detected end of code block (no). 18:26:08 t/libast/common[435]: <<< typ int64_t stdint.h inttypes.h no{ 18:26:08 t/libast/common[435]: iffe statement contains a command that will now be processed. 18:26:08 t/libast/common[435]: ends with a start of block tag (no). 18:26:08 t/libast/common[436]: <<< #ifdef _ast_int8_t 18:26:08 t/libast/common[437]: <<< #undef _typ_int64_t 18:26:08 t/libast/common[438]: <<< #define _typ_int64_t 1 18:26:08 t/libast/common[439]: <<< typedef _ast_int8_t int64_t; 18:26:08 t/libast/common[440]: <<< #endif 18:26:09 t/libast/common[441]: <<< }end 18:26:09 t/libast/common[441]: detected end of code block (no). 18:26:09 t/libast/common[442]: <<< typ uint64_t stdint.h inttypes.h no{ 18:26:09 t/libast/common[442]: iffe statement contains a command that will now be processed. 18:26:09 t/libast/common[442]: ends with a start of block tag (no). 18:26:09 t/libast/common[443]: <<< #ifdef _ast_int8_t 18:26:09 t/libast/common[444]: <<< #undef _typ_uint64_t 18:26:09 t/libast/common[445]: <<< #define _typ_uint64_t 1 18:26:09 t/libast/common[446]: <<< typedef unsigned _ast_int8_t uint64_t; 18:26:09 t/libast/common[447]: <<< #endif 18:26:09 t/libast/common[448]: <<< }end 18:26:09 t/libast/common[448]: detected end of code block (no). 18:26:09 t/libast/common[449]: <<< typ intmax_t stdint.h inttypes.h no{ 18:26:09 t/libast/common[449]: iffe statement contains a command that will now be processed. 18:26:09 t/libast/common[449]: ends with a start of block tag (no). 18:26:09 t/libast/common[450]: <<< #undef _typ_intmax_t 18:26:09 t/libast/common[451]: <<< #define _typ_intmax_t 1 18:26:09 t/libast/common[452]: <<< typedef _ast_intmax_t intmax_t; 18:26:09 t/libast/common[453]: <<< }end 18:26:10 t/libast/common[453]: detected end of code block (no). 18:26:10 t/libast/common[454]: <<< typ uintmax_t stdint.h inttypes.h no{ 18:26:10 t/libast/common[454]: iffe statement contains a command that will now be processed. 18:26:10 t/libast/common[454]: ends with a start of block tag (no). 18:26:10 t/libast/common[455]: <<< #undef _typ_uintmax_t 18:26:10 t/libast/common[456]: <<< #define _typ_uintmax_t 1 18:26:10 t/libast/common[457]: <<< typedef unsigned _ast_intmax_t uintmax_t; 18:26:10 t/libast/common[458]: <<< }end 18:26:10 t/libast/common[458]: detected end of code block (no). 18:26:10 t/libast/common[459]: <<< typ uintptr_t stdint.h inttypes.h no{ 18:26:10 t/libast/common[459]: iffe statement contains a command that will now be processed. 18:26:10 t/libast/common[459]: ends with a start of block tag (no). 18:26:10 t/libast/common[460]: <<< #undef _typ_uintptr_t 18:26:10 t/libast/common[461]: <<< #define _typ_uintptr_t 1 18:26:10 t/libast/common[462]: <<< #if _ast_sizeof_pointer == 8 && defined(_ast_int8_t) 18:26:10 t/libast/common[463]: <<< typedef unsigned _ast_int8_t uintptr_t; 18:26:10 t/libast/common[464]: <<< #else 18:26:11 t/libast/common[465]: <<< typedef unsigned _ast_int4_t uintptr_t; 18:26:11 t/libast/common[466]: <<< #endif 18:26:11 t/libast/common[467]: <<< }end 18:26:11 t/libast/common[467]: detected end of code block (no). 18:26:11 t/libast/common[468]: <<< typ _Bool = uint8_t 18:26:11 t/libast/common[468]: iffe statement contains a command that will now be processed. 18:26:11 t/libast/common[469]: <<< cat{ 18:26:11 t/libast/common[469]: iffe statement contains a command and a code block (cat). 18:26:11 t/libast/common[470]: <<< #if defined(_STDC_C99) || __STDC_VERSION__ >= 199901L 18:26:11 t/libast/common[471]: <<< #include 18:26:11 t/libast/common[472]: <<< #else 18:26:11 t/libast/common[473]: <<< #define bool _Bool 18:26:11 t/libast/common[474]: <<< #define false 0 18:26:11 t/libast/common[475]: <<< #define true 1 18:26:11 t/libast/common[476]: <<< #endif 18:26:11 t/libast/common[477]: <<< }end 18:26:11 t/libast/common[477]: detected end of code block (raw-cat). 18:26:11 t/libast/common[478]: <<< if tst key___thread -lpthread note{ __thread keyword exists and works with -lpthread }end execute{ 18:26:12 t/libast/common[478]: iffe statement includes an if clause 18:26:12 t/libast/common[478]: iffe statement contains a command that will now be processed. 18:26:12 t/libast/common[478]: ends with a start of block tag (execute). 18:26:12 t/libast/common[479]: <<< #if defined(__APPLE__) || defined(__APPLE_CC__) || defined(__MACH__) 18:26:12 t/libast/common[480]: <<< ( /* __thread does not work in dlls */ 18:26:12 t/libast/common[481]: <<< #endif 18:26:12 t/libast/common[482]: <<< 18:26:12 t/libast/common[483]: <<< #include 18:26:12 t/libast/common[484]: <<< 18:26:12 t/libast/common[485]: <<< #define INITIAL 1 18:26:12 t/libast/common[486]: <<< #define LOOP 100 18:26:12 t/libast/common[487]: <<< 18:26:12 t/libast/common[488]: <<< static __thread int specific = INITIAL; 18:26:12 t/libast/common[489]: <<< static int global = 0; 18:26:12 t/libast/common[490]: <<< 18:26:12 t/libast/common[491]: <<< static void* worker(void* arg) 18:26:12 t/libast/common[492]: <<< { 18:26:12 t/libast/common[493]: <<< int k; 18:26:13 t/libast/common[494]: <<< int v; 18:26:13 t/libast/common[495]: <<< v = (int)(arg - 0); 18:26:13 t/libast/common[496]: <<< for (k = 0; k < LOOP; ++k) 18:26:13 t/libast/common[497]: <<< { 18:26:13 t/libast/common[498]: <<< specific += v; 18:26:13 t/libast/common[499]: <<< usleep(1); 18:26:13 t/libast/common[500]: <<< } 18:26:13 t/libast/common[501]: <<< if (specific != (INITIAL + LOOP * v)) 18:26:13 t/libast/common[502]: <<< global = 1; 18:26:13 t/libast/common[503]: <<< return 0; 18:26:13 t/libast/common[504]: <<< } 18:26:13 t/libast/common[505]: <<< int main() 18:26:13 t/libast/common[506]: <<< { 18:26:13 t/libast/common[507]: <<< pthread_t th[2]; 18:26:13 t/libast/common[508]: <<< 18:26:13 t/libast/common[509]: <<< if (pthread_create(&th[0], 0, worker, (void*)0 + 5) || 18:26:13 t/libast/common[510]: <<< pthread_create(&th[1], 0, worker, (void*)0 + 7)) 18:26:13 t/libast/common[511]: <<< { 18:26:14 t/libast/common[512]: <<< NOTE("pthread_create failed"); 18:26:14 t/libast/common[513]: <<< return 1; 18:26:14 t/libast/common[514]: <<< } 18:26:14 t/libast/common[515]: <<< pthread_join(th[0], 0); 18:26:14 t/libast/common[516]: <<< pthread_join(th[1], 0); 18:26:14 t/libast/common[517]: <<< if (global) 18:26:14 t/libast/common[518]: <<< { 18:26:14 t/libast/common[519]: <<< NOTE("__thread variable not thread specific"); 18:26:14 t/libast/common[520]: <<< return 1; 18:26:14 t/libast/common[521]: <<< } 18:26:14 t/libast/common[522]: <<< if (specific != INITIAL) 18:26:14 t/libast/common[523]: <<< { 18:26:14 t/libast/common[524]: <<< NOTE("main __thread variable changed by another thread"); 18:26:14 t/libast/common[525]: <<< return 1; 18:26:14 t/libast/common[526]: <<< } 18:26:14 t/libast/common[527]: <<< return 0; 18:26:14 t/libast/common[528]: <<< } 18:26:15 t/libast/common[529]: <<< }end 18:26:15 t/libast/common[529]: detected end of code block (execute). 18:26:15 t/libast/common[530]: <<< elif tst - note{ msvc __declspec(thread) works }end compile{ 18:26:15 t/libast/common[530]: iffe statement includes an elif clause 18:26:15 t/libast/common[530]: iffe statement contains a command that will now be processed. 18:26:15 t/libast/common[530]: ends with a start of block tag (compile). 18:26:15 t/libast/common[531]: <<< __declspec(thread) tls = 1; 18:26:15 t/libast/common[532]: <<< }end 18:26:15 t/libast/common[532]: detected end of code block (compile). 18:26:15 t/libast/common[533]: <<< else cat{ 18:26:15 t/libast/common[533]: iffe statement includes an else clause 18:26:15 t/libast/common[533]: iffe statement contains a command that will now be processed. 18:26:15 t/libast/common[534]: <<< #define __thread /* __thread keyword does not exist or does not work with -lpthread */ 18:26:15 t/libast/common[535]: <<< }end 18:26:15 t/libast/common[536]: <<< endif 18:26:15 t/libast/common[536]: iffe statement contains a command that will now be processed. 18:26:15 t/libast/common[537]: <<< 18:26:16 t/libast/common[538]: <<< tst - -DTRY=1 - -DTRY=1 -Dvoid=char - -DTRY=2 - -DTRY=3 - -DTRY=4 output{ 18:26:16 t/libast/common[538]: iffe statement contains a command that will now be processed. 18:26:16 t/libast/common[538]: ends with a start of block tag (output). 18:26:16 t/libast/common[539]: <<< #if _STD_ && _hdr_stdarg 18:26:16 t/libast/common[540]: <<< #include 18:26:16 t/libast/common[541]: <<< static void 18:26:16 t/libast/common[542]: <<< varyfunny(int* p, ...) 18:26:16 t/libast/common[543]: <<< { 18:26:16 t/libast/common[544]: <<< va_list ap; 18:26:16 t/libast/common[545]: <<< va_start(ap, p); 18:26:16 t/libast/common[546]: <<< #if TRY == 1 18:26:16 t/libast/common[547]: <<< *p = *ap++ != 0; 18:26:16 t/libast/common[548]: <<< #endif /*TRY == 1*/ 18:26:16 t/libast/common[549]: <<< #if TRY == 2 18:26:16 t/libast/common[550]: <<< *p = *ap != 0; 18:26:16 t/libast/common[551]: <<< #endif /*TRY == 2*/ 18:26:16 t/libast/common[552]: <<< #if TRY == 3 18:26:17 t/libast/common[553]: <<< *p = ap++ != 0; 18:26:17 t/libast/common[554]: <<< #endif /*TRY == 3*/ 18:26:17 t/libast/common[555]: <<< va_end(ap); 18:26:17 t/libast/common[556]: <<< } 18:26:17 t/libast/common[557]: <<< #else 18:26:17 t/libast/common[558]: <<< #include 18:26:17 t/libast/common[559]: <<< static void 18:26:17 t/libast/common[560]: <<< varyfunny(va_alist) 18:26:17 t/libast/common[561]: <<< va_dcl 18:26:17 t/libast/common[562]: <<< { 18:26:17 t/libast/common[563]: <<< va_list ap; 18:26:17 t/libast/common[564]: <<< int* p; 18:26:17 t/libast/common[565]: <<< va_start(ap); 18:26:17 t/libast/common[566]: <<< p = va_arg(ap, int*); 18:26:17 t/libast/common[567]: <<< #if TRY == 1 18:26:17 t/libast/common[568]: <<< *p = *ap++ != 0; 18:26:17 t/libast/common[569]: <<< #endif /*TRY == 1*/ 18:26:17 t/libast/common[570]: <<< #if TRY == 2 18:26:18 t/libast/common[571]: <<< *p = *ap != 0; 18:26:18 t/libast/common[572]: <<< #endif /*TRY == 2*/ 18:26:18 t/libast/common[573]: <<< #if TRY == 3 18:26:18 t/libast/common[574]: <<< *p = ap++ != 0; 18:26:18 t/libast/common[575]: <<< #endif /*TRY == 3*/ 18:26:18 t/libast/common[576]: <<< va_end(ap); 18:26:18 t/libast/common[577]: <<< } 18:26:18 t/libast/common[578]: <<< #endif 18:26:18 t/libast/common[579]: <<< int 18:26:18 t/libast/common[580]: <<< main() 18:26:18 t/libast/common[581]: <<< { 18:26:18 t/libast/common[582]: <<< int r; 18:26:18 t/libast/common[583]: <<< 18:26:18 t/libast/common[584]: <<< printf("n#ifndef va_listrefn"); 18:26:18 t/libast/common[585]: <<< printf("#ifndef va_startn"); 18:26:18 t/libast/common[586]: <<< printf("#if __STD_Cn"); 18:26:18 t/libast/common[587]: <<< printf("#include n"); 18:26:19 t/libast/common[588]: <<< printf("#elsen"); 18:26:19 t/libast/common[589]: <<< printf("#include n"); 18:26:19 t/libast/common[590]: <<< printf("#endifn"); 18:26:19 t/libast/common[591]: <<< printf("#endifn"); 18:26:19 t/libast/common[592]: <<< #if TRY == 4 18:26:19 t/libast/common[593]: <<< printf("#define va_listref(p) (&(p))t"); 18:26:19 t/libast/common[594]: <<< printf("/* pass va_list to varargs function */n"); 18:26:19 t/libast/common[595]: <<< printf("#define va_listval(p) (*(p))t"); 18:26:19 t/libast/common[596]: <<< printf("/* retrieve va_list from va_arg(ap,va_listarg) */n"); 18:26:19 t/libast/common[597]: <<< printf("#define va_listarg va_list*t"); 18:26:19 t/libast/common[598]: <<< printf("/* va_arg() va_list type */n"); 18:26:19 t/libast/common[599]: <<< #else 18:26:19 t/libast/common[600]: <<< varyfunny(&r); 18:26:19 t/libast/common[601]: <<< printf("#define va_listref(p) (p)t"); 18:26:19 t/libast/common[602]: <<< printf("/* pass va_list to varargs function */n"); 18:26:19 t/libast/common[603]: <<< if (sizeof(va_list) > sizeof(void*)) 18:26:19 t/libast/common[604]: <<< printf("#define va_listval(p) (*(p))t"); 18:26:19 t/libast/common[605]: <<< else 18:26:20 t/libast/common[606]: <<< printf("#define va_listval(p) (p)t"); 18:26:20 t/libast/common[607]: <<< printf("/* retrieve va_list from va_arg(ap,va_listarg) */n"); 18:26:20 t/libast/common[608]: <<< #if TRY == 2 18:26:20 t/libast/common[609]: <<< printf("#define va_listarg va_list*t"); 18:26:20 t/libast/common[610]: <<< #else 18:26:20 t/libast/common[611]: <<< printf("#define va_listarg va_listt"); 18:26:20 t/libast/common[612]: <<< #endif /*TRY == 2*/ 18:26:20 t/libast/common[613]: <<< printf("/* va_arg() va_list type */n"); 18:26:20 t/libast/common[614]: <<< #endif /*TRY == 4*/ 18:26:20 t/libast/common[615]: <<< 18:26:20 t/libast/common[616]: <<< #if _UWIN 18:26:20 t/libast/common[617]: <<< printf("#ifndef va_copyn"); 18:26:20 t/libast/common[618]: <<< printf("#define va_copy(to,fr) ((to)=(fr))t"); 18:26:20 t/libast/common[619]: <<< printf("/* copy va_list fr -> to */n"); 18:26:20 t/libast/common[620]: <<< printf("#endifn"); 18:26:20 t/libast/common[621]: <<< #else 18:26:20 t/libast/common[622]: <<< #if !defined(va_copy) 18:26:21 t/libast/common[623]: <<< #if defined(__va_copy) 18:26:21 t/libast/common[624]: <<< printf("#ifndef va_copyn"); 18:26:21 t/libast/common[625]: <<< printf("#define va_copy(to,fr) __va_copy(to,fr)t"); 18:26:21 t/libast/common[626]: <<< printf("/* copy va_list fr -> to */n"); 18:26:21 t/libast/common[627]: <<< printf("#endifn"); 18:26:21 t/libast/common[628]: <<< #else 18:26:21 t/libast/common[629]: <<< #if TRY == 2 18:26:21 t/libast/common[630]: <<< printf("#ifndef va_copyn"); 18:26:21 t/libast/common[631]: <<< printf("#define va_copy(to,fr) memcpy(to,fr,sizeof(va_list))t"); 18:26:21 t/libast/common[632]: <<< printf("/* copy va_list fr -> to */n"); 18:26:21 t/libast/common[633]: <<< printf("#endifn"); 18:26:21 t/libast/common[634]: <<< #else 18:26:21 t/libast/common[635]: <<< printf("#ifndef va_copyn"); 18:26:21 t/libast/common[636]: <<< printf("#define va_copy(to,fr) ((to)=(fr))t"); 18:26:21 t/libast/common[637]: <<< printf("/* copy va_list fr -> to */n"); 18:26:21 t/libast/common[638]: <<< printf("#endifn"); 18:26:21 t/libast/common[639]: <<< #endif 18:26:22 t/libast/common[640]: <<< #endif 18:26:22 t/libast/common[641]: <<< #endif 18:26:22 t/libast/common[642]: <<< #endif 18:26:22 t/libast/common[643]: <<< 18:26:22 t/libast/common[644]: <<< printf("#endifn"); 18:26:22 t/libast/common[645]: <<< return 0; 18:26:22 t/libast/common[646]: <<< } 18:26:22 t/libast/common[647]: <<< }end 18:26:22 t/libast/common[647]: detected end of code block (output). 18:26:22 t/libast/common[648]: <<< 18:26:22 t/libast/common[649]: <<< cat{ 18:26:22 t/libast/common[649]: iffe statement contains a command and a code block (cat). 18:26:22 t/libast/common[650]: <<< #ifndef _AST_STD_H 18:26:22 t/libast/common[651]: <<< # if __STD_C && _hdr_stddef 18:26:22 t/libast/common[652]: <<< # include 18:26:22 t/libast/common[653]: <<< # endif 18:26:22 t/libast/common[654]: <<< # if _sys_types 18:26:22 t/libast/common[655]: <<< # include 18:26:23 t/libast/common[656]: <<< # endif 18:26:23 t/libast/common[657]: <<< # if _hdr_stdint 18:26:23 t/libast/common[658]: <<< # include 18:26:23 t/libast/common[659]: <<< # else 18:26:23 t/libast/common[660]: <<< # if _hdr_inttypes 18:26:23 t/libast/common[661]: <<< # include 18:26:23 t/libast/common[662]: <<< # endif 18:26:23 t/libast/common[663]: <<< # endif 18:26:23 t/libast/common[664]: <<< #endif 18:26:23 t/libast/common[665]: <<< #if !_typ_size_t 18:26:23 t/libast/common[666]: <<< # define _typ_size_t 1 18:26:23 t/libast/common[667]: <<< typedef int size_t; 18:26:23 t/libast/common[668]: <<< #endif 18:26:23 t/libast/common[669]: <<< #if !_typ_ssize_t 18:26:23 t/libast/common[670]: <<< # define _typ_ssize_t 1 18:26:23 t/libast/common[671]: <<< typedef int ssize_t; 18:26:23 t/libast/common[672]: <<< #endif 18:26:24 t/libast/common[673]: <<< #ifndef _AST_STD_H 18:26:24 t/libast/common[674]: <<< # define _def_map_ast 1 18:26:24 t/libast/common[675]: <<< # if !_def_map_ast 18:26:24 t/libast/common[676]: <<< # include 18:26:24 t/libast/common[677]: <<< # endif 18:26:24 t/libast/common[678]: <<< #endif 18:26:24 t/libast/common[679]: <<< }end 18:26:24 t/libast/common[679]: detected end of code block (raw-cat). 18:26:24 t/libast/common[680]: <<< 18:26:24 t/libast/common[681]: <<< run{ 18:26:24 t/libast/common[681]: iffe statement contains a command and a code block (run). 18:26:24 t/libast/common[682]: <<< grep __NO_INCLUDE_WARN__ /usr/include/stat.h >/dev/null 2>&1 && 18:26:24 t/libast/common[683]: <<< grep '' /usr/include/sys/stat.h >/dev/null 2>&1 && 18:26:24 t/libast/common[684]: <<< grep __name_h /usr/include/name.h >/dev/null 2>&1 && 18:26:24 t/libast/common[685]: <<< cat < vs. clash warnings */ 18:26:24 t/libast/common[687]: <<< #ifndef __NO_INCLUDE_WARN__ 18:26:25 t/libast/common[688]: <<< #define __NO_INCLUDE_WARN__ 1 18:26:25 t/libast/common[689]: <<< #endif 18:26:25 t/libast/common[690]: <<< /* disable ${HOSTTYPE} hijack */ 18:26:25 t/libast/common[691]: <<< #ifndef __name_h 18:26:25 t/libast/common[692]: <<< #define __name_h 1 18:26:25 t/libast/common[693]: <<< #endif 18:26:25 t/libast/common[694]: <<< ! 18:26:25 t/libast/common[695]: <<< }end 18:26:25 t/libast/common[695]: detected end of code block (raw-run). 18:26:25 t/libast/common: processed 695 lines