mirror of
https://github.com/netsurf-browser/netsurf
synced 2025-01-03 17:54:33 +03:00
Add a lwc corestring for "/".
This commit is contained in:
parent
612100bd1a
commit
3ff7557c34
@ -121,6 +121,7 @@ lwc_string *corestring_lwc__blank;
|
||||
lwc_string *corestring_lwc__parent;
|
||||
lwc_string *corestring_lwc__self;
|
||||
lwc_string *corestring_lwc__top;
|
||||
lwc_string *corestring_lwc_slash_;
|
||||
|
||||
/* dom_string strings */
|
||||
dom_string *corestring_dom_a;
|
||||
@ -380,6 +381,7 @@ void corestrings_fini(void)
|
||||
CSS_LWC_STRING_UNREF(_parent);
|
||||
CSS_LWC_STRING_UNREF(_self);
|
||||
CSS_LWC_STRING_UNREF(_top);
|
||||
CSS_LWC_STRING_UNREF(slash_);
|
||||
|
||||
#undef CSS_LWC_STRING_UNREF
|
||||
|
||||
@ -687,6 +689,13 @@ nserror corestrings_init(void)
|
||||
goto error;
|
||||
}
|
||||
|
||||
lerror = lwc_intern_string("/", SLEN("/"),
|
||||
&corestring_lwc_slash_);
|
||||
if ((lerror != lwc_error_ok) || (corestring_lwc_slash_ == NULL)) {
|
||||
error = NSERROR_NOMEM;
|
||||
goto error;
|
||||
}
|
||||
|
||||
|
||||
#define CSS_DOM_STRING_INTERN(NAME) \
|
||||
do { \
|
||||
|
@ -126,6 +126,7 @@ extern lwc_string *corestring_lwc__blank;
|
||||
extern lwc_string *corestring_lwc__parent;
|
||||
extern lwc_string *corestring_lwc__self;
|
||||
extern lwc_string *corestring_lwc__top;
|
||||
extern lwc_string *corestring_lwc_slash_; /* / */
|
||||
|
||||
struct dom_string;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user