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

@@ -38,14 +38,6 @@
#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 */
/* Location ops for ds_position_popup(). */
enum ds_location_op {
@@ -58,12 +50,12 @@ enum ds_location_op {
DS_POPUP_CENTERED /* Center popup within baseframe */
} ;
int ds_position_popup P((Widget, Widget, enum ds_location_op)) ;
int ds_force_popup_on_screen P((Widget, int *, int *)) ;
int ds_position_popup(Widget, Widget, enum ds_location_op);
int ds_force_popup_on_screen(Widget, int *, int *);
void ds_get_screen_size P((Widget, int *, int *)) ;
void ds_get_screen_size(Widget, int *, int *);
void _DtGenericMapWindow P((Widget shell, Widget parent ));
void _DtChildPosition P((Widget w, Widget parent, Position *newX, Position *newY));
void _DtGenericMapWindow(Widget shell, Widget parent);
void _DtChildPosition(Widget w, Widget parent, Position *newX, Position *newY);
#endif /*!_ds_popup_h*/