Procházet zdrojové kódy

fix line number tracking

master
Ian Piumarta před 3 měsíci
rodič
revize
1fd8b2bd7f
2 změnil soubory, kde provedl 2 přidání a 4 odebrání
  1. +2
    -2
      main.leg
  2. +0
    -2
      test.txt

+ 2
- 2
main.leg Zobrazit soubor

@ -1,6 +1,6 @@
# main.leg -- C parser + interpreter
#
# Last edited: 2025-02-03 10:47:46 by piumarta on xubuntu
# Last edited: 2025-02-03 11:58:41 by piumarta on xubuntu
%{
;
@ -1738,7 +1738,7 @@ void startInput(char *name)
void endInput(void)
{
if (List_size(lines)) {
if (lines && List_size(lines)) {
lineNo = _integerValue(List_popLast(lines));
List_popLast(names);
}

+ 0
- 2
test.txt Zobrazit soubor

@ -142,8 +142,6 @@ int main(int argc, char **argv)
printf("passed\n");
float f = 42;
return 0;
}

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