From e8c235709f2f1cb271aa5f9efd43abd7f29c51a4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fredrik=20H=C3=BCbinette=20=28Hubbe=29?= <hubbe@hubbe.net> Date: Fri, 21 Jun 1996 20:17:00 +0200 Subject: [PATCH] new efuns Rev: doc/builtin/_verify_internals:1.1 Rev: doc/builtin/call_out:1.2(DEAD) Rev: doc/builtin/call_out_info:1.3(DEAD) Rev: doc/builtin/find_call_out:1.2(DEAD) Rev: doc/builtin/glob:1.1 Rev: doc/builtin/localtime:1.1 Rev: doc/builtin/remove_call_out:1.2(DEAD) --- doc/builtin/_verify_internals | 13 +++++++++++++ doc/builtin/call_out | 12 ------------ doc/builtin/call_out_info | 22 ---------------------- doc/builtin/find_call_out | 13 ------------- doc/builtin/glob | 17 +++++++++++++++++ doc/builtin/localtime | 29 +++++++++++++++++++++++++++++ doc/builtin/remove_call_out | 14 -------------- 7 files changed, 59 insertions(+), 61 deletions(-) create mode 100644 doc/builtin/_verify_internals delete mode 100644 doc/builtin/call_out delete mode 100644 doc/builtin/call_out_info delete mode 100644 doc/builtin/find_call_out create mode 100644 doc/builtin/glob create mode 100644 doc/builtin/localtime delete mode 100644 doc/builtin/remove_call_out diff --git a/doc/builtin/_verify_internals b/doc/builtin/_verify_internals new file mode 100644 index 0000000000..b1793ffed5 --- /dev/null +++ b/doc/builtin/_verify_internals @@ -0,0 +1,13 @@ +NAME + _verify_internals - check uLPC internals + +SYNTAX + void _verify_internals(); + +DESCRIPTION + This function goes through most of the internal uLPC structures and + generates a fatal error if one of them is found to be out of order. + It is only used for debugging. + +KEYWORDS + debugging diff --git a/doc/builtin/call_out b/doc/builtin/call_out deleted file mode 100644 index 6eccf4ad52..0000000000 --- a/doc/builtin/call_out +++ /dev/null @@ -1,12 +0,0 @@ -NAME - call_out - make a delayed call to a function - -SYNTAX - void call_out(function f, int delay, mixed ... args); - -DESCRIPTION - Call_out places a call to the function f with the argument args - in a queue to be called in about delay seconds. - -SEE ALSO - remove_call_out, find_call_out, call_out_info diff --git a/doc/builtin/call_out_info b/doc/builtin/call_out_info deleted file mode 100644 index 1b20ed3962..0000000000 --- a/doc/builtin/call_out_info +++ /dev/null @@ -1,22 +0,0 @@ -NAME - call_out_info - get info about all call outs - -SYNTAX - mixed **call_out_info(); - -DESCRIPTION - This function returns an array with one entry for each entry in the - call out queue. The first in the queue will be in index 0. Each index - contains an array that looks like this: - - ({ - time_left, /* an int */ - caller, /* the object that made the call out */ - function, /* the function to be called */ - arg1, /* the first argument, if any */ - arg2, /* the second argument, if any */ - ... /* and so on... */ - }) - -SEE ALSO - call_out, find_call_out, remove_call_out diff --git a/doc/builtin/find_call_out b/doc/builtin/find_call_out deleted file mode 100644 index 39e39cc456..0000000000 --- a/doc/builtin/find_call_out +++ /dev/null @@ -1,13 +0,0 @@ -NAME - find_call_out - find a call out in the queue - -SYNTAX - int find_call_out(function f); - -DESCRIPTION - This function searches the call out queue, and returns the time left - to this call out will be done in seconds. If no call is found, - zero_type(find_call_out(f)) will return 1. - -SEE ALSO - call_out, remove_call_out, call_out_info diff --git a/doc/builtin/glob b/doc/builtin/glob new file mode 100644 index 0000000000..a820278ff3 --- /dev/null +++ b/doc/builtin/glob @@ -0,0 +1,17 @@ +NAME + glob - match strings against globs + +SYNTAX + int glob(string glob, string str); + or + string *glob(string glob, string *arr); + +DESCRIPTION + This function matches "globs". A in the glob string a question sign + matches any character and an asterisk matches any string. When + given two strings as argument a true/false value is returned + which reflects if the 'str' matches 'glob'. When given an array as + second argument, an array containing all matching strings is returned. + +SEE ALSO + sscanf, regexp diff --git a/doc/builtin/localtime b/doc/builtin/localtime new file mode 100644 index 0000000000..99f5c20b01 --- /dev/null +++ b/doc/builtin/localtime @@ -0,0 +1,29 @@ +NAME + localtime - break down time() into intelligible components + +SYNTAX + mapping(string:int) localtime(int time); + +DESCRIPTION + Given a time represented as second since 1970, as returned by the + function time(), this function returns a mapping with the following + components: + + sec seconds over the minute 0 - 59 + min minutes over the hour 0 - 59 + hour what hour in the day 0 - 23 + mday day of the month 1 - 31 + mon what month 0 - 11 + year years since 1900 0 - + wday day of week (0=sunday) 0 - 6 + yday day of year 0 - 365 + isdst is daylight saving time 0/1 + timezone differance between + local time and UTC + + +NOTA BENE + The 'timezone' might not be available on all platforms. + +SEE ALSO + time \ No newline at end of file diff --git a/doc/builtin/remove_call_out b/doc/builtin/remove_call_out deleted file mode 100644 index 277cc9eb0a..0000000000 --- a/doc/builtin/remove_call_out +++ /dev/null @@ -1,14 +0,0 @@ -NAME - remove_call_out - remove a call out from the call out queue - -SYNTAX - int remove_call_out(function f); - -DESCRIPTION - This function finds the first call to the function f in the call - out queue and removes it. The time left to that call out will be - returned. If no call out was found, zero_type(remove_call_out(f)) - will return 1. - -SEE ALSO - call_out_info, call_out, find_call_out -- GitLab