Enlightenment CVS committal
Author : mej
Project : eterm
Module : libast
Dir : eterm/libast/include/libast
Modified Files:
linked_list.h map_if.h str.h
Log Message:
Wed Mar 10 17:15:14 2004 Michael Jennings (mej)
Working map implementation using the linked_list class.
Added some new string functions.
===================================================================
RCS file: /cvsroot/enlightenment/eterm/libast/include/libast/linked_list.h,v
retrieving revision 1.12
retrieving revision 1.13
diff -u -3 -r1.12 -r1.13
--- linked_list.h 2 Feb 2004 22:21:21 -0000 1.12
+++ linked_list.h 10 Mar 2004 22:07:31 -0000 1.13
@@ -48,5 +48,6 @@
extern spif_listclass_t SPIF_LISTCLASS_VAR(linked_list);
extern spif_vectorclass_t SPIF_VECTORCLASS_VAR(linked_list);
+extern spif_mapclass_t SPIF_MAPCLASS_VAR(linked_list);
#endif /* _LIBAST_LINKED_LIST_H_ */
===================================================================
RCS file: /cvsroot/enlightenment/eterm/libast/include/libast/map_if.h,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -3 -r1.1 -r1.2
--- map_if.h 24 Jan 2004 19:53:25 -0000 1.1
+++ map_if.h 10 Mar 2004 22:07:31 -0000 1.2
@@ -56,11 +56,11 @@
#define SPIF_MAP_COUNT(o) SPIF_CAST_C(size_t)
((SPIF_MAP_CALL_METHOD((o), count))(o))
#define SPIF_MAP_GET(o, key) SPIF_CAST(obj)
((SPIF_MAP_CALL_METHOD((o), get))(o, key))
-#define SPIF_MAP_GET_KEYS(o) SPIF_CAST(list)
((SPIF_MAP_CALL_METHOD((o), get_keys))(o))
-#define SPIF_MAP_GET_PAIRS(o) SPIF_CAST(list)
((SPIF_MAP_CALL_METHOD((o), get_pairs))(o))
-#define SPIF_MAP_GET_VALUES(o) SPIF_CAST(list)
((SPIF_MAP_CALL_METHOD((o), get_values))(o))
+#define SPIF_MAP_GET_KEYS(o, l) SPIF_CAST(list)
((SPIF_MAP_CALL_METHOD((o), get_keys))(o, l))
+#define SPIF_MAP_GET_PAIRS(o, l) SPIF_CAST(list)
((SPIF_MAP_CALL_METHOD((o), get_pairs))(o, l))
+#define SPIF_MAP_GET_VALUES(o, l) SPIF_CAST(list)
((SPIF_MAP_CALL_METHOD((o), get_values))(o, l))
#define SPIF_MAP_HAS_KEY(o, key) SPIF_CAST(bool)
((SPIF_MAP_CALL_METHOD((o), has_key))(o, key))
-#define SPIF_MAP_HAS_VALUE(o, value) SPIF_CAST(bool)
((SPIF_MAP_CALL_METHOD((o), hash_value))(o, value))
+#define SPIF_MAP_HAS_VALUE(o, value) SPIF_CAST(bool)
((SPIF_MAP_CALL_METHOD((o), has_value))(o, value))
#define SPIF_MAP_ITERATOR(o) SPIF_CAST(iterator)
((SPIF_MAP_CALL_METHOD((o), iterator))(o))
#define SPIF_MAP_REMOVE(o, item) SPIF_CAST(obj)
((SPIF_MAP_CALL_METHOD((o), remove))(o, item))
#define SPIF_MAP_SET(o, key, value) SPIF_CAST(bool)
((SPIF_MAP_CALL_METHOD((o), set))(o, key, value))
===================================================================
RCS file: /cvsroot/enlightenment/eterm/libast/include/libast/str.h,v
retrieving revision 1.18
retrieving revision 1.19
diff -u -3 -r1.18 -r1.19
--- str.h 3 Feb 2004 23:16:59 -0000 1.18
+++ str.h 10 Mar 2004 22:07:31 -0000 1.19
@@ -68,6 +68,7 @@
extern spif_cmp_t spif_str_comp(spif_str_t, spif_str_t);
extern spif_str_t spif_str_dup(spif_str_t);
extern spif_classname_t spif_str_type(spif_str_t);
+
extern spif_bool_t spif_str_append(spif_str_t, spif_str_t);
extern spif_bool_t spif_str_append_char(spif_str_t, spif_char_t);
extern spif_bool_t spif_str_append_from_ptr(spif_str_t, spif_charptr_t);
@@ -76,6 +77,7 @@
extern spif_bool_t spif_str_clear(spif_str_t, spif_char_t);
extern spif_cmp_t spif_str_cmp(spif_str_t, spif_str_t);
extern spif_cmp_t spif_str_cmp_with_ptr(spif_str_t, spif_charptr_t);
+extern spif_bool_t spif_str_downcase(spif_str_t);
extern spif_stridx_t spif_str_find(spif_str_t, spif_str_t);
extern spif_stridx_t spif_str_find_from_ptr(spif_str_t, spif_charptr_t);
extern spif_stridx_t spif_str_index(spif_str_t, spif_char_t);
@@ -83,6 +85,9 @@
extern spif_cmp_t spif_str_ncasecmp_with_ptr(spif_str_t, spif_charptr_t,
spif_stridx_t);
extern spif_cmp_t spif_str_ncmp(spif_str_t, spif_str_t, spif_stridx_t);
extern spif_cmp_t spif_str_ncmp_with_ptr(spif_str_t, spif_charptr_t, spif_stridx_t);
+extern spif_bool_t spif_str_prepend(spif_str_t, spif_str_t);
+extern spif_bool_t spif_str_prepend_char(spif_str_t, spif_char_t);
+extern spif_bool_t spif_str_prepend_from_ptr(spif_str_t, spif_charptr_t);
extern spif_bool_t spif_str_reverse(spif_str_t);
extern spif_stridx_t spif_str_rindex(spif_str_t, spif_char_t);
extern spif_bool_t spif_str_splice(spif_str_t, spif_stridx_t, spif_stridx_t,
spif_str_t);
@@ -92,6 +97,7 @@
extern double spif_str_to_float(spif_str_t);
extern size_t spif_str_to_num(spif_str_t, int);
extern spif_bool_t spif_str_trim(spif_str_t);
+extern spif_bool_t spif_str_upcase(spif_str_t);
SPIF_DECL_PROPERTY_FUNC_C(str, spif_stridx_t, size);
SPIF_DECL_PROPERTY_FUNC_C(str, spif_stridx_t, len);
-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
_______________________________________________
enlightenment-cvs mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs