3 Revize

Autor SHA1 Zpráva Datum
  Nathan R 2fada73661 typo 'typedeffing' před 3 roky
  Nathan R 23b1d94705 updated Makefile před 3 roky
  Nathan R b4dad36909 added a file to help debug před 3 roky
3 změnil soubory, kde provedl 34 přidání a 10 odebrání
Rozdělené zobrazení
  1. +1
    -0
      Makefile
  2. +10
    -10
      ccmeta.leg
  3. +23
    -0
      debug.c

+ 1
- 0
Makefile Zobrazit soubor

@ -45,6 +45,7 @@ tidy : .FORCE
cleansed : .FORCE
rm -f debug.out
rm -f debug
purified : .FORCE
rm -rf tests-c/*.out

+ 10
- 10
ccmeta.leg Zobrazit soubor

@ -872,42 +872,42 @@ oop listEmpty(void)
return makeMap();
}
int typdeffing = 0;
int typedeffing = 0;
void declarationTypedef() {
typdeffing++;
void declarationTypedef(void) {
typedeffing++;
}
void C_declarationBegin(void) {
typdeffing = 0;
typedeffing = 0;
}
int C_declarationAbort(void) {
typdeffing = 0;
typedeffing = 0;
return 0;
}
void C_declarationEnd(void) {
typdeffing = 0;
typedeffing = 0;
}
void C_scopeBegin() {
void C_scopeBegin(void) {
pushScope();
}
int C_scopeAbort() {
int C_scopeAbort(void) {
popScope();
assert(actualScope);
return 0;
}
void C_scopeEnd() {
void C_scopeEnd(void) {
popScope();
assert(actualScope);
}
int declarationId(char *s) {
if (!typdeffing) return 0;
if (!typedeffing) return 0;
addId(s);
return 1;
}

+ 23
- 0
debug.c Zobrazit soubor

@ -0,0 +1,23 @@
#ifdef FOO
XXX
#ifdef BAR
XXX
#endif
XXX
#endif
#define FOO 1
#ifdef FOO
#ifdef FOO
int x = 0;
#endif
int
main()
{
return x;
}
#endif

Načítá se…
Zrušit
Uložit