ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/group/trunk/mdtools/interface_implementation/MakeStamps.cpp
(Generate patch)

Comparing trunk/mdtools/interface_implementation/MakeStamps.cpp (file contents):
Revision 165 by mmeineke, Tue Nov 5 22:04:46 2002 UTC vs.
Revision 166 by mmeineke, Thu Nov 7 17:53:34 2002 UTC

# Line 151 | Line 151 | int MakeStamps::newAtom( event* the_event ){
151    the_event->err_msg = current_mol->addAtom( current_atom,
152                                               the_event->evt.blk_index );
153    if( the_event->err_msg != NULL ) return 0;
154
154    return 1;
155   }
156  
# Line 177 | Line 176 | int MakeStamps::atomAssign( event* the_event ){
176    switch( the_event->evt.asmt.asmt_type ){
177      
178    case STRING:
179 <    current_atom->assignString( the_event->evt.asmt.lhs,
180 <                               the_event->evt.asmt.rhs.sval );
179 >    the_event->err_msg = current_atom->assignString( the_event->evt.asmt.lhs,
180 >                                                     the_event->evt.asmt.rhs.sval );
181 >    if( the_event->err_msg != NULL ) return 0;
182      return 1;
183      break;
184  
185    case DOUBLE:
186 <    current_atom->assignDouble( the_event->evt.asmt.lhs,
187 <                               the_event->evt.asmt.rhs.dval );
188 <    return 1;
186 >    the_event->err_msg = current_atom->assignDouble( the_event->evt.asmt.lhs,
187 >                                                     the_event->evt.asmt.rhs.dval );
188 >    if( the_event->err_msg != NULL ) return 0;
189 >    return 1;    
190      break;
191  
192    case INT:
193 <    current_atom->assignInt( the_event->evt.asmt.lhs,
194 <                            the_event->evt.asmt.rhs.ival );
193 >    the_event->err_msg = current_atom->assignInt( the_event->evt.asmt.lhs,
194 >                                                  the_event->evt.asmt.rhs.ival );
195 >    if( the_event->err_msg != NULL ) return 0;
196      return 1;
197      break;
198  

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines