nitlanguage
/
nit.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Factorize common strings in generated C.
[nit.git]
/
lib
/
nit_common.h
diff --git
a/lib/nit_common.h
b/lib/nit_common.h
index
8960af8
..
e0b22bf
100644
(file)
--- a/
lib/nit_common.h
+++ b/
lib/nit_common.h
@@
-100,8
+100,10
@@
extern int glob_argc;
extern char ** glob_argv;
struct trace_t {
extern char ** glob_argv;
struct trace_t {
- struct trace_t *prev;
- const char *text;
+ struct trace_t *prev; /* previous stack frame */
+ const char *file; /* source filename */
+ int line; /* line number */
+ const char *meth; /* method name */
};
extern struct trace_t *tracehead;
typedef enum {true = (1==1),false = (0==1)} bool;
};
extern struct trace_t *tracehead;
typedef enum {true = (1==1),false = (0==1)} bool;