diff options
Diffstat (limited to 'net/dgd-lpmud/files/patch-2.4.5-dgd-sys-driver.c')
-rw-r--r-- | net/dgd-lpmud/files/patch-2.4.5-dgd-sys-driver.c | 103 |
1 files changed, 103 insertions, 0 deletions
diff --git a/net/dgd-lpmud/files/patch-2.4.5-dgd-sys-driver.c b/net/dgd-lpmud/files/patch-2.4.5-dgd-sys-driver.c new file mode 100644 index 000000000000..fc3d46f5d99f --- /dev/null +++ b/net/dgd-lpmud/files/patch-2.4.5-dgd-sys-driver.c @@ -0,0 +1,103 @@ +$FreeBSD$ + +--- 2.4.5/dgd/sys/driver.c.orig 1996-11-28 14:23:11.000000000 -0800 ++++ 2.4.5/dgd/sys/driver.c 2009-07-05 19:04:50.000000000 -0700 +@@ -143,12 +143,40 @@ + } + + /* ++ * NAME: touch() ++ * DESCRIPTION: determine whether to preserve untouched status. ++ */ ++static int touch(object obj, string function) ++{ ++ return 0; ++} ++ ++/* + * NAME: inherit_program() + * DESCRIPTION: get an object to inherit + */ +-static object inherit_program(string file, string path) ++static object inherit_program(string file, string path, int priv) ++{ ++ object obj; ++ ++ file = path_object(path); ++ obj = find_object(file); ++ if (obj == 0) { ++ obj = compile_object(file); ++ } ++ return obj; ++} ++ ++/* ++ * NAME: include_file() ++ * DESCRIPTION: translate an include path ++ */ ++static mixed include_file(string file, string path) + { +- return call_object(path); ++ if (path[0] != '/') { ++ return file + "/../" + path; ++ } ++ return path; + } + + /* +@@ -183,7 +211,7 @@ + * NAME: telnet_connect() + * DESCRIPTION: return a player object + */ +-static object telnet_connect() ++static object telnet_connect(int port) + { + object user, player; + +@@ -204,7 +232,7 @@ + * NAME: binary_connect() + * DESCRIPTION: return another player object (just to test) + */ +-static object binary_connect() ++static object binary_connect(int port) + { + object user, player; + +@@ -225,7 +253,7 @@ + * NAME: runtime_error() + * DESCRIPTION: log a runtime error + */ +-static void runtime_error(string error, int caught) ++static void runtime_error(string error, int caught, int ticks) + { + mixed **trace; + string progname, objname, function, str; +@@ -315,6 +343,15 @@ + } + + /* ++ * NAME: atomic_error() ++ * DESCRIPTION: deal with an atomic error ++ */ ++static void atomic_error(string error, int atom, int ticks) ++{ ++ send_message(error + "\n"); ++} ++ ++/* + * NAME: interrupt() + * DESCRIPTION: deal with a kill signal + */ +@@ -377,3 +414,12 @@ + { + return 0; /* No. */ + } ++ ++/* ++ * NAME: object_type() ++ * DESCRIPTION: translate the object path used in a type declaration ++ */ ++static string object_type(string file, string type) ++{ ++ return type; ++} |