]> git.gag.com Git - fw/sdcc/blobdiff - src/SDCC.lex
* device/lib/pic16/libc/string/memccpy.c: changed 3rd argument to char
[fw/sdcc] / src / SDCC.lex
index 1701dbe1b2e48d3315c5357faa0a4798c5df1b6c..43074e9d810e42152ffc5a08e5b3a05bfccaa7ae 100644 (file)
@@ -692,6 +692,10 @@ static int process_pragma(char *s)
   while ((!isspace(*s)) && (*s != '\n'))
     s++ ;
 
+  /* skip separating whitespace */
+  while (isspace(*s) && (*s != '\n'))
+    s++;
+
   /* First give the port a chance */
   if (port->process_pragma && !port->process_pragma(cp))
     return 0;
@@ -706,7 +710,7 @@ static int process_pragma(char *s)
           if (pragma_tbl[i].deprecated != 0)
             werror(W_DEPRECATED_PRAGMA, pragma_tbl[i].name);
 
-          doPragma(pragma_tbl[i].id, cp + len);
+          doPragma(pragma_tbl[i].id, s);
           return 0;
         }
     }