platform/upstream/efl.git
10 years agoelua: xgettext's semantics are WTF, but okay, emulate it
Daniel Kolesa [Tue, 3 Jun 2014 15:05:50 +0000 (16:05 +0100)]
elua: xgettext's semantics are WTF, but okay, emulate it

10 years agoelua: new util: table.uniq, and use it in xgettext generator
Daniel Kolesa [Tue, 3 Jun 2014 14:59:40 +0000 (15:59 +0100)]
elua: new util: table.uniq, and use it in xgettext generator

10 years agoelua: properly copy flags around
Daniel Kolesa [Tue, 3 Jun 2014 14:55:34 +0000 (15:55 +0100)]
elua: properly copy flags around

10 years agoelua: fix xgettext --extract-all
Daniel Kolesa [Tue, 3 Jun 2014 14:51:41 +0000 (15:51 +0100)]
elua: fix xgettext --extract-all

10 years agoelua: complete lexer (lex all valid tokens)
Daniel Kolesa [Tue, 3 Jun 2014 12:53:43 +0000 (13:53 +0100)]
elua: complete lexer (lex all valid tokens)

10 years agoelua: update eolian implements api
Daniel Kolesa [Tue, 3 Jun 2014 09:45:12 +0000 (10:45 +0100)]
elua: update eolian implements api

10 years agoelua: Makevars - gitignore++
Daniel Kolesa [Tue, 3 Jun 2014 09:13:39 +0000 (10:13 +0100)]
elua: Makevars - gitignore++

10 years agoelua: prepare xgettext for flag comments and try to emulate xgettext's silly behavior...
Daniel Kolesa [Mon, 2 Jun 2014 15:42:27 +0000 (16:42 +0100)]
elua: prepare xgettext for flag comments and try to emulate xgettext's silly behavior when it comes to concatenating comments

10 years agoelua: fix xgettext
Daniel Kolesa [Mon, 2 Jun 2014 14:57:32 +0000 (15:57 +0100)]
elua: fix xgettext

10 years agoelua: fixed up the xgettext lua lexer/parser/generator
Daniel Kolesa [Mon, 2 Jun 2014 14:46:02 +0000 (15:46 +0100)]
elua: fixed up the xgettext lua lexer/parser/generator

10 years agoelua: can only specify a keyword once
Daniel Kolesa [Mon, 2 Jun 2014 14:26:45 +0000 (15:26 +0100)]
elua: can only specify a keyword once

10 years agoelua: support for -a (--extract-all) option in xgettext
Daniel Kolesa [Mon, 2 Jun 2014 13:34:24 +0000 (14:34 +0100)]
elua: support for -a (--extract-all) option in xgettext

10 years agoelua: merge comments in xgettext generator
Daniel Kolesa [Mon, 2 Jun 2014 13:29:45 +0000 (14:29 +0100)]
elua: merge comments in xgettext generator

10 years agoelua: respect add-location / no-location options in xgettext
Daniel Kolesa [Fri, 30 May 2014 14:37:04 +0000 (15:37 +0100)]
elua: respect add-location / no-location options in xgettext

10 years agoelua: group messages with the same contents together, generate grouped line info
Daniel Kolesa [Fri, 30 May 2014 14:33:19 +0000 (15:33 +0100)]
elua: group messages with the same contents together, generate grouped line info

10 years agoelua: line information in the generated output
Daniel Kolesa [Fri, 30 May 2014 14:08:50 +0000 (15:08 +0100)]
elua: line information in the generated output

10 years agoelua: respect msgstr prefix and suffix in xgettext
Daniel Kolesa [Fri, 30 May 2014 13:53:54 +0000 (14:53 +0100)]
elua: respect msgstr prefix and suffix in xgettext

10 years agoelua: respect comment tags in the lexer
Daniel Kolesa [Fri, 30 May 2014 13:40:20 +0000 (14:40 +0100)]
elua: respect comment tags in the lexer

10 years agoelua: pass opts, flags around
Daniel Kolesa [Fri, 30 May 2014 13:29:34 +0000 (14:29 +0100)]
elua: pass opts, flags around

10 years agoelua: change xgettext lexer to never include delimiters and also expand \n escape...
Daniel Kolesa [Fri, 30 May 2014 13:18:28 +0000 (14:18 +0100)]
elua: change xgettext lexer to never include delimiters and also expand \n escape sequence in short strings to actual newline (no other escapes get this treatment)

10 years agoelua: almost functional xgettext generator
Daniel Kolesa [Fri, 30 May 2014 12:58:49 +0000 (13:58 +0100)]
elua: almost functional xgettext generator

10 years agoelua: initial stuff for the xgettext generator, check existence of all input files...
Daniel Kolesa [Fri, 30 May 2014 11:31:07 +0000 (12:31 +0100)]
elua: initial stuff for the xgettext generator, check existence of all input files beforehand in the app, and other fixes

10 years agoelua: get_cmdline_from_argv cleanup + use _popen on windows
Daniel Kolesa [Fri, 30 May 2014 09:09:16 +0000 (10:09 +0100)]
elua: get_cmdline_from_argv cleanup + use _popen on windows

10 years agoelua: fclose before realpath
Daniel Kolesa [Fri, 30 May 2014 08:53:32 +0000 (09:53 +0100)]
elua: fclose before realpath

10 years agoevil: remove fork (buggy)
Daniel Kolesa [Thu, 29 May 2014 14:25:41 +0000 (15:25 +0100)]
evil: remove fork (buggy)

10 years agoelua: do not use fork in our "array popen" impl; instead serialize args in a platform...
Daniel Kolesa [Thu, 29 May 2014 14:21:50 +0000 (15:21 +0100)]
elua: do not use fork in our "array popen" impl; instead serialize args in a platform specific way

10 years agoelua: if ugly, then at least portable (we already assume presence of bourne shell...
Daniel Kolesa [Wed, 28 May 2014 15:27:40 +0000 (16:27 +0100)]
elua: if ugly, then at least portable (we already assume presence of bourne shell on windows, so a wrapper doesn't hurt)

10 years agoelua: generate Makevars from Makevars.in with a dynamic conditional... sadly there...
Daniel Kolesa [Wed, 28 May 2014 15:10:09 +0000 (16:10 +0100)]
elua: generate Makevars from Makevars.in with a dynamic conditional... sadly there doesn't seem to be any other way...

10 years agoelua: possible helper usage for different stuff than just generation
Daniel Kolesa [Wed, 28 May 2014 14:42:26 +0000 (15:42 +0100)]
elua: possible helper usage for different stuff than just generation

10 years agoelua: extra cond
Daniel Kolesa [Wed, 28 May 2014 13:50:51 +0000 (14:50 +0100)]
elua: extra cond

10 years agoelua: preparation for lua file generation
Daniel Kolesa [Wed, 28 May 2014 13:44:32 +0000 (14:44 +0100)]
elua: preparation for lua file generation

10 years agoelua: reformat C source to EFL style
Daniel Kolesa [Wed, 28 May 2014 12:36:52 +0000 (13:36 +0100)]
elua: reformat C source to EFL style

10 years agoelua: remove prefix stripping from lualian
Daniel Kolesa [Tue, 27 May 2014 14:27:41 +0000 (15:27 +0100)]
elua: remove prefix stripping from lualian

10 years agoelua: update lualian against latest eolian API
Daniel Kolesa [Tue, 27 May 2014 14:20:23 +0000 (15:20 +0100)]
elua: update lualian against latest eolian API

10 years agoelua: xgettext parser: proper keyword parsing
Daniel Kolesa [Tue, 27 May 2014 13:22:51 +0000 (14:22 +0100)]
elua: xgettext parser: proper keyword parsing

10 years agoelua: xgettext parser argument parsing
Daniel Kolesa [Tue, 27 May 2014 12:26:52 +0000 (13:26 +0100)]
elua: xgettext parser argument parsing

10 years agoelua: extend the xgettext parser a bit
Daniel Kolesa [Fri, 23 May 2014 14:43:12 +0000 (15:43 +0100)]
elua: extend the xgettext parser a bit

10 years agoelua: xgettext keyword fix
Daniel Kolesa [Fri, 23 May 2014 13:18:54 +0000 (14:18 +0100)]
elua: xgettext keyword fix

10 years agoelua: sanitize keywords and extract info in xgettext (include default keywords for...
Daniel Kolesa [Fri, 23 May 2014 13:13:34 +0000 (14:13 +0100)]
elua: sanitize keywords and extract info in xgettext (include default keywords for lua), dgettext and dngettext compatibility calls

10 years agoelua: initial work on parser part of the extractor
Daniel Kolesa [Thu, 22 May 2014 13:12:09 +0000 (14:12 +0100)]
elua: initial work on parser part of the extractor

10 years agoelua: file search function
Daniel Kolesa [Thu, 22 May 2014 13:07:02 +0000 (14:07 +0100)]
elua: file search function

10 years agoelua: make xgettext use excluded_files, do some re-mappings, and have a default searc...
Daniel Kolesa [Thu, 22 May 2014 12:57:28 +0000 (13:57 +0100)]
elua: make xgettext use excluded_files, do some re-mappings, and have a default search dir

10 years agoevil: add fork, adjust elua to use that
Daniel Kolesa [Thu, 22 May 2014 09:46:39 +0000 (10:46 +0100)]
evil: add fork, adjust elua to use that

10 years agoelua: popenv fix (read proper stack items as args), getopt fix (fixed array append...
Daniel Kolesa [Wed, 21 May 2014 15:02:51 +0000 (16:02 +0100)]
elua: popenv fix (read proper stack items as args), getopt fix (fixed array append), xgettext: use cutil.popenv

10 years agoelua: popenv function
Daniel Kolesa [Wed, 21 May 2014 13:24:18 +0000 (14:24 +0100)]
elua: popenv function

10 years agoelua: fork_win cleanup
Daniel Kolesa [Wed, 21 May 2014 09:38:46 +0000 (10:38 +0100)]
elua: fork_win cleanup

10 years agoelua: include fork_win.c in compilation
Daniel Kolesa [Fri, 16 May 2014 15:44:37 +0000 (16:44 +0100)]
elua: include fork_win.c in compilation

10 years agoelua: custom non-shell popen implementation
Daniel Kolesa [Fri, 16 May 2014 15:43:42 +0000 (16:43 +0100)]
elua: custom non-shell popen implementation

10 years agoelua: fork impl for windows
Daniel Kolesa [Fri, 16 May 2014 14:01:41 +0000 (15:01 +0100)]
elua: fork impl for windows

10 years agoelua: comment is a valid token in xgettext
Daniel Kolesa [Thu, 15 May 2014 14:56:51 +0000 (15:56 +0100)]
elua: comment is a valid token in xgettext

10 years agoelua: add build_args function to core cutil library, for building normalized args...
Daniel Kolesa [Thu, 15 May 2014 14:43:56 +0000 (15:43 +0100)]
elua: add build_args function to core cutil library, for building normalized args string in a platform independent way

10 years agoelua: xgettext is again at least partially functional
Daniel Kolesa [Thu, 15 May 2014 14:01:49 +0000 (15:01 +0100)]
elua: xgettext is again at least partially functional

10 years agoelua: handle all xgettext args correctly
Daniel Kolesa [Thu, 15 May 2014 13:11:06 +0000 (14:11 +0100)]
elua: handle all xgettext args correctly

10 years agoelua: xgettext progress, currently broken
Daniel Kolesa [Wed, 14 May 2014 13:35:40 +0000 (14:35 +0100)]
elua: xgettext progress, currently broken

10 years agoelua: pass opts to callback
Daniel Kolesa [Wed, 14 May 2014 09:22:53 +0000 (10:22 +0100)]
elua: pass opts to callback

10 years agoelua: ngettext support
Daniel Kolesa [Tue, 13 May 2014 16:08:05 +0000 (17:08 +0100)]
elua: ngettext support

10 years agoelua: ability to specify custom opts table for each desc in getopt
Daniel Kolesa [Tue, 13 May 2014 14:39:55 +0000 (15:39 +0100)]
elua: ability to specify custom opts table for each desc in getopt

10 years agoelua: simplified getopt (allocates fewer tables)
Daniel Kolesa [Tue, 13 May 2014 14:33:10 +0000 (15:33 +0100)]
elua: simplified getopt (allocates fewer tables)

10 years agoelua: do not include the : in arg[0]
Daniel Kolesa [Tue, 13 May 2014 12:17:15 +0000 (13:17 +0100)]
elua: do not include the : in arg[0]

10 years agoelua: free format buffers immediately
Daniel Kolesa [Fri, 9 May 2014 13:25:23 +0000 (14:25 +0100)]
elua: free format buffers immediately

10 years agoelua: never pcall in format, instead keep track of the types properly
Daniel Kolesa [Fri, 9 May 2014 13:15:20 +0000 (14:15 +0100)]
elua: never pcall in format, instead keep track of the types properly

10 years agoelua: perform conversion beforehand
Daniel Kolesa [Fri, 9 May 2014 12:26:37 +0000 (13:26 +0100)]
elua: perform conversion beforehand

10 years agoelua: check types manually instead of pcall in one place for format
Daniel Kolesa [Fri, 9 May 2014 12:24:53 +0000 (13:24 +0100)]
elua: check types manually instead of pcall in one place for format

10 years agoelua: some more checking for no value
Daniel Kolesa [Fri, 9 May 2014 12:10:23 +0000 (13:10 +0100)]
elua: some more checking for no value

10 years agoelua: format bug fix
Daniel Kolesa [Fri, 9 May 2014 12:08:32 +0000 (13:08 +0100)]
elua: format bug fix

10 years agoelua: better error handling for format
Daniel Kolesa [Fri, 9 May 2014 11:59:07 +0000 (12:59 +0100)]
elua: better error handling for format

10 years agoelua: use string buffer in all places for format plus extra optimizations
Daniel Kolesa [Fri, 9 May 2014 10:50:37 +0000 (11:50 +0100)]
elua: use string buffer in all places for format plus extra optimizations

10 years agoelua: use custom string buffer impl for format (avoids multiple table allocs and...
Daniel Kolesa [Fri, 9 May 2014 10:37:52 +0000 (11:37 +0100)]
elua: use custom string buffer impl for format (avoids multiple table allocs and calls to string.char)

10 years agoelua: slight optimization of format func
Daniel Kolesa [Fri, 9 May 2014 10:29:49 +0000 (11:29 +0100)]
elua: slight optimization of format func

10 years agoelua: relatively slow but very powerful string formatter with support for positional...
Daniel Kolesa [Fri, 9 May 2014 10:11:39 +0000 (11:11 +0100)]
elua: relatively slow but very powerful string formatter with support for positional and named format arguments, invoked via %

10 years agoelua: xgettext: support for -X
Daniel Kolesa [Wed, 7 May 2014 12:53:00 +0000 (13:53 +0100)]
elua: xgettext: support for -X

10 years agoelua: insert input files always after opts
Daniel Kolesa [Wed, 7 May 2014 10:35:02 +0000 (11:35 +0100)]
elua: insert input files always after opts

10 years agoelua: expand the input file lists for xgettext call (we want to leave out lua files)
Daniel Kolesa [Wed, 7 May 2014 10:33:20 +0000 (11:33 +0100)]
elua: expand the input file lists for xgettext call (we want to leave out lua files)

10 years agoelua: use the new app loading system
Daniel Kolesa [Wed, 7 May 2014 10:19:24 +0000 (11:19 +0100)]
elua: use the new app loading system

10 years agoelua: a general system for application loading without having to specify explicit...
Daniel Kolesa [Wed, 7 May 2014 10:10:01 +0000 (11:10 +0100)]
elua: a general system for application loading without having to specify explicit path

10 years agoelua: match file extensions in a case insensitive way
Daniel Kolesa [Wed, 7 May 2014 09:42:31 +0000 (10:42 +0100)]
elua: match file extensions in a case insensitive way

10 years agoelua: more checks
Daniel Kolesa [Wed, 7 May 2014 09:41:19 +0000 (10:41 +0100)]
elua: more checks

10 years agoelua: a bit more informative getopt plus better arg handling when calling to xgettext
Daniel Kolesa [Wed, 7 May 2014 09:38:04 +0000 (10:38 +0100)]
elua: a bit more informative getopt plus better arg handling when calling to xgettext

10 years agoelua: more informative getopt
Daniel Kolesa [Wed, 7 May 2014 09:22:50 +0000 (10:22 +0100)]
elua: more informative getopt

10 years agoelua: xgettext lexer enhancements
Daniel Kolesa [Wed, 7 May 2014 09:17:29 +0000 (10:17 +0100)]
elua: xgettext lexer enhancements

10 years agoelua: simplified source
Daniel Kolesa [Wed, 7 May 2014 09:09:52 +0000 (10:09 +0100)]
elua: simplified source

10 years agoelua: typo fix
Daniel Kolesa [Wed, 7 May 2014 08:53:28 +0000 (09:53 +0100)]
elua: typo fix

10 years agoelua: typo fix
Daniel Kolesa [Tue, 6 May 2014 16:04:47 +0000 (17:04 +0100)]
elua: typo fix

10 years agoelua: use an appropriately sized buffer
Daniel Kolesa [Tue, 6 May 2014 15:14:20 +0000 (16:14 +0100)]
elua: use an appropriately sized buffer

10 years agoelua: lexer for xgettext
Daniel Kolesa [Tue, 6 May 2014 15:07:10 +0000 (16:07 +0100)]
elua: lexer for xgettext

10 years agoelua: remove xgettext_wrapper, instead expand the whole command into Makevars
Daniel Kolesa [Tue, 6 May 2014 12:44:56 +0000 (13:44 +0100)]
elua: remove xgettext_wrapper, instead expand the whole command into Makevars

10 years agoelua: utility func to exec a process (without spawning a shell like os.execute)
Daniel Kolesa [Tue, 6 May 2014 12:24:39 +0000 (13:24 +0100)]
elua: utility func to exec a process (without spawning a shell like os.execute)

10 years agoelua: trigger xgettext execution from xgettext.lua, which is executed by xgettext_wrapper
Daniel Kolesa [Tue, 6 May 2014 11:04:52 +0000 (12:04 +0100)]
elua: trigger xgettext execution from xgettext.lua, which is executed by xgettext_wrapper

10 years agoelua: support the EFL_RUN_IN_TREE environment variable
Daniel Kolesa [Tue, 6 May 2014 10:15:50 +0000 (11:15 +0100)]
elua: support the EFL_RUN_IN_TREE environment variable

10 years agoelua: use a xgettext wrapper
Daniel Kolesa [Tue, 6 May 2014 09:18:36 +0000 (10:18 +0100)]
elua: use a xgettext wrapper

10 years agoelua: initial code for xgettext.lua, a xgettext variant that supports lua
Daniel Kolesa [Fri, 2 May 2014 14:42:54 +0000 (15:42 +0100)]
elua: initial code for xgettext.lua, a xgettext variant that supports lua

will be used to handle i18n for lua files in EFL (because only gettext 0.18.3+ supports Lua) and it'll be usable standalone too, it will also be able of handling more things than lua support in xgettext does (e.g. concatenated string literals will be considered one string)

10 years agoelua: allow description of positional arguments in help in getopt (using metavar...
Daniel Kolesa [Fri, 2 May 2014 12:40:17 +0000 (13:40 +0100)]
elua: allow description of positional arguments in help in getopt (using metavar field without short/long)

10 years agoelua: support for omitting things from help
Daniel Kolesa [Fri, 2 May 2014 12:26:44 +0000 (13:26 +0100)]
elua: support for omitting things from help

10 years agoelua: support for eolian typedefs, unfrotunately it's just a stub for now as eolian...
Daniel Kolesa [Thu, 1 May 2014 16:00:32 +0000 (17:00 +0100)]
elua: support for eolian typedefs, unfrotunately it's just a stub for now as eolian typedefs haven't been landed in master yet

10 years agoelua: remove some superfluous fields in eolian bindings
Daniel Kolesa [Thu, 1 May 2014 13:29:30 +0000 (14:29 +0100)]
elua: remove some superfluous fields in eolian bindings

10 years agoelua: in/out fix
Daniel Kolesa [Thu, 1 May 2014 13:18:02 +0000 (14:18 +0100)]
elua: in/out fix

10 years agoelua: remove leftover
Daniel Kolesa [Thu, 1 May 2014 13:07:04 +0000 (14:07 +0100)]
elua: remove leftover

10 years agoelua: we don't need to include func name in conversion funcs (they're all the same...
Daniel Kolesa [Thu, 1 May 2014 13:05:20 +0000 (14:05 +0100)]
elua: we don't need to include func name in conversion funcs (they're all the same...), also print out the required conversion functions during gen

10 years agoelua: pass ownership information to converters
Daniel Kolesa [Thu, 1 May 2014 12:50:07 +0000 (13:50 +0100)]
elua: pass ownership information to converters

10 years agoelua: eolian fix (return nil instead of null in type_information_get), generate diffe...
Daniel Kolesa [Thu, 1 May 2014 12:41:35 +0000 (13:41 +0100)]
elua: eolian fix (return nil instead of null in type_information_get), generate different names for type conversion funcs