Avoid warning & fix compilation scripts
This commit is contained in:
parent
d9fe5133d3
commit
f823ded57f
@ -111,7 +111,7 @@ EXTERNAL char GLOBAL_pwd[YAP_FILENAME_MAX];
|
|||||||
#endif
|
#endif
|
||||||
//udi.c
|
//udi.c
|
||||||
//struct udi_control_block RtreeCmd void
|
//struct udi_control_block RtreeCmd void
|
||||||
EXTERNAL char* GLOBAL_RestoreFile;
|
EXTERNAL const char* GLOBAL_RestoreFile;
|
||||||
//gprof.c
|
//gprof.c
|
||||||
EXTERNAL Int GLOBAL_ProfCalls;
|
EXTERNAL Int GLOBAL_ProfCalls;
|
||||||
EXTERNAL Int GLOBAL_ProfGCs;
|
EXTERNAL Int GLOBAL_ProfGCs;
|
||||||
|
@ -111,7 +111,7 @@ typedef struct global_data {
|
|||||||
#endif
|
#endif
|
||||||
//udi.c
|
//udi.c
|
||||||
//struct udi_control_block RtreeCmd void
|
//struct udi_control_block RtreeCmd void
|
||||||
char* RestoreFile_;
|
const char* RestoreFile_;
|
||||||
//gprof.c
|
//gprof.c
|
||||||
Int ProfCalls_;
|
Int ProfCalls_;
|
||||||
Int ProfGCs_;
|
Int ProfGCs_;
|
||||||
|
@ -131,7 +131,7 @@ char pwd[YAP_FILENAME_MAX] void
|
|||||||
//udi.c
|
//udi.c
|
||||||
//struct udi_control_block RtreeCmd void
|
//struct udi_control_block RtreeCmd void
|
||||||
|
|
||||||
char* RestoreFile void
|
const char* RestoreFile void
|
||||||
|
|
||||||
//gprof.c
|
//gprof.c
|
||||||
Int ProfCalls void
|
Int ProfCalls void
|
||||||
|
@ -121,19 +121,19 @@ gen_0struct(Inp,Out) :-
|
|||||||
Inp = "ATOMS", !,
|
Inp = "ATOMS", !,
|
||||||
Out = "#include \"tatoms.h\"".
|
Out = "#include \"tatoms.h\"".
|
||||||
gen_0struct(Inp,Out) :-
|
gen_0struct(Inp,Out) :-
|
||||||
split(Inp," ",["struct",Type, Field|L]), !,
|
split(Inp," ",["struct"|_L]), !,
|
||||||
extract("struct", Inp, NInp),
|
extract("struct", Inp, NInp),
|
||||||
gen_0struct( NInp, NOut ),
|
gen_0struct( NInp, NOut ),
|
||||||
extract("EXTERNAL", NOut, IOut),
|
extract("EXTERNAL", NOut, IOut),
|
||||||
append("EXTERNAL struct ", IOut, Out).
|
append("EXTERNAL struct ", IOut, Out).
|
||||||
gen_0struct(Inp,Out) :-
|
gen_0struct(Inp,Out) :-
|
||||||
split(Inp," ",["const",Type, Field|L]), !,
|
split(Inp," ",["const"|_L]), !,
|
||||||
extract("const", Inp, NInp),
|
extract("const", Inp, NInp),
|
||||||
gen_0struct( NInp, NOut ),
|
gen_0struct( NInp, NOut ),
|
||||||
extract("EXTERNAL", NOut, IOut),
|
extract("EXTERNAL", NOut, IOut),
|
||||||
append("EXTERNAL const ", IOut, Out).
|
append("EXTERNAL const ", IOut, Out).
|
||||||
gen_0struct(Inp,Out) :-
|
gen_0struct(Inp,Out) :-
|
||||||
split(Inp," ",["union",Type, Field|L]), !,
|
split(Inp," ",["union"|_L]), !,
|
||||||
extract("union", Inp, NInp),
|
extract("union", Inp, NInp),
|
||||||
gen_0struct( NInp, NOut ),
|
gen_0struct( NInp, NOut ),
|
||||||
extract("EXTERNAL", NOut, IOut),
|
extract("EXTERNAL", NOut, IOut),
|
||||||
@ -495,7 +495,3 @@ extract([0'\t |H], IF) :- !,
|
|||||||
extract( H, IF).
|
extract( H, IF).
|
||||||
extract(H,H).
|
extract(H,H).
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user