generic-table-constants.m2c
上传用户:wxp200602
上传日期:2007-10-30
资源大小:4028k
文件大小:2k
源码类别:
SNMP编程
开发平台:
Unix_Linux
- ############################################################# -*- c -*-
- ## generic include for XXX. Do not use directly.
- ##
- ## $Id: generic-table-constants.m2c,v 1.4 2004/06/07 18:20:28 rstory Exp $
- ########################################################################
- @if $m2c_create_fewer_files != 1@
- @ foreach $table table@
- @ include m2c_setup_table.m2i@
- @ run generic-table-oids.m2c@
- @ run generic-table-enums.m2c@
- @ end@ # table
- ########################################################################
- @else@
- @ eval $hack = "Id"@
- @ eval $m2c_save = "$name"@
- @ eval $name = "${m2c_save}_constants"@
- @ open ${name}.h@
- /*
- * Note: this file originally auto-generated by mib2c using
- * $Id: generic-table-constants.m2c,v 1.4 2004/06/07 18:20:28 rstory Exp $
- *
- * $$hack:$
- */
- ########################################################################
- @ if $m2c_mark_boundary == 1@
- /** START header generated by $RCSfile: generic-table-constants.m2c,v $ $Revision: 1.4 $ */
- @ end@
- ########################################################################
- @ include generic-header-top.m2i@
- @ eval $name = "$m2c_save"@
- @ foreach $table table@
- @ include m2c_setup_table.m2i@
- @ include generic-table-oids.m2c@
- @ include generic-table-enums.m2c@
- @ end@ # table
- @ eval $m2c_save = "$name"@
- @ eval $name = "${m2c_save}_oids"@
- @ include generic-header-bottom.m2i@
- @ eval $name = $m2c_save@
- ########################################################################
- @ if $m2c_mark_boundary == 1@
- /** END header generated by $RCSfile: generic-table-constants.m2c,v $ $Revision: 1.4 $ */
- @ end@
- @end@ // m2c_create_fewer_files