Debian Codegraph @

src/platform.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
6
7
8 #include "config.h" // for "boolean"
9
10
11 // Amiga
12 #ifdef _AMIGA
13 #define PLATFORM_VERSION "Ported to AmigaOS by Christoph Mammitzsch."
14 #include "_amiga.h"
15 #endif
16
17 // DOS, OS/2 and Windows
18 #if defined(__DJGPP__) || defined(__OS2__) || defined(__Windows__) || defined(WIN32) || defined(_WIN32) || defined(__WIN32__) || defined(_WIN64) || defined(__MINGW32__) || defined(__MINGW64__)
19 #define PLATFORM_VERSION "DOS/OS2/Win32/Win64 version. Compiled by Dirk Hoepfner"
20 #include "_dos.h"
21 #endif
22
23 // RISC OS
24 #ifdef __riscos__
25 #define PLATFORM_VERSION "RISC OS version."
26 #include "_riscos.h"
27 #endif
28
29 // add further platform files here
30
31 // Unix/Linux/others (also works on newer versions of Windows)
32 #ifndef PLATFORM_VERSION
33 #define PLATFORM_VERSION "Platform independent version."
34 #include "_std.h"
35 #endif
36
37
38 // convert UNIX-style path name to local platform style path name and decide
39 // whether path is absolute or relative. p points to the terminated input
40 // string, to be overwritten with the terminated output string.
41 // there is enough space allocated for the output string to be _one_(1!) byte
42 // longer than the input string!
43 extern void platform_convert_path(boolean *is_absolute, char *p);
44
45 // set or change library path
46 extern void platform_set_lib_path(const char new_path[]);
47
48 // stuff shared by some, but not all platforms:
49 #if PLATFORM_USE_ENV_VAR
50
51 // function to setup pointer to library tree from env var
52 extern void platform_read_env_var(void);
53
54 #endif