OSDN Git Service

(output_line_directive): Do not output negative line numbers when
[pf3gnuchains/gcc-fork.git] / gcc / bi-parser.y
index c855d84..0a03d0f 100644 (file)
@@ -15,19 +15,19 @@ GNU General Public License for more details.
 
 You should have received a copy of the GNU General Public License
 along with GNU CC; see the file COPYING.  If not, write to
-the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.  */
+the Free Software Foundation, 59 Temple Place - Suite 330,
+Boston, MA 02111-1307, USA.  */
 
 
 %{
 
 #include <stdio.h>
+#include "hconfig.h"
 #include "bi-defs.h"
 
 extern char yytext[];
 extern int yyleng;
 
-extern char *malloc ();
-
 
 /* Chain of all defs built by the parser. */
 struct def *defs;
@@ -81,7 +81,7 @@ variations:
 
 variation:
   '(' opt_string ')'
-    { $$ = makevar($2, (struct node *) NULL, (struct node *) NULL, (struct node *) NULL); }
+    { $$ = makevar ($2, (struct node *) NULL, (struct node *) NULL, (struct node *) NULL); }
   | '(' opt_string ',' list ')'
     { $$ = makevar ($2, $4, (struct node *) NULL, (struct node *) NULL); }
   | '(' opt_string ',' list ',' list ')'
@@ -164,6 +164,6 @@ void
 yyerror (s)
      char *s;
 {
-  fprintf (stderr, "syntax error in input");
-  exit (1);
+  fprintf (stderr, "syntax error in input\n");
+  exit (FATAL_EXIT_CODE);
 }