home *** CD-ROM | disk | FTP | other *** search
/ PC Welt 2006 November (DVD) / PCWELT_11_2006.ISO / casper / filesystem.squashfs / usr / share / snmp / mib2c-data / m2c_setup_table.m2i < prev    next >
Encoding:
Text File  |  2006-08-08  |  3.1 KB  |  79 lines

  1. #############################################################  -*- c -*-
  2. ## generic include for XXX. Do not use directly.
  3. ##
  4. ## $Id: m2c_setup_table.m2i,v 1.16.2.1 2005/02/25 22:36:22 rstory Exp $
  5. ########################################################################
  6. @if $m2c_mark_boundary == 1@
  7. /** START code generated by $RCSfile: m2c_setup_table.m2i,v $ $Revision: 1.16.2.1 $ */
  8. @end@
  9. ########################################################################
  10. ##
  11. @if "x$mfd_readme_verbose" eq "x"@
  12. @   include default-mfd-top.m2c@
  13. @end@
  14. @if "$m2c_context_name" ne "$table"@
  15. @    eval $m2c_context_name = $table@
  16. @    eval $context = $table@
  17. @    if $m2c_report_progress == 1@
  18. @       print | +-> Processing table $context@
  19. @    end@
  20. @    eval $m2c_context_item = "rowreq_ctx->"@
  21. @    eval $m2c_table_external_indexes = count_external_indexes($context)@
  22. @    eval $m2c_table_settable = table_is_writable($context)@
  23. @    eval $m2c_table_dependencies = $m2c_table_settable@
  24. @    eval $m2c_table_row_creation = table_has_create($context)@
  25. @    eval $m2c_table_skip_mapping = -1@ # -1 = no default; based on type
  26. ##
  27. @    eval $m2c_context_reg = "$mfd_default_context_reg"@
  28. @    eval $m2c_data_context = "$mfd_default_data_context"@
  29. @    eval $m2c_table_access = "$mfd_default_table_access"@
  30. @    eval $m2c_data_allocate = $mfd_default_data_allocate@
  31. @    eval $m2c_undo_embed = $mfd_default_undo_embed@
  32. @    eval $m2c_data_init = $mfd_default_data_init@
  33. ##// transient: 0:persistent, 1:semi-transient, 2:transient
  34. @    eval $m2c_data_transient = $mfd_default_data_transient@
  35. @    eval $m2c_include_examples = $mfd_default_include_examples@
  36. @    eval $m2c_irreversible_commit = 0@
  37. @    eval $m2c_gda_todo_suppress = 0@ # todo comments
  38. ##
  39. ##   allow for user override, or save defaults
  40. ##
  41. @    ifconf default-table-${context}.m2d@
  42. @      if $mfd_interactive_setup == 1@
  43. @        print There are existing defaults for $context.@
  44. @        prompt $ans o)verwrite or u)se existing [default=u] : @
  45. @        if "x$ans" eq "xo"@
  46. @          run mfd-interactive-setup.m2c@
  47. @        end@ 
  48. @      end@
  49. @    else@ # no existing defaults
  50. @      run mfd-interactive-setup.m2c@
  51. @    end@ # no conf file
  52. @    if $m2c_gen_table_defaults == 1@
  53. @       exit@
  54. @    end@
  55. @    include default-table-${context}.m2d@
  56. ##
  57. @    eval $m2c_data_item_base = "${m2c_context_item}data"@
  58. @    if $m2c_data_allocate == 1@
  59. @        eval $m2c_data_item = "${m2c_data_item_base}->"@
  60. @    else@
  61. @        eval $m2c_data_item = "${m2c_data_item_base}."@
  62. @    end@
  63. @    if $m2c_table_settable == 0@
  64. @        eval $m2c_undo_embed = 1@
  65. @    end@
  66. @    eval $m2c_undo_item_base = "${m2c_context_item}undo"@
  67. @    if $m2c_undo_embed == 1@
  68. @        eval $m2c_undo_item = "${m2c_undo_item_base}."@
  69. @    else@
  70. @        eval $m2c_undo_item = "${m2c_undo_item_base}->"@
  71. @    end@
  72. @end@
  73. @eval $m2c_node_name = ""@
  74. ########################################################################
  75. ########################################################################
  76. @if $m2c_mark_boundary == 1@
  77. /** END code generated by $RCSfile: m2c_setup_table.m2i,v $ $Revision: 1.16.2.1 $ */
  78. @end@
  79.