Skip to content
This repository was archived by the owner on Oct 8, 2024. It is now read-only.

Commit e48ebaf

Browse files
gesslarthefallentree
authored andcommitted
fixing code where no variable type is defined for arrays
1 parent c55e317 commit e48ebaf

File tree

25 files changed

+50
-52
lines changed

25 files changed

+50
-52
lines changed

lib/WWW/cgi/autodoc.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@ string object_summary_line(string arg)
202202

203203
string handle_overview(string part)
204204
{
205-
*tmp;
205+
string *tmp;
206206

207207
string ret = @END
208208
<title>Mudlib Overview</title>

lib/WWW/cgi/mudlist.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,9 +47,9 @@ string main(string pattern)
4747
mapping mudlist = IMUD_D->query_mudlist();
4848
int nummuds = sizeof(mudlist);
4949
string * muds = keys(mudlist);
50-
* data;
50+
mixed * data;
5151
string * matches;
52-
* arg;
52+
mixed * arg;
5353

5454
if ( !pattern )
5555
matches = muds;

lib/cmds/create/addexit.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ private string reverse(string dir) {
1717
}
1818
}
1919

20-
private void main(*args) {
20+
private void main(mixed *args) {
2121
string dir = args[0];
2222
string where = args[1];
2323
string fname;

lib/cmds/create/newroom.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
inherit CMD;
44

5-
private void main(*args) {
5+
private void main(mixed *args) {
66
string fname = args[0];
77

88
if (fname[4..] != ".scr")

lib/cmds/create/scr_command.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ string get_file_name() {
3131
int add_exit(string fname, string dir, string value) {
3232
string text = read_file(fname);
3333
string before, values, after;
34-
*parts;
34+
string *parts;
3535
int i, found;
3636

3737
if (!text) {
@@ -102,7 +102,7 @@ int add_exit(string fname, string dir, string value) {
102102
int change_attribute(string fname, string attr, string what) {
103103
string text = read_file(fname);
104104
string before, after;
105-
*parts;
105+
string *parts;
106106
int i;
107107

108108
if (!text) {
@@ -150,7 +150,7 @@ int change_attribute(string fname, string attr, string what) {
150150

151151
void update(string fname) {
152152
object ob;
153-
*tosave;
153+
object *tosave;
154154

155155
if (ob = find_object(fname)) {
156156
tosave = filter(all_inventory(ob), function(object ob) {

lib/cmds/create/setbrief.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
inherit __DIR__ "scr_command";
44

5-
private void main(*args) {
5+
private void main(mixed *args) {
66
string brief = implode(args[0], " ");
77
string fname;
88

lib/cmds/player/attic/tell.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ private void main(string arg)
9999

100100
if( arg[0] == ';' || arg[0] == ':' )
101101
{
102-
*soul_ret;
102+
mixed *soul_ret;
103103

104104
arg = arg[1..];
105105
soul_ret = SOUL_D->parse_imud_soul(arg);
@@ -151,7 +151,7 @@ private void main(string arg)
151151

152152
if( arg[0] == ':' || arg[0] == ';' )
153153
{
154-
*soul_ret;
154+
mixed *soul_ret;
155155
int tindex;
156156

157157
arg = arg[1..];

lib/cmds/player/messages.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ void update_translations() {
2828
* chooses the second when there is an overlap.
2929
*/
3030
colours = ANSI_D->defaults() + colours;
31-
if (query_shell_ob()->get_variable("ansi"))
31+
if (this_user()->query_shell_ob()->get_variable("ansi"))
3232
translations = ANSI_D->query_translations()[0];
3333
else
3434
translations = ANSI_D->query_translations()[1];
@@ -51,11 +51,11 @@ void set_colour(string which, string what) {
5151
save_me();
5252
}
5353

54-
void query_colour(string which) {
54+
string query_colour(string which) {
5555
return colours[which];
5656
}
5757

58-
*query_colours() {
58+
string *query_colours() {
5959
return keys(colours);
6060
}
6161

lib/contrib/bboard/news_d.c

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -422,7 +422,7 @@ nomask string * get_groups()
422422
// expensive
423423
ret = filter(keys(data), function(string group)
424424
{
425-
*a;
425+
function *a;
426426
string prefix;
427427
function f;
428428
int i = member_array('.', group, 1) - 1;
@@ -443,7 +443,7 @@ nomask string * get_groups()
443443
nomask int query_write_to_group( string group )
444444
{
445445
function f;
446-
*a;
446+
function *a;
447447

448448
string prefix;
449449
int i = member_array('.', group, 1) - 1;
@@ -596,8 +596,8 @@ nomask void change_header( string group, int id, string header )
596596
return;
597597
}
598598

599-
*search_for(string what) {
600-
*ret = ({});
599+
mixed *search_for(string what) {
600+
mixed *ret = ({});
601601

602602
foreach (string group, mapping contents in data) {
603603
foreach (mixed id, class news_msg post in contents) {
@@ -612,8 +612,8 @@ nomask void change_header( string group, int id, string header )
612612
return ret;
613613
}
614614

615-
*search_for_author(string who) {
616-
*ret = ({});
615+
mixed *search_for_author(string who) {
616+
mixed *ret = ({});
617617

618618
foreach (string group, mapping contents in data) {
619619
foreach (mixed id, class news_msg post in contents) {

lib/contrib/bboard/note.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,6 @@ mixed do_note_str_on_obj(string str, object ob) {
77
ob->note(str);
88
}
99

10-
*query_verb_info() {
10+
mixed *query_verb_info() {
1111
return ({({"STR on OBJ"}),({})});
1212
}

0 commit comments

Comments
 (0)