From 06e6afbce232c4c0b53d1e1bba95a52652c8c23c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Zurcher?= Date: Sat, 13 Aug 2011 10:48:47 +0200 Subject: fix and update native api extraction and generation --- tools/extract-api.sh | 1 + tools/genruby.rb | 2 ++ tools/sed-enums | 6 +++--- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/tools/extract-api.sh b/tools/extract-api.sh index 288f787..313176f 100755 --- a/tools/extract-api.sh +++ b/tools/extract-api.sh @@ -40,6 +40,7 @@ for header in \ "${INCLUDE}/ecore-1/Ecore_Evas.h" \ "${INCLUDE}/ecore-1/Ecore_Fb.h" \ "${INCLUDE}/ecore-1/Ecore_File.h" \ + "${INCLUDE}/EMap.h" \ "${INCLUDE}/elementary-0/Elementary.h" \ ; do # diff --git a/tools/genruby.rb b/tools/genruby.rb index e77ebf0..f844cc0 100755 --- a/tools/genruby.rb +++ b/tools/genruby.rb @@ -23,6 +23,7 @@ libraries = [ [ 'Ecore_Evas.h', 'EcoreEvas', 'ecore_evas', 'ecore_evas', 'ecore_evas.rb' ], # [ 'Ecore_Fb.h', 'EcoreFb', 'ecore', 'ecore', 'ecore/ecore_fb.rb' ], # [ 'Ecore_File.h', 'EcoreFile', 'ecore', 'ecore', 'ecore/ecore_file.rb' ], + [ 'EMap.h', 'EMap', 'emap', 'emap', 'emap.rb' ], [ 'Elementary.h', 'Elm', 'elm', 'libelementary-ver-pre-svn-09.so.0', 'elementary.rb' ], ] # @@ -67,6 +68,7 @@ TYPES = { 'short' => ':short', 'float' => ':float', 'pid_t' => ':ulong', + 'time_t' => ':ulong', 'size_t' => ':ulong', 'double' => ':double', 'long int' => ':long', diff --git a/tools/sed-enums b/tools/sed-enums index 4599859..ffc193b 100644 --- a/tools/sed-enums +++ b/tools/sed-enums @@ -1,4 +1,4 @@ -s/^\s*typedef\s+(enum(\s+\w+)?).*$/typedef \1 { / +s/^\s*(typedef)?\s+(enum(\s+\w+)?).*$/typedef \2 { / T;h :attrs;n s/^\s*([A-Z0-9_]+)(\s*=\s*-?[0-9]+)?.*$/\1\2, / @@ -8,8 +8,8 @@ T next;H;b attrs s/^\s*}\s*(\w+).*$/ } \1;/ t finish :close -s/^\s*typedef\s+enum\s+\w+\s+(\w+)\s+;/ } \1/ -t finish;n;T close +s/^\s*typedef\s+enum\s+\w+\s+(\w+)\s*;/ } \1/ +t finish;n;b close :finish H;x s/\n//g -- cgit v1.1-2-g2b99