@@ -24,88 +24,49 @@ for version
24
24
option.is_alias = "YES"
25
25
endif
26
26
27
- if defined (major_changed)
28
- if type_new = "uint64" | type_new = "int64" | type_new = "uint32"
27
+ if type = "uint64" | type = "int64" | type = "uint32" | type = "int"
29
28
30
- option.php_type = "int"
31
- option.c_type = "$(type_new)_t"
32
- option.binary = "no"
33
-
34
- elsif type_new = "int"
35
-
36
- option.php_type = "int"
37
- option.c_type = "$(type_new)"
38
- option.binary = "no"
39
-
40
- elsif type_new = "string"
41
-
42
- option.php_type = "string"
43
- option.c_type = "char"
44
- option.max_length = 255
45
-
46
- if name = "subscribe" | name = "usubscribe" | name = "identity"
47
- option.binary = "yes"
48
- else
49
- option.binary = "no"
29
+ option.php_type = "int"
30
+ option.c_type = "$(type)_t"
31
+ if(option.c_type = "int_t")
32
+ option.c_type = "int"
33
+ endif
34
+ if defined (major_changed)
35
+ option.c_type_new = "$(type_new)_t"
36
+ if(option.c_type_new = "int_t")
37
+ option.c_type_new = "int"
50
38
endif
39
+ option.major_changed = major_changed
40
+ endif
41
+ option.binary = "no"
51
42
52
- elsif type_new = "key"
53
-
54
- option.php_type = "string"
55
- option.c_type = "char"
56
- option.max_length = 32
57
- option.binary = "yes"
58
-
59
- elsif type_new = "socket"
43
+ elsif type = "string"
60
44
61
- option.php_type = "resource "
62
- option.c_type = "int "
63
- option.binary = "no"
45
+ option.php_type = "string "
46
+ option.c_type = "char "
47
+ option.max_length = 255
64
48
49
+ if name = "subscribe" | name = "usubscribe" | name = "identity"
50
+ option.binary = "yes"
65
51
else
66
- echo "ERROR: Unrecognised type: $(type_new) "
52
+ option.binary = "no "
67
53
endif
68
- else
69
- if type = "uint64" | type = "int64" | type = "uint32"
70
54
71
- option.php_type = "int"
72
- option.c_type = "$(type)_t"
73
- option.binary = "no"
55
+ elsif type = "key"
74
56
75
- elsif type = "int"
57
+ option.php_type = "string"
58
+ option.c_type = "char"
59
+ option.max_length = 32
60
+ option.binary = "yes"
76
61
77
- option.php_type = "int"
78
- option.c_type = "$(type)"
79
- option.binary = "no"
62
+ elsif type = "socket"
80
63
81
- elsif type = "string"
64
+ option.php_type = "resource"
65
+ option.c_type = "int"
66
+ option.binary = "no"
82
67
83
- option.php_type = "string"
84
- option.c_type = "char"
85
- option.max_length = 255
86
-
87
- if name = "subscribe" | name = "usubscribe" | name = "identity"
88
- option.binary = "yes"
89
- else
90
- option.binary = "no"
91
- endif
92
-
93
- elsif type = "key"
94
-
95
- option.php_type = "string"
96
- option.c_type = "char"
97
- option.max_length = 32
98
- option.binary = "yes"
99
-
100
- elsif type = "socket"
101
-
102
- option.php_type = "resource"
103
- option.c_type = "int"
104
- option.binary = "no"
105
-
106
- else
107
- echo "ERROR: Unrecognised type: $(type)"
108
- endif
68
+ else
69
+ echo "ERROR: Unrecognised type: $(type)"
109
70
endif
110
71
endfor
111
72
endfor
0 commit comments