From: David Griffith Date: Thu, 25 May 2023 20:15:23 +0000 (-0700) Subject: Added function name comment to end of each function in src/common/. X-Git-Url: https://scope-eye.net/git/?a=commitdiff_plain;h=91392378096a8933280a19567a1f37ce7d6b4788;p=liskon_frotz.git Added function name comment to end of each function in src/common/. --- diff --git a/src/common/buffer.c b/src/common/buffer.c index e3ccd29..3dc0c17 100644 --- a/src/common/buffer.c +++ b/src/common/buffer.c @@ -43,7 +43,7 @@ void init_buffer(void) memset(buffer, 0, sizeof (zchar) * TEXT_BUFFER_SIZE); bufpos = 0; prev_c = 0; -} +} /* init_buffer */ /* diff --git a/src/common/err.c b/src/common/err.c index 1ca38bc..98a2bb0 100644 --- a/src/common/err.c +++ b/src/common/err.c @@ -81,7 +81,7 @@ void init_err(void) /* Initialize the counters. */ for (i = 0; i < ERR_NUM_ERRORS; i++) error_count[i] = 0; -} +} /* init_err */ /* diff --git a/src/common/fastmem.c b/src/common/fastmem.c index c73ef98..fbc5cb4 100644 --- a/src/common/fastmem.c +++ b/src/common/fastmem.c @@ -103,7 +103,7 @@ void huge *zrealloc(void huge *p, long size, size_t old_size) _fmemcpy(q, p, size < old_size ? size : old_size); zfree(p); return q; -} +} /* zrealloc */ #endif /* __WATCOMC__ */ @@ -250,7 +250,7 @@ void init_header(void) /* Claim to support Z-machine Standard 1.1. */ z_header.standard_high = 1; z_header.standard_low = 1; -} +} /* init_header */ void init_setup(void) @@ -271,7 +271,7 @@ void init_setup(void) f_setup.story_path = NULL; f_setup.zcode_path = NULL; f_setup.restricted_path = NULL; -} +} /* init_setup */ /* diff --git a/src/common/input.c b/src/common/input.c index 8605269..8c41852 100644 --- a/src/common/input.c +++ b/src/common/input.c @@ -340,4 +340,4 @@ static bool truncate_question_mark(void) if (story_id == SUSPECT) return TRUE; return FALSE; -} +} /* truncate_question_mark */ diff --git a/src/common/math.c b/src/common/math.c index 2fb103e..cb78747 100644 --- a/src/common/math.c +++ b/src/common/math.c @@ -342,4 +342,4 @@ short s16(zword z) { if ((sz > 0 ) && (sz > 32767)) sz = - (65536 - sz ); return sz; -} +} /* s16 */ diff --git a/src/common/missing.c b/src/common/missing.c index 6324847..4a011cc 100644 --- a/src/common/missing.c +++ b/src/common/missing.c @@ -43,7 +43,7 @@ void *my_memmove(void *dest, const void *src, size_t n) while(n--) *d++=*s++; return dest; -} +} /* my_memmove */ #endif /* NO_MEMMOVE */ @@ -67,7 +67,7 @@ char *my_strdup(const char *src) *p++ = *src++; *p = '\0'; return str; -} +} /* my_strdup */ char *my_strndup(const char *src, size_t n) { @@ -84,5 +84,5 @@ char *my_strndup(const char *src, size_t n) } *p = '\0'; return str; -} +} /* my_strndup */ #endif /* NO_STRDUP */ diff --git a/src/common/process.c b/src/common/process.c index cc899f3..3a3d4ef 100644 --- a/src/common/process.c +++ b/src/common/process.c @@ -179,7 +179,7 @@ void (*ext_opcodes[0x1d])(void) = { void init_process(void) { finished = 0; -} +} /* init_process */ /* @@ -584,7 +584,7 @@ void z_catch(void) #else store(frame_count); #endif -} /* z_catch */ +} /* z_catch */ /* diff --git a/src/common/quetzal.c b/src/common/quetzal.c index 135271b..b273150 100644 --- a/src/common/quetzal.c +++ b/src/common/quetzal.c @@ -94,7 +94,7 @@ static bool read_word(FILE * f, zword * result) *result = ((zword) a << 8) | (zword) b; return TRUE; -} +} /* read_word */ /* Read one long from file; return TRUE if OK. */ @@ -121,7 +121,7 @@ static bool read_long(FILE * f, zlong * result) ((zlong) c << 8) | (zlong) d; return TRUE; -} +} /* read_long */ /* @@ -429,7 +429,7 @@ zword restore_quetzal(FILE * svf, FILE * stf) ("error: no valid memory (`CMem' or `UMem') chunk in file.\n"); return (progress == GOT_ALL ? 2 : fatal); -} +} /* restore_quetzal */ /* @@ -596,4 +596,4 @@ zword save_quetzal(FILE * svf, FILE * stf) /* After all that, still nothing went wrong! */ return 1; -} +} /* save_quetzal */ diff --git a/src/common/screen.c b/src/common/screen.c index 78c8a30..a7e9904 100644 --- a/src/common/screen.c +++ b/src/common/screen.c @@ -55,7 +55,7 @@ static Zwindow wp[8], *cwp = wp; Zwindow *curwinrec() { return cwp; -} +} /* curwinrec */ /* @@ -177,7 +177,7 @@ static bool amiga_screen_model (void) } } return FALSE; -}/* amiga_screen_model */ +} /* amiga_screen_model */ /* @@ -1947,4 +1947,4 @@ void reset_window(void) { set_window(0); new_line(); -} +} /* reset_window */ diff --git a/src/common/sound.c b/src/common/sound.c index f6020a3..986499a 100644 --- a/src/common/sound.c +++ b/src/common/sound.c @@ -235,5 +235,5 @@ void z_sound_effect(void) if (number == 1 || number == 2) os_beep(number); return; -} +} /* z_sound_effect */ #endif