dtcalc: Remove support for optional K&R prototypes to simplify code

This commit is contained in:
Peter Howkins
2020-11-26 22:24:51 +00:00
parent 25d34e6398
commit e4024b0bf9
9 changed files with 281 additions and 317 deletions

View File

@@ -39,31 +39,23 @@
#include <X11/Intrinsic.h>
#include <Xm/Xm.h>
/* For all function declarations, if ANSI then use a prototype. */
#if defined(__STDC__)
#define P(args) args
#else /* ! __STDC__ */
#define P(args) ()
#endif /* STDC */
/* Function declarations. */
char *ds_get_resource P((XrmDatabase, char *, char *)) ;
char *ds_get_resource(XrmDatabase, char *, char *);
int ds_get_choice_value P((Widget)) ;
int ds_get_strwidth P((XFontStruct *, char *)) ;
int ds_save_resources P((XrmDatabase, char *)) ;
int ds_get_choice_value(Widget) ;
int ds_get_strwidth(XFontStruct *, char *);
int ds_save_resources(XrmDatabase, char *) ;
void ds_add_help P((Widget, char *)) ;
void ds_beep P((Display *)) ;
void ds_get_geometry_size P((char *, int *, int *)) ;
void ds_get_frame_size P((Widget, int *, int *, int *, int *)) ;
void ds_put_resource P((XrmDatabase *, char *, char *, char *)) ;
void ds_save_cmdline P((Display *, Window, int, char **)) ;
void ds_set_choice_value P((Widget, int)) ;
void ds_set_frame_size P((Widget, int, int, int, int)) ;
void ds_add_help(Widget, char *);
void ds_beep(Display *);
void ds_get_geometry_size(char *, int *, int *);
void ds_get_frame_size(Widget, int *, int *, int *, int *);
void ds_put_resource(XrmDatabase *, char *, char *, char *);
void ds_save_cmdline(Display *, Window, int, char **);
void ds_set_choice_value(Widget, int);
void ds_set_frame_size(Widget, int, int, int, int);
XrmDatabase ds_load_resources P((Display *)) ;
XrmDatabase ds_load_resources(Display *);
#endif /*_ds_xlib_h*/