~ubuntu-branches/ubuntu/vivid/cproto/vivid

« back to all changes in this revision

Viewing changes to system.h

  • Committer: Bazaar Package Importer
  • Author(s): Kenneth J. Pronovici
  • Date: 2004-03-30 19:58:33 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20040330195833-loh9sgce2as79j67
Tags: 4.7c-1
* New upstream release.
  - Includes equivalent of patch as used to close #228801 (see below).
  - Supports -X option to filter out unwanted definitions (closes: #235824).
* Now configure using --enable-llib option, so we don't need lint installed.
* Added gcc to Depends: line since -X option requires GCC to work; I assume
  most users will already have gcc installed anyway, if they are developers.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/* $Id: system.h,v 4.7 1998/01/24 01:42:09 cthuang Exp $
 
1
/* $Id: system.h,v 4.8.1.2 2004/03/24 21:46:51 tom Exp tom $
2
2
 *
3
3
 * cproto configuration and system dependencies
4
4
 */
37
37
#endif
38
38
#endif
39
39
 
40
 
/* don't use continuation-lines -- breaks on VAXC */
41
 
#if defined(__STDC__) || defined(__GNUC__) || defined(__WATCOMC__) || defined(vms)
42
 
#define ARGS(p) p
43
 
#else
44
 
#define ARGS(p) ()
45
 
#endif
46
 
 
47
40
/* Turbo C preprocessor */
48
41
#ifdef __TURBOC__
49
42
#define YY_READ_BUF_SIZE 256    /* patch */
137
130
#if HAVE_STDLIB_H
138
131
#include <stdlib.h>
139
132
#else
140
 
extern char *malloc  ARGS((size_t n));
141
 
extern char *realloc ARGS((char *p, size_t n));
 
133
extern char *malloc  (size_t n);
 
134
extern char *realloc (char *p, size_t n);
 
135
extern char *getenv  (const char *v);
142
136
#endif
143
137
 
144
138
/* Declare argument for exit() function */
169
163
#  include <strings.h>
170
164
#  define strchr index
171
165
#  define strrchr rindex
 
166
extern char *strstr  (const char *s, const char *p);
172
167
/* memory.h and strings.h conflict on some systems.  */
173
168
#endif /* not STDC_HEADERS and not HAVE_STRING_H */
174
169
 
175
 
extern char *getenv  ARGS((const char *v));
176
 
extern char *strstr  ARGS((const char *s, const char *p));
177
 
 
178
170
/*
179
171
 * The DOALLOC symbol controls whether we compile in the simple memory tests
180
172
 * in 'trace.c' (use dbmalloc for more rigorous testing).
189
181
 * support.
190
182
 */
191
183
#ifndef OPT_LINTLIBRARY
192
 
# if HAVE_PROG_LINT || defined(unix)
193
 
#  define OPT_LINTLIBRARY 1
194
 
# endif
 
184
# define OPT_LINTLIBRARY 0
195
185
#endif
196
186
 
197
187
#if BISON_HAS_YYTNAME || YACC_HAS_YYTOKS || YACC_HAS_YYTOKS_2 || YACC_HAS_YYNAME