summaryrefslogblamecommitdiff
path: root/notes
blob: 22ce9273cab298497e97e77bf86f7625def8eec1 (plain) (tree)
1
2
3
4

                                

                              



















                                                                                                                                         



































































                                                                                                 
dot -Tpng class.dot -o class.png

dot -Tsvg test.dot -o test.svg

efreet.config.home.get = get the user home directory
to save in ~/.config/app/

name:value

efreet_init();
223
224
225 Efreet_Ini  *conf = efreet_ini_new("/home/avilog/git/umleo/test.ini");
226 efreet_ini_section_set(conf, "default");
227 printf("%s\n", efreet_ini_string_get(conf, "name"));
228
229 efreet_ini_free(conf);
230
231 goto end;*/
efreet_shutdown();


./src/bin/eo_info_cmd --mode i_t -I /home/avilog/git/efl1/efl/src/lib/ -I /home/avilog/git/efl1/elementary/src/lib/ --class elm_layout.eo

regex:
http://www.peope.net/old/regex.html
regex_t regex;
int reti;
char msgbuf[100];

/* Compile regular expression */
reti = regcomp(&regex, "^a[1-9]", 0);
if( reti ){ fprintf(stderr, "Could not compile regex\n"); exit(1); }

/* Execute regular expression */
reti = regexec(&regex, "at", 0, NULL, 0);
if( !reti ){
     puts("Match");
}
else if( reti == REG_NOMATCH ){
     puts("No match");
}
else{
     regerror(reti, &regex, msgbuf, sizeof(msgbuf));
     fprintf(stderr, "Regex match failed: %s\n", msgbuf);
     exit(1);
}

/* Free compiled regular expression if you want to use the regex_t again */
regfree(&regex);




static Eina_Inlist* _prints_inherit_tree_text(const Eolian_Class *ekl, Eina_Inlist *classes_list)
{
   int depth = 0;
   _push_queue(ekl);
   int count_cur = 1, count_childs = 0;
   //   _print_class(_win_kl);
   printf("\n**Depth: %d**\n",  depth);

   while((ekl = _pop_queue()))
     {
        Eina_Iterator *lst = eolian_class_inherits_get(ekl);

        if(count_cur==0)
          {
             count_cur = count_childs;
             count_childs =0;
             depth++;
             printf("\n** Depth: %d **\n",   depth);
          }
        count_cur--;
        const char *ekli_name;
        EINA_ITERATOR_FOREACH(lst, ekl_name)
          {

             ekl=eolian_class_get_by_name(ekl_name);

             //            _print_class(_win_kl);

             _push_queue(ekl);
             count_childs++;
             //   _prints_inherits_recur(_win_kl,  depth+1);
          }
        eina_iterator_free(lst);

     }
   return classes_list;
}