]> andersk Git - splint.git/blobdiff - src/llmain.c
Fixed handling of octal constants.
[splint.git] / src / llmain.c
index 347303ac7a5b12f6e6956f22d30aa80d9ebe6f79..1b8f4eb6e333441383f39ead6a50ceda95799232 100644 (file)
@@ -2177,6 +2177,10 @@ llexit (int status)
   exit ((status == LLSUCCESS) ? EXIT_SUCCESS : EXIT_FAILURE);
 }
 
+/*
+** This shouldn't be necessary, but Apple Darwin can't handle '"''s.
+*/
+
 void
 loadrc (/*:open:*/ FILE *rcfile, cstringSList *passThroughArgs)
    /*@ensures closed rcfile@*/
@@ -2444,16 +2448,16 @@ loadrc (/*:open:*/ FILE *rcfile, cstringSList *passThroughArgs)
                            }
                          else if (flagcode_hasString (opt))
                            {
-                             if (cstring_firstChar (extra) == '"')
+                             if (cstring_firstChar (extra) == '\"')
                                {
-                                 if (cstring_lastChar (extra) == '"')
+                                 if (cstring_lastChar (extra) == '\"')
                                    {
                                      char *extras = cstring_toCharsSafe (extra);
                                      
-                                     llassert (extras[strlen(extras) - 1] == '"');
+                                     llassert (extras[strlen(extras) - 1] == '\"');
                                      extras[strlen(extras) - 1] = '\0';
                                      extra = cstring_fromChars (extras + 1); 
-                                     DPRINTF (("Remove quites: %s", extra));
+                                     DPRINTF (("Remove quotes: %s", extra));
                                    }
                                  else
                                    {
This page took 0.030978 seconds and 4 git commands to generate.