Skip to content

Instantly share code, notes, and snippets.

View barbieri's full-sized avatar

Gustavo Sverzut Barbieri barbieri

View GitHub Profile
@barbieri
barbieri / efl-c-scan-ifdefs.sh
Created February 2, 2017 11:30
Scan C/H source files for #if/#ifdef/#elif symbols, ignore some based on EFL conventions and the rest try to provide the cmake function to check for them
#!/bin/sh
find $1 -type 'f' \( -name '*.c' -o -name '*.h' -o -name '*.x' \) |
xargs grep --no-filename '^ *# *\(if\|elif\)' |
sed 's/^ *# *\(if\|ifdef\|ifndef\|elif\)//g' |
sed 's/\(defined\|[()!&|><=]\|^DBG\|^CRI\|^WRN\|^INF\|^ERR\|^NDEBUG\|^EAPI\|__cplusplus\|__APPLE__\|__MACH__\|_MSC_VER\|_WIN32\|__GNUC__\|\(INT\|UINT\)\(8\|16\|32\|64\)_\(MAX\|MIN\)\|HAVE_\(EXOTIC\|ESCAPE\|EVIL\)\)//g' |
tr ' ' '\n' | sort -u | while read s; do
if [ -z "$s" ]; then
continue
elif [ ${s#HAVE_} != $s ]; then
Unused symbols:
ecore_con_url_additional_headers_clear
ecore_con_url_proxy_password_set
ecore_con_url_proxy_username_set
ecore_con_url_ssl_ca_set
ecore_con_url_ssl_verify_peer_set
ecore_con_url_timeout_set
Used symbols:
ECORE_CON_EVENT_URL_COMPLETE [B: uninitialized data (BSS)]
@barbieri
barbieri / ecore-con-eoify-drafv2.txt
Last active August 3, 2016 04:33
Ecore_Con Eo-ify proposal, version 2
/*
This is a draft Eo model to replace ecore_con_{server,client}.
It will address the same usage, but with a new API that is closer
to what other projects do, this will allow easier transition to
EFL, without loosing any feature.
At the of this file you can see a detailed analysis of Ecore_Con.h and
competitors such as node.js, golang, qt and soletta.
@barbieri
barbieri / ecore-con-symbols-usage.txt
Last active July 30, 2016 21:47
libecore_conf.so symbols (ignoring ecore_con_url)
# Command: https://github.com/barbieri/barbieri-playground/blob/master/python/c-symbols-of-lib.py
c-symbols-of-lib.py \
--symbol-exclude='ecore_con_shutdown' \
--symbol-exclude='ecore_con_init' \
--symbol-exclude='[Ee]core_[Cc]on_[Uu]rl_*' \
--symbol-exclude='ECORE_CON_URL_*' \
--symbol-exclude='ECORE_CON_EVENT_URL_*' \
--symbol-exclude='[Ee]fl_[Nn]etwork_[Uu]rl_*' \
--symbol-exclude='_EFL_NETWORK_URL_*' \
--source-exclude='[Ee]core_[Cc]on*' \
@barbieri
barbieri / id_rsa.pub
Created July 27, 2016 05:52
Dell Inspiron (development machine) SSH public key
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDmhd4ZPK29QOmjQ1UFydgJRCSVtu18M9zqEdbtr1ipCfQhkgaS3s27Ef4UukuJEtrv3mKEto7FjzuxbjPRSyBg1qNahrJDgWYEKD3dt9x77+05+e7NzDDdejXAATnwp52/pTUqQ6YEFo9bvzq0nHaJrzOganQ+2KU/RHG5+gNIAqFp3dEzEYJCN+XhrWKbKu6Qe7Sim/qY5pKYOCXbLC0IYrH2wwMvvS5+NLEdeHVZzPrLqeLdztdHhfgUlMMMmIZE0sX3nfXeY13vfs9QFCcBgPUQxp4JJ4uUsaXhC/qU0jT0lVtyADo4Mp3TEGpNO7/lhx2EnXu8mERB6U015TC3 gustavo@barbieri-inspiron5457

Keybase proof

I hereby claim:

  • I am barbieri on github.
  • I am barbieri (https://keybase.io/barbieri) on keybase.
  • I have a public key whose fingerprint is 97BE 795B 29FD 4E02 56BB F216 88E7 FFA5 EC88 5698

To claim this, I am signing this object: