1 2 #ifndef __ROSGLUE_H__ 3 #define __ROSGLUE_H__ 4 5 #ifndef __GNUC__ 6 #define __attribute__(X) 7 // WARNING: When using __attribute__((packed)), also use psh/poppack.h !! 8 #endif 9 10 11 #define printf VfatPrint 12 13 #define alloc vfalloc 14 #define calloc vfcalloc 15 #define free vffree 16 17 18 // extern int interactive, rw, list, verbose, test, write_immed; 19 // extern int atari_format; 20 // extern unsigned n_files; 21 // extern void *mem_queue; 22 23 #define FSCHECK_INTERACTIVE 0x01 24 #define FSCHECK_LIST_FILES 0x02 25 #define FSCHECK_VERBOSE 0x04 26 #define FSCHECK_TEST_READ 0x08 27 #define FSCHECK_READ_WRITE 0x10 28 #define FSCHECK_IMMEDIATE_WRITE 0x20 29 30 extern ULONG FsCheckFlags; 31 extern ULONG FsCheckTotalFiles; 32 extern PVOID FsCheckMemQueue; 33 34 #define interactive (FsCheckFlags & FSCHECK_INTERACTIVE) // Enable interactive mode 35 #define list (FsCheckFlags & FSCHECK_LIST_FILES) // List path names 36 #define verbose (FsCheckFlags & FSCHECK_VERBOSE) // Verbose mode 37 #define test (FsCheckFlags & FSCHECK_TEST_READ) // Test for bad clusters 38 #define rw (FsCheckFlags & FSCHECK_READ_WRITE) // Read-Write (if TRUE) or Read-only mode (if FALSE) 39 #define write_immed (FsCheckFlags & FSCHECK_IMMEDIATE_WRITE) // Write changes to disk immediately 40 41 #define atari_format FALSE 42 43 #define n_files FsCheckTotalFiles 44 #define mem_queue FsCheckMemQueue 45 46 47 #endif /* __ROSGLUE_H__ */ 48