瀏覽代碼

gcc: Change parser declaration to have (possibly) C++ linkage.

* gcc-plugin/src/starpu.c (yyparse, yydebug): Move outside of `extern "C"'.
Ludovic Courtès 13 年之前
父節點
當前提交
d52311c0cd
共有 1 個文件被更改,包括 6 次插入3 次删除
  1. 6 3
      gcc-plugin/src/starpu.c

+ 6 - 3
gcc-plugin/src/starpu.c

@@ -88,6 +88,12 @@
 
 #endif	/* !__cplusplus */
 
+
+/* C expression parser, possibly with C++ linkage.  */
+
+extern int yyparse (location_t, const char *, tree *);
+extern int yydebug;
+
 
 #ifdef __cplusplus
 extern "C" {
@@ -633,9 +639,6 @@ handle_pragma_wait (struct cpp_reader *reader)
 
 /* The minimal C expression parser.  */
 
-extern int yyparse (location_t, const char *, tree *);
-extern int yydebug;
-
 /* Parse expressions from the CPP reader for PRAGMA, which is located at LOC.
    Return a TREE_LIST of C expressions.  */