From 167f1651b5c5cc856523a82f4af9b9635c534921 Mon Sep 17 00:00:00 2001 From: Christian Thaeter Date: Tue, 21 Jun 2005 00:44:17 +0000 Subject: [PATCH] --HELP and --BRIEF git-archimport-id: chth@gmx.net--2004/mala-glibc--devel--0.2--patch-78 --- ChangeLog | 12 ++++++++++++ std/std.c | 17 ++++++++++------- 2 files changed, 22 insertions(+), 7 deletions(-) diff --git a/ChangeLog b/ChangeLog index d8f99d2..8941e32 100644 --- a/ChangeLog +++ b/ChangeLog @@ -2,6 +2,18 @@ # arch-tag: automatic-ChangeLog--chth@gmx.net--2004/mala-glibc--devel--0.2 # +2005-06-21 00:44:17 GMT Christian Thaeter patch-78 + + Summary: + --HELP and --BRIEF + Revision: + mala-glibc--devel--0.2--patch-78 + + + modified files: + ChangeLog std/std.c + + 2005-06-21 00:19:09 GMT Christian Thaeter patch-77 Summary: diff --git a/std/std.c b/std/std.c index 81927c3..beabc10 100644 --- a/std/std.c +++ b/std/std.c @@ -31,15 +31,14 @@ static mala_actioninit std_actions[] = MALA_PARSER_HELP("--", ("--HELP-ACTION", "TODO")), */ - /* - MALA_MACRO_PARSER("--BRIEF", "--BRIEF_%1"), + + MALA_EXPAND_PARSER("--BRIEF", ("--CAT", "--BRIEF_", "--LITERAL")), MALA_PARSER_BRIEF("--BRIEF", "gives a short note about a command"), MALA_PARSER_HELP("--BRIEF", ("--HELP-ACTION", "TODO")), - MALA_MACRO_PARSER("--HELP", "--HELP_%1"), + MALA_EXPAND_PARSER("--HELP", ("--CAT", "--HELP_", "--LITERAL")), MALA_PARSER_BRIEF("--HELP", "gives help about some command"), MALA_PARSER_HELP("--HELP", ("--HELP-ACTION", "TODO")), - */ MALA_PARSER("--DEF", mala_macrodef_parser, NULL, NULL, NULL), MALA_PARSER_BRIEF("--DEF", "defines a new macro"), @@ -112,9 +111,9 @@ static mala_actioninit std_actions[] = MALA_PARSER_BRIEF("--", ""), MALA_PARSER_HELP("--", ("--HELP-ACTION", "TODO")), - MALA_TRUE_PARSER("--FLAG-UNDERSCORE-EXPANSION"), - MALA_PARSER_BRIEF("--", ""), - MALA_PARSER_HELP("--", ("--HELP-ACTION", "TODO")), + // MALA_TRUE_PARSER("--FLAG-UNDERSCORE-EXPANSION"), + // MALA_PARSER_BRIEF("--", ""), + // MALA_PARSER_HELP("--", ("--HELP-ACTION", "TODO")), MALA_TRUE_PARSER("--FLAG-SETENV-EXPANSION"), MALA_PARSER_BRIEF("--", ""), @@ -136,6 +135,10 @@ static mala_actioninit std_actions[] = MALA_PARSER_BRIEF("--", ""), MALA_PARSER_HELP("--", ("--HELP-ACTION", "TODO")), + MALA_MACRO_PARSER("--CAT",("%1%2")), + MALA_PARSER_BRIEF("--CAT", "concatenates two words"), + MALA_PARSER_HELP("--CAT", ("--HELP-ACTION", "TODO")), + MALA_ACTIONS_END }; -- 2.11.4.GIT