This is the mail archive of the systemtap@sourceware.org mailing list for the systemtap project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug translator/17292] multi-line strings broken


https://sourceware.org/bugzilla/show_bug.cgi?id=17292

Frank Ch. Eigler <fche at redhat dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |fche at redhat dot com

--- Comment #1 from Frank Ch. Eigler <fche at redhat dot com> ---
No, multi-line strings are not intended to be allowed.
(Consecutive string literals are automatically concatenated,
so one can say

    foo("bar\n" 
        "baz")

See also bug #13371, for a possible reason for the \ case.
The gist is that we don't properly parse the \FOO escape
sequences - we just kid of preserve them for printing again
into the C code.  (That already breaks things like a 
hypothetical compile-time strlen("\n") == 2.)

-- 
You are receiving this mail because:
You are the assignee for the bug.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]