mirror of
https://github.com/rkd77/elinks.git
synced 2025-09-21 19:46:23 -04:00
952, 954: Add ecmascript_{detach,moved}_form_state stubs
Anything that frees or reallocates struct form_state must now call the new functions ecmascript_detach_form_state or ecmascript_moved_form_state. These functions should then clear out any dangling pointers, but that has not yet been implemented.
This commit is contained in:
committed by
Kalle Olavi Niemitalo
parent
8f2f9e7265
commit
bbadb99dd1
@@ -8,6 +8,7 @@
|
||||
#include "main/module.h"
|
||||
#include "util/time.h"
|
||||
|
||||
struct form_state;
|
||||
struct string;
|
||||
struct terminal;
|
||||
struct uri;
|
||||
@@ -70,6 +71,9 @@ void ecmascript_free_urls(struct module *module);
|
||||
struct ecmascript_interpreter *ecmascript_get_interpreter(struct view_state*vs);
|
||||
void ecmascript_put_interpreter(struct ecmascript_interpreter *interpreter);
|
||||
|
||||
void ecmascript_detach_form_state(struct form_state *fs);
|
||||
void ecmascript_moved_form_state(struct form_state *fs);
|
||||
|
||||
void ecmascript_reset_state(struct view_state *vs);
|
||||
|
||||
void ecmascript_eval(struct ecmascript_interpreter *interpreter, struct string *code, struct string *ret);
|
||||
|
Reference in New Issue
Block a user