elk (3.0-13) unstable; urgency=low

* Fixed gcc-3.3 compilation errors due to deprecated usage of <varargs.h>.
 -- Sam Hocevar (Debian packages) <sam+deb@zoy.org>  Fri, 30 May 2003 17:04:56 +0200


git-svn-id: svn://svn.zoy.org/elk/trunk@7 55e467fa-43c5-0310-a8a2-de718669efc6
This commit is contained in:
sam 2003-08-19 19:26:49 +00:00
parent 5cd078e8a6
commit fd4e14a4d1
9 changed files with 29 additions and 35 deletions

View File

@ -30,4 +30,4 @@ $install_dir/lib/ldflags /usr/bin/ldflags-elk
-- Enrique Zanardi <ezanard@debian.org> Mon, 26 Mar 2001 20:19:04 +0100 -- Enrique Zanardi <ezanard@debian.org> Mon, 26 Mar 2001 20:19:04 +0100
-- Samuel Hocevar <sam@zoy.org> Mon, 31 Mar 2003 15:00:23 +0200 -- Sam Hocevar <sam@zoy.org> Mon, 31 Mar 2003 15:00:23 +0200

7
debian/changelog vendored
View File

@ -1,3 +1,10 @@
elk (3.0-13) unstable; urgency=low
* Fixed gcc-3.3 compilation errors due to deprecated usage of <varargs.h>.
* Set policy to 3.5.10.
-- Sam Hocevar (Debian packages) <sam+deb@zoy.org> Fri, 30 May 2003 17:04:56 +0200
elk (3.0-12) unstable; urgency=low elk (3.0-12) unstable; urgency=low
* Fixed generation of /usr/lib/elk/module.a (needed to build sced). * Fixed generation of /usr/lib/elk/module.a (needed to build sced).

2
debian/control vendored
View File

@ -1,7 +1,7 @@
Source: elk Source: elk
Section: devel Section: devel
Priority: optional Priority: optional
Maintainer: Samuel Hocevar <sam@zoy.org> Maintainer: Sam Hocevar (Debian packages) <sam+deb@zoy.org>
Build-Depends: debhelper (>> 3.0.0), libelfg0-dev, xlibs-dev, lesstif-dev, libgdbmg1-dev, libxaw7-dev Build-Depends: debhelper (>> 3.0.0), libelfg0-dev, xlibs-dev, lesstif-dev, libgdbmg1-dev, libxaw7-dev
Standards-Version: 3.5.9.0 Standards-Version: 3.5.9.0

View File

@ -82,8 +82,8 @@ extern Object The_Environment, Global_Environment;
/* Error handling /* Error handling
*/ */
extern void Primitive_Error P_((ELLIPSIS)) __attribute__ ((__noreturn__)); extern void Primitive_Error P_((const char*, ...)) __attribute__ ((__noreturn__));
extern void Fatal_Error P_((ELLIPSIS)) __attribute__ ((__noreturn__)); extern void Fatal_Error P_((const char*, ...)) __attribute__ ((__noreturn__));
extern void Range_Error P_((Object)); extern void Range_Error P_((Object));
extern void Panic P_((const char*)); extern void Panic P_((const char*));
extern Object P_Error P_((int, Object*)); extern Object P_Error P_((int, Object*));
@ -313,7 +313,7 @@ extern Object P_Print P_((int, Object*));
extern Object P_Get_Output_String P_((Object)); extern Object P_Get_Output_String P_((Object));
extern void Check_Output_Port P_((Object)); extern void Check_Output_Port P_((Object));
extern void Discard_Output P_((Object)); extern void Discard_Output P_((Object));
extern void Printf P_((ELLIPSIS)); extern void Printf P_((Object, const char *, ...));
extern void Print_Object P_((Object, Object, int, int, int)); extern void Print_Object P_((Object, Object, int, int, int));
extern void General_Print_Object P_((Object, Object, int)); extern void General_Print_Object P_((Object, Object, int));
extern void Format P_((Object, const char*, int, int, Object*)); extern void Format P_((Object, const char*, int, int, Object*));
@ -433,7 +433,7 @@ extern Object Bits_To_Symbols P_((unsigned long int, int, SYMDESCR*));
*/ */
extern void Register_Object P_((Object, GENERIC, PFO, int)); extern void Register_Object P_((Object, GENERIC, PFO, int));
extern void Deregister_Object P_((Object)); extern void Deregister_Object P_((Object));
extern Object Find_Object P_((ELLIPSIS)); extern Object Find_Object P_((int, GENERIC, MATCHFUN, ...));
extern void Terminate_Group P_((GENERIC)); extern void Terminate_Group P_((GENERIC));
extern void Terminate_Type P_((int)); extern void Terminate_Type P_((int));

View File

@ -1,4 +1,4 @@
#include <varargs.h> #include <stdarg.h>
#include "xlib.h" #include "xlib.h"

View File

@ -1,4 +1,4 @@
#include <varargs.h> #include <stdarg.h>
#include "xt.h" #include "xt.h"

View File

@ -1,5 +1,5 @@
#include <ctype.h> #include <ctype.h>
#include <varargs.h> #include <stdarg.h>
#include <stdlib.h> #include <stdlib.h>
#include "kernel.h" #include "kernel.h"
@ -42,15 +42,13 @@ void Set_App_Name (char *name) {
#ifdef lint #ifdef lint
/*VARARGS1*/ /*VARARGS1*/
void Fatal_Error (char *foo) { foo = foo; } void Fatal_Error (const char *foo) { foo = foo; }
#else #else
void Fatal_Error (va_alist) va_dcl { void Fatal_Error (const char *fmt, ...) {
va_list args; va_list args;
char *fmt;
Disable_Interrupts; Disable_Interrupts;
va_start (args); va_start (args, fmt);
fmt = va_arg (args, char *);
(void)fflush (stdout); (void)fflush (stdout);
if (appname) if (appname)
fprintf (stderr, "\n%s: fatal error: ", appname); fprintf (stderr, "\n%s: fatal error: ", appname);
@ -91,17 +89,16 @@ void Uncatchable_Error (char *errmsg) {
#ifdef lint #ifdef lint
/*VARARGS1*/ /*VARARGS1*/
void Primitive_Error (char *foo) { foo = foo; } void Primitive_Error (const char *foo) { foo = foo; }
#else #else
void Primitive_Error (va_alist) va_dcl { void Primitive_Error (const char *fmt, ...) {
va_list args; va_list args;
register char *p, *fmt; register const char *p;
register int i, n; register int i, n;
Object msg, sym, argv[10]; Object msg, sym, argv[10];
GC_Node; GCNODE gcv; GC_Node; GCNODE gcv;
va_start (args); va_start (args, fmt);
fmt = va_arg (args, char *);
for (n = 0, p = fmt; *p; p++) for (n = 0, p = fmt; *p; p++)
if (*p == '~' && p[1] != '~' && p[1] != '%' if (*p == '~' && p[1] != '~' && p[1] != '%'
&& p[1] != 'E' && p[1] != 'e') && p[1] != 'E' && p[1] != 'e')

View File

@ -6,7 +6,7 @@
#include <string.h> #include <string.h>
#include <errno.h> #include <errno.h>
#include <ctype.h> #include <ctype.h>
#include <varargs.h> #include <stdarg.h>
#ifdef FLUSH_TIOCFLUSH #ifdef FLUSH_TIOCFLUSH
# include <sys/ioctl.h> # include <sys/ioctl.h>
@ -107,15 +107,11 @@ void vsprintf (register char *s, register char *fmt, va_list ap) {
#endif #endif
/*VARARGS0*/ /*VARARGS0*/
void Printf (va_alist) va_dcl { void Printf (Object port, const char *fmt, ...) {
va_list args; va_list args;
Object port;
char *fmt;
char buf[1024]; char buf[1024];
va_start (args); va_start (args, fmt);
port = va_arg (args, Object);
fmt = va_arg (args, char *);
if (PORT(port)->flags & P_STRING) { if (PORT(port)->flags & P_STRING) {
vsprintf (buf, fmt, args); vsprintf (buf, fmt, args);
Print_String (port, buf, strlen (buf)); Print_String (port, buf, strlen (buf));

View File

@ -1,7 +1,7 @@
/* Termination functions, weak pointers. /* Termination functions, weak pointers.
*/ */
#include <varargs.h> #include <stdarg.h>
#include <stdlib.h> #include <stdlib.h>
#include "kernel.h" #include "kernel.h"
@ -51,17 +51,11 @@ void Deregister_Object (Object obj) {
* Null is returned when the object has not been found. * Null is returned when the object has not been found.
*/ */
/*VARARGS*/ /*VARARGS*/
Object Find_Object (va_alist) va_dcl { Object Find_Object (int type, GENERIC group, MATCHFUN match, ...) {
WEAK_NODE *p; WEAK_NODE *p;
int type;
GENERIC group;
MATCHFUN match;
va_list args; va_list args;
va_start (args); va_start (args, match);
type = va_arg (args, int);
group = va_arg (args, GENERIC);
match = va_arg (args, MATCHFUN);
for (p = first; p; p = p->next) { for (p = first; p; p = p->next) {
if (TYPE(p->obj) != type || p->group != group) if (TYPE(p->obj) != type || p->group != group)
continue; continue;