Generated new 'mycss_selectors_function_begin_map_index' with 'perl utils/MyCSS/functions.pl'

This commit is contained in:
frank 2018-03-21 12:04:09 +01:00
parent 6322e2c276
commit 6b7c2c4c5e
25 changed files with 27 additions and 21 deletions

View File

@ -22,9 +22,7 @@
#define MyHTML_MyCSS_SELECTORS_FUNCTION_PARSER_H
#pragma once
// FRANK
// #define MyCSS_SELECTORS_FUNCTION_NAME_STATIC_SIZE 57
#define MyCSS_SELECTORS_FUNCTION_NAME_STATIC_SIZE 59
#define MyCSS_SELECTORS_FUNCTION_NAME_STATIC_SIZE 57
#ifdef __cplusplus
extern "C" {

View File

@ -22,9 +22,7 @@
#define MyHTML_MyCSS_SELECTORS_FUNCTION_RESOURCE_H
#pragma once
// FRANK
// #define MyCSS_SELECTORS_FUNCTION_NAME_STATIC_SIZE 58
#define MyCSS_SELECTORS_FUNCTION_NAME_STATIC_SIZE 59
#define MyCSS_SELECTORS_FUNCTION_NAME_STATIC_SIZE 57
static const mycss_selectots_function_begin_entry_t mycss_selectors_function_begin_map_index[] =
{
@ -80,12 +78,11 @@ static const mycss_selectots_function_begin_entry_t mycss_selectors_function_beg
{"nth-child", 9, mycss_selectors_function_begin_nth_child, 0, 49},
{NULL, 0, NULL, 0, 0},
{NULL, 0, NULL, 0, 0},
{NULL, 0, NULL, 0, 0},
{"contains", 8, mycss_selectors_function_begin_contains, 0, 52},
{NULL, 0, NULL, 0, 0},
{NULL, 0, NULL, 0, 0},
{NULL, 0, NULL, 0, 0},
{"drop", 4, mycss_selectors_function_begin_drop, 0, 56},
{"contains", 8, mycss_selectors_function_begin_contains, 0, 57},
{NULL, 0, NULL, 0, 0},
};

View File

@ -39,6 +39,7 @@ static const mycss_selectors_value_destroy_f mycss_selectors_value_destroy_map[M
static const mycss_selectors_value_function_destroy_f mycss_selectors_value_function_destroy_map[MyCSS_SELECTORS_SUB_TYPE_PSEUDO_CLASS_FUNCTION_LAST_ENTRY] = {
mycss_selectors_value_pseudo_class_function_undef_destroy,
mycss_selectors_value_pseudo_class_function_undef_destroy,
mycss_selectors_value_pseudo_class_function_contains_destroy,
mycss_selectors_value_pseudo_class_function_current_destroy,
mycss_selectors_value_pseudo_class_function_dir_destroy,
mycss_selectors_value_pseudo_class_function_drop_destroy,
@ -52,7 +53,6 @@ static const mycss_selectors_value_function_destroy_f mycss_selectors_value_func
mycss_selectors_value_pseudo_class_function_nth_last_column_destroy,
mycss_selectors_value_pseudo_class_function_nth_last_of_type_destroy,
mycss_selectors_value_pseudo_class_function_nth_of_type_destroy,
mycss_selectors_value_pseudo_class_function_contains_destroy,
};
#endif /* MyHTML_MyCSS_SELECTORS_VALUE_RESOURCE_H */

BIN
lib/libmodest-0.0.6.so Executable file

Binary file not shown.

1
lib/libmodest-0.0.so Symbolic link
View File

@ -0,0 +1 @@
libmodest-0.0.6.so

1
lib/libmodest-0.so Symbolic link
View File

@ -0,0 +1 @@
libmodest-0.0.6.so

1
lib/libmodest.so Symbolic link
View File

@ -0,0 +1 @@
libmodest-0.0.6.so

BIN
lib/libmodest_static.a Normal file

Binary file not shown.

View File

@ -22,9 +22,7 @@
#define MyHTML_MyCSS_SELECTORS_FUNCTION_PARSER_H
#pragma once
// FRANK
// #define MyCSS_SELECTORS_FUNCTION_NAME_STATIC_SIZE 58
#define MyCSS_SELECTORS_FUNCTION_NAME_STATIC_SIZE 59
#define MyCSS_SELECTORS_FUNCTION_NAME_STATIC_SIZE 57
#ifdef __cplusplus
extern "C" {

View File

@ -22,9 +22,7 @@
#define MyHTML_MyCSS_SELECTORS_FUNCTION_RESOURCE_H
#pragma once
// FRANK
// #define MyCSS_SELECTORS_FUNCTION_NAME_STATIC_SIZE 58
#define MyCSS_SELECTORS_FUNCTION_NAME_STATIC_SIZE 59
#define MyCSS_SELECTORS_FUNCTION_NAME_STATIC_SIZE 57
static const mycss_selectots_function_begin_entry_t mycss_selectors_function_begin_map_index[] =
{
@ -80,12 +78,11 @@ static const mycss_selectots_function_begin_entry_t mycss_selectors_function_beg
{"nth-child", 9, mycss_selectors_function_begin_nth_child, 0, 49},
{NULL, 0, NULL, 0, 0},
{NULL, 0, NULL, 0, 0},
{NULL, 0, NULL, 0, 0},
{"contains", 8, mycss_selectors_function_begin_contains, 0, 52},
{NULL, 0, NULL, 0, 0},
{NULL, 0, NULL, 0, 0},
{NULL, 0, NULL, 0, 0},
{"drop", 4, mycss_selectors_function_begin_drop, 0, 56},
{"contains", 8, mycss_selectors_function_begin_contains, 0, 57},
{NULL, 0, NULL, 0, 0},
};

View File

@ -371,4 +371,16 @@ void * mycss_selectors_value_pseudo_class_function_nth_of_type_destroy(mycss_ent
return value;
}
void * mycss_selectors_value_pseudo_class_function_contains_destroy(mycss_entry_t* entry, void* value, bool self_destroy)
{
if(value == NULL)
return NULL;
if(self_destroy) {
mchar_async_free(entry->mchar, entry->mchar_value_node_id, value);
return NULL;
}
return value;
}

View File

@ -39,6 +39,7 @@ static const mycss_selectors_value_destroy_f mycss_selectors_value_destroy_map[M
static const mycss_selectors_value_function_destroy_f mycss_selectors_value_function_destroy_map[MyCSS_SELECTORS_SUB_TYPE_PSEUDO_CLASS_FUNCTION_LAST_ENTRY] = {
mycss_selectors_value_pseudo_class_function_undef_destroy,
mycss_selectors_value_pseudo_class_function_undef_destroy,
mycss_selectors_value_pseudo_class_function_contains_destroy,
mycss_selectors_value_pseudo_class_function_current_destroy,
mycss_selectors_value_pseudo_class_function_dir_destroy,
mycss_selectors_value_pseudo_class_function_drop_destroy,

BIN
test/mycore/utils/avl_tree Executable file

Binary file not shown.

BIN
test/mycss/declaration Executable file

Binary file not shown.

Binary file not shown.

BIN
test/myhtml/commoncrawl Executable file

Binary file not shown.

BIN
test/myhtml/pseudo_class_contains Executable file

Binary file not shown.

BIN
test/myurl/url Executable file

Binary file not shown.

BIN
test_suite/mycore/utils/avl_tree Executable file

Binary file not shown.

BIN
test_suite/mycss/declaration Executable file

Binary file not shown.

Binary file not shown.

BIN
test_suite/myhtml/commoncrawl Executable file

Binary file not shown.

Binary file not shown.

BIN
test_suite/myurl/url Executable file

Binary file not shown.

View File

@ -13,7 +13,6 @@ my $func_map = {
not => "",
matches => "",
has => "",
contains => "",
dir => "",
lang => "",
current => "",
@ -23,7 +22,8 @@ my $func_map = {
'nth-of-type' => "",
'nth-last-of-type' => "",
'nth-column' => "",
'nth-last-column' => ""
'nth-last-column' => "",
'contains' => ""
};
my $INDEX_OF_NAMES = print_functions();