Enlightenment CVS committal

Author  : mej
Project : eterm
Module  : libast

Dir     : eterm/libast/test


Modified Files:
        test.c 


Log Message:
Tue Dec 14 17:51:20 2004                        Michael Jennings (mej)

More work from my vacation.  Turned the string class into both an
interface and an implementation, and created a new multipurpose buffer
class (untested) for arbitrary text/binary data.  (Think "strings with
embedded newlines" if that helps.)

Now, if someone were so inclined, (s)he could create a LibAST
implementation of the "str" interface based on glib strings, or
QStrings, or whatever with almost no changes to the code using the
libast string API (once the function calls like spif_str_new() are
replaced with macro calls like SPIF_STR_NEW()).

A UTF-8-based string implementation is forthcoming.
----------------------------------------------------------------------

===================================================================
RCS file: /cvsroot/enlightenment/eterm/libast/test/test.c,v
retrieving revision 1.46
retrieving revision 1.47
diff -u -3 -r1.46 -r1.47
--- test.c      26 Oct 2004 18:01:55 -0000      1.46
+++ test.c      15 Dec 2004 00:00:22 -0000      1.47
@@ -21,7 +21,7 @@
  * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
  */
 
-static const char cvs_ident[] = "$Id: test.c,v 1.46 2004/10/26 18:01:55 mej 
Exp $";
+static const char cvs_ident[] = "$Id: test.c,v 1.47 2004/12/15 00:00:22 mej 
Exp $";
 
 #if defined(HAVE_CONFIG_H) && (HAVE_CONFIG_H != 0)
 # include <config.h>
@@ -636,7 +636,7 @@
 test_str(void)
 {
     spif_str_t teststr, test2str;
-    spif_class_t cls;
+    spif_strclass_t cls;
     char tmp[] = "this is a test";
     spif_char_t buff[4096] = "abcde";
     char tmp2[] = "string #1\nstring #2";
@@ -650,8 +650,8 @@
     TEST_PASS();
 
     TEST_BEGIN("spif_obj_get_classname() function");
-    cls = spif_obj_get_class(SPIF_OBJ(teststr));
-    TEST_FAIL_IF(cls != SPIF_CLASS_VAR(str));
+    cls = SPIF_STR_CLASS(spif_obj_get_class(SPIF_OBJ(teststr)));
+    TEST_FAIL_IF(cls != SPIF_STR_CLASS(SPIF_STRCLASS_VAR(str)));
     TEST_PASS();
 
     TEST_BEGIN("spif_str_del() function");




-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now. 
http://productguide.itmanagersjournal.com/
_______________________________________________
enlightenment-cvs mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to