From d5190bb11df596bcc323e488c82299b36c693b93 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fredrik=20H=C3=BCbinette=20=28Hubbe=29?= <hubbe@hubbe.net> Date: Mon, 10 Feb 1997 22:58:34 -0800 Subject: [PATCH] module names capitalized Rev: lib/include/array.h:1.3 Rev: lib/include/fifo.h:1.3 Rev: lib/include/getopt.h:1.3 Rev: lib/include/process.h:1.3 Rev: lib/include/simulate.h:1.3 Rev: lib/include/stack.h:1.3 Rev: lib/include/stdio.h:1.3 Rev: lib/include/string.h:1.3 Rev: lib/modules/Array.pmod:1.1 Rev: lib/modules/Fifo.pmod:1.1 Rev: lib/modules/Getopt.pmod:1.1 Rev: lib/modules/Process.pmod:1.1 Rev: lib/modules/Simulate.pmod:1.1 Rev: lib/modules/Stack.pmod:1.1 Rev: lib/modules/Stdio.pmod:1.1 Rev: lib/modules/String.pmod:1.1 Rev: lib/modules/array_functions.pmod:1.2(DEAD) Rev: lib/modules/fifo.pmod:1.2(DEAD) Rev: lib/modules/getopt.pmod:1.2(DEAD) Rev: lib/modules/process.pmod:1.2(DEAD) Rev: lib/modules/simulate.pmod:1.2(DEAD) Rev: lib/modules/stack.pmod:1.2(DEAD) Rev: lib/modules/stdio.pmod:1.2(DEAD) Rev: lib/modules/string_functions.pmod:1.2(DEAD) --- lib/include/array.h | 2 +- lib/include/fifo.h | 2 +- lib/include/getopt.h | 2 +- lib/include/process.h | 2 +- lib/include/simulate.h | 6 ++---- lib/include/stack.h | 2 +- lib/include/stdio.h | 2 +- lib/include/string.h | 2 +- lib/modules/{array_functions.pmod => Array.pmod} | 0 lib/modules/{fifo.pmod => Fifo.pmod} | 0 lib/modules/{getopt.pmod => Getopt.pmod} | 0 lib/modules/{process.pmod => Process.pmod} | 2 +- lib/modules/{simulate.pmod => Simulate.pmod} | 11 ++++------- lib/modules/{stack.pmod => Stack.pmod} | 0 lib/modules/{stdio.pmod => Stdio.pmod} | 0 lib/modules/{string_functions.pmod => String.pmod} | 5 +++++ 16 files changed, 19 insertions(+), 19 deletions(-) rename lib/modules/{array_functions.pmod => Array.pmod} (100%) rename lib/modules/{fifo.pmod => Fifo.pmod} (100%) rename lib/modules/{getopt.pmod => Getopt.pmod} (100%) rename lib/modules/{process.pmod => Process.pmod} (99%) rename lib/modules/{simulate.pmod => Simulate.pmod} (90%) rename lib/modules/{stack.pmod => Stack.pmod} (100%) rename lib/modules/{stdio.pmod => Stdio.pmod} (100%) rename lib/modules/{string_functions.pmod => String.pmod} (93%) diff --git a/lib/include/array.h b/lib/include/array.h index c408f63b23..d386847b20 100644 --- a/lib/include/array.h +++ b/lib/include/array.h @@ -1 +1 @@ -import array_functions; +import Array; diff --git a/lib/include/fifo.h b/lib/include/fifo.h index 39fe211cea..87ec416cab 100644 --- a/lib/include/fifo.h +++ b/lib/include/fifo.h @@ -1 +1 @@ -import fifo; +import Fifo; diff --git a/lib/include/getopt.h b/lib/include/getopt.h index 3dfe6f74b6..38a89c8c56 100644 --- a/lib/include/getopt.h +++ b/lib/include/getopt.h @@ -1 +1 @@ -import getopt; +import Getopt; diff --git a/lib/include/process.h b/lib/include/process.h index 09bacbb8c9..4f937dba52 100644 --- a/lib/include/process.h +++ b/lib/include/process.h @@ -1 +1 @@ -import process; +import Process; diff --git a/lib/include/simulate.h b/lib/include/simulate.h index 1ab42cb2e8..7b37470cf1 100644 --- a/lib/include/simulate.h +++ b/lib/include/simulate.h @@ -1,7 +1,5 @@ #define list multiset #define perror(X) werror(X) #define efun predef -import simulate; -import stdio; -import array_functions; -import process; +#define regexp(X,Y) filter((X),regexp(Y)->match) +import Simulate; diff --git a/lib/include/stack.h b/lib/include/stack.h index 39fe211cea..87ec416cab 100644 --- a/lib/include/stack.h +++ b/lib/include/stack.h @@ -1 +1 @@ -import fifo; +import Fifo; diff --git a/lib/include/stdio.h b/lib/include/stdio.h index 8c59074993..7506d66f5e 100644 --- a/lib/include/stdio.h +++ b/lib/include/stdio.h @@ -1 +1 @@ -import stdio; +import Stdio; diff --git a/lib/include/string.h b/lib/include/string.h index 25c4368115..1066ba7bba 100644 --- a/lib/include/string.h +++ b/lib/include/string.h @@ -1 +1 @@ -import string_functions; +import String; diff --git a/lib/modules/array_functions.pmod b/lib/modules/Array.pmod similarity index 100% rename from lib/modules/array_functions.pmod rename to lib/modules/Array.pmod diff --git a/lib/modules/fifo.pmod b/lib/modules/Fifo.pmod similarity index 100% rename from lib/modules/fifo.pmod rename to lib/modules/Fifo.pmod diff --git a/lib/modules/getopt.pmod b/lib/modules/Getopt.pmod similarity index 100% rename from lib/modules/getopt.pmod rename to lib/modules/Getopt.pmod diff --git a/lib/modules/process.pmod b/lib/modules/Process.pmod similarity index 99% rename from lib/modules/process.pmod rename to lib/modules/Process.pmod index 2f088ecd8a..edb4803b3f 100644 --- a/lib/modules/process.pmod +++ b/lib/modules/Process.pmod @@ -1,6 +1,6 @@ #define error(X) throw( ({ (X), backtrace()[0..sizeof(backtrace())-2] }) ) -import stdio; +import Stdio; static private inherit File : file; diff --git a/lib/modules/simulate.pmod b/lib/modules/Simulate.pmod similarity index 90% rename from lib/modules/simulate.pmod rename to lib/modules/Simulate.pmod index e3cb05a446..dccf3ebc95 100644 --- a/lib/modules/simulate.pmod +++ b/lib/modules/Simulate.pmod @@ -1,6 +1,7 @@ -import array_functions; -import stdio; -import string_functions; +inherit Array; +inherit Stdio; +inherit String; +inherit Process; #define error(X) throw( ({ (X), backtrace()[0..sizeof(backtrace())-2] }) ) @@ -32,10 +33,6 @@ function this_function() return backtrace()[-2][2]; } -string capitalize(string s) -{ - return upper_case(s[0..0])+s[1..sizeof(s)]; -} function get_function(object o, string a) { diff --git a/lib/modules/stack.pmod b/lib/modules/Stack.pmod similarity index 100% rename from lib/modules/stack.pmod rename to lib/modules/Stack.pmod diff --git a/lib/modules/stdio.pmod b/lib/modules/Stdio.pmod similarity index 100% rename from lib/modules/stdio.pmod rename to lib/modules/Stdio.pmod diff --git a/lib/modules/string_functions.pmod b/lib/modules/String.pmod similarity index 93% rename from lib/modules/string_functions.pmod rename to lib/modules/String.pmod index fe0389432e..ff35cc6521 100644 --- a/lib/modules/string_functions.pmod +++ b/lib/modules/String.pmod @@ -15,6 +15,11 @@ string implode_nicely(string *foo, string|void and) } } +string capitalize(string s) +{ + return upper_case(s[0..0])+s[1..sizeof(s)]; +} + string strmult(string str, int num) { #if 1 -- GitLab