diff options
author | Kaveh R. Ghazi <ghazi@caip.rutgers.edu> | 2000-11-19 00:30:05 +0000 |
---|---|---|
committer | Kaveh Ghazi <ghazi@gcc.gnu.org> | 2000-11-19 00:30:05 +0000 |
commit | 0a8ad417906348bc502b75cabced1e69a930eef0 (patch) | |
tree | c9bfae10caf5467e25c2e0a2faa4f6f7e35a46e0 /gcc/tradcpp.h | |
parent | 77c4d6c06a83f7d86471befb76a1be433dc2e3a3 (diff) | |
download | gcc-0a8ad417906348bc502b75cabced1e69a930eef0.zip gcc-0a8ad417906348bc502b75cabced1e69a930eef0.tar.gz gcc-0a8ad417906348bc502b75cabced1e69a930eef0.tar.bz2 |
Makefile.in (tradcpp.o, tradcif.o): Depend on tradcpp.h.
* Makefile.in (tradcpp.o, tradcif.o): Depend on tradcpp.h.
* tradcif.y: Include tradcpp.h. Constify. Make functions static.
Move extern function declarations to tradcpp.h.
* tradcpp.c: Likewise.
* tradcpp.h: New file.
From-SVN: r37550
Diffstat (limited to 'gcc/tradcpp.h')
-rw-r--r-- | gcc/tradcpp.h | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/gcc/tradcpp.h b/gcc/tradcpp.h new file mode 100644 index 0000000..023e642 --- /dev/null +++ b/gcc/tradcpp.h @@ -0,0 +1,41 @@ +/* C Compatible Compiler Preprocessor (CCCP) +Copyright (C) 1986, 1987, 1989, 2000 Free Software Foundation, Inc. + Written by Paul Rubin, June 1986 + Adapted to ANSI C, Richard Stallman, Jan 1987 + Dusted off, polished, and adapted for use as traditional + preprocessor only, Zack Weinberg, Jul 2000 + +This program 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. + +This program 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 this program; if not, write to the Free Software +Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ + +#ifndef _TRADCPP_H_ +#define _TRADCPP_H_ + +extern void error PARAMS ((const char *msgid, ...)) ATTRIBUTE_PRINTF_1; +extern void warning PARAMS ((const char *msgid, ...)) ATTRIBUTE_PRINTF_1; +extern void fatal PARAMS ((const char *msgid, ...)) ATTRIBUTE_PRINTF_1 ATTRIBUTE_NORETURN; +extern void error_with_line PARAMS ((int, const char *msgid, ...)) ATTRIBUTE_PRINTF_2; +extern void error_from_errno PARAMS ((const char *msgid)); + +extern void perror_with_name PARAMS ((const char *msgid)); +extern void pfatal_with_name PARAMS ((const char *msgid)) ATTRIBUTE_NORETURN; +extern void fancy_abort PARAMS ((int, const char *)) ATTRIBUTE_NORETURN; + +extern struct hashnode *lookup PARAMS ((const unsigned char *, int, int)); +extern int parse_c_expression PARAMS ((const char *)); /* in tradcif.y */ + +/* some external tables of character types */ +extern unsigned char is_idstart[], is_idchar[]; + +#endif /* ! _TRADCPP_H_ */ |