Displaying 14 results from an estimated 14 matches for "name_length".
2007 Oct 19
1
3 commits - libswfdec/swfdec_html_parser.c libswfdec/swfdec_text_field_movie.c
...-270,16 +270,17 @@ swfdec_text_field_movie_html_parse_tag (ParserData *data, const char *p)
if (close)
{
- if (data->tags_open != NULL) {
- tag = (ParserTag *)data->tags_open->data;
- } else {
- tag = NULL;
- }
+ GSList *iter;
- if (tag != NULL && name_length == tag->name_length &&
- !g_strncasecmp (name, tag->name, name_length))
+ for (iter = data->tags_open; iter != NULL; iter = iter->next)
{
+ tag = iter->data;
+
swfdec_text_field_movie_html_parse_close_tag (data, tag);
+
+ if (name_length == tag->na...
2007 Nov 01
0
libswfdec/swfdec_text_field_movie.c libswfdec/swfdec_text_field_movie_html.c
...3 @@ swfdec_text_field_movie_html_parse_tag (ParserData *data, const char *p)
data->tags_open = g_slist_prepend (data->tags_open, tag);
// set format based on tag
- object = SWFDEC_AS_OBJECT (tag->format);
- SWFDEC_AS_VALUE_SET_BOOLEAN (&val, TRUE);
-
- if (tag->name_length == 2 && !g_strncasecmp (tag->name, "li", 2)) {
- swfdec_as_object_set_variable (object, SWFDEC_AS_STR_bullet, &val);
- } else if (tag->name_length == 1 && !g_strncasecmp (tag->name, "b", 1)) {
- swfdec_as_object_set_variable (object, SWF...
2007 Oct 23
0
9 commits - libswfdec/swfdec_as_strings.c libswfdec/swfdec_html_parser.c libswfdec/swfdec_style_sheet.c libswfdec/swfdec_style_sheet.h libswfdec/swfdec_text_field_movie_as.c libswfdec/swfdec_text_field_movie.c libswfdec/swfdec_text_field_movie.h
...fdec_html_parser.c b/libswfdec/swfdec_html_parser.c
index eac7282..9ca6dfd 100644
--- a/libswfdec/swfdec_html_parser.c
+++ b/libswfdec/swfdec_html_parser.c
@@ -190,6 +190,7 @@ swfdec_text_field_movie_html_tag_set_attribute (ParserData *data,
if (data->style_sheet &&
((tag->name_length == 2 && !g_strncasecmp (tag->name, "li", 2)) ||
+ (tag->name_length == 4 && !g_strncasecmp (tag->name, "span", 4)) ||
(tag->name_length == 1 && !g_strncasecmp (tag->name, "p", 1))))
{
if (name_length == 5 &...
2007 Oct 19
0
3 commits - libswfdec/swfdec_as_interpret.c libswfdec/swfdec_html_parser.c libswfdec/swfdec_sprite_movie_as.c libswfdec/swfdec_text_field_movie.c
...-git a/libswfdec/swfdec_html_parser.c b/libswfdec/swfdec_html_parser.c
index 47cd412..5d058df 100644
--- a/libswfdec/swfdec_html_parser.c
+++ b/libswfdec/swfdec_html_parser.c
@@ -246,8 +246,6 @@ swfdec_text_field_movie_html_parse_tag (ParserData *data, const char *p)
if (tag != NULL && name_length == tag->name_length &&
!g_strncasecmp (name, tag->name, name_length))
{
- tag->end_index = data->text->len;
-
if (data->cx->version == 6) {
if ((name_length == 1 && !g_strncasecmp (name, "p", 1)) ||
(name_length == 2 &&am...
2007 Oct 29
0
20 commits - libswfdec/Makefile.am libswfdec/swfdec_as_interpret.c libswfdec/swfdec_html_parser.c libswfdec/swfdec_initialize.as libswfdec/swfdec_initialize.h libswfdec/swfdec_text_field.c libswfdec/swfdec_text_field.h
...e_html.c
index b3976e7..3352bd6 100644
--- a/libswfdec/swfdec_text_field_movie_html.c
+++ b/libswfdec/swfdec_text_field_movie_html.c
@@ -318,19 +318,19 @@ swfdec_text_field_movie_html_parse_tag (ParserData *data, const char *p)
}
else
{
- if (data->cx->version < 7 &&
- (name_length == 2 && !g_strncasecmp (name, "br", 2))) {
- data->text = g_string_append_c (data->text, '\n');
- tag = NULL;
- } else {
- SwfdecAsObject *object;
- SwfdecAsValue val;
+ SwfdecAsObject *object;
+ SwfdecAsValue val;
- if (data->c...
2007 Oct 31
0
2 commits - libswfdec/swfdec_sound.c libswfdec/swfdec_text_field_movie_as.c libswfdec/swfdec_text_field_movie.c libswfdec/swfdec_text_field_movie_html.c
....c
index 3352bd6..ef22415 100644
--- a/libswfdec/swfdec_text_field_movie_html.c
+++ b/libswfdec/swfdec_text_field_movie_html.c
@@ -71,7 +71,7 @@ swfdec_text_field_movie_html_parse_close_tag (ParserData *data, ParserTag *tag)
ParserTag *n = g_new0 (ParserTag, 1);
n->name = f->name;
n->name_length = f->name_length;
- n->index = g_utf8_strlen (data->text->str, -1);
+ n->index = data->text->len;
n->end_index = n->index + 1;
n->format = swfdec_text_format_copy (f->format);
data->tags_closed = g_slist_prepend (data->tags_closed, n);
@@ -81,7 +81,7 @@...
2014 May 29
0
[PATCH 2/2] core/fs: Add support for Unix File system 1/2.
...+
+ data = ufs_get_cache(inode, index);
+ dir = (const struct ufs_dir_entry *)
+ (data + (file->offset & (BLOCK_SIZE(fs) - 1)));
+
+ dirent->d_ino = dir->inode_value;
+ dirent->d_off = file->offset;
+ dirent->d_reclen = offsetof(struct dirent, d_name) + dir->name_length + 1;
+ dirent->d_type = get_inode_mode(dir->file_type);
+ memcpy(dirent->d_name, dir->name, dir->name_length);
+ dirent->d_name[dir->name_length] = '\0';
+
+ file->offset += dir->dir_entry_len; /* Update for next reading */
+
+ return 0;
+}
+
+stat...
2013 Jul 12
1
[PATCH 001/001] core/fs: Add support to Unix File system 1/2.
...+
+ data = ufs_get_cache(inode, index);
+ dir = (const struct ufs_dir_entry *)
+ (data + (file->offset & (BLOCK_SIZE(fs) - 1)));
+
+ dirent->d_ino = dir->inode_value;
+ dirent->d_off = file->offset;
+ dirent->d_reclen = offsetof(struct dirent, d_name) + dir->name_length + 1;
+ dirent->d_type = get_inode_mode(dir->file_type);
+ memcpy(dirent->d_name, dir->name, dir->name_length);
+ dirent->d_name[dir->name_length] = '\0';
+
+ file->offset += dir->dir_entry_len; /* Update for next reading */
+
+ return 0;
+}
+
+stat...
2007 Oct 22
0
5 commits - libswfdec/swfdec_html_parser.c libswfdec/swfdec_text_field_movie_as.c libswfdec/swfdec_text_field_movie.c test/trace
...c/swfdec_html_parser.c
index a6a0aa0..00c085c 100644
--- a/libswfdec/swfdec_html_parser.c
+++ b/libswfdec/swfdec_html_parser.c
@@ -63,8 +63,8 @@ swfdec_text_field_movie_html_parse_close_tag (ParserData *data, ParserTag *tag)
ParserTag *n = g_new0 (ParserTag, 1);
n->name = f->name;
n->name_length = f->name_length;
- n->index = data->text->len;
- n->end_index = data->text->len + 1;
+ n->index = g_utf8_strlen (data->text->str, -1);
+ n->end_index = n->index + 1;
n->format = swfdec_text_format_copy (f->format);
data->tags_closed = g_slist_prepen...
2014 May 29
3
[PATCH 0/2] UFS1/2 support series
From: Raphael S. Carvalho <raphael.scarv at gmail.com>
Wrote the documentation below. I think it would be good to push the doc to
the wiki as soon as the UFS support gets merged.
Unix Fast File System (UFS/FFS) 1/2 on Syslinux - (usage/install)
-----
There is a confusion about the name of this file system, then I decided to
contact the author who replied:
"The name has always been
2007 Oct 13
0
5 commits - libswfdec/swfdec_html_parser.c libswfdec/swfdec_text_field.c libswfdec/swfdec_text_field_movie_as.c libswfdec/swfdec_text_field_movie.c libswfdec/swfdec_xml.c test/trace
...bswfdec/swfdec_html_parser.c
index ddd8534..3c0ca04 100644
--- a/libswfdec/swfdec_html_parser.c
+++ b/libswfdec/swfdec_html_parser.c
@@ -113,6 +113,24 @@ swfdec_text_field_movie_html_tag_set_att
{
swfdec_as_object_set_variable (object, SWFDEC_AS_STR_size, &val);
}
+ else if (name_length == 5 && !g_strncasecmp (name, "color", 5))
+ {
+ SwfdecAsValue val_number;
+
+ if (value_length != 7 || *value != '#') {
+ SWFDEC_AS_VALUE_SET_NUMBER (&val_number, 0);
+ } else {
+ int number;
+ char *tail;
+
+ number = g_ascii_strtoll (value + 1, &am...
2014 May 29
3
[PATCH v2 0/2] UFS1/2 support series
From: Raphael S. Carvalho <raphael.scarv at gmail.com>
Change since v1:
* Fix bug on dentry structure (thank you specification; btw, sarcasm), and
consequently a bug on ufs_readdir.
* Add readlink support (applied tests for symlinks whose destionation path
were stored in blk pointers and the file itself).
* Several improvements.
Wrote the documentation below. I think it would be good to
2007 Oct 22
0
12 commits - libswfdec/swfdec_as_strings.c libswfdec/swfdec_html_parser.c libswfdec/swfdec_text_field.c libswfdec/swfdec_text_field.h libswfdec/swfdec_text_field_movie_as.c libswfdec/swfdec_text_field_movie.c libswfdec/swfdec_text_field_movie.h test/trace
....c
index 1c4dfad..a6a0aa0 100644
--- a/libswfdec/swfdec_html_parser.c
+++ b/libswfdec/swfdec_html_parser.c
@@ -329,6 +329,9 @@ swfdec_text_field_movie_html_parse_tag (ParserData *data, const char *p)
swfdec_as_object_set_variable (object, SWFDEC_AS_STR_italic, &val);
} else if (tag->name_length == 1 && !g_strncasecmp (tag->name, "u", 1)) {
swfdec_as_object_set_variable (object, SWFDEC_AS_STR_underline, &val);
+ } else if (tag->name_length == 3 && !g_strncasecmp (tag->name, "img", 3))
+ {
+ SWFDEC_FIXME ("IMG tag support for...
2006 Jan 21
2
snmp-ups hacking
Hi all!
I'm wondering if there's anyone doing any hacking on the snmp-ups
driver at the moment.
I've started looking at implementing 3phase-support, and this
uncovered some rather unpleasant stuff in the snmp-ups driver that I
really need to fix in order to get things sane.
Those of you that's allergic to SNMP might want to stop reading now,
this is rather icky ;)