Skip to content

Commit 1cda602

Browse files
committed
Modernize steer.c
1 parent be0af10 commit 1cda602

4 files changed

Lines changed: 2465 additions & 1984 deletions

File tree

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ LIB=usr/local/lib
44
MAN=usr/local/man/man1
55

66
CC = gcc -w
7-
CFLAGS =
8-
EX =
7+
CFLAGS =
8+
EX =
99
YACC = byacc
1010

1111
OBJS = big.o cmbnms.o data.o lex.o reduce.o steer.o trans.o types.o utf8.o y.tab.o

data.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -302,7 +302,7 @@ void acterror(void);
302302
word alfasort(word);
303303
void dieclean(void);
304304
word fixtype(word,word);
305-
word fm_time(char *); /* assumes type word same size as time_t */
305+
word fm_time(const char *); /* assumes type word same size as time_t */
306306
void fpe_error(void);
307307
word parseline(word,FILE *,word);
308308
word process(void);
@@ -311,8 +311,8 @@ void reset(void);
311311
word reverse(word);
312312
word shunt(word,word);
313313
word size(word);
314-
void syntax(char *);
315-
void yyerror(char *);
314+
void syntax(const char *);
315+
void yyerror(const char *);
316316

317317
/* function prototypes - types.c */
318318
word add1(word,word);

menudriver.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ char *dir;
103103
strcat(cmd," ");
104104
strcat(cmd,"contents");
105105
system(cmd);
106-
printf("::please type selection number (or return to exit):");
106+
printf("Please type selection number (or return to exit): ");
107107
/* read remainder of line into next, less leading white space */
108108
np=next; c=getchar();
109109
while(c==' '||c=='\t')c=getchar();
@@ -151,7 +151,7 @@ char *dir;
151151
}
152152
else
153153
{ printf(
154-
"::next selection (or return to go back to menu, or q to quit):"
154+
"Next selection (or return to go back to menu, or q to quit):"
155155
);
156156
/* read remainder of line into next, less leading white space */
157157
strcpy(last,next);

0 commit comments

Comments
 (0)