static const char * help_reader_window_history_prev(Help_Reader_Window * win) { ecore_dlist_previous(win->history); help_reader_window_buttons_update(win); return ecore_dlist_current(win->history); }
void egxp_node_add_in_order (Ecore_DList * l, Egxp_Node * n) { #ifdef EGXP_DEBUG printf("TRACE: egxp_node_add_in_order\n"); #endif assert (l && n); Egxp_Node * pn = NULL; /* before doing anything, check if there is condition, if not we add it to the end if the list */ if (n->conditions == NULL || ecore_list_nodes (l) == 0) { ecore_dlist_append (l, n); return; } /* go to the first node */ ecore_dlist_goto_first(l); while((pn = EGXP_NODE(ecore_dlist_next(l))) != NULL) { if (pn->conditions == NULL || ecore_dlist_nodes (n->conditions) > ecore_dlist_nodes(pn->conditions)) { ecore_dlist_previous(l); ecore_dlist_insert (l, n); return; } } ecore_dlist_append (l, n); }
evfs_uri_token * evfs_token_expect(Ecore_DList * tokens, evfs_uri_token_type type, char *tok) { evfs_uri_token *token; token = ecore_dlist_next(tokens); /*if (token) { * printf("Token string:\n"); * printf("'%s'\n", token->token_s); * } */ if (token && token->type == type && (tok == NULL || !strcmp(token->token_s, tok))) { //printf("Got expected token type, '%s'\n", token->token_s); return token; } else { ecore_dlist_previous(tokens); //printf("Didn't get expected token type, '%s'\n", token->token_s); return NULL; } }