comparison minijss/jss.c @ 2586:9807ae37ad69

Require stdbool.h, we require C11 now.
author Matti Hamalainen <ccr@tnsp.org>
date Thu, 08 Dec 2022 15:59:22 +0200
parents aa3738b121d1
children
comparison
equal deleted inserted replaced
2585:ef6c826c5b7a 2586:9807ae37ad69
8 8
9 9
10 /* Memory and error handling functions 10 /* Memory and error handling functions
11 */ 11 */
12 12
13 BOOL jssWarningIsFatal, jssErrorIsFatal; 13 bool jssWarningIsFatal, jssErrorIsFatal;
14 14
15 #ifndef JSS_LIGHT 15 #ifndef JSS_LIGHT
16 16
17 void (*jssError) (int code, const char *filename, int linen, const char *fmt, ...); 17 void (*jssError) (int code, const char *filename, int linen, const char *fmt, ...);
18 void (*jssWarning) (int code, const char *filename, int linen, const char *fmt, ...); 18 void (*jssWarning) (int code, const char *filename, int linen, const char *fmt, ...);
58 */ 58 */
59 int jssInit(void) 59 int jssInit(void)
60 { 60 {
61 // Error handling 61 // Error handling
62 #ifndef JSS_LIGHT 62 #ifndef JSS_LIGHT
63 jssWarningIsFatal = FALSE; 63 jssWarningIsFatal = false;
64 jssErrorIsFatal = TRUE; 64 jssErrorIsFatal = true;
65 65
66 jssError = jssDefaultError; 66 jssError = jssDefaultError;
67 jssWarning = jssDefaultWarning; 67 jssWarning = jssDefaultWarning;
68 #endif 68 #endif
69 69