mirror of
https://github.com/uffejakobsen/acme.git
synced 2025-02-20 02:29:12 +00:00
git-svn-id: https://svn.code.sf.net/p/acme-crossass/code-0/trunk@7 4df02467-bbd4-4a76-a152-e7ce94205b78
57 lines
1.4 KiB
C
57 lines
1.4 KiB
C
// ACME - a crossassembler for producing 6502/65c02/65816 code.
|
|
// Copyright (C) 1998-2009 Marco Baye
|
|
// Have a look at "acme.c" for further info
|
|
//
|
|
// Platform specific stuff (in this case, for unknown OSes)
|
|
#ifndef platform_H
|
|
#define platform_H
|
|
|
|
|
|
// symbolic constants and macros
|
|
|
|
// called once on program startup (could register exit handler, if needed)
|
|
#define PLATFORM_INIT AnyOS_entry()
|
|
|
|
// convert UNIX-style pathname to AnyOS-style pathname (no change)
|
|
#define PLATFORM_CONVERTPATHCHAR(a) (a)
|
|
|
|
// string containing the prefix for accessing files from the library tree
|
|
#define PLATFORM_LIBPREFIX AnyOS_lib_prefix
|
|
|
|
// setting the created files' types
|
|
#define PLATFORM_SETFILETYPE_APPLE(a)
|
|
#define PLATFORM_SETFILETYPE_CBM(a)
|
|
#define PLATFORM_SETFILETYPE_PLAIN(a)
|
|
#define PLATFORM_SETFILETYPE_TEXT(a)
|
|
|
|
// platform specific message output
|
|
#define PLATFORM_WARNING(a)
|
|
#define PLATFORM_ERROR(a)
|
|
#define PLATFORM_SERIOUS(a)
|
|
|
|
// integer-to-character conversion
|
|
#define PLATFORM_UINT2CHAR(x) \
|
|
do { \
|
|
x ^= x >> 16; \
|
|
x ^= x >> 8; \
|
|
x &= 255; \
|
|
} while (0)
|
|
|
|
// output of platform-specific command line switches
|
|
#define PLATFORM_OPTION_HELP
|
|
|
|
// processing of platform-specific command line switches
|
|
#define PLATFORM_SHORTOPTION_CODE
|
|
#define PLATFORM_LONGOPTION_CODE
|
|
|
|
|
|
// variables
|
|
extern char *AnyOS_lib_prefix; // header string of library tree
|
|
|
|
|
|
// used as PLATFORM_INIT: reads "ACME" environment variable
|
|
extern void AnyOS_entry(void);
|
|
|
|
|
|
#endif
|