void storeb (zword, zbyte);
void storew (zword, zword);
+void end_of_sound (zword routine);
+
+int completion (const zchar *buffer, zchar *result);
+
+bool is_terminator (zchar);
+void read_string (int max, zchar *buffer);
+bool read_yes_or_no (const char *);
+
+void screen_new_line (void);
/*** returns the current window ***/
Zwindow * curwinrec( void);
extern int direct_call (zword);
-static zword routine = 0;
-
static int next_sample = 0;
static int next_volume = 0;
os_start_sample (number, volume, repeats, eos);
- routine = eos;
playing = TRUE;
}/* start_sample */
* interrupt (which requires extremely careful programming).
*
*/
-void end_of_sound (void)
+void end_of_sound (zword routine)
{
#if defined(DJGPP) && defined(SOUND_SUPPORT)
end_of_sound_flag = 0;
mystring = malloc(len2 * sizeof(char) + 1);
strncpy(mystring, filename, len1 * sizeof(char));
- p = rindex(mystring, '.');
+ p = strrchr(mystring, '.');
if (p != NULL)
*p = '\0';
/* Check if foo.blb is there. */
if ((blorb_fp = fopen(mystring, "rb")) == NULL) {
- p = rindex(mystring, '.');
+ p = strrchr(mystring, '.');
if (p != NULL)
*p = '\0';
strncat(mystring, EXT_BLORB3, len2 * sizeof(char));
bool foreDefault, backDefault, backTransparent;
} SF_textsetting;
-SF_textsetting * sf_curtextsetting();
+SF_textsetting * sf_curtextsetting(void);
void sf_writeglyph( SF_glyph *g);
void sf_initvideo( int w, int h, int full);
-int sf_initsound();
+int sf_initsound(void);
-void sf_cleanup_all();
+void sf_initfonts(void);
+
+void sf_cleanup_all(void);
void sf_regcleanfunc( void *f, const char *nam);
#define CLEANREG( f) sf_regcleanfunc( (void *)f, #f)
IDS_RECORD_FILTER, IDS_RECORD_TITLE, IDS_PLAYBACK_TITLE,
IDS_AUX_FILTER, IDS_SAVE_AUX_TITLE, IDS_LOAD_AUX_TITLE };
-bool sf_IsInfocomV6();
+bool sf_IsInfocomV6(void);
ulong sf_blend( int a, ulong s, ulong d);
extern int (*sf_osdialog)( bool ex, const char *def, const char *filt, const char *tit, char **res,
ulong *sbuf, int sbp, int ew, int eh, int isfull);
+void sf_checksound(void);
+
+void sf_installhandlers(void);
+
+void sf_pushtextsettings(void);
+void sf_poptextsettings(void);
+
+void sf_chline( int x, int y, ulong c, int n);
+void sf_cvline( int x, int y, ulong c, int n);
+void sf_flushdisplay(void);
+void sf_getclip( int *x, int *y, int *w, int *h);
+void sf_rect( unsigned long color, int x, int y, int w, int h);
+void sf_setclip( int x, int y, int w, int h);
+void sf_wpixel( int x, int y, ulong c);
+
+void sf_InitProfile( const char *fn);
+void sf_FinishProfile(void);
+
#ifdef WIN32
#define OS_PATHSEP ';'
#else