]> git.donarmstrong.com Git - lilypond.git/commitdiff
flower-1.0.11
authorfred <fred>
Wed, 4 Dec 1996 21:31:38 +0000 (21:31 +0000)
committerfred <fred>
Wed, 4 Dec 1996 21:31:38 +0000 (21:31 +0000)
flower/Sources.make
flower/string.hh

index 7f2f6441a1d4ec0647dc3260ff1c4af3c32340e7..044543beee9723e6ef6a157b3de9a9c23995b85c 100644 (file)
@@ -1,7 +1,7 @@
 
 cc=lgetopt.cc   string.cc dataf.cc textdb.cc unionfind.cc  \
        smat.cc matrix.cc choleski.cc vector.cc dstream.cc\
-       matdebug.cc interval.cc
+       matdebug.cc interval.cc scalar.cc
 
 templatecc=cursor.cc list.cc tsmat.cc plist.cc
 inl=findcurs.inl link.inl list.inl  cursor.inl plist.inl
@@ -10,5 +10,5 @@ hh=cursor.hh pcursor.hh lgetopt.hh link.hh list.hh dstream.hh \
        findcurs.hh unionfind.hh compare.hh handle.hh matrix.hh\
        smat.hh vsmat.hh  vector.hh  real.hh choleski.hh\
        tsmat.hh tvsmat.hh plist.hh associter.hh fproto.hh\
-       interval.hh
+       interval.hh scalar.hh
 
index 77912beda2f1bd3b79797375d66459a799cecf72..8008f06394f9bb567932a1a205bac356a233d526 100644 (file)
@@ -49,10 +49,11 @@ public:
     ///  return a "new"-ed copy of contents
     char *copy_array() const; //  return a "new"-ed copy of contents
 
-    const char *ptr() const;
-    const char *ptr() { return ((const String *)this)->ptr(); }
+    const char *cptr() const;
+    const char *ptr() { return ((const String *)this)->cptr(); }
+
     /// return the data. Don't use for writing the data.
-    operator const char *() const { return ptr(); }
+    operator const char *() const { return cptr(); }
     
     String operator =( const String & source ) { data = source.data; return *this; }
 
@@ -114,10 +115,6 @@ public:
     /// the length of the string
     int len() const;
 
-    /// DO NOT MAKE THIS INTO AN OPERATOR
-    bool to_bool() const;
-    /** perl -like string to bool conversion
-     */
 };
 /**