mirror of
https://github.com/weechat/weechat.git
synced 2026-06-28 22:06:38 +02:00
scripts: do not allocate memory when converting pointers to strings
This commit is contained in:
+838
-846
File diff suppressed because it is too large
Load Diff
@@ -487,11 +487,11 @@ weechat_php_func_map_get (const char* func_name)
|
||||
return weechat_hashtable_get (weechat_php_func_map, func_name);
|
||||
}
|
||||
|
||||
char *
|
||||
const char *
|
||||
weechat_php_func_map_add (zval *ofunc)
|
||||
{
|
||||
zval *func;
|
||||
char *func_name;
|
||||
const char *func_name;
|
||||
|
||||
if (!weechat_php_func_map)
|
||||
{
|
||||
|
||||
@@ -67,7 +67,7 @@ extern struct t_hashtable *weechat_php_array_to_hashtable (zval* arr,
|
||||
const char *type_keys,
|
||||
const char *type_values);
|
||||
extern zval *weechat_php_func_map_get (const char *func_name);
|
||||
extern char *weechat_php_func_map_add (zval *ofunc);
|
||||
extern const char *weechat_php_func_map_add (zval *ofunc);
|
||||
extern void *weechat_php_exec (struct t_plugin_script *script,
|
||||
int ret_type,
|
||||
const char *function,
|
||||
|
||||
Reference in New Issue
Block a user