summaryrefslogtreecommitdiff
path: root/scripts/kconfig/kconfig.i
Unidiff
Diffstat (limited to 'scripts/kconfig/kconfig.i') (more/less context) (ignore whitespace changes)
-rw-r--r--scripts/kconfig/kconfig.i5
1 files changed, 5 insertions, 0 deletions
diff --git a/scripts/kconfig/kconfig.i b/scripts/kconfig/kconfig.i
index 699cb13..77405fc 100644
--- a/scripts/kconfig/kconfig.i
+++ b/scripts/kconfig/kconfig.i
@@ -22,24 +22,29 @@
22 else 22 else
23 $1 = STR2CSTR($input); 23 $1 = STR2CSTR($input);
24} 24}
25 25
26%{ 26%{
27static void expr_to_s_help(void *data, const char *str) 27static void expr_to_s_help(void *data, const char *str)
28{ 28{
29 rb_str_cat((VALUE)data, str, strlen(str)); 29 rb_str_cat((VALUE)data, str, strlen(str));
30} 30}
31%} 31%}
32#endif 32#endif
33 33
34#ifdef SWIGPYTHON
35%rename (Property) property;
36%rename (default) def;
37#endif
38
34%immutable; 39%immutable;
35%include "expr.h" 40%include "expr.h"
36#define P(name,type,arg) extern type name arg 41#define P(name,type,arg) extern type name arg
37%include "lkc_proto.h" 42%include "lkc_proto.h"
38%mutable; 43%mutable;
39 44
40#ifdef SWIGRUBY 45#ifdef SWIGRUBY
41%predicate menu::isVisible; 46%predicate menu::isVisible;
42%predicate symbol::isChangable; 47%predicate symbol::isChangable;
43%predicate symbol::isChoice; 48%predicate symbol::isChoice;
44%predicate symbol::isChoiceValue; 49%predicate symbol::isChoiceValue;
45#endif 50#endif