We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 159ddbd commit c86f132Copy full SHA for c86f132
examples/m3_mudlib/master.c
@@ -1,5 +1,7 @@
1
-static object connect (int port)
+// vim: syntax=lpc
2
+private object
3
+connect (int port)
4
{
- return new ("/user.c");
5
+ return new ("/user.c");
6
}
7
examples/m3_mudlib/user.c
@@ -1,13 +1,16 @@
-static void logon()
+private void
+logon()
- write ("Welcome to M3!\nUmm ... but the only thing you can do is 'quit'.\n");
- enable_commands();
- add_action ("cmd_quit", "quit");
+ write("Welcome to M3!\nUmm ... but the only thing you can do is 'quit'.\n");
+ enable_commands();
+ add_action("cmd_quit", "quit");
8
9
-static int cmd_quit (string arg)
10
+private int
11
+cmd_quit (string arg)
12
- write ("Bye!\n");
- destruct (this_object());
13
+ write("Bye!\n");
14
+ destruct(this_object());
15
16
0 commit comments