Skip to content
Snippets Groups Projects
Commit 0f2524e6 authored by clohr's avatar clohr
Browse files

snake_case

git-svn-id: https://redmine.imt-atlantique.fr/svn/xaal/code/C/branches/version-0.7@2407 b32b6428-25c9-4566-ad07-03861ab6144f
parent e015a1c7
Branches
No related tags found
No related merge requests found
TMP=$(tempfile)
for i in *.c *.TXT; do
sed -e '
s/telecom-bretagne.eu/imt-atlantique.fr/g;
s/[[:space:]]*$//g;
' "$i" | unexpand > "$TMP"
mv -f "$TMP" "$i"
done
TMP=$(tempfile)
for i in *.c; do
sed -e '
s/char \*devType, \*msgType, \*action;/char *devType, *action;\n xAAL_msgType_t msgType;/g;
s/strcmp(msgType, "notify") == 0/msgType == xAAL_NOTIFY/g;
s/strcmp(msgType, "request") == 0/msgType == xAAL_REQUEST/g;
s/strcmp(msgType, "reply") == 0/msgType == xAAL_REPLY/g;
s,"notify",xAAL_NOTIFY,g;
s,"request",xAAL_REQUEST,g;
s,"reply",xAAL_REPLY,g;
s/xAAL_free_msg(ctargets, source, devType, msgType, action, cbody);/xAAL_free_msg(ctargets, source, devType, action, cbody);/g;
s/strcmp(msgType, xAAL_NOTIFY) == 0/msgType == xAAL_NOTIFY/g;
s/strcmp(msgType, xAAL_REQUEST) == 0/msgType == xAAL_REQUEST/g;
s/strcmp(msgType, xAAL_REPLY) == 0/msgType == xAAL_REPLY/g;
s/[[:space:]]*$//g;
' "$i" | unexpand > "$TMP"
mv -f "$TMP" "$i"
done
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment