projects
/
open-adventure.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add INSTALL.adoc and templates/*.tpl to make recipes.
[open-adventure.git]
/
misc.c
diff --git
a/misc.c
b/misc.c
index e64cad077d8d94c454bdf07db19b6e4fb99cad2b..ba2e2afffc0c637f8ec37aa2fef701035ec82cad 100644
(file)
--- a/
misc.c
+++ b/
misc.c
@@
-93,6
+93,7
@@
static void vspeak(const char* msg, bool blank, va_list ap)
}
}
}
}
+ // LCOV_EXCL_START - doesn't occur in test suite.
/* Version specifier */
if (msg[i] == 'V') {
strcpy(renderp, VERSION);
/* Version specifier */
if (msg[i] == 'V') {
strcpy(renderp, VERSION);
@@
-100,6
+101,7
@@
static void vspeak(const char* msg, bool blank, va_list ap)
renderp += len;
size -= len;
}
renderp += len;
size -= len;
}
+ // LCOV_EXCL_STOP
}
}
*renderp = 0;
}
}
*renderp = 0;
@@
-394,9
+396,10
@@
static bool is_valid_int(const char *str)
if (*str == '-')
++str;
if (*str == '-')
++str;
- // Handle empty string or just "-"
+ // Handle empty string or just "-". Should never reach this
+ // point, because this is only used with transitive verbs.
if (!*str)
if (!*str)
- return false;
+ return false;
// LCOV_EXCL_LINE
// Check for non-digit chars in the rest of the stirng.
while (*str)
// Check for non-digit chars in the rest of the stirng.
while (*str)
@@
-653,7
+656,7
@@
void set_seed(long seedval)
game.zzword[5] = '\0';
}
game.zzword[5] = '\0';
}
-unsigned long get_next_lcg_value(void)
+
static
unsigned long get_next_lcg_value(void)
/* Return the LCG's current value, and then iterate it. */
{
unsigned long old_x = game.lcg_x;
/* Return the LCG's current value, and then iterate it. */
{
unsigned long old_x = game.lcg_x;