Updated interpreters
[projects/chimara/chimara.git] / interpreters / frotz / buffer.c
index f3a721ecba09e32d73163379c6fd67de9e348e9d..bff9572ffd8c677aac651ceaef53751ebd624c8a 100644 (file)
@@ -27,6 +27,7 @@ extern void stream_new_line (void);
 
 static zchar buffer[TEXT_BUFFER_SIZE];
 static int bufpos = 0;
+static bool locked = FALSE;
 
 static zchar prev_c = 0;
 
@@ -39,7 +40,6 @@ static zchar prev_c = 0;
 
 void flush_buffer (void)
 {
-    static bool locked = FALSE;
 
     /* Make sure we stop when flush_buffer is called from flush_buffer.
        Note that this is difficult to avoid as we might print a newline
@@ -149,5 +149,6 @@ void init_buffer(void)
     memset(buffer, 0, sizeof (zchar) * TEXT_BUFFER_SIZE);
     bufpos = 0;
     prev_c = 0;
+    locked = FALSE;
 }