0
0
mirror of https://github.com/phpv8/v8js.git synced 2024-11-08 14:48:40 +00:00

Move v8js_commonjs.cc forward declarations in .h file

This commit is contained in:
Stefan Siegl 2015-08-01 17:09:48 +02:00
parent 8c5716f502
commit 754d398ec9
3 changed files with 20 additions and 4 deletions

View File

@ -22,7 +22,7 @@ extern "C" {
#include "php_v8js_macros.h"
void v8js_commonjs_split_terms(char *identifier, std::vector<char *> &terms)
static void v8js_commonjs_split_terms(char *identifier, std::vector<char *> &terms)
{
char *term = (char *)malloc(PATH_MAX), *ptr = term;

18
v8js_commonjs.h Normal file
View File

@ -0,0 +1,18 @@
/*
+----------------------------------------------------------------------+
| PHP Version 5 |
+----------------------------------------------------------------------+
| Copyright (c) 1997-2015 The PHP Group |
+----------------------------------------------------------------------+
| http://www.opensource.org/licenses/mit-license.php MIT License |
+----------------------------------------------------------------------+
| Author: Stefan Siegl <stesie@brokenpipe.de> |
+----------------------------------------------------------------------+
*/
#ifndef V8JS_COMMONJS_H
#define V8JS_COMMONJS_H
void v8js_commonjs_normalise_identifier(char *base, char *identifier, char *normalised_path, char *module_name);
#endif /* V8JS_COMMONJS_H */

View File

@ -16,14 +16,12 @@
#endif
#include "php_v8js_macros.h"
#include "v8js_commonjs.h"
extern "C" {
#include "zend_exceptions.h"
}
/* Forward declarations */
void v8js_commonjs_normalise_identifier(char *base, char *identifier, char *normalised_path, char *module_name);
/* global.exit - terminate execution */
V8JS_METHOD(exit) /* {{{ */
{