summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjbj <jbj>2010-03-13 03:56:15 +0000
committerjbj <jbj>2010-03-13 03:56:15 +0000
commit3ba60ad76792d64c52cd19b85cf471b40701f8d5 (patch)
treed7b73d01d87a1caf9af48e9776237f6f902e1a55
parente35527f2d479025e9eda29fda7e96b0ea018ea1e (diff)
downloadlibpopt-3ba60ad76792d64c52cd19b85cf471b40701f8d5.tar.gz
- add specialized types for destructor unit tests.
-rw-r--r--auto/types.in31
1 files changed, 30 insertions, 1 deletions
diff --git a/auto/types.in b/auto/types.in
index e446b67..74a6c33 100644
--- a/auto/types.in
+++ b/auto/types.in
@@ -49,9 +49,38 @@
<associating>
<except>
poptAddItem <!-- FIXME -->
+ </except>
+ </associating>
+</spec_type>
+<spec_type>
+ <kind> normal </kind>
+ <data_type> poptContext </data_type>
+ <value> poptGetContext(argv[0], argc, argv, optionsTable, 0) </value>
+ <associating>
+ <interfaces>
poptFreeContext
poptFini
- </except>
+ </interfaces>
+ <links> param1 </links>
+ </associating>
+</spec_type>
+<spec_type>
+ <kind> normal </kind>
+ <data_type> poptItem </data_type>
+ <value> NULL </value>
+ <global_code>
+ #include <malloc.h>
+ </global_code>
+ <init_code>
+ $0 = calloc(1, sizeof(*$0));
+ $0->option = *poptHelpOptionsI18N;
+ $0->argc = 1;
+ $0->argv = calloc(2, sizeof(*$0->argv));
+ $0->argv[0] = strdup("arg1");
+ </init_code>
+ <associating>
+ <interfaces> poptAddItem </interfaces>
+ <links> param2 </links>
</associating>
</spec_type>