author | kergoth <kergoth> | 2003-01-16 18:04:11 (UTC) |
---|---|---|
committer | kergoth <kergoth> | 2003-01-16 18:04:11 (UTC) |
commit | 3904d85eac20dfd21cf2a3245977f9946865fd92 (patch) (unidiff) | |
tree | 8d5b2217c1b54a0c439815ec02db3f5235c99daa /scripts/kconfig/kconfig.i | |
parent | 0eec393ef2dd8b43db96c86e80e307f73a771fae (diff) | |
download | opie-3904d85eac20dfd21cf2a3245977f9946865fd92.zip opie-3904d85eac20dfd21cf2a3245977f9946865fd92.tar.gz opie-3904d85eac20dfd21cf2a3245977f9946865fd92.tar.bz2 |
Update LinuxKernelConf to 1.3, latest available.
-rw-r--r-- | scripts/kconfig/kconfig.i | 5 |
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 | |||
@@ -10,48 +10,53 @@ | |||
10 | %nodefault; | 10 | %nodefault; |
11 | 11 | ||
12 | #ifdef SWIGRUBY | 12 | #ifdef SWIGRUBY |
13 | %typemap (out) char * { | 13 | %typemap (out) char * { |
14 | if ($1 == NULL) | 14 | if ($1 == NULL) |
15 | $result = Qnil; | 15 | $result = Qnil; |
16 | else | 16 | else |
17 | $result = rb_str_new2($1); | 17 | $result = rb_str_new2($1); |
18 | } | 18 | } |
19 | %typemap (in) char * { | 19 | %typemap (in) char * { |
20 | if ($input == Qnil) | 20 | if ($input == Qnil) |
21 | $1 = NULL; | 21 | $1 = NULL; |
22 | else | 22 | else |
23 | $1 = STR2CSTR($input); | 23 | $1 = STR2CSTR($input); |
24 | } | 24 | } |
25 | 25 | ||
26 | %{ | 26 | %{ |
27 | static void expr_to_s_help(void *data, const char *str) | 27 | static 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 |
46 | 51 | ||
47 | %extend menu { | 52 | %extend menu { |
48 | bool isVisible(void) { | 53 | bool isVisible(void) { |
49 | return menu_is_visible(self); | 54 | return menu_is_visible(self); |
50 | } | 55 | } |
51 | #ifdef SWIGRUBY | 56 | #ifdef SWIGRUBY |
52 | void each(void) { | 57 | void each(void) { |
53 | struct menu *child; | 58 | struct menu *child; |
54 | for (child = self->list; child; child = child->next) | 59 | for (child = self->list; child; child = child->next) |
55 | rb_yield(SWIG_NewPointerObj(child, SWIGTYPE_p_menu, 0)); | 60 | rb_yield(SWIG_NewPointerObj(child, SWIGTYPE_p_menu, 0)); |
56 | } | 61 | } |
57 | static void each_menu(void) { | 62 | static void each_menu(void) { |