mirror of
git://git.code.sf.net/p/cdesktopenv/code
synced 2025-03-09 15:50:02 +00:00
dtcalc: fix implicit-function-declaration warnings
This commit is contained in:
parent
5a0e223ea1
commit
36c9476a74
2 changed files with 8 additions and 4 deletions
|
@ -42,6 +42,9 @@
|
|||
#endif
|
||||
#include "calctool.h"
|
||||
|
||||
int matherr(struct exception *exc); // calctool.c
|
||||
|
||||
|
||||
extern char *base_str[] ; /* Strings for each base value. */
|
||||
extern char *dtype_str[] ; /* Strings for each display mode value. */
|
||||
extern char *mode_str[] ; /* Strings for each mode value. */
|
||||
|
|
|
@ -112,6 +112,7 @@ extern XmWidgetExtData _XmGetWidgetExtData(
|
|||
#include "ds_popup.h"
|
||||
#include "ds_xlib.h"
|
||||
|
||||
Pixmap _DtGetMask(Screen *screen, char *image_name); // DtSvc/DtUtil2/XmWrap.c
|
||||
|
||||
ApplicationArgs application_args;
|
||||
XVars X;
|
||||
|
@ -3215,9 +3216,9 @@ write_cf_value(Widget widget, XtPointer client_data, XtPointer call_data)
|
|||
if ((strcmp(X->cfval, "") == 0) || X->cfval[0] < '0' || X->cfval[0] > '9' ||
|
||||
X->cfno < 0 || X->cfno > 9)
|
||||
{
|
||||
sprintf(str, "%s", (X->CFtype == M_CON) ? vstrs[(int) V_LCON]
|
||||
snprintf(str, MAXLINE, "%s", (X->CFtype == M_CON) ? vstrs[(int) V_LCON]
|
||||
: vstrs[(int) V_LFUN]) ;
|
||||
sprintf(message, "%s\n%s", str, vstrs[(int) V_RANGE]) ;
|
||||
snprintf(message, MAXLINE, "%s\n%s", str, vstrs[(int) V_RANGE]) ;
|
||||
do_continue_notice(X->CFframe, message) ;
|
||||
return ;
|
||||
}
|
||||
|
@ -3234,10 +3235,10 @@ write_cf_value(Widget widget, XtPointer client_data, XtPointer call_data)
|
|||
}
|
||||
if (X->cfexists)
|
||||
{
|
||||
sprintf(str, mess[(int) MESS_CON],
|
||||
snprintf(str, MAXLINE, mess[(int) MESS_CON],
|
||||
(X->CFtype == M_CON) ? vstrs[(int) V_UCON]
|
||||
: vstrs[(int) V_UFUN], X->cfno) ;
|
||||
sprintf(message, "%s\n%s", str, vstrs[(int) V_OWRITE]) ;
|
||||
snprintf(message, MAXLINE, "%s\n%s", str, vstrs[(int) V_OWRITE]) ;
|
||||
XtUnmanageChild(X->CFframe) ;
|
||||
do_confirm_notice(X->CFframe, message) ;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue