Re: [bug nyacc] C99 parser crashes on #warning

2024-06-08 Thread Janneke Nieuwenhuizen
Matt Wette writes: > quick fix (bug #65849) Thanks for the quick fix! -- Janneke Nieuwenhuizen | GNU LilyPond https://LilyPond.org Freelance IT https://www.JoyOfSource.com | Avatar® https://AvatarAcademy.com

Re: [bug nyacc] C99 parser crashes on #warning

2024-06-08 Thread Matt Wette
quick fix (bug #65849) --- a/module/nyacc/lang/c99/parser.scm +++ b/module/nyacc/lang/c99/parser.scm @@ -591,7 +591,7 @@   ;; If decl mode, only defines and includes outside {}   ;; @end itemize   (define (pass-cpp-stmt stmt) -   (if (eq? 'pragma (car stmt)) + 

[bug nyacc] C99 parser crashes on #warning

2024-06-08 Thread Janneke Nieuwenhuizen
Hi! Using the file warning.c: --8<---cut here---start->8--- // warning.c #warning warn me! #warning oops --8<---cut here---end--->8--- Nyacc's c99 parser crashes on (right after) the first #warning --8<---cut he