Enlightenment CVS committal

Author  : mej
Project : eterm
Module  : libast

Dir     : eterm/libast/include


Modified Files:
        libast.h 


Log Message:
Fri Feb 24 16:45:38 2006                        Michael Jennings (mej)

Make removal of options from argv[] optional and off by default.
Fixes Eterm problem with WM_COMMAND entries being empty.
----------------------------------------------------------------------

===================================================================
RCS file: /cvsroot/enlightenment/eterm/libast/include/libast.h,v
retrieving revision 1.62
retrieving revision 1.63
diff -u -3 -r1.62 -r1.63
--- libast.h    23 Jan 2006 19:31:54 -0000      1.62
+++ libast.h    24 Feb 2006 21:46:11 -0000      1.63
@@ -30,8 +30,8 @@
  * including all required system headers and LibAST Object headers.
  *
  * @author Michael Jennings <[EMAIL PROTECTED]>
- * @version $Revision: 1.62 $
- * @date $Date: 2006/01/23 19:31:54 $
+ * @version $Revision: 1.63 $
+ * @date $Date: 2006/02/24 21:46:11 $
  */
 
 #ifndef _LIBAST_H_
@@ -1743,9 +1743,7 @@
  *
  * The option parser settings structure (spifopt_settings_t_struct)
  * has an 8-bit flag field which contains toggles affecting the
- * parser's internal behavior.  As a general rule, these will not be
- * flags that client programs will want to manipulate.  In the event
- * that you do wish to manipulate these flags, use the
+ * parser's internal behavior.  Manipulate these flags using the
  * SPIFOPT_FLAGS_*() macros.
  *
  * @ingroup DOXGRP_OPT
@@ -1760,6 +1758,17 @@
  * this flag is not required.
  */
 #define SPIFOPT_SETTING_PREPARSE         (1UL << 0)
+
+/** 
+ * Remove arguments flag.  This flag controls whether spifopt_parse()
+ * will return argv[] unmodified or remove all option parameters.  For
+ * example: if this flag were set and argv[] contained "tar", "-zcvf",
+ * "foo.tar.gz", "foo/" prior to calling spifopt_parse(), after option
+ * parsing was complete, argv[] would contain only "tar", "foo/".
+ * Everything else would be consumed by the options "-z", "-c", "-v",
+ * and "-f foo.tar.gz".  Use of this flag is not required.
+ */
+#define SPIFOPT_SETTING_REMOVE_ARGS      (1UL << 1)
 /[EMAIL PROTECTED]/
 
 /[EMAIL PROTECTED]/




-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to