File: yyerror.c

package info (click to toggle)
bison 1%3A2.3.dfsg-5
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 7,040 kB
  • ctags: 3,864
  • sloc: sh: 53,991; ansic: 20,277; lex: 1,325; cpp: 1,300; yacc: 510; makefile: 230; sed: 111
file content (30 lines) | stat: -rw-r--r-- 995 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
/* Yacc library error-printing function.

   Copyright (C) 2002 Free Software Foundation, Inc.

   This file is part of Bison, the GNU Compiler Compiler.

   Bison is free software; you can redistribute it and/or modify
   it under the terms of the GNU General Public License as published by
   the Free Software Foundation; either version 2, or (at your option)
   any later version.

   Bison is distributed in the hope that it will be useful,
   but WITHOUT ANY WARRANTY; without even the implied warranty of
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
   GNU General Public License for more details.

   You should have received a copy of the GNU General Public License
   along with Bison; see the file COPYING.  If not, write to
   the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
   Boston, MA 02110-1301, USA.  */

#include <stdio.h>

int yyerror (char const *);

int
yyerror (char const *message)
{
  return fprintf (stderr, "%s\n", message);
}