poldek: trurlib/nstr_tokl.c - do not treat quotes as whitespaces

mis mis at pld-linux.org
Thu Aug 31 20:53:05 CEST 2006


Author: mis                          Date: Thu Aug 31 18:53:05 2006 GMT
Module: poldek                        Tag: HEAD
---- Log message:
- do not treat quotes as whitespaces

---- Files affected:
poldek/trurlib:
   nstr_tokl.c (1.15 -> 1.16) 

---- Diffs:

================================================================
Index: poldek/trurlib/nstr_tokl.c
diff -u poldek/trurlib/nstr_tokl.c:1.15 poldek/trurlib/nstr_tokl.c:1.16
--- poldek/trurlib/nstr_tokl.c:1.15	Mon Oct  4 23:07:44 2004
+++ poldek/trurlib/nstr_tokl.c	Thu Aug 31 20:53:00 2006
@@ -203,7 +203,8 @@
           
         } else if ((p = strchr(st->quote, c))) {
             switch(st->state) {
-                case ST_WHITE: 
+                case ST_WHITE:
+                case ST_TOKEN:
                     st->state = ST_QUOTE;
                     st->curr_quote = *p;
                     break;
@@ -216,10 +217,12 @@
                         st->curr_quote = 0;
                     }
                     break;
-
-                case ST_TOKEN:
+#if 0 /* XXX: disabled treating quotes as whitespaces */
+                    case ST_TOKEN:
                     st->state = ST_WHITE;
                     goto l_end;
+#endif                    
+                    
             }
           
         } else if ((p = strchr(st->white, c))) { 
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/poldek/trurlib/nstr_tokl.c?r1=1.15&r2=1.16&f=u



More information about the pld-cvs-commit mailing list