summaryrefslogtreecommitdiffstats
path: root/tools/sed-functions
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2011-10-21 11:18:11 +0200
committerJérémy Zurcher <jeremy@asynk.ch>2011-10-21 11:18:11 +0200
commit961dd6b19e860f3a47c4435f359f7c372cb03084 (patch)
treeeb744dedc67c8acf6d5e135c115b7428e8b49da6 /tools/sed-functions
parent3a9ae6b9d5f30898ec06819897145efc475a5625 (diff)
downloadffi-efl-961dd6b19e860f3a47c4435f359f7c372cb03084.zip
ffi-efl-961dd6b19e860f3a47c4435f359f7c372cb03084.tar.gz
add comment to sed scripts, fix sed-enum
Diffstat (limited to 'tools/sed-functions')
-rw-r--r--tools/sed-functions8
1 files changed, 6 insertions, 2 deletions
diff --git a/tools/sed-functions b/tools/sed-functions
index 296cab1..ac784a5 100644
--- a/tools/sed-functions
+++ b/tools/sed-functions
@@ -1,9 +1,13 @@
-/EAPI extern/ b
-# if return type on single line, append next line
+# drop if don't start with EAPI
+/^\s*EAPI/ ! b
+# drop extern definitions
+/EAPI\s+extern/ b
+# if does not end with ;, append next line
/EAPI.*[^;]\s*$/ { N; s/\n/ / }
# while unfinished argument list, append next line
:loop
/,$/ { N; s/\n/ /; t loop }
+# replace multi spaces with one ...
s/ {2,}/ /g
s/\s+EINA_.*/;/
s/^\s*EAPI/EAPI/p