projects
/
open-adventure.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix a prototype.
[open-adventure.git]
/
misc.c
diff --git
a/misc.c
b/misc.c
index 6f4aa499a49f4432166c744f8b49ccf430c42da9..63cabf7c07bb340dc831790c72e6fdf43d64f2c3 100644
(file)
--- a/
misc.c
+++ b/
misc.c
@@
-121,7
+121,7
@@
void speak(const char* msg, ...)
va_end(ap);
}
va_end(ap);
}
-void sspeak(const
long
msg, ...)
+void sspeak(const
int
msg, ...)
{
va_list ap;
va_start(ap, msg);
{
va_list ap;
va_start(ap, msg);
@@
-200,7
+200,7
@@
static int word_count(char* str)
return (count);
}
return (count);
}
-static char* get_input()
+static char* get_input(
void
)
{
// Set up the prompt
char input_prompt[] = "> ";
{
// Set up the prompt
char input_prompt[] = "> ";
@@
-238,7
+238,7
@@
static char* get_input()
return (input);
}
return (input);
}
-bool silent_yes()
+bool silent_yes(
void
)
{
bool outcome = false;
{
bool outcome = false;
@@
-402,7
+402,7
@@
static int get_special_vocab_id(const char* word)
return (WORD_NOT_FOUND);
}
return (WORD_NOT_FOUND);
}
-static void get_vocab_metadata(const char* word,
long
* id, enum wordtype* type)
+static void get_vocab_metadata(const char* word,
vocab_t
* id, enum wordtype* type)
{
/* Check for an empty string */
if (strncmp(word, "", sizeof("")) == 0) {
{
/* Check for an empty string */
if (strncmp(word, "", sizeof("")) == 0) {
@@
-411,7
+411,7
@@
static void get_vocab_metadata(const char* word, long* id, enum wordtype* type)
return;
}
return;
}
-
long
ref_num;
+
vocab_t
ref_num;
ref_num = get_motion_vocab_id(word);
if (ref_num != WORD_NOT_FOUND) {
ref_num = get_motion_vocab_id(word);
if (ref_num != WORD_NOT_FOUND) {
@@
-535,7
+535,7
@@
void move(obj_t object, loc_t where)
* pick up objects which are not at any loc, since carry wants to
* remove objects from game.atloc chains. */
{
* pick up objects which are not at any loc, since carry wants to
* remove objects from game.atloc chains. */
{
- lo
ng
from;
+ lo
c_t
from;
if (object > NOBJECTS)
from = game.fixed[object - NOBJECTS];
if (object > NOBJECTS)
from = game.fixed[object - NOBJECTS];
@@
-547,7
+547,7
@@
void move(obj_t object, loc_t where)
drop(object, where);
}
drop(object, where);
}
-lo
ng
put(obj_t object, loc_t where, long pval)
+lo
c_t
put(obj_t object, loc_t where, long pval)
/* put() is the same as move(), except it returns a value used to set up the
* negated game.prop values for the repository objects. */
{
/* put() is the same as move(), except it returns a value used to set up the
* negated game.prop values for the repository objects. */
{