rev 276 - in trunk: . src

SVN User <[email protected]>
Newsgroups gmane.comp.lang.prothon.cvs
Message-ID <[email protected]>
Author: mark
Date: 2004-04-04 14:00:46 -0400 (Sun, 04 Apr 2004)
New Revision: 276

Modified:
   trunk/STATUS.txt
   trunk/src/object.c
Log:
removed clone_object() done wrong way

Modified: trunk/STATUS.txt
===================================================================
--- trunk/STATUS.txt	2004-04-04 17:03:56 UTC (rev 275)
+++ trunk/STATUS.txt	2004-04-04 18:00:46 UTC (rev 276)
@@ -64,7 +64,7 @@
 
 --- add list comprehension
 
---- add Object.clone() method
+--- add Object.clone() method and clone methods for list, string etc.
 --- switch def to use clone instead of singleton
 
 --- switch mro method to C3

Modified: trunk/src/object.c
===================================================================
--- trunk/src/object.c	2004-04-04 17:03:56 UTC (rev 275)
+++ trunk/src/object.c	2004-04-04 18:00:46 UTC (rev 276)
@@ -230,25 +230,6 @@
 	return obj;
 }
 
-//********************************* clone_object *******************************
-obj_p clone_object(isp ist, obj_p obj){
-	obj_p clone = new_object(NULL);
-	read_lock(ist, obj);
-	memcpy(clone, obj, sizeof(obj_t) - sizeof(obj->next_obj));
-	clone->archived			= FALSE;
-	clone->long_wrlock		= FALSE;
-	clone->rdlock_cnt		= 0;
-	clone->wrlock_req_cnt	= 0;
-	clone->wrlock			= 0;
-	clone->del_locked		= TRUE;
-	if (obj->has_attrs)
-		pr_free(obj->attr_proto.attrs);
-	if (obj->data_type == OBJ_TYPE_DATAPTR)
-		pr_free(obj->data.ptr);
-	read_unlock(ist, obj);
-	return clone;
-}
-
 //********************************* free_object *******************************
 void free_object(obj_p obj){
 	if (obj->has_attrs)
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.