[xiph-cvs] cvs commit: ices/src playlist_basic.c

Michael Smith msmith at xiph.org
Fri Aug 9 21:26:53 PDT 2002



msmith      02/08/10 00:26:52

  Modified:    src      playlist_basic.c
  Log:
  Allow commenting out playlist entries with #

Revision  Changes    Path
1.7       +4 -1      ices/src/playlist_basic.c

Index: playlist_basic.c
===================================================================
RCS file: /usr/local/cvsroot/ices/src/playlist_basic.c,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -r1.6 -r1.7
--- playlist_basic.c	7 Jul 2002 11:07:55 -0000	1.6
+++ playlist_basic.c	10 Aug 2002 04:26:52 -0000	1.7
@@ -1,7 +1,7 @@
 /* playlist_basic.c
  * - Simple built-in unscripted playlist
  *
- * $Id: playlist_basic.c,v 1.6 2002/07/07 11:07:55 msmith Exp $
+ * $Id: playlist_basic.c,v 1.7 2002/08/10 04:26:52 msmith Exp $
  *
  * Copyright (c) 2001 Michael Smith <msmith at labyrinth.net.au>
  *
@@ -84,6 +84,9 @@
                 if(buf[0]==0) break;
 
         if(buf[0]=='\n' || (buf[0]=='\r' && buf[1]=='\n'))
+            continue;
+
+        if(buf[0] == '#') /* Commented out entry */
             continue;
 
                 buf[strlen(buf)-1] = 0;

<p><p>--- >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