Removed some debug printing

This commit is contained in:
frank 2018-03-21 12:11:14 +01:00
parent 6b7c2c4c5e
commit 3ef1c283cd
20 changed files with 1 additions and 14 deletions

Binary file not shown.

View File

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

View File

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

View File

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

Binary file not shown.

View File

@ -28,22 +28,13 @@
/////////////////////////////////////////////////////////
const mycss_selectots_function_begin_entry_t * mycss_function_begin_entry_by_name(const char* name, size_t length)
{
// FRANK
printf("mycss_function_begin_entry_by_name: %s, %d\n", name, (int)length);
size_t idx = ((mycore_string_chars_lowercase_map[ (const unsigned char)name[0] ] *
mycore_string_chars_lowercase_map[ (const unsigned char)name[(length - 1)] ] *
length)
% MyCSS_SELECTORS_FUNCTION_NAME_STATIC_SIZE) + 1;
// FRANK
printf("mycss_function_begin_entry_by_name: %d\n", (int)idx);
while (mycss_selectors_function_begin_map_index[idx].name)
{
// FRANK
printf("mycss_function_begin_entry_by_name: %s\n", mycss_selectors_function_begin_map_index[idx].name);
if(mycss_selectors_function_begin_map_index[idx].length == length) {
if(mycore_strncasecmp(mycss_selectors_function_begin_map_index[idx].name, name, length) == 0)
return &mycss_selectors_function_begin_map_index[idx];

View File

@ -274,7 +274,7 @@ void mycss_selectors_parser_selector_pseudo_class_function(mycss_entry_t* entry,
mycss_selectors_function_begin_f to_func = mycss_function_begin_by_name(str->data, str->length);
// FRANK
printf("mycss_selectors_parser_selector_pseudo_class_function:\n%s\nto_func %s\n", str->data, (to_func)?"exists":"does not exist");
printf("mycss_selectors_parser_selector_pseudo_class_function: '%s' %s\n", str->data, (to_func) ? "exists" : "does not exist");
if(to_func) {
to_func(entry, selector);

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@ -120,7 +120,6 @@ void print_found_result(myhtml_tree_t* html_tree, myhtml_collection_t *collectio
int main(int argc, const char * argv[])
{
const char *html = "<div><p id=p1><p id=p2><p id=p3><a>link</a><p id=p4><p id=p5><p id=p6></div>";
// const char *selector = "div > :nth-child(2n+1):not(:contains(\"link\"))";
const char *selector = ":contains(\"link\")";
/* init MyHTML and parse HTML */

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.