- Notifications
You must be signed in to change notification settings - Fork 7.8k
/
Copy pathphp_dir_int.h
69 lines (54 loc) · 1.82 KB
/
php_dir_int.h
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
/*
+----------------------------------------------------------------------+
| Copyright (c) The PHP Group |
+----------------------------------------------------------------------+
| This source file is subject to version 3.01 of the PHP license, |
| that is bundled with this package in the file LICENSE, and is |
| available through the world-wide-web at the following url: |
| https://www.php.net/license/3_01.txt |
| If you did not receive a copy of the PHP license and are unable to |
| obtain it through the world-wide-web, please send a note to |
| license@php.net so we can mail you a copy immediately. |
+----------------------------------------------------------------------+
*/
/* internal header; not supposed to be installed; FIXME but unfortunately is */
#ifndefPHP_DIR_INT_H
#definePHP_DIR_INT_H
#ifdefHAVE_GLOB
#ifndefPHP_WIN32
#include<glob.h>
#else
#include"win32/glob.h"
#endif
#endif
#ifdefHAVE_GLOB
#ifndefGLOB_BRACE
#defineGLOB_BRACE 0
#endif
#ifndefGLOB_ERR
#defineGLOB_ERR 0
#endif
#ifndefGLOB_MARK
#defineGLOB_MARK 0
#endif
#ifndefGLOB_NOCHECK
#defineGLOB_NOCHECK 0
#endif
#ifndefGLOB_NOESCAPE
#defineGLOB_NOESCAPE 0
#endif
#ifndefGLOB_NOSORT
#defineGLOB_NOSORT 0
#endif
#ifndefGLOB_ONLYDIR
#defineGLOB_ONLYDIR (1<<30)
#defineGLOB_EMULATE_ONLYDIR
#defineGLOB_FLAGMASK (~GLOB_ONLYDIR)
#else
#defineGLOB_FLAGMASK (~0)
#endif
/* This is used for checking validity of passed flags (passing invalid flags causes segfault in glob()!! */
#defineGLOB_AVAILABLE_FLAGS (0 | GLOB_BRACE | GLOB_MARK | GLOB_NOSORT | GLOB_NOCHECK | GLOB_NOESCAPE | GLOB_ERR | GLOB_ONLYDIR)
#endif/* HAVE_GLOB */
chardirsep_str[2], pathsep_str[2];
#endif/* PHP_DIR_INT_H */