0
0
mirror of https://github.com/phpv8/v8js.git synced 2024-12-22 08:11:52 +00:00

declare base & identifier const

This commit is contained in:
Stefan Siegl 2015-08-01 19:41:50 +02:00
parent ea3ec4bd65
commit f61c11f995
2 changed files with 3 additions and 3 deletions

View File

@ -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);

View File

@ -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 */