소스 검색

fix line number tracking

master
Ian Piumarta 3 달 전
부모
커밋
1fd8b2bd7f
2개의 변경된 파일2개의 추가작업 그리고 4개의 파일을 삭제
  1. +2
    -2
      main.leg
  2. +0
    -2
      test.txt

+ 2
- 2
main.leg 파일 보기

@ -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 파일 보기

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

불러오는 중...
취소
저장