-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathphp_jsmin.h
More file actions
74 lines (58 loc) · 1.79 KB
/
php_jsmin.h
File metadata and controls
74 lines (58 loc) · 1.79 KB
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
/*
+----------------------------------------------------------------------+
| See LICENSE file for further copyright information |
+----------------------------------------------------------------------+
| Authors: John Jawed <jawed@php.net> |
+----------------------------------------------------------------------+
*/
#ifndef PHP_MINIFY_H
#define PHP_MINIFY_H
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
#include "php.h"
#include "zend_API.h"
#include "zend_variables.h"
#include "ext/standard/head.h"
#include "php_globals.h"
#include "php_main.h"
#include "ext/standard/php_string.h"
#include "ext/standard/php_smart_str.h"
#include "ext/standard/php_string.h"
#include "php_globals.h"
#define PHP_MINIFY_VERSION 1.0.4
#define JSMINIFY_METHOD(func) PHP_METHOD(jsmin, func)
#define JSMINIFY_ME(func, arg_info, flags) PHP_ME(jsmin, func, arg_info, flags)
#define __stringify_1(x) #x
#define __stringify(x) __stringify_1(x)
#define __PHP_MINIFY_VERSION PHP_MINIFY_VERSION
#define MINIFY_EXT_VER __stringify(__PHP_MINIFY_VERSION)
#if (PHP_MAJOR_VERSION == 5 && PHP_MINOR_VERSION > 2) || PHP_MAJOR_VERSION > 5
# define MINIFY_ARGINFO
#else
# define MINIFY_ARGINFO static
#endif
extern zend_module_entry minify_module_entry;
#define phpext_minify_ptr &minify_module_entry
#ifdef ZTS
#error "php5-minify is not thread safe yet"
#endif
PHP_MINIT_FUNCTION(minify);
PHP_MSHUTDOWN_FUNCTION(minify);
PHP_MINFO_FUNCTION(minify);
#ifdef ZTS_0
#define MINIFY(v) TSRMG(minify_globals_id, zend_minify_globals *, v)
#else
#define MINIFY(v) (minify_globals.v)
#endif
extern int php_minify_jsmin_register();
#endif
/**
* Local Variables:
* c-basic-offset: 4
* tab-width: 4
* indent-tabs-mode: t
* End:
* vim600: fdm=marker
* vim: noet sw=4 ts=4 expandtab
*/