Skip to content

Commit c86f132

Browse files
committed
Polish code style
1 parent 159ddbd commit c86f132

File tree

2 files changed

+14
-9
lines changed

2 files changed

+14
-9
lines changed

examples/m3_mudlib/master.c

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
1-
static object connect (int port)
1+
// vim: syntax=lpc
2+
private object
3+
connect (int port)
24
{
3-
return new ("/user.c");
5+
return new ("/user.c");
46
}
57

examples/m3_mudlib/user.c

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,16 @@
1-
static void logon()
1+
// vim: syntax=lpc
2+
private void
3+
logon()
24
{
3-
write ("Welcome to M3!\nUmm ... but the only thing you can do is 'quit'.\n");
4-
enable_commands();
5-
add_action ("cmd_quit", "quit");
5+
write("Welcome to M3!\nUmm ... but the only thing you can do is 'quit'.\n");
6+
enable_commands();
7+
add_action("cmd_quit", "quit");
68
}
79

8-
static int cmd_quit (string arg)
10+
private int
11+
cmd_quit (string arg)
912
{
10-
write ("Bye!\n");
11-
destruct (this_object());
13+
write("Bye!\n");
14+
destruct(this_object());
1215
}
1316

0 commit comments

Comments
 (0)