Add a lwc corestring for "/".

This commit is contained in:
Michael Drake 2014-10-30 22:25:31 +00:00
parent 612100bd1a
commit 3ff7557c34
2 changed files with 10 additions and 0 deletions

View File

@ -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 { \

View File

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