X-Git-Url: https://git.stderr.nl/gitweb?a=blobdiff_plain;f=interpreters%2Ffrotz%2Fglkio.h;h=ef54799324f8d6ee01755e45624e17dd5a80d3db;hb=f5ef90183114ba9429109038b0a9be7f3f90b900;hp=b580d759a7aef4162f04ab5d385844ad0f5a2a25;hpb=b1f1dc50b22b30c4d7176e1ff7c0805e80fe0724;p=projects%2Fchimara%2Fchimara.git diff --git a/interpreters/frotz/glkio.h b/interpreters/frotz/glkio.h index b580d75..ef54799 100644 --- a/interpreters/frotz/glkio.h +++ b/interpreters/frotz/glkio.h @@ -1,3 +1,25 @@ +/****************************************************************************** + * * + * Copyright (C) 2006-2009 by Tor Andersson. * + * * + * This file is part of Gargoyle. * + * * + * Gargoyle is free software; you can redistribute it and/or modify * + * it under the terms of the GNU General Public License as published by * + * the Free Software Foundation; either version 2 of the License, or * + * (at your option) any later version. * + * * + * Gargoyle is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with Gargoyle; if not, write to the Free Software * + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA * + * * + *****************************************************************************/ + /* glkio.h -- make stdio calls use glk i/o instead */ #undef FILE @@ -25,6 +47,8 @@ typedef struct glk_stream_struct FILE; #define fprintf(f,s,a) (glk_put_string_stream(f, a), 0) #undef fputc #define fputc(c, f) (glk_put_char_stream(f, (unsigned char)(c)), 0) +#undef fputwc +#define fputwc(c, f) (glk_put_char_stream_uni(f, (zchar)(c)), 0); #undef fputs #define fputs(s, f) (glk_put_buffer_stream(f, s, strlen(s)), 0) #undef ftell @@ -40,5 +64,5 @@ typedef struct glk_stream_struct FILE; #define SEEK_END seekmode_End FILE *frotzopenprompt(int flag); +FILE *frotzreopen(int flag); FILE *frotzopen(char *filename, int flag); -