aboutsummaryrefslogtreecommitdiff
path: root/src/codepage.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/codepage.h')
-rw-r--r--src/codepage.h16
1 files changed, 15 insertions, 1 deletions
diff --git a/src/codepage.h b/src/codepage.h
index 64f5868..5da55cb 100644
--- a/src/codepage.h
+++ b/src/codepage.h
@@ -31,6 +31,14 @@
/* ---------------------------------------- INTERFACES
*/
+typedef enum
+{
+ CP_ASCII,
+ CP_ZX81,
+ CP_SPECTRUM,
+ CP_CBM
+} Codepage;
+
/* Codepage options
*/
@@ -45,7 +53,13 @@ CommandStatus CodepageSetOption(int opt, int argc, char *argv[],
/* Converts the passed character into the appropriate codepage value.
Returns zero for unknown/unconvertable characters.
*/
-int CodepageConvert(int code);
+int CodepageConvert(int code);
+
+
+/* Converts from the execution character set into a code from the specified
+ codepage.
+*/
+int CodeFromNative(Codepage page, int code);
#endif