[xiph-cvs] cvs commit: vorbis-tools/ogg123 options.c

Kenneth C. Arnold kcarnold at xiph.org
Wed Aug 29 19:06:25 PDT 2001



kcarnold    01/08/29 19:06:24

  Modified:    ogg123   Tag: kcarnold_work options.c
  Log:
  It's pretty reasonable to expect the option parser to allow a comment
  after the data value; this simple addition takes care of that.

Revision  Changes    Path
No                   revision

No                   revision

1.1.2.5   +6 -1      vorbis-tools/ogg123/Attic/options.c

Index: options.c
===================================================================
RCS file: /usr/local/cvsroot/vorbis-tools/ogg123/Attic/options.c,v
retrieving revision 1.1.2.4
retrieving revision 1.1.2.5
diff -u -r1.1.2.4 -r1.1.2.5
--- options.c	2001/08/23 01:52:55	1.1.2.4
+++ options.c	2001/08/30 02:06:24	1.1.2.5
@@ -11,7 +11,7 @@
  *                                                                  *
  ********************************************************************
 
- last mod: $Id: options.c,v 1.1.2.4 2001/08/23 01:52:55 kcarnold Exp $
+ last mod: $Id: options.c,v 1.1.2.5 2001/08/30 02:06:24 kcarnold Exp $
 
  ********************************************************************/
 
@@ -85,6 +85,11 @@
   /* skip leading whitespace */
   while (line[0] == ' ')
     line++;
+
+  /* remove comments */
+  equals = strchr (line, '#');
+  if (equals)
+    *equals = '\0';
 
   /* return if only whitespace on line */
   if (!line[0] || line[0] == '#')

--- >8 ----
List archives:  http://www.xiph.org/archives/
Ogg project homepage: http://www.xiph.org/ogg/
To unsubscribe from this list, send a message to 'cvs-request at xiph.org'
containing only the word 'unsubscribe' in the body.  No subject is needed.
Unsubscribe messages sent to the list will be ignored/filtered.



More information about the commits mailing list