From 27cc2a4775b94a281a35f29d84e935c83a7b76e9 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Fredrik=20H=C3=BCbinette=20=28Hubbe=29?= <hubbe@hubbe.net>
Date: Mon, 26 Feb 1996 00:01:01 +0100
Subject: [PATCH] keywords changed

Rev: doc/builtin/sizeof:1.3
Rev: doc/lpc/preprocessor:1.3
Rev: doc/lpc/sscanf:1.1
Rev: doc/operators/and:1.2
Rev: doc/operators/complement:1.2
Rev: doc/operators/divide:1.2
Rev: doc/operators/is_equal:1.2
Rev: doc/operators/is_greater_or_equal:1.2
Rev: doc/operators/is_greater_than:1.2
Rev: doc/operators/is_lesser_or_equal:1.2
Rev: doc/operators/is_lesser_than:1.2
Rev: doc/operators/minus:1.2
Rev: doc/operators/modulo:1.2
Rev: doc/operators/mult:1.2
Rev: doc/operators/not:1.2
Rev: doc/operators/not_equal:1.2
Rev: doc/operators/or:1.2
Rev: doc/operators/plus:1.2
Rev: doc/operators/shift_left:1.2
Rev: doc/operators/shift_right:1.2
Rev: doc/operators/xor:1.2
Rev: doc/simulated/sum:1.1
Rev: doc/types/array:1.4
Rev: doc/types/float:1.3
Rev: doc/types/function:1.3
Rev: doc/types/int:1.3
Rev: doc/types/list:1.3
Rev: doc/types/mapping:1.3
Rev: doc/types/object:1.3
Rev: doc/types/program:1.3
Rev: doc/types/string:1.3
---
 doc/builtin/sizeof                |  2 +-
 doc/lpc/preprocessor              |  3 +++
 doc/lpc/sscanf                    | 33 +++++++++++++++++++++++++++++++
 doc/operators/and                 |  2 +-
 doc/operators/complement          |  2 +-
 doc/operators/divide              |  2 +-
 doc/operators/is_equal            |  2 +-
 doc/operators/is_greater_or_equal |  2 +-
 doc/operators/is_greater_than     |  2 +-
 doc/operators/is_lesser_or_equal  |  2 +-
 doc/operators/is_lesser_than      |  2 +-
 doc/operators/minus               |  2 +-
 doc/operators/modulo              |  2 +-
 doc/operators/mult                |  2 +-
 doc/operators/not                 |  2 +-
 doc/operators/not_equal           |  2 +-
 doc/operators/or                  |  2 +-
 doc/operators/plus                |  2 +-
 doc/operators/shift_left          |  2 +-
 doc/operators/shift_right         |  2 +-
 doc/operators/xor                 |  2 +-
 doc/simulated/sum                 | 23 +++++++++++++++++++++
 doc/types/array                   |  2 +-
 doc/types/float                   |  2 +-
 doc/types/function                |  2 +-
 doc/types/int                     |  2 +-
 doc/types/list                    |  2 +-
 doc/types/mapping                 |  2 +-
 doc/types/object                  |  2 +-
 doc/types/program                 |  2 +-
 doc/types/string                  |  2 +-
 31 files changed, 87 insertions(+), 28 deletions(-)
 create mode 100644 doc/lpc/sscanf
 create mode 100644 doc/simulated/sum

diff --git a/doc/builtin/sizeof b/doc/builtin/sizeof
index e1e2243586..ec33611317 100644
--- a/doc/builtin/sizeof
+++ b/doc/builtin/sizeof
@@ -2,7 +2,7 @@ NAME
 	sizeof - return the size of an array, string, list or mapping
 
 SYNTAX
-	int sizeof(string|list|mapping|array a);
+	int sizeof(string|list|mapping|array|object a);
 
 DESCRIPTION
 	This function returns the number of indexes available in the argument
diff --git a/doc/lpc/preprocessor b/doc/lpc/preprocessor
index b8e0361be8..3c45c0d9db 100644
--- a/doc/lpc/preprocessor
+++ b/doc/lpc/preprocessor
@@ -22,6 +22,9 @@ PREPROCESSOR DIRECTIVES
 	  #pragma
 	  #undef
 
+KEYWORDS
+	lpc
+
 ============================================================================
 DIRECTIVE
 	#!
diff --git a/doc/lpc/sscanf b/doc/lpc/sscanf
new file mode 100644
index 0000000000..22526c5210
--- /dev/null
+++ b/doc/lpc/sscanf
@@ -0,0 +1,33 @@
+NAME
+	sscanf - scan a string using a format string
+
+SYNTAX
+	int sscanf(string str, string fmt, mixed var1, mixed var2 ...);
+
+DESCRIPTION
+	Parse a string str using the format fmt. fmt can contain strings
+	separated by "%d,%s,%c and %f. Every % corresponds to one of var1,
+	var2...
+
+	%d	gives an integer
+	%o	gives an octal integer
+	%x	gives a hexadecimal integer
+	%D	gives an integer that is either octal (leading zero),
+		hexadecimal (leading 0x) or decimal.
+	%f	gives a float
+	%c	matches one char and returns it as an integer
+	%s	gives a string
+	%[set]	matches a string containing a given set of characters.
+		(thos given inside the brackets) %[^set] means any character
+		ecept those inside brackets. %[0-9H] means any number or 'H'.
+
+	If a * is put between the percent and the operator, the operator
+	will not only match it's argument, not assign any variables.
+
+	Number of matched arguments is returned.
+
+KEYWORDS
+	string
+
+SEE ALSO
+	explode, sprintf
diff --git a/doc/operators/and b/doc/operators/and
index 2099f48fca..849eeae0ce 100644
--- a/doc/operators/and
+++ b/doc/operators/and
@@ -18,7 +18,7 @@ DESCRIPTION
 	however, the values will be taken from the rightmost mapping.
 
 KEYWORDS
-	operator
+	operators
 
 SEE ALSO
 	`|, `^
diff --git a/doc/operators/complement b/doc/operators/complement
index 0c9ff65f25..d3d0413046 100644
--- a/doc/operators/complement
+++ b/doc/operators/complement
@@ -11,7 +11,7 @@ DESCRIPTION
 	new integer.
 
 KEYWORDS
-	operator
+	operators
 
 SEE ALSO
 	`&, `|, `^
\ No newline at end of file
diff --git a/doc/operators/divide b/doc/operators/divide
index 82cb262e93..b4e22ae6b3 100644
--- a/doc/operators/divide
+++ b/doc/operators/divide
@@ -25,7 +25,7 @@ EXAMPLES
 	`/(2,2) 	returns 1
 
 KEYWORDS
-	operator
+	operators
 
 SEE ALSO
 	`*, `%
diff --git a/doc/operators/is_equal b/doc/operators/is_equal
index 12653faeca..71b51e625e 100644
--- a/doc/operators/is_equal
+++ b/doc/operators/is_equal
@@ -13,7 +13,7 @@ DESCRIPTION
 	two arrays LOOK alike, it must be the same array.)
 
 KEYWORDS
-	operator
+	operators
 
 SEE ALSO
 	`!=, `<, `>, `<=, `>=, efuns/equal
diff --git a/doc/operators/is_greater_or_equal b/doc/operators/is_greater_or_equal
index 1f744793f8..ad0f6ab81d 100644
--- a/doc/operators/is_greater_or_equal
+++ b/doc/operators/is_greater_or_equal
@@ -11,7 +11,7 @@ DESCRIPTION
 	is greater than or equal to the second one.
 
 KEYWORDS
-	operator
+	operators
 
 SEE ALSO
 	`!=, `==, `>, `<, `<=
diff --git a/doc/operators/is_greater_than b/doc/operators/is_greater_than
index 84ddca8473..3dc0726f9d 100644
--- a/doc/operators/is_greater_than
+++ b/doc/operators/is_greater_than
@@ -11,7 +11,7 @@ DESCRIPTION
 	is greater than the second one.
 
 KEYWORDS
-	operator
+	operators
 
 SEE ALSO
 	`!=, `==, `<, `<=, `>=
diff --git a/doc/operators/is_lesser_or_equal b/doc/operators/is_lesser_or_equal
index e6956a73c6..a15902e21f 100644
--- a/doc/operators/is_lesser_or_equal
+++ b/doc/operators/is_lesser_or_equal
@@ -11,7 +11,7 @@ DESCRIPTION
 	is lesser than or equal to the second one.
 
 KEYWORDS
-	operator
+	operators
 
 SEE ALSO
 	`!=, `==, `>, `<, `>=
diff --git a/doc/operators/is_lesser_than b/doc/operators/is_lesser_than
index 0482284764..0c40c48944 100644
--- a/doc/operators/is_lesser_than
+++ b/doc/operators/is_lesser_than
@@ -11,7 +11,7 @@ DESCRIPTION
 	is lesser than the second one.
 
 KEYWORDS
-	operator
+	operators
 
 SEE ALSO
 	`!=, `==, `>, `<=, `>=
diff --git a/doc/operators/minus b/doc/operators/minus
index 8bb403bf52..2ec59586af 100644
--- a/doc/operators/minus
+++ b/doc/operators/minus
@@ -30,7 +30,7 @@ EXAMPLES
 	([1:2,2:1])-([1:0])	returns ([2:1])
 
 KEYWORDS
-	operator
+	operators
 
 SEE ALSO
 	`+
diff --git a/doc/operators/modulo b/doc/operators/modulo
index 6e9561ea8d..b9d4eec9c7 100644
--- a/doc/operators/modulo
+++ b/doc/operators/modulo
@@ -20,7 +20,7 @@ EXAMPLES
 	2%0.3   	returns 0.2
 
 KEYWORDS
-	operator
+	operators
 
 SEE ALSO
 	`/, `*
diff --git a/doc/operators/mult b/doc/operators/mult
index e0ad0603e9..8a5c81631c 100644
--- a/doc/operators/mult
+++ b/doc/operators/mult
@@ -24,7 +24,7 @@ EXAMPLES
 	`*(2,2,2)	returns 8
 
 KEYWORDS
-	operator
+	operators
 
 SEE ALSO
 	`/
diff --git a/doc/operators/not b/doc/operators/not
index 1c251ee35f..9f51725779 100644
--- a/doc/operators/not
+++ b/doc/operators/not
@@ -10,4 +10,4 @@ DESCRIPTION
 	Returns 1 if a is zero, 0 otherwise.
 
 KEYWORDS
-	operator
+	operators
diff --git a/doc/operators/not_equal b/doc/operators/not_equal
index d68f40d3d1..faf9368299 100644
--- a/doc/operators/not_equal
+++ b/doc/operators/not_equal
@@ -13,7 +13,7 @@ DESCRIPTION
 	two arrays LOOK alike, it must be the same array.)
 
 KEYWORDS
-	operator
+	operators
 
 SEE ALSO
 	`==, `<, `>, `<=, `>=, efuns/equal
diff --git a/doc/operators/or b/doc/operators/or
index 9985a3860c..0388fa1318 100644
--- a/doc/operators/or
+++ b/doc/operators/or
@@ -18,7 +18,7 @@ DESCRIPTION
 	however, the values will be taken from the rightmost mapping.
 
 KEYWORDS
-	operator
+	operators
 
 SEE ALSO
 	`&, `^
diff --git a/doc/operators/plus b/doc/operators/plus
index 6402ad168a..6fbda79834 100644
--- a/doc/operators/plus
+++ b/doc/operators/plus
@@ -22,7 +22,7 @@ EXAMPLES
 	`+(2,2,2)	returns 6
 
 KEYWORDS
-	operator
+	operators
 
 SEE ALSO
 	`-, `*
diff --git a/doc/operators/shift_left b/doc/operators/shift_left
index a354ad32db..7de5c8782a 100644
--- a/doc/operators/shift_left
+++ b/doc/operators/shift_left
@@ -11,7 +11,7 @@ DESCRIPTION
 	multiplying a by 2 b times.
 
 KEYWORDS
-	operator
+	operators
 
 SEE ALSO
 	`>>
diff --git a/doc/operators/shift_right b/doc/operators/shift_right
index 363e77d63f..8de24822ce 100644
--- a/doc/operators/shift_right
+++ b/doc/operators/shift_right
@@ -11,7 +11,7 @@ DESCRIPTION
 	dividing a by 2 b times.
 
 KEYWORDS
-	operator
+	operators
 
 SEE ALSO
 	`<<
diff --git a/doc/operators/xor b/doc/operators/xor
index fe9d4e2676..e41878d35f 100644
--- a/doc/operators/xor
+++ b/doc/operators/xor
@@ -18,7 +18,7 @@ DESCRIPTION
 	however, the values will be taken from the rightmost mapping.
 
 KEYWORDS
-	operator
+	operators
 
 SEE ALSO
 	`|, `&
diff --git a/doc/simulated/sum b/doc/simulated/sum
new file mode 100644
index 0000000000..2179b3c5cc
--- /dev/null
+++ b/doc/simulated/sum
@@ -0,0 +1,23 @@
+NAME
+	sum - add values together
+
+SYNTAX
+	int sum(int ... i);
+	or
+	float sum(float ... f);
+	or
+	string sum(string|float|int ... p);
+	or
+	array sum(array ... a);
+	or
+	mapping sum(mapping ... m);
+	or
+	list sum(list ... l);
+
+DESCRIPTION
+	This function does exactly the same thing as adding all the arguments
+	together with +. It's just here so you can get a function-pointer to
+	the summation operator.
+
+KEYWORDS
+	int, float, string, array, mapping, list
diff --git a/doc/types/array b/doc/types/array
index 2bbbf51f37..0ffe36945f 100644
--- a/doc/types/array
+++ b/doc/types/array
@@ -43,7 +43,7 @@ DESCRIPTION
 		includes) element d.
 
 KEYWORDS
-	type
+	types
 
 SEE ALSO
 	mapping, list, builtin/allocate, builtin/sizeof, builtin/values
diff --git a/doc/types/float b/doc/types/float
index ca52ca30af..454fe71cb4 100644
--- a/doc/types/float
+++ b/doc/types/float
@@ -31,7 +31,7 @@ NOTA BENE
 	to the same type first.
 
 KEYWORDS
-	type
+	types
 
 SEE ALSO
 	math/sin, math/cos, math/tan, math/sqrt
diff --git a/doc/types/function b/doc/types/function
index ad60ad37a6..f903182769 100644
--- a/doc/types/function
+++ b/doc/types/function
@@ -14,7 +14,7 @@ DESCRIPTION
 	will be returned.
 
 KEYWORDS
-	type
+	types
 
 SEE ALSO
 	object, builtin/call_function, builtin/functionp,
diff --git a/doc/types/int b/doc/types/int
index e174c18023..13014a0eb0 100644
--- a/doc/types/int
+++ b/doc/types/int
@@ -33,7 +33,7 @@ DESCRIPTION
 	a >= b	returns 1 if a is greater or equal to b, 0 otherwise
 
 KEYWORDS
-	type
+	types
 
 SEE ALSO
 	float	
diff --git a/doc/types/list b/doc/types/list
index b361d0915c..cfc2889550 100644
--- a/doc/types/list
+++ b/doc/types/list
@@ -32,7 +32,7 @@ DESCRIPTION
 		present.
 
 KEYWORDS
-	type
+	types
 
 SEE ALSO
 	mapping, array, builtin/indices, builtin/sizeof
diff --git a/doc/types/mapping b/doc/types/mapping
index f009414380..36f63c3ac5 100644
--- a/doc/types/mapping
+++ b/doc/types/mapping
@@ -41,7 +41,7 @@ DESCRIPTION
 		already there.
 
 KEYWORDS
-	type
+	types
 
 SEE ALSO
 	array, list, builtin/sizeof, builtin/indices, builtin/values
diff --git a/doc/types/object b/doc/types/object
index 316e6c185c..c96f0de705 100644
--- a/doc/types/object
+++ b/doc/types/object
@@ -19,7 +19,7 @@ DESCRIPTION
 	o != o2	return 0 if o and o2 are the same object
 
 KEYWORDS
-	type
+	types
 
 SEE ALSO
 	program, function, builtin/clone, builtin/destruct
diff --git a/doc/types/program b/doc/types/program
index b428dbcf85..c653029056 100644
--- a/doc/types/program
+++ b/doc/types/program
@@ -9,7 +9,7 @@ DESCRIPTION
 	are == and !=.
 
 KEYWORDS
-	type
+	types
 
 SEE ALSO
 	object, function, builtin/compile_file, builtin/compile_string,
diff --git a/doc/types/string b/doc/types/string
index 8074d27562..0586b1e690 100644
--- a/doc/types/string
+++ b/doc/types/string
@@ -32,7 +32,7 @@ DESCRIPTION
 	a >= b	returns 1 if a is greater or equal to b, 0 otherwise
 
 KEYWORDS
-	type
+	types
 
 SEE ALSO
 	builtin/indices, builtin/values, builtin/sscanf, builtin/sprintf,
-- 
GitLab