change custom_compiled() to return BOOL

Also make slight improvements on error messages produced
when custom_compiled() returns an unexpected value.
This commit is contained in:
Landon Curt Noll
2023-08-19 11:56:10 -07:00
parent c705b74e67
commit f2e4f638f6
4 changed files with 22 additions and 16 deletions

View File

@@ -73,7 +73,7 @@ struct custom {
*
* These are the required interfaces. The dummy.c stubs these interfaces too.
*/
E_FUNC int custom_compiled(void); /* return 1 ==> libcustcalc compiled w/CUSTOM defined, else return 0 */
E_FUNC BOOL custom_compiled(void); /* return TRUE if libcustcalc compiled CUSTOM defined, FALSE otherwise */
E_FUNC VALUE custom(char*, int, VALUE**); /* master custom interface */
EXTERN BOOL allow_custom; /* TRUE => custom builtins allowed */
E_FUNC void showcustom(void); /* print custom functions */