/* Utility functions for scan-decls and fix-header programs.
- Copyright (C) 1993, 1994, 1998, 2002 Free Software Foundation, Inc.
+ Copyright (C) 1993, 1994, 1998, 2002, 2003 Free Software Foundation, Inc.
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
along with this program; if not, write to the Free Software
Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
-#include "hconfig.h"
+#include "bconfig.h"
#include "system.h"
+#include "coretypes.h"
+#include "tm.h"
#include "scan.h"
int lineno = 1;
sstring source_filename;
void
-make_sstring_space (str, count)
- sstring *str;
- int count;
+make_sstring_space (sstring *str, int count)
{
int cur_pos = str->ptr - str->base;
int cur_size = str->limit - str->base;
}
void
-sstring_append (dst, src)
- sstring *dst;
- sstring *src;
+sstring_append (sstring *dst, sstring *src)
{
char *d, *s;
int count = SSTRING_LENGTH (src);
}
int
-scan_ident (fp, s, c)
- FILE *fp;
- sstring *s;
- int c;
+scan_ident (FILE *fp, sstring *s, int c)
{
s->ptr = s->base;
if (ISIDST (c))
}
int
-scan_string (fp, s, init)
- FILE *fp;
- sstring *s;
- int init;
+scan_string (FILE *fp, sstring *s, int init)
{
int c;
/* Skip horizontal white spaces (spaces, tabs, and C-style comments). */
int
-skip_spaces (fp, c)
- FILE *fp;
- int c;
+skip_spaces (FILE *fp, int c)
{
for (;;)
{
}
int
-read_upto (fp, str, delim)
- FILE *fp;
- sstring *str;
- int delim;
+read_upto (FILE *fp, sstring *str, int delim)
{
int ch;
}
int
-get_token (fp, s)
- FILE *fp;
- sstring *s;
+get_token (FILE *fp, sstring *s)
{
int c;
}
unsigned int
-hashstr (str, len)
- const char *str;
- unsigned int len;
+hashstr (const char *str, unsigned int len)
{
unsigned int n = len;
unsigned int r = 0;