mirror of
https://github.com/lcn2/calc.git
synced 2025-08-16 01:03:29 +03:00
improve calc error code system
Changed calc_errno a global int variable so that is may be directly accessed by libcalc users. Further improve help files for help/errno, help/error, help/newerror, help/stoponerror and help/strerror by adding to documentation of the calc error code system as well as libcalc interface where applicable.
This commit is contained in:
1
calc.h
1
calc.h
@@ -222,6 +222,7 @@ EXTERN int abortlevel; /* current level of aborts */
|
||||
EXTERN bool inputwait; /* true if in a terminal input wait */
|
||||
EXTERN VALUE *stack; /* execution stack */
|
||||
EXTERN int dumpnames; /* true => dump names rather than indices */
|
||||
EXTERN int calc_errno; /* global calc_errno value */
|
||||
|
||||
EXTERN char *calcpath; /* $CALCPATH or default */
|
||||
EXTERN char *calcrc; /* $CALCRC or default */
|
||||
|
Reference in New Issue
Block a user