|
From: | Jan Nieuwenhuizen |
Subject: | Re: fix for c99dev string escape char read |
Date: | Thu, 23 Nov 2017 08:02:01 +0100 |
User-agent: | Gnus/5.13 (Gnus v5.13) Emacs/25.3 (gnu/linux) |
Jan Nieuwenhuizen writes: > For now I'm happy; we'll see. Still happy, found a bug though; on c99dev plus my previous patch this happens --8<---------------cut here---------------start------------->8--- (use-modules (nyacc lang c99 parser) (ice-9 pretty-print)) (pretty-print (with-input-from-string "#define ELF \"\\177ELF\"\nchar *a = ELF;" parse-c99)) => (trans-unit (decl (decl-spec-list (type-spec (fixed-type "char"))) (init-declr-list (init-declr (ptr-declr (pointer) (ident "a")) (initzer (p-expr (string "177ELF"))))))) --8<---------------cut here---------------end--------------->8--- master (correctly) gives ... (p-expr (string "\x7fELF")) janneke -- Jan Nieuwenhuizen <address@hidden> | GNU LilyPond http://lilypond.org Freelance IT http://JoyofSource.com | AvatarĀ® http://AvatarAcademy.com
[Prev in Thread] | Current Thread | [Next in Thread] |