Explorar el Código

* Fixed a bug in the cfg parser with /* */ comments

svn: 2335
Bryan Drewery hace 21 años
padre
commit
05035953cd
Se han modificado 1 ficheros con 3 adiciones y 0 borrados
  1. 3 0
      src/misc.c

+ 3 - 0
src/misc.c

@@ -1251,6 +1251,9 @@ char *trim(char *string)
 int skipline (char *line, int *skip) {
   static int multi = 0;
 
+  if (strstr(line, "*/"))
+    multi = 0;
+
   if ( (!strncmp(line, "#", 1)) || (!strncmp(line, ";", 1)) || (!strncmp(line, "//", 2)) ) {
     (*skip)++;
   } else if ( (strstr(line, "/*")) && (strstr(line, "*/")) ) {