home *** CD-ROM | disk | FTP | other *** search
/ Personal Computer World 2007 September / PCWSEP07.iso / Software / Linux / Linux Mint 3.0 Light / LinuxMint-3.0-Light.iso / casper / filesystem.squashfs / usr / share / snmp / mib2c-data / generic-ctx-copy.m2i < prev    next >
Encoding:
Text File  |  2007-02-07  |  1.1 KB  |  34 lines

  1. #############################################################  -*- c -*-
  2. ## generic include for XXX. Do not use directly.
  3. ##
  4. ## $Id: generic-ctx-copy.m2i,v 1.8 2004/10/08 23:39:16 rstory Exp $
  5. ########################################################################
  6. @if $m2c_mark_boundary == 1@
  7. /** START code generated by $RCSfile: generic-ctx-copy.m2i,v $ $Revision: 1.8 $ */
  8. @end@
  9. ########################################################################
  10. ##
  11.     /*
  12. @if $m2c_node_needlength == 1@
  13.      * copy $node and ${node}_len data
  14. @else@
  15.      * copy $node data
  16. @end@
  17.      * set ${m2c_ctx_lh} from ${m2c_ctx_rh}
  18.      */
  19. @if ($m2c_include_examples != 0) || ("$m2c_data_context" eq "generated")@
  20. @   if $m2c_node_needlength == 0@
  21.     ${m2c_ctx_lh} = ${m2c_ctx_rh};
  22. @   else@
  23.     memcpy( ${m2c_ctx_lh}, ${m2c_ctx_rh},
  24.             (${m2c_ctx_rhs} * sizeof(${m2c_ctx_lh}[0])));
  25.     ${m2c_ctx_lhs} = ${m2c_ctx_rhs};
  26. @   end@ # need length
  27. @end@
  28.  
  29. ##
  30. ########################################################################
  31. @if $m2c_mark_boundary == 1@
  32. /** END code generated by $RCSfile: generic-ctx-copy.m2i,v $ $Revision: 1.8 $ */
  33. @end@
  34.