see: https://www.securecoding.cert.org/confluence/display/c/DCL37-C.+Do+not+declare+or+define+a+reserved+identifier
-#ifndef TIME_H_
-#define TIME_H_
+#ifndef TIME_H
+#define TIME_H
void set_time(BYTE hrs, BYTE min, BYTE sec);
char *get_time(void);
#endif
#include "general.h"
-#ifndef CONFIG_H_
-#define CONFIG_H_
+#ifndef CONFIG_H
+#define CONFIG_H
#define MAX_ITEMS 32
#define MAX_ITEM_NAME_LENGTH 9
struct credits_t credits[MAX_CREDIT_ITEMS];
};
-#ifndef _IS_CONFIG_C
+#ifndef IS_CONFIG_C
extern struct status_array_t status;
extern struct credits_array_t credits;
#endif
void save_items(void);
void save_credits(void);
-#endif /*CONFIG_H_*/
+#endif /* CONFIG_H */
-#ifndef CREDIT_MANAGER_H_
-#define CREDIT_MANAGER_H_
+#ifndef CREDIT_MANAGER_H
+#define CREDIT_MANAGER_H
+
struct credits_t *find_credit(char *name);
void deposit_credit(char *input);
void credit_manager(void);
-#endif
+
+#endif /* CREDIT_MANAGER_H */
-#ifndef GENERAL_H_
-#define GENERAL_H_
+#ifndef GENERAL_H
+#define GENERAL_H
#include <peekpoke.h>
#include <stdint.h>
#define max(a, b) ((a) > (b) ? (a) : (b))
#define min(a, b) ((a) > (b) ? (b) : (a))
-#endif /*GENERAL_H_*/
+#endif /* GENERAL_H */
-#ifndef _GLOBALS_H_
-#define _GLOBALS_H_
+#ifndef GLOBALS_H
+#define GLOBALS_H
#include <stdint.h>
-#ifdef _IS_GLOBALS_C
+#ifdef IS_GLOBALS_C
#define GLOBAL
#else
#define GLOBAL extern
GLOBAL uint8_t printing;
-#endif // _GLOBALS_H_
+#endif /* GLOBALS_H */
-#ifndef _KASSE_H
-#define _KASSE_H
+#ifndef KASSE_H
+#define KASSE_H
void print_the_buffer(void);
-#ifndef _PRINT_H
-#define _PRINT_H
+#ifndef PRINT_H
+#define PRINT_H
void init_log(void);
void print_the_buffer(void);
void log_file(const char *s);
void log_flush(void);
-#ifdef _IS_PRINT
+#ifdef IS_PRINT_C
char print_buffer[80 + 2 + 1];
unsigned char log_num = 0;
#else
-#ifndef __VDC_PATCH_CHARSET_H_
-#define __VDC_PATCH_CHARSET_H_
+#ifndef VDC_PATCH_CHARSET_H
+#define VDC_PATCH_CHARSET_H
void vdc_patch_charset(void);
#define uUML "\xA9"
#define szLIG "\xBF"
-#endif // __VDC_PATCH_CHARSET_H_
+#endif /* VDC_PATCH_CHARSET_H */
-#ifndef __VDC_UTIL_H_
-#define __VDC_UTIL_H_
+#ifndef VDC_UTIL_H
+#define VDC_UTIL_H
extern void __fastcall__ vdc_load_thinfont(void);
extern unsigned char __fastcall__ vdc_read_reg(unsigned char reg);
unsigned n);
extern void __fastcall__ vdc_load_thinfont(void);
-#endif // __VDC_UTIL_H_
+#endif /* VDC_UTIL_H */
* See LICENSE for license information
*
*/
-#define _IS_CONFIG_C
+#define IS_CONFIG_C
#include <stdlib.h>
#include <conio.h>
-#define _IS_GLOBALS_C
+#define IS_GLOBALS_C
#include "globals.h"
void init_globals(void) {
#include <cbm.h>
#include "general.h"
-#define _IS_PRINT
+#define IS_PRINT_C
#include "print.h"
#include "globals.h"