Changeset 1849


Ignore:
Timestamp:
Mar 14, 2005, 12:36:54 AM (20 years ago)
Author:
bird
Message:

Added support for single quoted arguments.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/emx/src/lib/sys/__init.c

    • Property cvs2svn:cvs-rev changed from 1.20 to 1.21
    r1848 r1849  
    107107        for (;;)
    108108        {
    109             if (*src == '"')
     109            if (!quote ? (*src == '"' || *src == '\'') : *src == quote)
    110110            {
    111111                while (bs >= 2)
     
    115115                }
    116116                if (bs & 1)
    117                     PUTC('"');
     117                    PUTC(*src);
    118118                else
    119119                {
    120                     quote = !quote;
     120                    quote = quote ? 0 : *src;
    121121                    if (flag_ptr != NULL)
    122122                        *flag_ptr |= _ARG_DQUOTE;
Note: See TracChangeset for help on using the changeset viewer.