summaryrefslogtreecommitdiff
path: root/local/mib2c-conf.d/generic-get-decl.m2i
diff options
context:
space:
mode:
Diffstat (limited to 'local/mib2c-conf.d/generic-get-decl.m2i')
-rw-r--r--local/mib2c-conf.d/generic-get-decl.m2i43
1 files changed, 43 insertions, 0 deletions
diff --git a/local/mib2c-conf.d/generic-get-decl.m2i b/local/mib2c-conf.d/generic-get-decl.m2i
new file mode 100644
index 0000000..0568e1c
--- /dev/null
+++ b/local/mib2c-conf.d/generic-get-decl.m2i
@@ -0,0 +1,43 @@
+############################################################# -*- c -*-
+## generic include for XXX. Do not use directly.
+##
+## $Id$
+########################################################################
+@if $m2c_mark_boundary == 1@
+/** START code generated by $RCSfile$ $Revision$ */
+@end@
+########################################################################
+##
+@if $m2c_get_use_temp == 1@
+ /*
+ * Define temporary variable(s). If speed/efficency is an issue,
+ * remove this code and deal with the pointer directly.
+ * (set $@m2c_get_use_temp = 0 in your conf file to turn off)
+ */
+@ if $m2c_node_needlength == 1@
+ $m2c_decl * $m2c_node_lh;
+ size_t $m2c_node_lhs;
+@ else@
+ $m2c_decl $m2c_node_lh;
+@ end@
+
+@end@
+@if $m2c_node_needlength == 1@
+ /** we should have a non-NULL pointer and enough storage */
+ netsnmp_assert( (NULL != $m2c_node_param_ref_name) && (NULL != *$m2c_node_param_ref_name));
+ netsnmp_assert( NULL != $m2c_node_param_ref_lname );
+@else@
+ /** we should have a non-NULL pointer */
+ netsnmp_assert( NULL != $m2c_node_param_ref_name );
+@end@
+
+@if ($m2c_get_use_temp == 1) && ($m2c_node_needlength == 1)@
+ $m2c_node_lh = (* $m2c_node_param_ref_name);
+ $m2c_node_lhs = (* $m2c_node_param_ref_lname);
+
+@end@
+##
+########################################################################
+@if $m2c_mark_boundary == 1@
+/** END code generated by $RCSfile$ $Revision$ */
+@end@