[Gd-chatter] r11023 - in trunk: duim/platform/gtk+/gobject-tool libraries libraries/id3v2 libraries/id3v2/id3v2-test libraries/parse-arguments libraries/registry/generic libraries/sniffer libraries/ui/gtk+/gobject-tool libraries/utilities libraries/utilities/getopt libraries/utilities/getopt/tests libraries/xml-parser/xml-test src/d2c/compiler/main src/d2c/runtime/Macintosh/d2c Runtime Heap Stub src/tools/melange src/tools/pidgin/src
cgay at gwydiondylan.org
cgay at gwydiondylan.org
Tue Dec 5 11:55:39 CET 2006
Author: cgay
Date: Tue Dec 5 11:55:30 2006
New Revision: 11023
Added:
trunk/libraries/utilities/
trunk/libraries/utilities/getopt/
- copied from r11019, trunk/libraries/parse-arguments/
trunk/libraries/utilities/getopt/defargparser.dylan
- copied, changed from r11022, trunk/libraries/parse-arguments/defargparser.dylan
trunk/libraries/utilities/getopt/getopt-exports.dylan
- copied, changed from r11022, trunk/libraries/parse-arguments/getopt-exports.dylan
trunk/libraries/utilities/getopt/getopt.dylan
- copied, changed from r11022, trunk/libraries/parse-arguments/getopt.dylan
trunk/libraries/utilities/getopt/getopt.lid
- copied, changed from r11022, trunk/libraries/parse-arguments/getopt.lid
trunk/libraries/utilities/getopt/parsers.dylan
- copied, changed from r11022, trunk/libraries/parse-arguments/parsers.dylan
trunk/libraries/utilities/getopt/tests/
- copied from r11022, trunk/libraries/parse-arguments/tests/
Removed:
trunk/libraries/parse-arguments/
trunk/libraries/registry/generic/parse-arguments
Modified:
trunk/duim/platform/gtk+/gobject-tool/library.dylan
trunk/duim/platform/gtk+/gobject-tool/module.dylan
trunk/libraries/id3v2/id3v2-test/library.dylan
trunk/libraries/id3v2/library.dylan
trunk/libraries/registry/generic/getopt
trunk/libraries/registry/generic/getopt-test-suite
trunk/libraries/registry/generic/getopt-test-suite-app
trunk/libraries/reorg.txt
trunk/libraries/sniffer/library.dylan
trunk/libraries/ui/gtk+/gobject-tool/library.dylan
trunk/libraries/ui/gtk+/gobject-tool/module.dylan
trunk/libraries/utilities/getopt/tests/getopt-test-suite-library.dylan
trunk/libraries/xml-parser/xml-test/test-library.dylan
trunk/src/d2c/compiler/main/main-exports.dylan
trunk/src/d2c/compiler/main/main.dylan
trunk/src/d2c/runtime/Macintosh/d2c Runtime Heap Stub/runtime-heap-app-exports.dylan
trunk/src/tools/melange/exports.dylan
trunk/src/tools/pidgin/src/ansi-c-test-exports.dylan
trunk/src/tools/pidgin/src/pidgin-exports.dylan
Log:
job: 7335
Rename parse-arguments library/module to getopt. There was a mismatch between
the lib/mod name and the filenames and registry entries. I felt parse-arguments
was too generic and parse-command-line too verbose and most people seem to
recognize "getopt".
Modified: trunk/duim/platform/gtk+/gobject-tool/library.dylan
==============================================================================
--- trunk/duim/platform/gtk+/gobject-tool/library.dylan (original)
+++ trunk/duim/platform/gtk+/gobject-tool/library.dylan Tue Dec 5 11:55:30 2006
@@ -4,7 +4,7 @@
define library gobject-tool
use dylan;
use common-dylan;
- use parse-arguments;
+ use getopt;
use io;
use system;
use ansi-c;
Modified: trunk/duim/platform/gtk+/gobject-tool/module.dylan
==============================================================================
--- trunk/duim/platform/gtk+/gobject-tool/module.dylan (original)
+++ trunk/duim/platform/gtk+/gobject-tool/module.dylan Tue Dec 5 11:55:30 2006
@@ -42,7 +42,7 @@
define module gobject-tool
use common-dylan, exclude: { format-to-string };
use Extensions, import: { *warning-output* };
- use parse-arguments;
+ use getopt;
use streams;
use standard-io;
use format;
Modified: trunk/libraries/id3v2/id3v2-test/library.dylan
==============================================================================
--- trunk/libraries/id3v2/id3v2-test/library.dylan (original)
+++ trunk/libraries/id3v2/id3v2-test/library.dylan Tue Dec 5 11:55:30 2006
@@ -5,7 +5,7 @@
define library id3v2-test
use common-dylan;
use io;
- use parse-arguments;
+ use getopt;
use flow;
use network-flow;
use system;
@@ -21,7 +21,7 @@
use file-system;
use flow;
use network-flow;
- use parse-arguments;
+ use getopt;
use interfaces;
use id3v2;
end;
Modified: trunk/libraries/id3v2/library.dylan
==============================================================================
--- trunk/libraries/id3v2/library.dylan (original)
+++ trunk/libraries/id3v2/library.dylan Tue Dec 5 11:55:30 2006
@@ -5,7 +5,7 @@
define library id3v2
use common-dylan;
use io;
- use parse-arguments;
+ use getopt;
use flow;
use network-flow;
use system;
@@ -24,7 +24,7 @@
use file-system;
use flow;
use network-flow;
- use parse-arguments;
+ use getopt;
use interfaces;
use packetizer;
Modified: trunk/libraries/registry/generic/getopt
==============================================================================
--- trunk/libraries/registry/generic/getopt (original)
+++ trunk/libraries/registry/generic/getopt Tue Dec 5 11:55:30 2006
@@ -1 +1 @@
-abstract://dylan/parse-arguments/getopt.lid
+abstract://dylan/utilities/getopt/getopt.lid
Modified: trunk/libraries/registry/generic/getopt-test-suite
==============================================================================
--- trunk/libraries/registry/generic/getopt-test-suite (original)
+++ trunk/libraries/registry/generic/getopt-test-suite Tue Dec 5 11:55:30 2006
@@ -1 +1 @@
-abstract://dylan/parse-arguments/tests/getopt-test-suite.lid
\ No newline at end of file
+abstract://dylan/utilities/getopt/tests/getopt-test-suite.lid
\ No newline at end of file
Modified: trunk/libraries/registry/generic/getopt-test-suite-app
==============================================================================
--- trunk/libraries/registry/generic/getopt-test-suite-app (original)
+++ trunk/libraries/registry/generic/getopt-test-suite-app Tue Dec 5 11:55:30 2006
@@ -1 +1 @@
-abstract://dylan/parse-arguments/tests/getopt-test-suite-app.lid
\ No newline at end of file
+abstract://dylan/utilities/getopt/tests/getopt-test-suite-app.lid
\ No newline at end of file
Modified: trunk/libraries/reorg.txt
==============================================================================
--- trunk/libraries/reorg.txt (original)
+++ trunk/libraries/reorg.txt Tue Dec 5 11:55:30 2006
@@ -1,6 +1,9 @@
Here's my suggestion for how this directory should be organized. Any changes I
make to this directory will head in this direction. Comments welcome. --cgay
+There may be things in http://www.opendylan.org/downloads/contributions/ that
+should be qa'd and merged into trunk/libraries as well.
+
libraries
common-dylan
@@ -51,6 +54,7 @@
xmpp-bot
math
complex // Put in common-dylan?
+ discrete-math // from trunk/examples
generic-arithmetic
matrix
ratio
Modified: trunk/libraries/sniffer/library.dylan
==============================================================================
--- trunk/libraries/sniffer/library.dylan (original)
+++ trunk/libraries/sniffer/library.dylan Tue Dec 5 11:55:30 2006
@@ -5,7 +5,7 @@
define library sniffer
use common-dylan;
use io;
- use parse-arguments;
+ use getopt;
use flow;
use network-flow;
use system;
@@ -20,6 +20,6 @@
use file-system;
use flow;
use network-flow;
- use parse-arguments;
+ use getopt;
use interfaces;
end;
Modified: trunk/libraries/ui/gtk+/gobject-tool/library.dylan
==============================================================================
--- trunk/libraries/ui/gtk+/gobject-tool/library.dylan (original)
+++ trunk/libraries/ui/gtk+/gobject-tool/library.dylan Tue Dec 5 11:55:30 2006
@@ -4,7 +4,7 @@
define library gobject-tool
use dylan;
use common-dylan;
- use parse-arguments;
+ use getopt;
use streams;
use standard-io;
use format;
Modified: trunk/libraries/ui/gtk+/gobject-tool/module.dylan
==============================================================================
--- trunk/libraries/ui/gtk+/gobject-tool/module.dylan (original)
+++ trunk/libraries/ui/gtk+/gobject-tool/module.dylan Tue Dec 5 11:55:30 2006
@@ -41,7 +41,7 @@
define module gobject-tool
use common-dylan, exclude: { format-to-string };
use Extensions, import: { *warning-output* };
- use parse-arguments;
+ use getopt;
use streams;
use standard-io;
use format;
Copied: trunk/libraries/utilities/getopt/defargparser.dylan (from r11022, trunk/libraries/parse-arguments/defargparser.dylan)
==============================================================================
--- trunk/libraries/parse-arguments/defargparser.dylan (original)
+++ trunk/libraries/utilities/getopt/defargparser.dylan Tue Dec 5 11:55:30 2006
@@ -1,4 +1,4 @@
-module: parse-arguments
+module: getopt
synopsis: Interface macros for parser definition and option access.
authors: David Lichteblau <lichteblau at fhtw-berlin.de>
copyright: see below
Copied: trunk/libraries/utilities/getopt/getopt-exports.dylan (from r11022, trunk/libraries/parse-arguments/getopt-exports.dylan)
==============================================================================
--- trunk/libraries/parse-arguments/getopt-exports.dylan (original)
+++ trunk/libraries/utilities/getopt/getopt-exports.dylan Tue Dec 5 11:55:30 2006
@@ -1,4 +1,3 @@
-library: parse-arguments
module: dylan-user
author: Eric Kidd
copyright: Copyright 1998 Eric Kidd
@@ -25,12 +24,12 @@
//
//======================================================================
-define library parse-arguments
+define library getopt
use common-dylan;
use io;
export
- parse-arguments,
+ getopt,
option-parser-protocol;
end library;
@@ -67,7 +66,7 @@
end module;
// Used by most programs.
-define module parse-arguments
+define module getopt
use common-dylan, exclude: { format-to-string };
use option-parser-protocol;
@@ -96,10 +95,10 @@
export
argument-parser-definer,
- \defargparser-rec,
- \defargparser-aux,
- \defargparser-class,
- \defargparser-init,
- \defargparser-accessors,
- \defargparser-synopsis;
-end module parse-arguments;
+ defargparser-rec,
+ defargparser-aux,
+ defargparser-class,
+ defargparser-init,
+ defargparser-accessors,
+ defargparser-synopsis;
+end module getopt;
Copied: trunk/libraries/utilities/getopt/getopt.dylan (from r11022, trunk/libraries/parse-arguments/getopt.dylan)
==============================================================================
--- trunk/libraries/parse-arguments/getopt.dylan (original)
+++ trunk/libraries/utilities/getopt/getopt.dylan Tue Dec 5 11:55:30 2006
@@ -1,4 +1,4 @@
-module: parse-arguments
+module: getopt
synopsis: Parse command-line options.
authors: Eric Kidd
copyright: Copyright 1998 Eric Kidd
@@ -61,10 +61,6 @@
// todo -- There is no indication of default values in the generated synopsis,
// and the syntax for specifying "syntax" and docstring is bizarre at
// best. --cgay 2006.11.27
-//
-// todo -- defargparser-synopsis generates code that calls "format" and if the
-// calling module doesn't import format it gets warnings. It probably
-// doesn't need to be a macro.
//======================================================================
Copied: trunk/libraries/utilities/getopt/getopt.lid (from r11022, trunk/libraries/parse-arguments/getopt.lid)
==============================================================================
--- trunk/libraries/parse-arguments/getopt.lid (original)
+++ trunk/libraries/utilities/getopt/getopt.lid Tue Dec 5 11:55:30 2006
@@ -1,4 +1,4 @@
-library: parse-arguments
+library: getopt
files: getopt-exports
getopt
parsers
Copied: trunk/libraries/utilities/getopt/parsers.dylan (from r11022, trunk/libraries/parse-arguments/parsers.dylan)
==============================================================================
--- trunk/libraries/parse-arguments/parsers.dylan (original)
+++ trunk/libraries/utilities/getopt/parsers.dylan Tue Dec 5 11:55:30 2006
@@ -1,4 +1,4 @@
-module: parse-arguments
+module: getopt
synopsis: Individual option parsers.
authors: Eric Kidd, Jeff Dubrule <igor at pobox.com>
copyright: Copyright 1998 Eric Kidd and Jeff Dubrule
Modified: trunk/libraries/utilities/getopt/tests/getopt-test-suite-library.dylan
==============================================================================
--- trunk/libraries/parse-arguments/tests/getopt-test-suite-library.dylan (original)
+++ trunk/libraries/utilities/getopt/tests/getopt-test-suite-library.dylan Tue Dec 5 11:55:30 2006
@@ -3,7 +3,7 @@
define library getopt-test-suite
use common-dylan;
use io;
- use parse-arguments;
+ use getopt;
use testworks;
export getopt-test-suite;
@@ -12,7 +12,7 @@
define module getopt-test-suite
use common-dylan, exclude: { format-to-string };
use format;
- use parse-arguments;
+ use getopt;
use testworks;
export getopt-test-suite;
Modified: trunk/libraries/xml-parser/xml-test/test-library.dylan
==============================================================================
--- trunk/libraries/xml-parser/xml-test/test-library.dylan (original)
+++ trunk/libraries/xml-parser/xml-test/test-library.dylan Tue Dec 5 11:55:30 2006
@@ -9,7 +9,7 @@
use io;
use xml-parser;
use system;
- use parse-arguments;
+ use getopt;
use collection-extensions;
end library xml-test;
@@ -42,6 +42,6 @@
use html-xform;
use streams;
// use date;
- use parse-arguments;
+ use getopt;
use sequence-utilities;
end module xml-test;
Modified: trunk/src/d2c/compiler/main/main-exports.dylan
==============================================================================
--- trunk/src/d2c/compiler/main/main-exports.dylan (original)
+++ trunk/src/d2c/compiler/main/main-exports.dylan Tue Dec 5 11:55:30 2006
@@ -37,7 +37,7 @@
use Random;
use debugger;
use command-processor;
- use parse-arguments;
+ use getopt;
use compiler-base;
use compiler-front;
use compiler-fer-transform;
@@ -73,7 +73,7 @@
use substring-search;
use character-type;
use random;
- use parse-arguments;
+ use getopt;
use option-parser-protocol;
use utils;
Modified: trunk/src/d2c/compiler/main/main.dylan
==============================================================================
--- trunk/src/d2c/compiler/main/main.dylan (original)
+++ trunk/src/d2c/compiler/main/main.dylan Tue Dec 5 11:55:30 2006
@@ -35,7 +35,7 @@
// d2c has a delightfully non-standard '-D' flag with a corresponding '-U'
// flag which allows you to undefine things (well, sort of). We create a
// new option parser class to handle these using the option-parser-protocol
-// module from the parse-arguments library.
+// module from the getopt library.
define class <d2c-feature-option-parser> (<negative-option-parser>)
end class <d2c-feature-option-parser>;
Modified: trunk/src/d2c/runtime/Macintosh/d2c Runtime Heap Stub/runtime-heap-app-exports.dylan
==============================================================================
--- trunk/src/d2c/runtime/Macintosh/d2c Runtime Heap Stub/runtime-heap-app-exports.dylan (original)
+++ trunk/src/d2c/runtime/Macintosh/d2c Runtime Heap Stub/runtime-heap-app-exports.dylan Tue Dec 5 11:55:30 2006
@@ -20,7 +20,7 @@
use Format-Out; // Format-out
- use parse-arguments; // GetOpt
+ use getopt; // GetOpt
use Matrix; // Matrix
@@ -86,7 +86,7 @@
use Format-Out; // Format-Out
use option-parser-protocol; // GetOpt
- use parse-arguments;
+ use getopt;
use Matrix; // Matrix
Modified: trunk/src/tools/melange/exports.dylan
==============================================================================
--- trunk/src/tools/melange/exports.dylan (original)
+++ trunk/src/tools/melange/exports.dylan Tue Dec 5 11:55:30 2006
@@ -86,7 +86,7 @@
use regular-expressions;
use io;
use system;
- use parse-arguments;
+ use getopt;
use melange-c;
export
name-mappers;
@@ -183,8 +183,8 @@
// From system
use file-system;
- // From parse-arguments
- use parse-arguments;
+ // From getopt
+ use getopt;
// local packages
use int-lexer;
Modified: trunk/src/tools/pidgin/src/ansi-c-test-exports.dylan
==============================================================================
--- trunk/src/tools/pidgin/src/ansi-c-test-exports.dylan (original)
+++ trunk/src/tools/pidgin/src/ansi-c-test-exports.dylan Tue Dec 5 11:55:30 2006
@@ -3,7 +3,7 @@
define library ansi-c-test
use dylan;
use io;
- use parse-arguments;
+ use getopt;
use melange-support;
use parser-utilities;
@@ -19,7 +19,7 @@
use streams;
use format;
use standard-io;
- use parse-arguments;
+ use getopt;
use melange-support, import: {call-out};
use parse-conditions;
Modified: trunk/src/tools/pidgin/src/pidgin-exports.dylan
==============================================================================
--- trunk/src/tools/pidgin/src/pidgin-exports.dylan (original)
+++ trunk/src/tools/pidgin/src/pidgin-exports.dylan Tue Dec 5 11:55:30 2006
@@ -7,7 +7,7 @@
use system;
use dylan;
use string-extensions;
- use parse-arguments;
+ use getopt;
use parser-utilities;
use ansi-c;
use c-parser;
@@ -23,12 +23,11 @@
use locators;
use format;
use standard-io;
- use parse-arguments;
+ use getopt;
use substring-search;
use subseq;
use parse-conditions;
use ansi-c;
use c-parser;
-use c-ffi-output;
-
+ use c-ffi-output;
end module;
More information about the chatter
mailing list