/* from file misc.c */
/* Add a #define to the action file. */
-extern void action_define PROTO(( char *defname, int value ));
+extern void action_define PROTO(( const char *defname, int value ));
/* Add the given text to the stored actions. */
extern void add_action PROTO(( char *new_text ));
/* Append "#define defname value\n" to the running buffer. */
void action_define( defname, value )
-char *defname;
+const char *defname;
int value;
{
char buf[MAXLINE];
/* myctoi - return the integer represented by a string of digits */
int myctoi( array )
-char *array;
+const char *array;
{
int val = 0;
/* format_synerr - write out formatted syntax error */
void format_synerr( msg, arg )
-char msg[], arg[];
+const char *msg, arg[];
{
char errmsg[MAXLINE];
/* synerr - report a syntax error */
void synerr( str )
-char str[];
+const char *str;
{
syntaxerror = true;
pinpoint_message( str );
/* format_warn - write out formatted warning */
void format_warn( msg, arg )
-char msg[], arg[];
+const char *msg, arg[];
{
char warn_msg[MAXLINE];
/* warn - report a warning, unless -w was given */
void warn( str )
-char str[];
+const char *str;
{
line_warning( str, linenum );
}
*/
void format_pinpoint_message( msg, arg )
-char msg[], arg[];
+const char *msg, arg[];
{
char errmsg[MAXLINE];
/* pinpoint_message - write out a message, pinpointing its location */
void pinpoint_message( str )
-char str[];
+const char *str;
{
line_pinpoint( str, linenum );
}
/* line_warning - report a warning at a given line, unless -w was given */
void line_warning( str, line )
-char str[];
+const char *str;
int line;
{
char warning[MAXLINE];
/* line_pinpoint - write out a message, pinpointing it at the given line */
void line_pinpoint( str, line )
-char str[];
+const char *str;
int line;
{
fprintf( stderr, "%s: %d: %s\n", infilename, line, str );
*/
void yyerror( msg )
-char msg[];
+const char *msg;
{
}
static int addsym PROTO((register char[], char*, int, hash_table, int));
static struct hash_entry *findsym();
-static int hashfunct PROTO((register char[], int));
+static int hashfunct PROTO((register const char*, int));
/* addsym - add symbol and definitions to symbol table
/* findsym - find symbol in symbol table */
static struct hash_entry *findsym( sym, table, table_size )
-register char sym[];
+register const char *sym;
hash_table table;
int table_size;
{
/* hashfunct - compute the hash value for "str" and hash size "hash_size" */
static int hashfunct( str, hash_size )
-register char str[];
+register const char *str;
int hash_size;
{
register int hashval;
/* ndinstal - install a name definition */
void ndinstal( name, definition )
-char name[];
+const char *name;
Char definition[];
{
char *copy_string();
*/
Char *ndlookup( nd )
-char nd[];
+const char *nd;
{
return (Char *) findsym( nd, ndtbl, NAME_TABLE_HASH_SIZE )->str_val;
}
*/
void scinstal( str, xcluflg )
-char str[];
+const char *str;
int xcluflg;
{
char *copy_string();
*/
int sclookup( str )
-char str[];
+const char *str;
{
return findsym( str, sctbl, START_COND_HASH_SIZE )->int_val;
}