[11721] in Athena Bugs
Changes to the ss library
daemon@ATHENA.MIT.EDU (epeisach@MIT.EDU)
Tue Feb 8 18:39:05 1994
From: epeisach@MIT.EDU
Date: Tue, 8 Feb 1994 18:38:58 -0500
To: bugs@MIT.EDU
Cc: alpha@kangaroo.mit.edu
Three files:
(a) Imakefile: (i) Properly remove some extra files that might be
present. (automatically generated ones)
(ii) Install mk_cmds in the build tree in a
common place
(b) listen.c - signal declaration better
(c) cmd_tbl.l - You should declare statics before first
reference to them. (spacing on lines critical - do not add extra spaces
before/after)
diff -c /source/athena/athena.lib/ss/Imakefile ./Imakefile
*** /source/athena/athena.lib/ss/Imakefile Mon Jul 1 20:01:21 1991
--- ./Imakefile Fri Dec 10 12:12:55 1993
***************
*** 106,111 ****
--- 106,114 ----
test: test.o commands.o $(LIB)
${CC} ${CFLAGS} -o test test.o commands.o $(LIB) $(COMERR)
+ clean::
+ rm -f commands.c
+
commands.c: mk_cmds commands.ct
./mk_cmds commands.ct
***************
*** 119,121 ****
--- 122,130 ----
makedepend $(CFLAGS) $(CFILES)
+ #if !defined(UseInstalled)
+ all:: $(UTILDIR)mk_cmds
+
+ $(UTILDIR)mk_cmds: mk_cmds
+ $(INSTALL) -s mk_cmds $(UTILDIR)
+ #endif
Only in .: Imakefile~
Common subdirectories: /source/athena/athena.lib/ss/RCS and ./RCS
diff -c /source/athena/athena.lib/ss/cmd_tbl.l ./cmd_tbl.l
*** /source/athena/athena.lib/ss/cmd_tbl.l Thu Oct 28 17:53:28 1993
--- ./cmd_tbl.l Fri Dec 10 12:30:09 1993
***************
*** 1,6 ****
--- 1,11 ----
+ %{
+ static l_command_table(), l_request(), l_unimplemented(), l_end();
+ static l_quoted_string(), l_string();
+ %}
N [0-9]
PC [^\"]
AN [A-Z_a-z0-9]
+
%%
command_table return l_command_table();
diff -c /source/athena/athena.lib/ss/listen.c ./listen.c
*** /source/athena/athena.lib/ss/listen.c Thu Oct 28 17:53:28 1993
--- ./listen.c Sun Jan 30 09:48:06 1994
***************
*** 50,56 ****
(void) fflush(stdout);
}
! static sigtype listen_int_handler()
{
putc('\n', stdout);
longjmp(listen_jmpb, 1);
--- 50,58 ----
(void) fflush(stdout);
}
! /* ARGSUSED */
! static sigtype listen_int_handler(sig)
! int sig;
{
putc('\n', stdout);
longjmp(listen_jmpb, 1);
***************
*** 68,74 ****
int code;
jmp_buf old_jmpb;
ss_data *old_info = current_info;
- static sigtype print_prompt();
#ifdef POSIX
struct sigaction isig, csig, nsig, osig;
sigset_t nmask, omask;
--- 70,75 ----