forked from runkit7/runkit7
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathrunkit_constants.c
586 lines (521 loc) · 18 KB
/
runkit_constants.c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
/*
+----------------------------------------------------------------------+
| PHP Version 7 |
+----------------------------------------------------------------------+
| Copyright (c) 1997-2006 The PHP Group, (c) 2008-2015 Dmitry Zenovich |
| "runkit7" patches (c) 2015-2017 Tyson Andre |
+----------------------------------------------------------------------+
| This source file is subject to the new BSD license, |
| that is bundled with this package in the file LICENSE, and is |
| available through the world-wide-web at the following url: |
| http://www.opensource.org/licenses/BSD-3-Clause |
| If you did not receive a copy of the license and are unable to |
| obtain it through the world-wide-web, please send a note to |
| [email protected] so we can mail you a copy immediately. |
+----------------------------------------------------------------------+
| Author: Sara Golemon <[email protected]> |
| Modified by Dmitry Zenovich <[email protected]> |
| Modified for php7 by Tyson Andre <[email protected]> |
+----------------------------------------------------------------------+
*/
/* $Id$ */
#include "php_runkit.h"
#ifdef PHP_RUNKIT_MANIPULATION
// validate_constant_array copied from Zend/zend_builtin_functions.c
static int validate_constant_array(HashTable *ht) /* {{{ */
{
int ret = 1;
zval *val;
ht->u.v.nApplyCount++;
ZEND_HASH_FOREACH_VAL_IND(ht, val) {
ZVAL_DEREF(val);
if (Z_REFCOUNTED_P(val)) {
if (Z_TYPE_P(val) == IS_ARRAY) {
if (!Z_IMMUTABLE_P(val)) {
if (Z_ARRVAL_P(val)->u.v.nApplyCount > 0) {
php_error_docref(NULL TSRMLS_CC, E_WARNING, "Constants cannot be recursive arrays");
ret = 0;
break;
} else if (!validate_constant_array(Z_ARRVAL_P(val))) {
ret = 0;
break;
}
}
} else if (Z_TYPE_P(val) != IS_STRING && Z_TYPE_P(val) != IS_RESOURCE) {
php_error_docref(NULL TSRMLS_CC, E_WARNING, "Constants may only evaluate to scalar values or arrays");
ret = 0;
break;
}
}
} ZEND_HASH_FOREACH_END();
ht->u.v.nApplyCount--;
return ret;
}
/* }}} */
// copy_constant_array copied from Zend/zend_builtin_functions.c
static void copy_constant_array(zval *dst, zval *src) /* {{{ */
{
zend_string *key;
zend_ulong idx;
zval *new_val, *val;
array_init_size(dst, zend_hash_num_elements(Z_ARRVAL_P(src)));
ZEND_HASH_FOREACH_KEY_VAL_IND(Z_ARRVAL_P(src), idx, key, val) {
/* constant arrays can't contain references */
ZVAL_DEREF(val);
if (key) {
new_val = zend_hash_add_new(Z_ARRVAL_P(dst), key, val);
} else {
new_val = zend_hash_index_add_new(Z_ARRVAL_P(dst), idx, val);
}
if (Z_TYPE_P(val) == IS_ARRAY) {
if (!Z_IMMUTABLE_P(val)) {
copy_constant_array(new_val, val);
}
} else if (Z_REFCOUNTED_P(val)) {
Z_ADDREF_P(val);
if (UNEXPECTED(Z_TYPE_INFO_P(val) == IS_RESOURCE_EX)) {
Z_TYPE_INFO_P(new_val) &= ~(IS_TYPE_REFCOUNTED << Z_TYPE_FLAGS_SHIFT);
}
}
} ZEND_HASH_FOREACH_END();
}
/* }}} */
// From Zend/zend_builtin_functions.c ZEND_FUNCTION(define)
static zend_bool runkit_copy_constant_zval(zval *dst, zval *src TSRMLS_DC) /* {{{ */
{
switch (Z_TYPE_P(src)) {
case IS_LONG:
case IS_DOUBLE:
case IS_STRING:
case IS_FALSE:
case IS_TRUE:
case IS_NULL:
ZVAL_DUP(dst, src);
return 1;
case IS_RESOURCE:
ZVAL_DUP(dst, src);
/* TODO: better solution than this tricky disable dtor on resource? */
Z_TYPE_INFO_P(dst) &= ~(IS_TYPE_REFCOUNTED << Z_TYPE_FLAGS_SHIFT);
return 1;
case IS_ARRAY:
if (!Z_IMMUTABLE_P(src)) {
if (!validate_constant_array(Z_ARRVAL_P(src))) {
return 0;
} else {
copy_constant_array(dst, src);
return 1;
}
}
ZVAL_COPY(dst, src);
return 1;
// TODO: objects with __toString?
default:
return 1;
}
}
/* }}} */
static zend_bool php_runkit_remove_from_constants_table(zend_class_entry *ce, zend_string *cname) {
#if PHP_VERSION_ID >= 70100
zend_class_constant *c;
c = zend_hash_find_ptr(&ce->constants_table, cname);
if (c == NULL) {
return 0;
}
switch(Z_TYPE(c->value)) {
case IS_STRING:
zval_ptr_dtor(&(c->value));
ZVAL_NULL(&(c->value)); // Reset the type to NULL so that the entry won't be corrupted when added again.
break;
case IS_ARRAY:
// TODO: are there any additional steps for arrays?
zval_ptr_dtor(&(c->value));
ZVAL_NULL(&(c->value));
break;
}
// TODO: Anything left for PHP 7.0 support?
#endif
// free() the zend_class_entry
return zend_hash_del(&ce->constants_table, cname) == SUCCESS;
}
// Copied from zend_compile.c, RC2
/* {{{ php_runkit_fetch_const
*/
static int php_runkit_fetch_const(zend_string *cname_zs, zend_constant **constant, char **found_cname TSRMLS_DC)
{
char* cname = ZSTR_VAL(cname_zs);
int cname_len = ZSTR_LEN(cname_zs);
char *lcase = NULL;
char *old_cname = cname;
int constant_name_len = cname_len;
char *separator;
if (cname_len > 0 && cname[0] == '\\') {
++cname;
--cname_len;
}
separator = (char *) zend_memrchr(cname, '\\', cname_len);
if (separator) {
int nsname_len = separator - cname;
char *constant_name = separator + 1;
constant_name_len = cname_len - nsname_len - 1;
lcase = emalloc(nsname_len + 1 + constant_name_len + 1);
memcpy(lcase, cname, nsname_len + 1);
memcpy(lcase + nsname_len + 1, constant_name, constant_name_len + 1);
zend_str_tolower(lcase, nsname_len);
cname = lcase;
}
// TODO: Figure out how to extract from zend_constants
if ((*constant = zend_hash_str_find_ptr(EG(zend_constants), cname, cname_len)) == NULL) {
if (!lcase) {
lcase = estrndup(cname, cname_len);
zend_str_tolower(lcase, cname_len);
} else {
zend_str_tolower(lcase + cname_len - constant_name_len, constant_name_len);
}
cname = lcase;
if ((*constant = zend_hash_str_find_ptr(EG(zend_constants), cname, cname_len)) == NULL || ((*constant)->flags & CONST_CS)) {
php_error_docref(NULL TSRMLS_CC, E_WARNING, "Constant %s not found", old_cname);
efree(lcase);
return FAILURE;
}
}
if (found_cname) {
*found_cname = lcase ? lcase : estrndup(cname, cname_len);
}
return SUCCESS;
}
/* }}} */
#if PHP_VERSION_ID >= 70100
/* {{{ php_runkit_class_constant_ctor
Creates a class constant for a given class entry */
static zend_class_constant *php_runkit_class_constant_ctor(zval *value, zend_class_entry *ce, int access_type, zend_string *doc_comment) {
zend_class_constant *c;
// TODO add tests of modifying internal classes
if (ce->type == ZEND_INTERNAL_CLASS) {
// TODO: Internal classes can't have non-scalars(arrays, ASTs, etc). as constants.
c = pemalloc(sizeof(zend_class_constant), 1);
} else {
c = zend_arena_alloc(&CG(arena), sizeof(zend_class_constant));
}
ZVAL_DUP(&c->value, value);
Z_ACCESS_FLAGS(c->value) = access_type;
c->doc_comment = NULL;
c->ce = ce;
return c;
}
/* }}} */
#endif
static int php_runkit_class_constant_add_raw(zval *value, zend_class_entry *ce, zend_string *constname RUNKIT_CONST_FLAGS_DC(access_type), zend_string *doc_comment) {
#if PHP_VERSION_ID >= 70100
zend_class_constant *c;
#endif
if (zend_hash_exists(&ce->constants_table, constname)) {
return FAILURE;
}
#if PHP_VERSION_ID >= 70100
c = php_runkit_class_constant_ctor(value, ce, access_type, doc_comment);
if (!zend_hash_add_ptr(&ce->constants_table, constname, c)) {
Z_TRY_DELREF(c->value);
// TODO: delete
return FAILURE;
}
#else
Z_TRY_ADDREF_P(value);
if (!zend_hash_add(&ce->constants_table, constname, value)) {
Z_TRY_DELREF_P(value);
return FAILURE;
}
#endif
return SUCCESS;
}
/* {{{ php_runkit_update_children_consts_foreach
Scans each element of the hash table */
void php_runkit_update_children_consts_foreach(HashTable *ht, zend_class_entry *parent_class, zval *c, zend_string *cname RUNKIT_CONST_FLAGS_DC(access_type))
{
zend_class_entry *ce;
ZEND_HASH_FOREACH_PTR(ht, ce) {
php_runkit_update_children_consts(ce, parent_class, c, cname RUNKIT_CONST_FLAGS_CC(access_type));
} ZEND_HASH_FOREACH_END();
}
/* }}} */
/* {{{ php_runkit_update_children_consts
Scan the class_table for children of the class just updated */
void php_runkit_update_children_consts(zend_class_entry *ce, zend_class_entry *parent_class, zval *value, zend_string *cname RUNKIT_CONST_FLAGS_DC(access_type))
{
if (ce->parent != parent_class) {
/* Not a child, ignore */
return;
}
/* Process children of this child */
php_runkit_update_children_consts_foreach(RUNKIT_53_TSRMLS_PARAM(EG(class_table)), ce, value, cname RUNKIT_CONST_FLAGS_CC(access_type));
// TODO: Garbage collecting?
php_runkit_remove_from_constants_table(ce, cname);
if (php_runkit_class_constant_add_raw(value, ce, cname RUNKIT_CONST_FLAGS_CC(access_type), NULL) == FAILURE) {
php_error_docref(NULL TSRMLS_CC, E_WARNING, "Error updating child class");
return;
}
}
/* }}} */
/* {{{ php_runkit_class_constant_remove */
static int php_runkit_class_constant_remove(zend_string *classname, zend_string *constname
#if PHP_VERSION_ID >= 70100
, zend_long *old_access_type
#endif
) {
zend_class_entry *ce;
#if PHP_VERSION_ID >= 70100
zend_class_constant *c;
#else
void *c;
#endif
if ((ce = php_runkit_fetch_class(classname)) == NULL) {
return FAILURE;
}
// TODO: finish lookup
if (!(c = zend_hash_find_ptr(&ce->constants_table, constname))) {
php_error_docref(NULL TSRMLS_CC, E_WARNING, "Constant %s::%s does not exist", ZSTR_VAL(classname), ZSTR_VAL(constname));
return FAILURE;
}
#if PHP_VERSION_ID >= 70100
if (old_access_type != NULL) {
*old_access_type = Z_ACCESS_FLAGS(c->value);
}
#endif
if (!php_runkit_remove_from_constants_table(ce, constname)) {
php_error_docref(NULL TSRMLS_CC, E_WARNING, "Unable to remove constant %s::%s", ZSTR_VAL(classname), ZSTR_VAL(constname));
return FAILURE;
}
php_runkit_clear_all_functions_runtime_cache(TSRMLS_C);
return SUCCESS;
}
/* }}}*/
/* {{{ php_runkit_global_constant_remove */
static int php_runkit_global_constant_remove(zend_string *constname TSRMLS_DC) {
zend_constant *constant;
char *found_constname;
if (php_runkit_fetch_const(constname, &constant, &found_constname TSRMLS_CC) == FAILURE) {
return FAILURE;
}
if (constant->module_number != PHP_USER_CONSTANT) {
php_error_docref(NULL TSRMLS_CC, E_WARNING, "Only user defined constants may be removed.");
return FAILURE;
}
if (zend_hash_str_del(EG(zend_constants), found_constname, ZSTR_LEN(constant->name)) == FAILURE) {
php_error_docref(NULL TSRMLS_CC, E_WARNING, "Unable to remove constant");
efree(found_constname);
return FAILURE;
}
efree(found_constname);
php_runkit_clear_all_functions_runtime_cache(TSRMLS_C);
return SUCCESS;
}
/* }}} */
/* {{{ php_runkit_constant_remove
*/
static int php_runkit_constant_remove(zend_string* classname, zend_string* constname
#if PHP_VERSION_ID >= 70100
, zend_long *old_access_type
#endif
TSRMLS_DC
)
{
if (classname && ZSTR_LEN(classname) > 0) {
return php_runkit_class_constant_remove(classname, constname
#if PHP_VERSION_ID >= 70100
, old_access_type
#endif
);
}
return php_runkit_global_constant_remove(constname);
}
/* }}} */
/* {{{ php_runkit_check_has_constant_type */
static zend_bool php_runkit_check_has_constant_type(const zval *value) {
switch (Z_TYPE_P(value)) {
case IS_LONG:
case IS_DOUBLE:
case IS_STRING:
case IS_TRUE:
case IS_FALSE:
case IS_RESOURCE:
case IS_NULL:
return 1;
case IS_ARRAY:
return validate_constant_array(Z_ARRVAL_P(value));
default:
php_error_docref(NULL TSRMLS_CC, E_WARNING, "Constants may only evaluate to scalar values or arrays");
return 0;
}
}
/* }}} */
/* {{{ php_runkit_global_constant_add */
static int php_runkit_global_constant_add(zend_string *constname, zval *value TSRMLS_DC) {
zend_constant c;
// TODO: Memory management properly
if (ZSTR_LEN(constname) > 0 && ZSTR_VAL(constname)[0] == '\\') {
constname = zend_string_init(ZSTR_VAL(constname) + 1, ZSTR_LEN(constname) - 1, 0);
} else {
constname = zend_string_copy(constname);
}
/* Traditional global constant */
runkit_copy_constant_zval(&c.value, value);
c.flags = CONST_CS;
c.name = constname;
c.module_number = PHP_USER_CONSTANT;
return zend_register_constant(&c TSRMLS_CC);
}
/* }}} */
/* {{{ php_runkit_class_constant_add */
static int php_runkit_class_constant_add(zend_string *classname, zend_string *constname, zval *value RUNKIT_CONST_FLAGS_DC(access_type) TSRMLS_DC) {
zend_class_entry *ce;
if ((ce = php_runkit_fetch_class(classname)) == NULL) {
php_error_docref(NULL TSRMLS_CC, E_WARNING, "Could not add class constant %s::%s: class does not exist", ZSTR_VAL(classname), ZSTR_VAL(constname));
return FAILURE;
}
// Mirror checks in zend_declare_class_constant_ex
#if PHP_VERSION_ID >= 70100
// Can have only public constants in an interface.
if (ce->ce_flags & ZEND_ACC_INTERFACE) {
if (access_type != ZEND_ACC_PUBLIC) {
php_error_docref(NULL TSRMLS_CC, E_WARNING, "Access type for new interface constant %s::%s must be public", ZSTR_VAL(ce->name), ZSTR_VAL(constname));
return FAILURE;
}
}
#endif
if (zend_string_equals_literal_ci(constname, "class")) {
php_error_docref(NULL TSRMLS_CC, E_WARNING, "A new class constant must not be called 'class'; it is reserved for class name fetching");
return FAILURE;
}
// TODO: Is this too many references?
// TODO: Could something similar to zend_update_class_constants(zend_class_entry *class_type)
if (php_runkit_class_constant_add_raw(value, ce, constname RUNKIT_CONST_FLAGS_CC(access_type), NULL) == FAILURE) {
php_error_docref(NULL TSRMLS_CC, E_WARNING, "Unable to add constant %s::%s to class definition", ZSTR_VAL(ce->name), ZSTR_VAL(constname));
return FAILURE;
}
// Don't add this constant to subclasses if this constant is private.
if (RUNKIT_CONST_FETCH(access_type) != ZEND_ACC_PRIVATE) {
php_runkit_update_children_consts_foreach(RUNKIT_53_TSRMLS_PARAM(EG(class_table)), ce, value, constname RUNKIT_CONST_FLAGS_CC(access_type));
}
return SUCCESS;
}
/* }}} */
/* {{{ php_runkit_constant_add
Adds a global or class constant value. This is a global constant if classname is empty or null. */
static int php_runkit_constant_add(zend_string* classname, zend_string* constname, zval *value RUNKIT_CONST_FLAGS_DC(access_type) TSRMLS_DC)
{
if (!php_runkit_check_has_constant_type(value)) {
return FAILURE;
}
if ((classname == NULL) || (ZSTR_LEN(classname) == 0)) {
return php_runkit_global_constant_add(constname, value TSRMLS_CC);
}
return php_runkit_class_constant_add(classname, constname, value RUNKIT_CONST_FLAGS_CC(access_type));
}
/* }}} */
/* {{{ check_if_flags_are_invalid */
static zend_bool runkit_check_if_const_flags_are_invalid(zend_bool is_class_constant, zend_long flags)
{
if (is_class_constant) {
#if PHP_VERSION_ID >= 70100
if (flags != ZEND_ACC_PUBLIC && flags != ZEND_ACC_PROTECTED && flags != ZEND_ACC_PRIVATE) {
php_error_docref(NULL TSRMLS_CC, E_WARNING, "visibility flags of class constants must be RUNKIT_ACC_PUBLIC, RUNKIT_ACC_PROTECTED, RUNKIT_ACC_PRIVATE, or null");
return 1;
}
#else
if (flags != ZEND_ACC_PUBLIC) {
php_error_docref(NULL TSRMLS_CC, E_WARNING, "visibility flags of class constants must be RUNKIT_ACC_PUBLIC or null prior to php 7.1");
return 1;
}
#endif
} else {
if (flags != ZEND_ACC_PUBLIC) {
php_error_docref(NULL TSRMLS_CC, E_WARNING, "visibility flags of global constants must be RUNKIT_ACC_PUBLIC or null");
return 1;
}
}
return 0;
}
/* }}} */
/* *****************
* Constants API *
***************** */
/* {{{ proto bool runkit_constant_redefine(string constname, mixed newvalue)
*/
PHP_FUNCTION(runkit_constant_redefine)
{
zend_string *classname, *constname;
zval *value;
zend_bool flags_is_null = 0;
zend_long flags = 0;
const int argc = ZEND_NUM_ARGS();
ZEND_RESULT_CODE result;
if (zend_parse_parameters(argc TSRMLS_CC, "Sz|l!", &constname, &value, &flags, &flags_is_null) == FAILURE) {
RETURN_FALSE;
}
PHP_RUNKIT_SPLIT_PN(classname, constname);
// Remove the constant; add a new constant.
// If no flags were passed in, then preserve the constant's old visibility.
flags_is_null = flags_is_null || argc < 3;
if (flags_is_null) {
flags = ZEND_ACC_PUBLIC;
}
if (runkit_check_if_const_flags_are_invalid(classname != NULL, flags)) {
RETURN_FALSE;
}
// TODO: if the constant doesn't exist, constant_redefine should fail?
php_runkit_constant_remove(classname, constname RUNKIT_CONST_FLAGS_CC(flags_is_null ? &flags : NULL) TSRMLS_CC);
result = php_runkit_constant_add(classname, constname, value RUNKIT_CONST_FLAGS_CC(flags) TSRMLS_CC) == SUCCESS;
PHP_RUNKIT_SPLIT_PN_CLEANUP(classname, constname);
RETURN_BOOL(result);
}
/* }}} */
/* {{{ proto bool runkit_constant_remove(string constname)
*/
PHP_FUNCTION(runkit_constant_remove)
{
zend_string *classname, *constname;
ZEND_RESULT_CODE result;
if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "S", &constname) == FAILURE) {
RETURN_FALSE;
}
PHP_RUNKIT_SPLIT_PN(classname, constname);
result = php_runkit_constant_remove(classname, constname RUNKIT_CONST_FLAGS_CC(NULL) TSRMLS_CC) == SUCCESS;
PHP_RUNKIT_SPLIT_PN_CLEANUP(classname, constname)
RETURN_BOOL(result);
}
/* }}} */
/* {{{ proto bool runkit_constant_add(string constname, mixed value)
Similar to define(), but allows defining in class definitions as well
*/
PHP_FUNCTION(runkit_constant_add)
{
zend_string *classname, *constname;
zval *value = NULL;
zend_bool flags_is_null = 0;
zend_long flags = 0;
const int argc = ZEND_NUM_ARGS();
ZEND_RESULT_CODE result;
if (zend_parse_parameters(argc TSRMLS_CC, "Sz|l!", &constname, &value, &flags, &flags_is_null) == FAILURE) {
RETURN_FALSE;
}
flags_is_null = flags_is_null || argc < 3;
if (flags_is_null) {
flags = ZEND_ACC_PUBLIC;
}
PHP_RUNKIT_SPLIT_PN(classname, constname);
if (runkit_check_if_const_flags_are_invalid(classname != NULL, flags)) {
RETURN_FALSE;
}
result = php_runkit_constant_add(classname, constname, value RUNKIT_CONST_FLAGS_CC(flags) TSRMLS_CC) == SUCCESS;
PHP_RUNKIT_SPLIT_PN_CLEANUP(classname, constname);
RETURN_BOOL(result);
}
/* }}} */
#endif /* PHP_RUNKIT_MANIPULATION */
/*
* Local variables:
* tab-width: 4
* c-basic-offset: 4
* End:
* vim600: noet sw=4 ts=4 fdm=marker
* vim<600: noet sw=4 ts=4
*/