/* GOB C Preprocessor
- * Copyright (C) 1999 the Free Software Foundation.
+ * Copyright (C) 1999-2000 the Free Software Foundation.
+ * Copyright (C) 2000 Eazel, Inc.
+ * Copyright (C) 2001-2009 George (Jiri) Lebl
*
* Author: George Lebl
*
file++;
p = strchr(file,'"');
if(!p) p = strchr(file,'>');
- *p = '\0';
- include_files = g_list_prepend(include_files,g_strdup(file));
- g_free(str);
+ if (p != NULL) {
+ *p = '\0';
+ include_files = g_list_prepend(include_files,g_strdup(file));
+ g_free(str);
+ }
}
REJECT;
}
if(look_for_includes==0)
look_for_includes=1;
}
+^\%(ad|afterdecls)\{ {
+ BEGIN(C_CODE);
+ parenth_depth = 1;
+ class_after_c = FALSE;
+ code_type = ADCODE;
+ clear_cbuf();
+ ccode_line = line_no;
+ }
<C_CODE>^\%\} {
BEGIN(INITIAL);
yylval.cbuf = cbuf;