head 1.2; access; symbols pkgsrc-2013Q2:1.2.0.48 pkgsrc-2013Q2-base:1.2 pkgsrc-2012Q4:1.2.0.46 pkgsrc-2012Q4-base:1.2 pkgsrc-2011Q4:1.2.0.44 pkgsrc-2011Q4-base:1.2 pkgsrc-2011Q2:1.2.0.42 pkgsrc-2011Q2-base:1.2 pkgsrc-2009Q4:1.2.0.40 pkgsrc-2009Q4-base:1.2 pkgsrc-2008Q4:1.2.0.38 pkgsrc-2008Q4-base:1.2 pkgsrc-2008Q3:1.2.0.36 pkgsrc-2008Q3-base:1.2 cube-native-xorg:1.2.0.34 cube-native-xorg-base:1.2 pkgsrc-2008Q2:1.2.0.32 pkgsrc-2008Q2-base:1.2 pkgsrc-2008Q1:1.2.0.30 pkgsrc-2008Q1-base:1.2 pkgsrc-2007Q4:1.2.0.28 pkgsrc-2007Q4-base:1.2 pkgsrc-2007Q3:1.2.0.26 pkgsrc-2007Q3-base:1.2 pkgsrc-2007Q2:1.2.0.24 pkgsrc-2007Q2-base:1.2 pkgsrc-2007Q1:1.2.0.22 pkgsrc-2007Q1-base:1.2 pkgsrc-2006Q4:1.2.0.20 pkgsrc-2006Q4-base:1.2 pkgsrc-2006Q3:1.2.0.18 pkgsrc-2006Q3-base:1.2 pkgsrc-2006Q2:1.2.0.16 pkgsrc-2006Q2-base:1.2 pkgsrc-2006Q1:1.2.0.14 pkgsrc-2006Q1-base:1.2 pkgsrc-2005Q4:1.2.0.12 pkgsrc-2005Q4-base:1.2 pkgsrc-2005Q3:1.2.0.10 pkgsrc-2005Q3-base:1.2 pkgsrc-2005Q2:1.2.0.8 pkgsrc-2005Q2-base:1.2 pkgsrc-2005Q1:1.2.0.6 pkgsrc-2005Q1-base:1.2 pkgsrc-2004Q4:1.2.0.4 pkgsrc-2004Q4-base:1.2 pkgsrc-2004Q3:1.2.0.2 pkgsrc-2004Q3-base:1.2 pkgsrc-2004Q2:1.1.1.1.0.14 pkgsrc-2004Q2-base:1.1.1.1 pkgsrc-2004Q1:1.1.1.1.0.12 pkgsrc-2004Q1-base:1.1.1.1 pkgsrc-2003Q4:1.1.1.1.0.10 pkgsrc-2003Q4-base:1.1.1.1 netbsd-1-6-1:1.1.1.1.0.6 netbsd-1-6-1-base:1.1.1.1 netbsd-1-6:1.1.1.1.0.8 netbsd-1-6-RELEASE-base:1.1.1.1 pkgviews:1.1.1.1.0.4 pkgviews-base:1.1.1.1 buildlink2:1.1.1.1.0.2 buildlink2-base:1.1.1.1 netbsd-1-5-PATCH003:1.1.1.1 netbsd-1-5-PATCH001:1.1.1.1 netbsd-1-5-RELEASE:1.1.1.1 netbsd-1-4-PATCH003:1.1.1.1 pkgsrc-base:1.1.1.1 TNF:1.1.1; locks; strict; comment @# @; 1.2 date 2004.09.11.14.56.33; author jmmv; state dead; branches; next 1.1; 1.1 date 2000.08.25.16.15.53; author jlam; state Exp; branches 1.1.1.1; next ; 1.1.1.1 date 2000.08.25.16.15.53; author jlam; state Exp; branches; next ; desc @@ 1.2 log @Remove devel/cmdline: it is unmaintained and does not build with recent versions of GCC 3 (in fact, it already had lots of patches to fix C++ stuff, but still had problems). Ok'ed by jlam@@, who imported it in the first place. Not used by any other package nor anyone else (as seen in tech-pkg@@). @ text @$NetBSD: patch-an,v 1.1 2000/08/25 16:15:53 jlam Exp $ --- src/cmd/shell_arg.h.orig Thu Jan 2 13:33:29 1997 +++ src/cmd/shell_arg.h @@@@ -8,6 +8,10 @@@@ // // ^HISTORY: // 04/22/92 Brad Appleton Created +// +// 08/16/00 Johnny Lam +// - Refer to namespace cmdline +// - Updated to follow ISO C++ standard //-^^--------------------------------------------------------------------- #ifndef _shell_arg_h @@@@ -29,43 +33,43 @@@@ // already exited!). // -class ShellCmdArg : public CmdArg { +class ShellCmdArg : public cmdline::CmdArg { public: ShellCmdArg(char * variable_name, char optchar, char * keyword, char * value, char * description, - unsigned syntax_flags =CmdArg::isOPTVALREQ); + unsigned int syntax_flags =cmdline::CmdArg::isOPTVALREQ); ShellCmdArg(char * variable_name, char optchar, char * keyword, char * description, - unsigned syntax_flags =CmdArg::isOPT); + unsigned int syntax_flags =cmdline::CmdArg::isOPT); ShellCmdArg(char * variable_name, char * value, char * description, - unsigned syntax_flags =CmdArg::isPOSVALREQ); + unsigned int syntax_flags =cmdline::CmdArg::isPOSVALREQ); - virtual ~ShellCmdArg(void); + virtual ~ShellCmdArg(); // Return the name of this variable/array const char * - name(void) const { return sca_name; } + name() const { return sca_name; } // Are we an array or a variable? int - is_array(void) const; + is_array() const; // Return the variable portion ShellVariable & - variable(void) { return *shell_variable; } + variable() { return *shell_variable; } // Return the array portion ShellArray & - array(void) { return *shell_array; } + array() { return *shell_array; } // If we are a variable then the "set" member function sets the // value of the variable, otherwise it appends to the list of @@@@ -75,7 +79,7 @@@@ set(const char * value); virtual int - operator()(const char * & arg, CmdLine & cmd) = 0; + operator()(const char * & arg, cmdline::CmdLine & cmd) = 0; private: ShellCmdArg(const ShellCmdArg & cp); @ 1.1 log @Initial revision @ text @d1 1 a1 1 $NetBSD$ @ 1.1.1.1 log @cmdline - C++ library for parsing command arguments @ text @@