[Tinyos-contrib-commits] CVS: tinyos-1.x/contrib/wustl/apps/Agilla/components TupleUtilM.nc, 1.8, 1.8.2.1

Chien-Liang Fok chien-liang at users.sourceforge.net
Wed Dec 20 04:02:28 PST 2006


Update of /cvsroot/tinyos/tinyos-1.x/contrib/wustl/apps/Agilla/components
In directory sc8-pr-cvs10.sourceforge.net:/tmp/cvs-serv21590

Modified Files:
      Tag: GroupComm
	TupleUtilM.nc 
Log Message:
works when the person that moved is the first to talk.

Index: TupleUtilM.nc
===================================================================
RCS file: /cvsroot/tinyos/tinyos-1.x/contrib/wustl/apps/Agilla/components/TupleUtilM.nc,v
retrieving revision 1.8
retrieving revision 1.8.2.1
diff -C2 -d -r1.8 -r1.8.2.1
*** TupleUtilM.nc	18 May 2006 19:58:40 -0000	1.8
--- TupleUtilM.nc	20 Dec 2006 12:02:25 -0000	1.8.2.1
***************
*** 56,62 ****
  }
  implementation {
!   inline void clearTuple(AgillaTuple* tuple) {
      tuple->flags = AGILLA_TUPLE_RESET;
      tuple->size = 0;
    }
    
--- 56,67 ----
  }
  implementation {
!   
!   /**
!    * Removes all fields from a tuple.
!    */
!   command result_t TupleUtilI.clearTuple(AgillaTuple* tuple) {
      tuple->flags = AGILLA_TUPLE_RESET;
      tuple->size = 0;
+     return SUCCESS;
    }
    
***************
*** 521,525 ****
      #endif    
      
!     clearTuple(tuple);
      field1.vtype = AGILLA_TYPE_STRING;
      field1.string.string = AGILLA_TUPLE_STRING_HOST;
--- 526,530 ----
      #endif    
      
!     call TupleUtilI.clearTuple(tuple);
      field1.vtype = AGILLA_TYPE_STRING;
      field1.string.string = AGILLA_TUPLE_STRING_HOST;
***************
*** 546,550 ****
      #endif    
      
!     clearTuple(tuple);
      field1.vtype = AGILLA_TYPE_STRING;
      field1.string.string = AGILLA_TUPLE_STRING_AGENT;    
--- 551,555 ----
      #endif    
      
!     call TupleUtilI.clearTuple(tuple);
      field1.vtype = AGILLA_TYPE_STRING;
      field1.string.string = AGILLA_TUPLE_STRING_AGENT;    



More information about the Tinyos-contrib-commits mailing list