Changeset 5116


Ignore:
Timestamp:
Feb 11, 2010, 12:13:32 PM (5 years ago)
Author:
oxygene
Message:

romcc: Ignore empty string tokens. So far, romcc emitted a single double-quote for them.

Signed-off-by: Patrick Georgi <patrick.georgi@…>
Acked-by: Patrick Georgi <patrick.georgi@…>

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/util/romcc/romcc.c

    r5114 r5116  
    1078310783                        error(state, 0, "negative string constant length");
    1078410784                }
     10785                /* ignore empty string tokens */
     10786                if (strcmp("\"", str) == 0)
     10787                        continue;
    1078510788                end = str + str_len;
    1078610789                ptr = buf;
Note: See TracChangeset for help on using the changeset viewer.