Skip to content

Commit 662ee1f

Browse files
committed
Remove unnecessary LONG_CONST macro
1 parent 010a558 commit 662ee1f

File tree

3 files changed

+67
-69
lines changed

3 files changed

+67
-69
lines changed

ext/snmp/php_snmp.h

-2
Original file line numberDiff line numberDiff line change
@@ -92,8 +92,6 @@ ZEND_END_MODULE_GLOBALS(snmp)
9292
#define SNMP_G(v) (snmp_globals.v)
9393
#endif
9494

95-
#define LONG_CONST(c) (zend_long) c
96-
9795
#define SNMP_VALUE_LIBRARY (0 << 0)
9896
#define SNMP_VALUE_PLAIN (1 << 0)
9997
#define SNMP_VALUE_OBJECT (1 << 1)

ext/snmp/snmp.stub.php

+33-33
Original file line numberDiff line numberDiff line change
@@ -4,109 +4,109 @@
44

55
/**
66
* @var int
7-
* @cvalue LONG_CONST(NETSNMP_OID_OUTPUT_SUFFIX)
7+
* @cvalue NETSNMP_OID_OUTPUT_SUFFIX
88
*/
99
const SNMP_OID_OUTPUT_SUFFIX = UNKNOWN;
1010
/**
1111
* @var int
12-
* @cvalue LONG_CONST(NETSNMP_OID_OUTPUT_MODULE)
12+
* @cvalue NETSNMP_OID_OUTPUT_MODULE
1313
*/
1414
const SNMP_OID_OUTPUT_MODULE = UNKNOWN;
1515
/**
1616
* @var int
17-
* @cvalue LONG_CONST(NETSNMP_OID_OUTPUT_FULL)
17+
* @cvalue NETSNMP_OID_OUTPUT_FULL
1818
*/
1919
const SNMP_OID_OUTPUT_FULL = UNKNOWN;
2020
/**
2121
* @var int
22-
* @cvalue LONG_CONST(NETSNMP_OID_OUTPUT_NUMERIC)
22+
* @cvalue NETSNMP_OID_OUTPUT_NUMERIC
2323
*/
2424
const SNMP_OID_OUTPUT_NUMERIC = UNKNOWN;
2525
/**
2626
* @var int
27-
* @cvalue LONG_CONST(NETSNMP_OID_OUTPUT_UCD)
27+
* @cvalue NETSNMP_OID_OUTPUT_UCD
2828
*/
2929
const SNMP_OID_OUTPUT_UCD = UNKNOWN;
3030
/**
3131
* @var int
32-
* @cvalue LONG_CONST(NETSNMP_OID_OUTPUT_NONE)
32+
* @cvalue NETSNMP_OID_OUTPUT_NONE
3333
*/
3434
const SNMP_OID_OUTPUT_NONE = UNKNOWN;
3535

3636
/**
3737
* @var int
38-
* @cvalue LONG_CONST(SNMP_VALUE_LIBRARY)
38+
* @cvalue SNMP_VALUE_LIBRARY
3939
*/
4040
const SNMP_VALUE_LIBRARY = UNKNOWN;
4141
/**
4242
* @var int
43-
* @cvalue LONG_CONST(SNMP_VALUE_PLAIN)
43+
* @cvalue SNMP_VALUE_PLAIN
4444
*/
4545
const SNMP_VALUE_PLAIN = UNKNOWN;
4646
/**
4747
* @var int
48-
* @cvalue LONG_CONST(SNMP_VALUE_OBJECT)
48+
* @cvalue SNMP_VALUE_OBJECT
4949
*/
5050
const SNMP_VALUE_OBJECT = UNKNOWN;
5151

5252
/**
5353
* @var int
54-
* @cvalue LONG_CONST(ASN_BIT_STR)
54+
* @cvalue ASN_BIT_STR
5555
*/
5656
const SNMP_BIT_STR = UNKNOWN;
5757
/**
5858
* @var int
59-
* @cvalue LONG_CONST(ASN_OCTET_STR)
59+
* @cvalue ASN_OCTET_STR
6060
*/
6161
const SNMP_OCTET_STR = UNKNOWN;
6262
/**
6363
* @var int
64-
* @cvalue LONG_CONST(ASN_OPAQUE)
64+
* @cvalue ASN_OPAQUE
6565
*/
6666
const SNMP_OPAQUE = UNKNOWN;
6767
/**
6868
* @var int
69-
* @cvalue LONG_CONST(ASN_NULL)
69+
* @cvalue ASN_NULL
7070
*/
7171
const SNMP_NULL = UNKNOWN;
7272
/**
7373
* @var int
74-
* @cvalue LONG_CONST(ASN_OBJECT_ID)
74+
* @cvalue ASN_OBJECT_ID
7575
*/
7676
const SNMP_OBJECT_ID = UNKNOWN;
7777
/**
7878
* @var int
79-
* @cvalue LONG_CONST(ASN_IPADDRESS)
79+
* @cvalue ASN_IPADDRESS
8080
*/
8181
const SNMP_IPADDRESS = UNKNOWN;
8282
/**
8383
* @var int
84-
* @cvalue LONG_CONST(ASN_GAUGE)
84+
* @cvalue ASN_GAUGE
8585
*/
8686
const SNMP_COUNTER = UNKNOWN;
8787
/**
8888
* @var int
89-
* @cvalue LONG_CONST(ASN_UNSIGNED)
89+
* @cvalue ASN_UNSIGNED
9090
*/
9191
const SNMP_UNSIGNED = UNKNOWN;
9292
/**
9393
* @var int
94-
* @cvalue LONG_CONST(ASN_TIMETICKS)
94+
* @cvalue ASN_TIMETICKS
9595
*/
9696
const SNMP_TIMETICKS = UNKNOWN;
9797
/**
9898
* @var int
99-
* @cvalue LONG_CONST(ASN_UINTEGER)
99+
* @cvalue ASN_UINTEGER
100100
*/
101101
const SNMP_UINTEGER = UNKNOWN;
102102
/**
103103
* @var int
104-
* @cvalue LONG_CONST(ASN_INTEGER)
104+
* @cvalue ASN_INTEGER
105105
*/
106106
const SNMP_INTEGER = UNKNOWN;
107107
/**
108108
* @var int
109-
* @cvalue LONG_CONST(ASN_COUNTER64)
109+
* @cvalue ASN_COUNTER64
110110
*/
111111
const SNMP_COUNTER64 = UNKNOWN;
112112

@@ -185,63 +185,63 @@ class SNMP
185185
{
186186
/**
187187
* @var int
188-
* @cvalue LONG_CONST(SNMP_VERSION_1)
188+
* @cvalue SNMP_VERSION_1
189189
*/
190190
public const VERSION_1 = UNKNOWN;
191191
/**
192192
* @var int
193-
* @cvalue LONG_CONST(SNMP_VERSION_2c)
193+
* @cvalue SNMP_VERSION_2c
194194
*/
195195
public const VERSION_2c = UNKNOWN;
196196
/**
197197
* @var int
198-
* @cvalue LONG_CONST(SNMP_VERSION_2c)
198+
* @cvalue SNMP_VERSION_2c
199199
*/
200200
public const VERSION_2C = UNKNOWN;
201201
/**
202202
* @var int
203-
* @cvalue LONG_CONST(SNMP_VERSION_3)
203+
* @cvalue SNMP_VERSION_3
204204
*/
205205
public const VERSION_3 = UNKNOWN;
206206

207207
/**
208208
* @var int
209-
* @cvalue LONG_CONST(PHP_SNMP_ERRNO_NOERROR)
209+
* @cvalue PHP_SNMP_ERRNO_NOERROR
210210
*/
211211
public const ERRNO_NOERROR = UNKNOWN;
212212
/**
213213
* @var int
214-
* @cvalue LONG_CONST(PHP_SNMP_ERRNO_ANY)
214+
* @cvalue PHP_SNMP_ERRNO_ANY
215215
*/
216216
public const ERRNO_ANY = UNKNOWN;
217217
/**
218218
* @var int
219-
* @cvalue LONG_CONST(PHP_SNMP_ERRNO_GENERIC)
219+
* @cvalue PHP_SNMP_ERRNO_GENERIC
220220
*/
221221
public const ERRNO_GENERIC = UNKNOWN;
222222
/**
223223
* @var int
224-
* @cvalue LONG_CONST(PHP_SNMP_ERRNO_TIMEOUT)
224+
* @cvalue PHP_SNMP_ERRNO_TIMEOUT
225225
*/
226226
public const ERRNO_TIMEOUT = UNKNOWN;
227227
/**
228228
* @var int
229-
* @cvalue LONG_CONST(PHP_SNMP_ERRNO_ERROR_IN_REPLY)
229+
* @cvalue PHP_SNMP_ERRNO_ERROR_IN_REPLY
230230
*/
231231
public const ERRNO_ERROR_IN_REPLY = UNKNOWN;
232232
/**
233233
* @var int
234-
* @cvalue LONG_CONST(PHP_SNMP_ERRNO_OID_NOT_INCREASING)
234+
* @cvalue PHP_SNMP_ERRNO_OID_NOT_INCREASING
235235
*/
236236
public const ERRNO_OID_NOT_INCREASING = UNKNOWN;
237237
/**
238238
* @var int
239-
* @cvalue LONG_CONST(PHP_SNMP_ERRNO_OID_PARSING_ERROR)
239+
* @cvalue PHP_SNMP_ERRNO_OID_PARSING_ERROR
240240
*/
241241
public const ERRNO_OID_PARSING_ERROR = UNKNOWN;
242242
/**
243243
* @var int
244-
* @cvalue LONG_CONST(PHP_SNMP_ERRNO_MULTIPLE_SET_QUERIES)
244+
* @cvalue PHP_SNMP_ERRNO_MULTIPLE_SET_QUERIES
245245
*/
246246
public const ERRNO_MULTIPLE_SET_QUERIES = UNKNOWN;
247247

ext/snmp/snmp_arginfo.h

+34-34
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)