]> git.donarmstrong.com Git - lilypond.git/commitdiff
lilypond-0.1.24
authorfred <fred>
Sun, 24 Mar 2002 20:00:40 +0000 (20:00 +0000)
committerfred <fred>
Sun, 24 Mar 2002 20:00:40 +0000 (20:00 +0000)
TODO
VERSION
flower/data-file.cc

diff --git a/TODO b/TODO
index b8615af6f3adad89c72787573ee90e4a3033e068..96a9fa16a374d3d4355459755a83b8e0d2c0cb63 100644 (file)
--- a/TODO
+++ b/TODO
@@ -12,7 +12,6 @@ grep for TODO and ugh/ugr
 
        * standchen: warning: Excentric column (Meter dims?)
 
-
        * optimal pagebreaking.
 
        * put errorlevel in Input class
@@ -69,7 +68,7 @@ PROJECTS
        - examples to go with it.
 
        * Spring_spacer:
-       - write a faster Spring_spacer ( without matrices if possible )
+       - write a faster Spring_spacer (without matrices if possible)
        - use straight QP to find minimal "fitting force"
        - relate energybound to linelen unitspace fontsize etc.
        - used fixed point fp
diff --git a/VERSION b/VERSION
index b337cd5d370b2be75f2cecc9fea57af0abb6b1fd..5cdf9560bc1d1b6d00d22e61ff01cee55d95cac5 100644 (file)
--- a/VERSION
+++ b/VERSION
@@ -1,6 +1,6 @@
 TOPLEVEL_MAJOR_VERSION = 0
 TOPLEVEL_MINOR_VERSION = 1
-TOPLEVEL_PATCH_LEVEL = 23
+TOPLEVEL_PATCH_LEVEL = 24
 TOPLEVEL_MY_PATCH_LEVEL = 
 
 # use the above to send patches, always empty for released version:
index 251380d3c806f5a11a16a0696253019e181ccccb..5a273c5dbb6b33b5f022b289a05f3a26d8266169 100644 (file)
+/*   
+  data-file.cc --  implement Data_file 
+  
+  source file of the Flower Library
+  
+  (c) '95, '96, '97 Han-Wen Nienhuys <hanwen@stack.nl>
+  
+  */
 #include <fstream.h>
 #include <ctype.h>
 
+#include "international.hh"
 #include "data-file.hh"
 
-void 
+void
 Data_file::gobble_white()
 {
   char c;
-  
+
   while ((c=data_get()) == ' ' ||c == '\t')
-       if (eof()) 
-           break;
+    if (eof())
+      break;
 
   data_unget (c);
 }
 
 String
-Data_file::get_word() 
+Data_file::get_word()
 {// should handle escape seq's
   String s;
 
-  while (1) 
+  while (1)
+    {
+      char     c  = data_get();
+
+      if (isspace (c) || eof())
        {
-       char    c  = data_get();
-       
-       if (isspace (c) || eof()) 
-           {
-           data_unget (c);
-           break;
-             }
-       
-       
-       if (c == '\"')
-           {
-           rawmode= true;
-
-           while ((c  = data_get()) != '\"')
-               if (eof())
-                   error ("EOF in a string");          
-               else
-                   s += c;
-           
-
-           rawmode= false;
-           }       
-       else
-           s += c;             
-         }
-  
-  return s;          
+         data_unget (c);
+         break;
+       }
+
+
+      if (c == '\"')
+       {
+         rawmode= true;
+
+         while ((c  = data_get()) != '\"')
+           if (eof())
+             error (_("EOF in a string"));
+           else
+             s += c;
+
+
+         rawmode= false;
+       }
+      else
+       s += c;
+    }
+
+  return s;
 }
 
-/**  get a char 
+/**  get a char
    Only class member who uses text_file::get
    */
 char
 Data_file::data_get() {
-  char c =  get(); 
+  char c =  get();
   if (!rawmode && c == '#') // gobble comment
-       {       
-       while ((c = get()) != '\n' && !eof ()) 
-           ;
-           return '\n';
-         }
+    {
+      while ((c = get()) != '\n' && !eof ())
+       ;
+      return '\n';
+    }
 
   return c;
 }
 
-/// read line, gobble '\n'    
-String Data_file::get_line()     
+/// read line, gobble '\n'
+String Data_file::get_line()
 {
-  char c; 
+  char c;
   String s;
 
   while ((c  = data_get()) != '\n' && !eof ())
-       s += c;
-  return s;    
+    s += c;
+  return s;
 }
 
-/// gobble stuff before first entry on a line.    
+/// gobble stuff before first entry on a line.
 void
-Data_file::gobble_leading_white() 
+Data_file::gobble_leading_white()
 {
   // eat blank lines.
-  while (!eof()) 
+  while (!eof())
     {
-       char c = data_get();                
-       if (!isspace (c)) 
-         {
-           data_unget (c);
-           break;
-         }
+      char c = data_get();
+      if (!isspace (c))
+       {
+         data_unget (c);
+         break;
+       }
     }
 }
-
-