Skip to content
This repository was archived by the owner on Mar 29, 2024. It is now read-only.

Commit aa50b52

Browse files
committed
Fix indentation to use spaces instead of tabs
1 parent 90ba653 commit aa50b52

File tree

4 files changed

+112
-113
lines changed

4 files changed

+112
-113
lines changed

php_v8.h

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,8 +69,7 @@ ZEND_TSRMLS_CACHE_EXTERN();
6969

7070
ZEND_EXTERN_MODULE_GLOBALS(v8);
7171

72-
#endif /* PHP_V8_H */
73-
72+
#endif //PHP_V8_H
7473

7574
/*
7675
* Local variables:

src/php_v8_exceptions.cc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -231,9 +231,9 @@ PHP_MINIT_FUNCTION(php_v8_exceptions) {
231231
INIT_NS_CLASS_ENTRY(ce, PHP_V8_NS "\\Exceptions", "TryCatchException", php_v8_try_catch_exception_methods);
232232
php_v8_try_catch_exception_class_entry = zend_register_internal_class_ex(&ce, php_v8_generic_exception_class_entry);
233233

234-
zend_declare_property_null(php_v8_try_catch_exception_class_entry, ZEND_STRL("isolate"), ZEND_ACC_PRIVATE);
235-
zend_declare_property_null(php_v8_try_catch_exception_class_entry, ZEND_STRL("context"), ZEND_ACC_PRIVATE);
236-
zend_declare_property_null(php_v8_try_catch_exception_class_entry, ZEND_STRL("try_catch"), ZEND_ACC_PRIVATE);
234+
zend_declare_property_null(php_v8_try_catch_exception_class_entry, ZEND_STRL("isolate"), ZEND_ACC_PRIVATE);
235+
zend_declare_property_null(php_v8_try_catch_exception_class_entry, ZEND_STRL("context"), ZEND_ACC_PRIVATE);
236+
zend_declare_property_null(php_v8_try_catch_exception_class_entry, ZEND_STRL("try_catch"), ZEND_ACC_PRIVATE);
237237

238238

239239
INIT_NS_CLASS_ENTRY(ce, PHP_V8_NS "\\Exceptions", "TerminationException", php_v8_termination_exception_methods);

src/php_v8_isolate.h

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -71,13 +71,13 @@ extern php_v8_isolate_t * php_v8_isolate_fetch_object(zend_object *obj);
7171
v8::Isolate *isolate = (php_v8_isolate)->isolate;
7272

7373
#define PHP_V8_ISOLATE_ENTER(isolate) \
74-
v8::Locker locker(isolate); \
75-
v8::Isolate::Scope isolate_scope(isolate); \
76-
v8::HandleScope handle_scope(isolate);
74+
v8::Locker locker(isolate); \
75+
v8::Isolate::Scope isolate_scope(isolate); \
76+
v8::HandleScope handle_scope(isolate);
7777

7878
#define PHP_V8_ENTER_ISOLATE(php_v8_isolate) \
79-
PHP_V8_DECLARE_ISOLATE(php_v8_isolate); \
80-
PHP_V8_ISOLATE_ENTER(isolate); \
79+
PHP_V8_DECLARE_ISOLATE(php_v8_isolate); \
80+
PHP_V8_ISOLATE_ENTER(isolate); \
8181

8282
#define PHP_V8_ENTER_STORED_ISOLATE(stored) PHP_V8_ENTER_ISOLATE((stored)->php_v8_isolate);
8383

v8.cc

Lines changed: 103 additions & 103 deletions
Original file line numberDiff line numberDiff line change
@@ -98,82 +98,82 @@ PHP_INI_END()
9898
*/
9999
PHP_MINIT_FUNCTION(v8)
100100
{
101-
PHP_MINIT(php_v8_exceptions)(INIT_FUNC_ARGS_PASSTHRU); /* Exceptions */
102-
PHP_MINIT(php_v8_ext_mem_interface)(INIT_FUNC_ARGS_PASSTHRU); /* AdjustableExternalMemoryInterface */
103-
104-
PHP_MINIT(php_v8_heap_statistics)(INIT_FUNC_ARGS_PASSTHRU);
105-
PHP_MINIT(php_v8_startup_data)(INIT_FUNC_ARGS_PASSTHRU);
106-
PHP_MINIT(php_v8_isolate)(INIT_FUNC_ARGS_PASSTHRU);
107-
PHP_MINIT(php_v8_context)(INIT_FUNC_ARGS_PASSTHRU);
108-
PHP_MINIT(php_v8_script)(INIT_FUNC_ARGS_PASSTHRU);
109-
110-
PHP_MINIT(php_v8_exception)(INIT_FUNC_ARGS_PASSTHRU);
111-
PHP_MINIT(php_v8_try_catch)(INIT_FUNC_ARGS_PASSTHRU);
112-
PHP_MINIT(php_v8_message)(INIT_FUNC_ARGS_PASSTHRU);
113-
PHP_MINIT(php_v8_stack_frame)(INIT_FUNC_ARGS_PASSTHRU);
114-
PHP_MINIT(php_v8_stack_trace)(INIT_FUNC_ARGS_PASSTHRU);
115-
PHP_MINIT(php_v8_script_origin_options)(INIT_FUNC_ARGS_PASSTHRU);
116-
PHP_MINIT(php_v8_script_origin)(INIT_FUNC_ARGS_PASSTHRU);
117-
118-
PHP_MINIT(php_v8_data)(INIT_FUNC_ARGS_PASSTHRU);
119-
PHP_MINIT(php_v8_value)(INIT_FUNC_ARGS_PASSTHRU);
120-
PHP_MINIT(php_v8_primitive)(INIT_FUNC_ARGS_PASSTHRU);
121-
PHP_MINIT(php_v8_null)(INIT_FUNC_ARGS_PASSTHRU);
122-
PHP_MINIT(php_v8_boolean)(INIT_FUNC_ARGS_PASSTHRU);
123-
PHP_MINIT(php_v8_name)(INIT_FUNC_ARGS_PASSTHRU);
124-
PHP_MINIT(php_v8_string)(INIT_FUNC_ARGS_PASSTHRU);
125-
PHP_MINIT(php_v8_symbol)(INIT_FUNC_ARGS_PASSTHRU);
126-
PHP_MINIT(php_v8_number)(INIT_FUNC_ARGS_PASSTHRU);
127-
PHP_MINIT(php_v8_integer)(INIT_FUNC_ARGS_PASSTHRU);
128-
PHP_MINIT(php_v8_int32)(INIT_FUNC_ARGS_PASSTHRU);
129-
PHP_MINIT(php_v8_uint32)(INIT_FUNC_ARGS_PASSTHRU);
130-
PHP_MINIT(php_v8_integrity_level)(INIT_FUNC_ARGS_PASSTHRU);
131-
PHP_MINIT(php_v8_object)(INIT_FUNC_ARGS_PASSTHRU);
132-
PHP_MINIT(php_v8_function)(INIT_FUNC_ARGS_PASSTHRU);
133-
PHP_MINIT(php_v8_array)(INIT_FUNC_ARGS_PASSTHRU);
134-
PHP_MINIT(php_v8_date)(INIT_FUNC_ARGS_PASSTHRU);
135-
PHP_MINIT(php_v8_regexp)(INIT_FUNC_ARGS_PASSTHRU);
136-
137-
PHP_MINIT(php_v8_number_object)(INIT_FUNC_ARGS_PASSTHRU);
138-
PHP_MINIT(php_v8_boolean_object)(INIT_FUNC_ARGS_PASSTHRU);
139-
PHP_MINIT(php_v8_string_object)(INIT_FUNC_ARGS_PASSTHRU);
140-
PHP_MINIT(php_v8_symbol_object)(INIT_FUNC_ARGS_PASSTHRU);
141-
142-
PHP_MINIT(php_v8_template)(INIT_FUNC_ARGS_PASSTHRU);
143-
PHP_MINIT(php_v8_object_template)(INIT_FUNC_ARGS_PASSTHRU);
144-
PHP_MINIT(php_v8_function_template)(INIT_FUNC_ARGS_PASSTHRU);
145-
146-
147-
PHP_MINIT(php_v8_property_attribute)(INIT_FUNC_ARGS_PASSTHRU); /* Helper class, holds constants for v8 internals similarity/compatibility */
148-
PHP_MINIT(php_v8_access_control)(INIT_FUNC_ARGS_PASSTHRU); /* Helper class, holds constants */
149-
PHP_MINIT(php_v8_return_value)(INIT_FUNC_ARGS_PASSTHRU);
150-
151-
PHP_MINIT(php_v8_callback_info)(INIT_FUNC_ARGS_PASSTHRU);
152-
PHP_MINIT(php_v8_property_callback_info)(INIT_FUNC_ARGS_PASSTHRU); /* PropertyCallbackInfo inherits CallbackInfo */
153-
PHP_MINIT(php_v8_function_callback_info)(INIT_FUNC_ARGS_PASSTHRU); /* FunctionCallbackInfo inherits CallbackInfo */
154-
155-
PHP_MINIT(php_v8_property_handler_flags)(INIT_FUNC_ARGS_PASSTHRU); /* Helper class, holds constants */
156-
PHP_MINIT(php_v8_named_property_handler_configuration)(INIT_FUNC_ARGS_PASSTHRU);
157-
PHP_MINIT(php_v8_indexed_property_handler_configuration)(INIT_FUNC_ARGS_PASSTHRU);
158-
159-
PHP_MINIT(php_v8_access_type)(INIT_FUNC_ARGS_PASSTHRU); /* Helper class, holds constants */
160-
161-
/* If you have INI entries, uncomment these lines
162-
REGISTER_INI_ENTRIES();
163-
*/
164-
165-
return SUCCESS;
101+
PHP_MINIT(php_v8_exceptions)(INIT_FUNC_ARGS_PASSTHRU); /* Exceptions */
102+
PHP_MINIT(php_v8_ext_mem_interface)(INIT_FUNC_ARGS_PASSTHRU); /* AdjustableExternalMemoryInterface */
103+
104+
PHP_MINIT(php_v8_heap_statistics)(INIT_FUNC_ARGS_PASSTHRU);
105+
PHP_MINIT(php_v8_startup_data)(INIT_FUNC_ARGS_PASSTHRU);
106+
PHP_MINIT(php_v8_isolate)(INIT_FUNC_ARGS_PASSTHRU);
107+
PHP_MINIT(php_v8_context)(INIT_FUNC_ARGS_PASSTHRU);
108+
PHP_MINIT(php_v8_script)(INIT_FUNC_ARGS_PASSTHRU);
109+
110+
PHP_MINIT(php_v8_exception)(INIT_FUNC_ARGS_PASSTHRU);
111+
PHP_MINIT(php_v8_try_catch)(INIT_FUNC_ARGS_PASSTHRU);
112+
PHP_MINIT(php_v8_message)(INIT_FUNC_ARGS_PASSTHRU);
113+
PHP_MINIT(php_v8_stack_frame)(INIT_FUNC_ARGS_PASSTHRU);
114+
PHP_MINIT(php_v8_stack_trace)(INIT_FUNC_ARGS_PASSTHRU);
115+
PHP_MINIT(php_v8_script_origin_options)(INIT_FUNC_ARGS_PASSTHRU);
116+
PHP_MINIT(php_v8_script_origin)(INIT_FUNC_ARGS_PASSTHRU);
117+
118+
PHP_MINIT(php_v8_data)(INIT_FUNC_ARGS_PASSTHRU);
119+
PHP_MINIT(php_v8_value)(INIT_FUNC_ARGS_PASSTHRU);
120+
PHP_MINIT(php_v8_primitive)(INIT_FUNC_ARGS_PASSTHRU);
121+
PHP_MINIT(php_v8_null)(INIT_FUNC_ARGS_PASSTHRU);
122+
PHP_MINIT(php_v8_boolean)(INIT_FUNC_ARGS_PASSTHRU);
123+
PHP_MINIT(php_v8_name)(INIT_FUNC_ARGS_PASSTHRU);
124+
PHP_MINIT(php_v8_string)(INIT_FUNC_ARGS_PASSTHRU);
125+
PHP_MINIT(php_v8_symbol)(INIT_FUNC_ARGS_PASSTHRU);
126+
PHP_MINIT(php_v8_number)(INIT_FUNC_ARGS_PASSTHRU);
127+
PHP_MINIT(php_v8_integer)(INIT_FUNC_ARGS_PASSTHRU);
128+
PHP_MINIT(php_v8_int32)(INIT_FUNC_ARGS_PASSTHRU);
129+
PHP_MINIT(php_v8_uint32)(INIT_FUNC_ARGS_PASSTHRU);
130+
PHP_MINIT(php_v8_integrity_level)(INIT_FUNC_ARGS_PASSTHRU);
131+
PHP_MINIT(php_v8_object)(INIT_FUNC_ARGS_PASSTHRU);
132+
PHP_MINIT(php_v8_function)(INIT_FUNC_ARGS_PASSTHRU);
133+
PHP_MINIT(php_v8_array)(INIT_FUNC_ARGS_PASSTHRU);
134+
PHP_MINIT(php_v8_date)(INIT_FUNC_ARGS_PASSTHRU);
135+
PHP_MINIT(php_v8_regexp)(INIT_FUNC_ARGS_PASSTHRU);
136+
137+
PHP_MINIT(php_v8_number_object)(INIT_FUNC_ARGS_PASSTHRU);
138+
PHP_MINIT(php_v8_boolean_object)(INIT_FUNC_ARGS_PASSTHRU);
139+
PHP_MINIT(php_v8_string_object)(INIT_FUNC_ARGS_PASSTHRU);
140+
PHP_MINIT(php_v8_symbol_object)(INIT_FUNC_ARGS_PASSTHRU);
141+
142+
PHP_MINIT(php_v8_template)(INIT_FUNC_ARGS_PASSTHRU);
143+
PHP_MINIT(php_v8_object_template)(INIT_FUNC_ARGS_PASSTHRU);
144+
PHP_MINIT(php_v8_function_template)(INIT_FUNC_ARGS_PASSTHRU);
145+
146+
147+
PHP_MINIT(php_v8_property_attribute)(INIT_FUNC_ARGS_PASSTHRU); /* Helper class, holds constants for v8 internals similarity/compatibility */
148+
PHP_MINIT(php_v8_access_control)(INIT_FUNC_ARGS_PASSTHRU); /* Helper class, holds constants */
149+
PHP_MINIT(php_v8_return_value)(INIT_FUNC_ARGS_PASSTHRU);
150+
151+
PHP_MINIT(php_v8_callback_info)(INIT_FUNC_ARGS_PASSTHRU);
152+
PHP_MINIT(php_v8_property_callback_info)(INIT_FUNC_ARGS_PASSTHRU); /* PropertyCallbackInfo inherits CallbackInfo */
153+
PHP_MINIT(php_v8_function_callback_info)(INIT_FUNC_ARGS_PASSTHRU); /* FunctionCallbackInfo inherits CallbackInfo */
154+
155+
PHP_MINIT(php_v8_property_handler_flags)(INIT_FUNC_ARGS_PASSTHRU); /* Helper class, holds constants */
156+
PHP_MINIT(php_v8_named_property_handler_configuration)(INIT_FUNC_ARGS_PASSTHRU);
157+
PHP_MINIT(php_v8_indexed_property_handler_configuration)(INIT_FUNC_ARGS_PASSTHRU);
158+
159+
PHP_MINIT(php_v8_access_type)(INIT_FUNC_ARGS_PASSTHRU); /* Helper class, holds constants */
160+
161+
/* If you have INI entries, uncomment these lines
162+
REGISTER_INI_ENTRIES();
163+
*/
164+
165+
return SUCCESS;
166166
}
167167
/* }}} */
168168

169169
/* {{{ PHP_MSHUTDOWN_FUNCTION
170170
*/
171171
PHP_MSHUTDOWN_FUNCTION(v8)
172172
{
173-
/* uncomment this line if you have INI entries
174-
UNREGISTER_INI_ENTRIES();
175-
*/
176-
return SUCCESS;
173+
/* uncomment this line if you have INI entries
174+
UNREGISTER_INI_ENTRIES();
175+
*/
176+
return SUCCESS;
177177
}
178178
/* }}} */
179179

@@ -182,7 +182,7 @@ PHP_MSHUTDOWN_FUNCTION(v8)
182182
*/
183183
PHP_RINIT_FUNCTION(v8)
184184
{
185-
return SUCCESS;
185+
return SUCCESS;
186186
}
187187
/* }}} */
188188

@@ -191,29 +191,29 @@ PHP_RINIT_FUNCTION(v8)
191191
*/
192192
PHP_RSHUTDOWN_FUNCTION(v8)
193193
{
194-
return SUCCESS;
194+
return SUCCESS;
195195
}
196196
/* }}} */
197197

198198
/* {{{ PHP_MINFO_FUNCTION
199199
*/
200200
PHP_MINFO_FUNCTION(v8)
201201
{
202-
php_info_print_table_start();
203-
php_info_print_table_header(2, "V8 support", "enabled");
204-
php_info_print_table_row(2, "Version", PHP_V8_VERSION);
205-
php_info_print_table_row(2, "Revision", PHP_V8_REVISION);
206-
php_info_print_table_row(2, "Compiled", __DATE__ " @ " __TIME__);
207-
php_info_print_table_end();
208-
209-
php_info_print_table_start();
210-
php_info_print_table_row(2, "V8 Engine Compiled Version", PHP_V8_LIBV8_VERSION);
211-
php_info_print_table_row(2, "V8 Engine Linked Version", v8::V8::GetVersion());
212-
php_info_print_table_end();
213-
214-
/* Remove comments if you have entries in php.ini
215-
DISPLAY_INI_ENTRIES();
216-
*/
202+
php_info_print_table_start();
203+
php_info_print_table_header(2, "V8 support", "enabled");
204+
php_info_print_table_row(2, "Version", PHP_V8_VERSION);
205+
php_info_print_table_row(2, "Revision", PHP_V8_REVISION);
206+
php_info_print_table_row(2, "Compiled", __DATE__ " @ " __TIME__);
207+
php_info_print_table_end();
208+
209+
php_info_print_table_start();
210+
php_info_print_table_row(2, "V8 Engine Compiled Version", PHP_V8_LIBV8_VERSION);
211+
php_info_print_table_row(2, "V8 Engine Linked Version", v8::V8::GetVersion());
212+
php_info_print_table_end();
213+
214+
/* Remove comments if you have entries in php.ini
215+
DISPLAY_INI_ENTRIES();
216+
*/
217217
}
218218
/* }}} */
219219

@@ -223,9 +223,9 @@ PHP_MINFO_FUNCTION(v8)
223223
static PHP_GINIT_FUNCTION(v8)
224224
{
225225
#if defined(COMPILE_DL_V8) && defined(ZTS)
226-
ZEND_TSRMLS_CACHE_UPDATE();
226+
ZEND_TSRMLS_CACHE_UPDATE();
227227
#endif
228-
v8_globals->v8_initialized = false;
228+
v8_globals->v8_initialized = false;
229229
}
230230
/* }}} */
231231

@@ -243,27 +243,27 @@ static PHP_GSHUTDOWN_FUNCTION(v8)
243243
* Every user visible function must have an entry in php_v8_functions[].
244244
*/
245245
const zend_function_entry php_v8_functions[] = {
246-
PHP_FE_END /* Must be the last line in php_v8_functions[] */
246+
PHP_FE_END /* Must be the last line in php_v8_functions[] */
247247
};
248248
/* }}} */
249249

250250
/* {{{ php_v8_module_entry
251251
*/
252252
zend_module_entry php_v8_module_entry = {
253-
STANDARD_MODULE_HEADER,
254-
"v8",
255-
php_v8_functions,
256-
PHP_MINIT(v8),
257-
PHP_MSHUTDOWN(v8),
258-
PHP_RINIT(v8), /* Replace with NULL if there's nothing to do at request start */
259-
PHP_RSHUTDOWN(v8), /* Replace with NULL if there's nothing to do at request end */
260-
PHP_MINFO(v8),
261-
PHP_V8_VERSION,
262-
PHP_MODULE_GLOBALS(v8),
263-
PHP_GINIT(v8),
264-
PHP_GSHUTDOWN(v8),
265-
NULL,
266-
STANDARD_MODULE_PROPERTIES_EX
253+
STANDARD_MODULE_HEADER,
254+
"v8",
255+
php_v8_functions,
256+
PHP_MINIT(v8),
257+
PHP_MSHUTDOWN(v8),
258+
PHP_RINIT(v8), /* Replace with NULL if there's nothing to do at request start */
259+
PHP_RSHUTDOWN(v8), /* Replace with NULL if there's nothing to do at request end */
260+
PHP_MINFO(v8),
261+
PHP_V8_VERSION,
262+
PHP_MODULE_GLOBALS(v8),
263+
PHP_GINIT(v8),
264+
PHP_GSHUTDOWN(v8),
265+
NULL,
266+
STANDARD_MODULE_PROPERTIES_EX
267267

268268
};
269269
/* }}} */

0 commit comments

Comments
 (0)