~ubuntu-branches/ubuntu/hardy/php5/hardy-updates

« back to all changes in this revision

Viewing changes to ext/ctype/php_ctype.h

  • Committer: Bazaar Package Importer
  • Author(s): Adam Conrad
  • Date: 2005-10-09 03:14:32 UTC
  • Revision ID: james.westby@ubuntu.com-20051009031432-kspik3lobxstafv9
Tags: upstream-5.0.5
ImportĀ upstreamĀ versionĀ 5.0.5

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
   +----------------------------------------------------------------------+
 
3
   | PHP Version 5                                                        |
 
4
   +----------------------------------------------------------------------+
 
5
   | Copyright (c) 1997-2004 The PHP Group                                |
 
6
   +----------------------------------------------------------------------+
 
7
   | This source file is subject to version 3.0 of the PHP license,       |
 
8
   | that is bundled with this package in the file LICENSE, and is        |
 
9
   | available through the world-wide-web at the following url:           |
 
10
   | http://www.php.net/license/3_0.txt.                                  |
 
11
   | If you did not receive a copy of the PHP license and are unable to   |
 
12
   | obtain it through the world-wide-web, please send a note to          |
 
13
   | license@php.net so we can mail you a copy immediately.               |
 
14
   +----------------------------------------------------------------------+
 
15
   | Author: Hartmut Holzgraefe <hholzgra@php.net>                        |
 
16
   +----------------------------------------------------------------------+
 
17
 */
 
18
 
 
19
#ifndef PHP_CTYPE_H
 
20
#define PHP_CTYPE_H
 
21
 
 
22
/* You should tweak config.m4 so this symbol (or some else suitable)
 
23
   gets defined.
 
24
*/
 
25
#if HAVE_CTYPE
 
26
 
 
27
extern zend_module_entry ctype_module_entry;
 
28
#define phpext_ctype_ptr &ctype_module_entry
 
29
 
 
30
#ifdef PHP_WIN32
 
31
#define PHP_CTYPE_API __declspec(dllexport)
 
32
#else
 
33
#define PHP_CTYPE_API
 
34
#endif
 
35
 
 
36
PHP_MINIT_FUNCTION(ctype);
 
37
PHP_MSHUTDOWN_FUNCTION(ctype);
 
38
PHP_RINIT_FUNCTION(ctype);
 
39
PHP_RSHUTDOWN_FUNCTION(ctype);
 
40
PHP_MINFO_FUNCTION(ctype);
 
41
 
 
42
PHP_FUNCTION(ctype_alnum);
 
43
PHP_FUNCTION(ctype_alpha);
 
44
PHP_FUNCTION(ctype_cntrl);
 
45
PHP_FUNCTION(ctype_digit);
 
46
PHP_FUNCTION(ctype_lower);
 
47
PHP_FUNCTION(ctype_graph);
 
48
PHP_FUNCTION(ctype_print);
 
49
PHP_FUNCTION(ctype_punct);
 
50
PHP_FUNCTION(ctype_space);
 
51
PHP_FUNCTION(ctype_upper);
 
52
PHP_FUNCTION(ctype_xdigit);
 
53
 
 
54
/* 
 
55
        Declare any global variables you may need between the BEGIN
 
56
        and END macros here:     
 
57
 
 
58
ZEND_BEGIN_MODULE_GLOBALS(ctype)
 
59
        int global_variable;
 
60
ZEND_END_MODULE_GLOBALS(ctype)
 
61
*/
 
62
 
 
63
#ifdef ZTS
 
64
#define CTYPEG(v) TSRMG(ctype_globals_id, php_ctype_globals *, v)
 
65
#else
 
66
#define CTYPEG(v) (ctype_globals.v)
 
67
#endif
 
68
 
 
69
#else
 
70
 
 
71
#define phpext_ctype_ptr NULL
 
72
 
 
73
#endif
 
74
 
 
75
#endif  /* PHP_CTYPE_H */
 
76
 
 
77
 
 
78
/*
 
79
 * Local variables:
 
80
 * tab-width: 4
 
81
 * c-basic-offset: 4
 
82
 * End:
 
83
 */