Patch non-Gargoyle Glk implementations to support some more functions
[gentoo-interactive-fiction.git] / dev-games / xglk / files / xglk-0.4.11-r1-garglk-extensions.patch
blob22d28fed2b88f58629c13ab9bc317246f2fe8cde
1 Source: dleverton
2 Upstream: Gentoo-specific hack
3 Reason: allows Glk apps to use Gargoyle extensions without breaking
4 compatibility with other Glk libraries
6 --- xglk/xg_fileref.c~ 1999-08-29 21:37:42.000000000 +0100
7 +++ xglk/xg_fileref.c 2009-08-30 19:08:51.000000000 +0100
8 @@ -344,6 +344,11 @@
9 unlink(fref->filename);
12 +char* garglk_fileref_get_name(fileref_t *fref)
14 + return fref->filename;
17 /* This should only be called from startup code. */
18 void glkunix_set_base_file(char *filename)
20 --- xglk/xg_misc.c~ 2009-08-30 19:08:46.000000000 +0100
21 +++ xglk/xg_misc.c 2009-08-30 19:09:43.000000000 +0100
22 @@ -212,4 +212,28 @@
23 return char_toupper_table[ch];
26 +void garglk_set_program_name(const char *name)
30 +void garglk_set_program_info(const char *info)
34 +void garglk_set_story_name(const char *name)
38 +void garglk_set_config(const char *name)
42 +void garglk_set_zcolors(glui32 fg, glui32 bg)
46 +void garglk_set_reversevideo(glui32 reverse)