projects
/
m6w6
/
ext-psi
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
|
github
raw
|
inline
| side by side
workaround for old libffi
[m6w6/ext-psi]
/
idl
/
main.c
diff --git
a/idl/main.c
b/idl/main.c
index b4eb459004a3974f731f49704fa30647d17f1e3c..db88740e2ef5be487836dc0ebbef2769713e0561 100644
(file)
--- a/
idl/main.c
+++ b/
idl/main.c
@@
-5,16
+5,17
@@
#include "parser.h"
#include "validator.h"
#include "parser.h"
#include "validator.h"
-static int TRACE;
-
int main(int argc, char *argv[])
{
PSI_Parser P;
PSI_Validator V;
int main(int argc, char *argv[])
{
PSI_Parser P;
PSI_Validator V;
+ unsigned flags = 0;
- TRACE = !!getenv("TRACE");
+ if (getenv("TRACE")) {
+ flags |= PSI_PARSER_DEBUG;
+ }
- if (!PSI_ParserInit(&P, argv[1])) {
+ if (!PSI_ParserInit(&P, argv[1]
, flags
)) {
perror("Failer to init parser");
return 1;
}
perror("Failer to init parser");
return 1;
}