mirror of
https://github.com/phpv8/v8js.git
synced 2024-12-22 14:01:53 +00:00
declare base & identifier const
This commit is contained in:
parent
ea3ec4bd65
commit
f61c11f995
@ -22,7 +22,7 @@ extern "C" {
|
||||
|
||||
#include "php_v8js_macros.h"
|
||||
|
||||
static void v8js_commonjs_split_terms(char *identifier, std::vector<char *> &terms)
|
||||
static void v8js_commonjs_split_terms(const char *identifier, std::vector<char *> &terms)
|
||||
{
|
||||
char *term = (char *) emalloc(PATH_MAX), *ptr = term;
|
||||
|
||||
@ -56,7 +56,7 @@ static void v8js_commonjs_split_terms(char *identifier, std::vector<char *> &ter
|
||||
efree(term);
|
||||
}
|
||||
|
||||
void v8js_commonjs_normalise_identifier(char *base, char *identifier, char *normalised_path, char *module_name)
|
||||
void v8js_commonjs_normalise_identifier(const char *base, const char *identifier, char *normalised_path, char *module_name)
|
||||
{
|
||||
std::vector<char *> id_terms, terms;
|
||||
v8js_commonjs_split_terms(identifier, id_terms);
|
||||
|
@ -13,6 +13,6 @@
|
||||
#ifndef V8JS_COMMONJS_H
|
||||
#define V8JS_COMMONJS_H
|
||||
|
||||
void v8js_commonjs_normalise_identifier(char *base, char *identifier, char *normalised_path, char *module_name);
|
||||
void v8js_commonjs_normalise_identifier(const char *base, const char *identifier, char *normalised_path, char *module_name);
|
||||
|
||||
#endif /* V8JS_COMMONJS_H */
|
||||
|
Loading…
Reference in New Issue
Block a user