1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-12-04 14:46:47 -05:00

Drop trailing whitespaces.

This commit is contained in:
Laurent MONIN 2006-01-02 00:15:20 +01:00 committed by Laurent MONIN
parent 43b34dcb2f
commit 54997c506f
6 changed files with 18 additions and 18 deletions

View File

@ -574,10 +574,10 @@ sp:
goto se; goto se;
} }
if (parse_element(r, html_context->eoff, &name, &namelen, NULL, &p)) goto sp; if (parse_element(r, html_context->eoff, &name, &namelen, NULL, &p)) goto sp;
if (namelen < 6) goto se; if (namelen < 6) goto se;
if (name[0] == '/') name++, namelen--; if (name[0] == '/') name++, namelen--;
if (strlcasecmp(name, namelen, "OPTION", 6) if (strlcasecmp(name, namelen, "OPTION", 6)
&& strlcasecmp(name, namelen, "SELECT", 6) && strlcasecmp(name, namelen, "SELECT", 6)
&& strlcasecmp(name, namelen, "OPTGROUP", 8)) && strlcasecmp(name, namelen, "OPTGROUP", 8))

View File

@ -360,7 +360,7 @@ done_dom_node(struct dom_node *node)
break; break;
} }
} }
done_dom_node_data(node); done_dom_node_data(node);
} }

View File

@ -158,13 +158,13 @@ parse_dom_select_attribute(struct dom_select_node *sel, struct dom_scanner *scan
/* Parse: /* Parse:
* *
* 0n+1 / 1 * 0n+1 / 1
* 2n+0 / 2n * 2n+0 / 2n
* 2n+1 * 2n+1
* -0n+2 * -0n+2
* -0n+1 / -1 * -0n+1 / -1
* 1n+0 / n+0 / n * 1n+0 / n+0 / n
* 0n+0 * 0n+0
*/ */
/* FIXME: Move somewhere else? dom/scanner.h? */ /* FIXME: Move somewhere else? dom/scanner.h? */
@ -441,8 +441,8 @@ parse_dom_select(struct dom_select *select, struct dom_stack *stack,
sel.node.type = DOM_NODE_ATTRIBUTE; sel.node.type = DOM_NODE_ATTRIBUTE;
sel.match.attribute |= DOM_SELECT_ATTRIBUTE_SPACE_LIST; sel.match.attribute |= DOM_SELECT_ATTRIBUTE_SPACE_LIST;
set_dom_string(&sel.node.string, "class", -1); set_dom_string(&sel.node.string, "class", -1);
copy_dom_string(&sel.node.data.attribute.value, &token->string); copy_dom_string(&sel.node.data.attribute.value, &token->string);
break; break;
case ':': case ':':

View File

@ -20,7 +20,7 @@ static JSObject *
smjs_get_bookmark_generic_object(struct bookmark *bookmark, JSClass *clasp) smjs_get_bookmark_generic_object(struct bookmark *bookmark, JSClass *clasp)
{ {
JSObject *jsobj; JSObject *jsobj;
jsobj = JS_NewObject(smjs_ctx, clasp, NULL, NULL); jsobj = JS_NewObject(smjs_ctx, clasp, NULL, NULL);
if (!jsobj) return NULL; if (!jsobj) return NULL;

View File

@ -138,7 +138,7 @@ cache_entry_finalize(JSContext *ctx, JSObject *obj)
object_unlock(cached); object_unlock(cached);
} }
static const JSClass cache_entry_class = { static const JSClass cache_entry_class = {
"cache_entry", "cache_entry",
JSCLASS_HAS_PRIVATE, JSCLASS_HAS_PRIVATE,
@ -151,7 +151,7 @@ JSObject *
smjs_get_cache_entry_object(struct cache_entry *cached) smjs_get_cache_entry_object(struct cache_entry *cached)
{ {
JSObject *cache_entry_object; JSObject *cache_entry_object;
assert(smjs_ctx); assert(smjs_ctx);
cache_entry_object = JS_NewObject(smjs_ctx, cache_entry_object = JS_NewObject(smjs_ctx,

View File

@ -90,7 +90,7 @@ keymap_set_property(JSContext *ctx, JSObject *obj, jsval id, jsval *vp)
int event_id; int event_id;
struct string event_name = NULL_STRING; struct string event_name = NULL_STRING;
JSObject *jsobj = JSVAL_TO_OBJECT(*vp); JSObject *jsobj = JSVAL_TO_OBJECT(*vp);
if (JS_FALSE == JS_ObjectIsFunction(ctx, jsobj)) if (JS_FALSE == JS_ObjectIsFunction(ctx, jsobj))
return JS_FALSE; return JS_FALSE;
@ -148,7 +148,7 @@ smjs_get_keymap_object(enum keymap_id keymap_id)
{ {
int *data; int *data;
JSObject *keymap_object; JSObject *keymap_object;
assert(smjs_ctx); assert(smjs_ctx);
keymap_object = JS_NewObject(smjs_ctx, (JSClass *) &keymap_class, keymap_object = JS_NewObject(smjs_ctx, (JSClass *) &keymap_class,
@ -181,7 +181,7 @@ smjs_get_keymap_hash_object(void)
jsval val; jsval val;
enum keymap_id keymap_id; enum keymap_id keymap_id;
JSObject *keymaps_hash; JSObject *keymaps_hash;
keymaps_hash = JS_NewObject(smjs_ctx, (JSClass *) &keymaps_hash_class, keymaps_hash = JS_NewObject(smjs_ctx, (JSClass *) &keymaps_hash_class,
NULL, NULL); NULL, NULL);
if (!keymaps_hash) return NULL; if (!keymaps_hash) return NULL;