From: Eric S. Raymond Date: Wed, 1 Mar 2023 18:04:53 +0000 (-0500) Subject: Address Gitlab isse #62: Comment typos. X-Git-Tag: 1.14~20 X-Git-Url: https://jxself.org/git/?a=commitdiff_plain;h=94e7cc65050ddfd04a8a1606f8899c7e5be496e8;p=open-adventure.git Address Gitlab isse #62: Comment typos. --- diff --git a/actions.c b/actions.c index a2105f8..c09331a 100644 --- a/actions.c +++ b/actions.c @@ -1,5 +1,5 @@ /* - * Actions for the duneon-running code. + * Actions for the dungeon-running code. * * Copyright (c) 1977, 2005 by Will Crowther and Don Woods * Copyright (c) 2017 by Eric S. Raymond @@ -929,7 +929,7 @@ static phase_codes_t light(verb_t verb, obj_t obj) } static phase_codes_t listen(void) -/* Listen. Intransitive only. Print stuff based on object sound proprties. */ +/* Listen. Intransitive only. Print stuff based on object sound properties. */ { bool soundlatch = false; vocab_t sound = locations[game.loc].sound; diff --git a/advent.h b/advent.h index a2c1eb0..a68613b 100644 --- a/advent.h +++ b/advent.h @@ -13,7 +13,7 @@ #define LCG_M 1048576L #define LINESIZE 1024 -#define TOKLEN 5 // # sigificant characters in a token */ +#define TOKLEN 5 // # outputting characters in a token */ #define NDWARVES 6 // number of dwarves #define PIRATE NDWARVES // must be NDWARVES-1 when zero-origin #define DALTLC LOC_NUGGET // alternate dwarf location diff --git a/main.c b/main.c index f74bd8f..1bdc64c 100644 --- a/main.c +++ b/main.c @@ -97,7 +97,7 @@ int main(int argc, char *argv[]) } } - /* copy inncation line part after switches */ + /* copy invocation line part after switches */ settings.argc = argc - optind; settings.argv = argv + optind; settings.optind = 0; @@ -139,8 +139,8 @@ int main(int argc, char *argv[]) char *myreadline(const char *prompt) { /* - * This function isbn't required for gameplay, readline() straight - * up would suffice for tat. It's where we interpret command-line + * This function isn't required for gameplay, readline() straight + * up would suffice for that. It's where we interpret command-line * logfiles for testing purposes. */ /* Normal case - no script arguments */ @@ -1048,10 +1048,10 @@ static void listobjects(void) static bool preprocess_command(command_t *command) /* Pre-processes a command input to see if we need to tease out a few specific cases: * - "enter water" or "enter stream": - * wierd specific case that gets the user wet, and then kicks us back to get another command + * weird specific case that gets the user wet, and then kicks us back to get another command * - : * Irregular form of input, but should be allowed. We switch back to form for - * furtherprocessing. + * further processing. * - "grate": * If in location with grate, we move to that grate. If we're in a number of other places, * we move to the entrance. @@ -1222,7 +1222,7 @@ static bool do_command() if (closecheck() ) return true; - /* loop until all words in command are procesed */ + /* loop until all words in command are processed */ while (command.state == PREPROCESSED ) { command.state = PROCESSING; diff --git a/misc.c b/misc.c index 7365fbf..f8aa9de 100644 --- a/misc.c +++ b/misc.c @@ -1,5 +1,5 @@ /* - * I/O and support riutines. + * I/O and support routines. * * Copyright (c) 1977, 2005 by Will Crowther and Don Woods * Copyright (c) 2017 by Eric S. Raymond @@ -411,7 +411,7 @@ static bool is_valid_int(const char *str) if (!*str) return false; // LCOV_EXCL_LINE - // Check for non-digit chars in the rest of the stirng. + // Check for non-digit chars in the rest of the string. while (*str) { if (!isdigit(*str)) return false; @@ -476,7 +476,7 @@ static void get_vocab_metadata(const char* word, vocab_t* id, word_type_t* type) static void tokenize(char* raw, command_t *cmd) { /* - * Be caereful about modifing this. We do not want to nuke the + * Be careful about modifying this. We do not want to nuke the * the speech part or ID from the previous turn. */ memset(&cmd->word[0].raw, '\0', sizeof(cmd->word[0].raw)); diff --git a/saveresume.c b/saveresume.c index b5205d3..25757c4 100644 --- a/saveresume.c +++ b/saveresume.c @@ -143,8 +143,8 @@ int restore(FILE* fp) bool is_valid(struct game_t valgame) { /* Save files can be roughly grouped into three groups: - * With valid, reaceable state, with valid, but unreachable - * state and with invaild state. We check that state is + * With valid, reacheable state, with valid, but unreachable + * state and with invalid state. We check that state is * valid: no states are outside minimal or maximal value */