[Gridflow-cvs] [svn] commit: r3367 - /trunk/base/main.c

gridflow-cvs at artengine.ca gridflow-cvs at artengine.ca
Sun Mar 30 18:50:15 EDT 2008


Author: matju
Date: Sun Mar 30 18:50:15 2008
New Revision: 3367

Log:
remove swap16!,swap32! from Ruby

Modified:
    trunk/base/main.c

Modified: trunk/base/main.c
==============================================================================
--- trunk/base/main.c (original)
+++ trunk/base/main.c Sun Mar 30 18:50:15 2008
@@ -298,18 +298,6 @@
 
 /* ---------------------------------------------------------------- */
 /* C++<->Ruby bridge for classes/functions in base/number.c */
-
-static Ruby String_swap32_f (Ruby rself) {
-	int n = rb_str_len(rself)/4;
-	swap32(n,(uint32 *)rb_str_ptr(rself));
-	return rself;
-}
-
-static Ruby String_swap16_f (Ruby rself) {
-	int n = rb_str_len(rself)/2;
-	swap16(n,(uint16 *)rb_str_ptr(rself));
-	return rself;
-}
 
 NumberTypeE NumberTypeE_find (string s) {
 	if (number_type_dict.find(s)==number_type_dict.end()) RAISE("unknown number type \"%s\"", s.data());



More information about the Gridflow-cvs mailing list