#\r
\r
CC = clang\r
-CFLAGS = -g -c -O2 -Wno-unused-result -I/Users/maqiyuan/dev/extra/include\r
+CFLAGS = -g -c -O2 -Wno-unused-result -Wno-dangling-else -I/Users/maqiyuan/dev/extra/include\r
LDFLAGS = /Users/maqiyuan/dev/extra/lib/libkpathsea.a libdpx.a libpng.a libpaper.a libz.a -lm\r
\r
objects = yandytex.o itex.o openinou.o subroute.o local.o \\r
02110-1301 USA.\r
*/\r
\r
+#if defined (__ANDROID__)\r
+ #define malloc_usable_size dlmalloc_usable_size\r
+#elif defined (__APPLE__)\r
+ #include <malloc/malloc.h>\r
+ #define malloc_usable_size malloc_size\r
+#endif\r
+\r
#define EXTERN extern\r
\r
#include "yandytex.h"\r
#define REALLOC realloc\r
#endif\r
\r
-#if defined (__ANDROID__)\r
- #define malloc_usable_size dlmalloc_usable_size\r
-#elif defined (__APPLE__)\r
- #define malloc_usable_size malloc_size\r
-#endif\r
-\r
#if defined (__clang__)\r
const char * compiler = "Clang/LLVM";\r
#elif defined (__GNUC__) || defined(__GNUG__)\r
return 0;\r
}\r
\r
+#ifdef __APPLE__\r
+#undef CLK_TCK\r
+#endif\r
#define CLK_TCK CLOCKS_PER_SEC\r
\r
+\r
void show_inter_val (clock_t inter_val)\r
{\r
int seconds, tenths, hundredth, thousands;\r
\r
extern int shorten_file_name;\r
\r
-#ifdef FUNNY_CORE_DUMP\r
- extern void funny_core_dump(void);\r
-#endif\r
-\r
#ifdef BUILDNAMEDIRECT\r
char * xconcat (char * buffer, char * s1, char * s2)\r
{\r
#endif\r
\r
return 0;\r
-}\r
-\r
-#ifdef FUNNY_CORE_DUMP\r
-\r
-void funny_core_dump (void)\r
-{\r
- int pid, w;\r
- union wait status;\r
-\r
- switch (pid = vfork ())\r
- {\r
- case -1:\r
- perrormod ("vfork");\r
- exit (-1);\r
-\r
- case 0:\r
- (void) signal (SIGQUIT, SIG_DFL);\r
- (void) kill (getpid (), SIGQUIT);\r
- (void) write (2, "how did we get here?\n", 21);\r
- exit (1);\r
-\r
- default:\r
- while ((w = wait (&status)) != pid && w != -1)\r
- ;\r
-\r
- if (status.w_coredump)\r
- exit (0);\r
-\r
- (void) write (2, "attempt to dump core failed\n", 28);\r
- exit (1);\r
- }\r
-}\r
-#endif /* FUNNY_CORE_DUMP */
\ No newline at end of file
+}
\ No newline at end of file