+2004-03-17 Ken Raeburn <raeburn@mit.edu>
+
+ * error.c (ss_error): Always use ANSI C form. Don't try to hide
+ the declaration in the header file.
+
+ * ss.h: Always use the prototype forms of declarations.
+
2003-06-27 Ken Raeburn <raeburn@mit.edu>
* Makefile.in (HDRS): Remove mit-sipb-copyright.h.
#include <stdio.h>
-/*
- * I'm assuming that com_err.h includes varargs.h, which it does
- * (right now). There really ought to be a way for me to include the
- * file without worrying about whether com_err.h includes it or not,
- * but varargs.h doesn't define anything that I can use as a flag, and
- * gcc will lose if I try to include it twice and redefine stuff.
- */
-#if !defined(__STDC__) || !defined(ibm032) || !defined(NeXT)
-#define ss_error ss_error_external
-#endif
-
#include "copyright.h"
#include "com_err.h"
#include "ss_internal.h"
-#undef ss_error
-
char * ss_name(sci_idx)
int sci_idx;
{
}
}
-#ifdef HAVE_STDARG_H
void ss_error (int sci_idx, long code, const char * fmt, ...)
-#else
-void ss_error (va_alist)
- va_dcl
-#endif
{
register char *whoami;
va_list pvar;
-#ifndef HAVE_STDARG_H
- int sci_idx;
- long code;
- char * fmt;
- va_start (pvar);
- sci_idx = va_arg (pvar, int);
- code = va_arg (pvar, long);
- fmt = va_arg (pvar, char *);
-#else
va_start (pvar, fmt);
-#endif
whoami = ss_name (sci_idx);
com_err_va (whoami, code, fmt, pvar);
free (whoami);
void ss_list_requests __SS_PROTO;
void ss_quit __SS_PROTO;
char *ss_current_request();
-#ifdef __STDC__
char *ss_name(int);
void ss_error (int, long, char const *, ...);
void ss_perror (int, long, char const *);
void ss_add_request_table(int, ss_request_table *, int, int *);
void ss_delete_request_table(int, ss_request_table *, int *);
int ss_execute_line (int, char*);
-#else
-char *ss_name();
-void ss_error ();
-void ss_perror ();
-int ss_listen ();
-int ss_create_invocation();
-void ss_delete_invocation();
-void ss_add_info_dir();
-void ss_delete_info_dir();
-int ss_execute_command();
-void ss_abort_subsystem();
-void ss_set_prompt();
-char *ss_get_prompt();
-void ss_add_request_table();
-void ss_delete_request_table();
-int ss_execute_line();
-#endif
extern ss_request_table ss_std_requests;
#endif /* _ss_h */