equal
deleted
inserted
replaced
|
1 |
|
2 |
|
3 #include <stdlib.h> |
|
4 #include <stdio.h> |
|
5 |
|
6 #include <ruby.h> |
|
7 #include <intern.h> /* For rb_dbl2big() */ |
|
8 |
|
9 #include <link-grammar/link-includes.h> |
|
10 |
|
11 |
|
12 |
|
13 /* Debugging functions/macros */ |
|
14 #ifdef HAVE_STDARG_PROTOTYPES |
|
15 #include <stdarg.h> |
|
16 #define va_init_list(a,b) va_start(a,b) |
|
17 extern void rbjail_debug(const char *fmt, ...); |
|
18 #else |
|
19 #include <varargs.h> |
|
20 #define va_init_list(a,b) va_start(a) |
|
21 extern void rbjail_debug(fmt, va_alist); |
|
22 #endif |
|
23 |
|
24 |
|
25 /* Debugging macro */ |
|
26 #if DEBUG |
|
27 # define debugMsg(f) rbjail_debug f |
|
28 #else /* ! DEBUG */ |
|
29 # define debugMsg(f) |
|
30 #endif /* DEBUG */ |
|
31 |