Debian Codegraph @

src/_dos.h

raw symbols SCIP
1 // ACME - a crossassembler for producing 6502/65c02/65816/65ce02 code.
2 // Copyright (C) 1998-2025 Marco Baye
3 // Have a look at "acme.c" for further info
4 //
5 // Platform specific stuff (in this case, for DOS, OS/2 and Windows)
6 #ifndef platform_H
7 #define platform_H
8
9
10 // symbolic constants and macros
11
12 // called once on program startup (could register exit handler, if needed)
13 #define PLATFORM_INIT platform_read_env_var()
14
15 // directory separators for search paths
16 #define DIRECTORY_SEPARATOR '\\'
17 #define ALTERNATIVE_DIR_SEP '\\' // dummy
18
19 // string containing the prefix for accessing files from the library tree
20 // (use "--libpath" cli switch or "ACME" environment variable to set this)
21 #define PLATFORM_LIBPREFIX NULL
22 #define PLATFORM_USE_ENV_VAR 1 // library access needs "ACME" environment variable
23
24 // setting file types of created files
25 #define PLATFORM_SETFILETYPE_APPLE(a)
26 #define PLATFORM_SETFILETYPE_CBM(a)
27 #define PLATFORM_SETFILETYPE_PLAIN(a)
28 #define PLATFORM_SETFILETYPE_TEXT(a)
29
30 // platform specific message output
31 #define PLATFORM_INFO(a)
32 #define PLATFORM_WARNING(a)
33 #define PLATFORM_ERROR(a)
34 #define PLATFORM_SERIOUS(a)
35
36 // integer-to-character conversion
37 #define PLATFORM_UINT2CHAR(x) \
38 do { \
39 x ^= x >> 16; \
40 x ^= x >> 8; \
41 x &= 255; \
42 } while (0)
43
44 // output of platform-specific command line switches
45 #define PLATFORM_OPTION_HELP
46
47 // processing of platform-specific command line switches
48 #define PLATFORM_SHORTOPTION_CODE
49 #define PLATFORM_LONGOPTION_CODE
50
51
52 #endif