Alexey Gladkov [Fri, 7 Jun 2013 06:15:40 +0000 (10:15 +0400)]
Rewrite accent_table to dynamic array
Signed-off-by: Alexey Gladkov <gladkov.alexey@gmail.com>
Alexey Gladkov [Wed, 29 May 2013 18:57:25 +0000 (22:57 +0400)]
lk_dump_bkeymap takes the output stream as argument
Signed-off-by: Alexey Gladkov <gladkov.alexey@gmail.com>
Alexey Gladkov [Wed, 29 May 2013 10:57:27 +0000 (14:57 +0400)]
Remove static arrays that is used internally for the parser
Signed-off-by: Alexey Gladkov <gladkov.alexey@gmail.com>
Alexey Gladkov [Mon, 20 May 2013 13:31:55 +0000 (17:31 +0400)]
Remove static arrays for keymaps and keys
Signed-off-by: Alexey Gladkov <gladkov.alexey@gmail.com>
Alexey Gladkov [Thu, 2 May 2013 11:52:48 +0000 (15:52 +0400)]
Fix bug in previous commit
Signed-off-by: Alexey Gladkov <gladkov.alexey@gmail.com>
Alexey Gladkov [Mon, 29 Apr 2013 20:40:08 +0000 (00:40 +0400)]
Rename LKFLAG_* on LK_FLAG_*
Signed-off-by: Alexey Gladkov <gladkov.alexey@gmail.com>
Alexey Gladkov [Mon, 29 Apr 2013 13:02:49 +0000 (17:02 +0400)]
Replace prefer_unicode with LKFLAG_PREFER_UNICODE
Signed-off-by: Alexey Gladkov <gladkov.alexey@gmail.com>
Alexey Gladkov [Mon, 29 Apr 2013 12:24:55 +0000 (16:24 +0400)]
Replace variables for keywords with flags
Signed-off-by: Alexey Gladkov <gladkov.alexey@gmail.com>
Alexey Gladkov [Sat, 27 Apr 2013 22:46:26 +0000 (02:46 +0400)]
Remove state_ptr variable
Signed-off-by: Alexey Gladkov <gladkov.alexey@gmail.com>
Alexey Gladkov [Fri, 26 Apr 2013 12:41:19 +0000 (16:41 +0400)]
Fix keymaps stack processing
Signed-off-by: Alexey Gladkov <gladkov.alexey@gmail.com>
Alexey Gladkov [Tue, 23 Apr 2013 19:55:15 +0000 (23:55 +0400)]
Add goals for packaging and publication
Signed-off-by: Alexey Gladkov <gladkov.alexey@gmail.com>
Alexey Gladkov [Tue, 23 Apr 2013 19:33:14 +0000 (23:33 +0400)]
tests: Fix distcheck
Signed-off-by: Alexey Gladkov <gladkov.alexey@gmail.com>
Alexey Gladkov [Thu, 18 Apr 2013 18:59:55 +0000 (22:59 +0400)]
Add lk_get_charset function
Signed-off-by: Alexey Gladkov <gladkov.alexey@gmail.com>
Alexey Gladkov [Wed, 17 Apr 2013 14:33:07 +0000 (18:33 +0400)]
Rename lk_remove_key to lk_del_key, unify arguments order of lk_*_key functions
Signed-off-by: Alexey Gladkov <gladkov.alexey@gmail.com>
Alexey Gladkov [Mon, 15 Apr 2013 12:20:34 +0000 (16:20 +0400)]
Add functions to setup the logging
Signed-off-by: Alexey Gladkov <gladkov.alexey@gmail.com>
Alexey Gladkov [Sun, 14 Apr 2013 21:10:02 +0000 (01:10 +0400)]
Fix memory leak
Signed-off-by: Alexey Gladkov <gladkov.alexey@gmail.com>
Alexey Gladkov [Sun, 14 Apr 2013 19:50:53 +0000 (23:50 +0400)]
Fix undefined return value
Signed-off-by: Alexey Gladkov <gladkov.alexey@gmail.com>
Alexey Gladkov [Sun, 14 Apr 2013 19:34:13 +0000 (23:34 +0400)]
analyze.l: Fix potential memory leak
Signed-off-by: Alexey Gladkov <gladkov.alexey@gmail.com>
Alexey Gladkov [Thu, 11 Apr 2013 20:52:16 +0000 (00:52 +0400)]
kmap: Change indentation
Signed-off-by: Alexey Gladkov <gladkov.alexey@gmail.com>
Alexey Gladkov [Thu, 11 Apr 2013 13:11:46 +0000 (17:11 +0400)]
Remove extra argument of lk_add_map
Signed-off-by: Alexey Gladkov <gladkov.alexey@gmail.com>
Alexey Gladkov [Tue, 9 Apr 2013 13:11:49 +0000 (17:11 +0400)]
tests: Add test for keymaps line
Signed-off-by: Alexey Gladkov <gladkov.alexey@gmail.com>
Alexey Gladkov [Tue, 9 Apr 2013 10:09:53 +0000 (14:09 +0400)]
tests: Add lost testcase
Signed-off-by: Alexey Gladkov <gladkov.alexey@gmail.com>
Alexey Gladkov [Tue, 9 Apr 2013 10:08:24 +0000 (14:08 +0400)]
tests: Add tests for dumpkeys functions
Signed-off-by: Alexey Gladkov <gladkov.alexey@gmail.com>
Alexey Gladkov [Tue, 9 Apr 2013 10:06:52 +0000 (14:06 +0400)]
dump: Remove new line from output
Signed-off-by: Alexey Gladkov <gladkov.alexey@gmail.com>
Alexey Gladkov [Tue, 9 Apr 2013 10:06:00 +0000 (14:06 +0400)]
Show all keymap if FULL_TABLE specified
Signed-off-by: Alexey Gladkov <gladkov.alexey@gmail.com>
Alexey Gladkov [Tue, 9 Apr 2013 09:51:13 +0000 (13:51 +0400)]
Utils use _GNU_SOURCE
Signed-off-by: Alexey Gladkov <gladkov.alexey@gmail.com>
Alexey Gladkov [Tue, 2 Apr 2013 11:52:19 +0000 (15:52 +0400)]
Add some tests
Signed-off-by: Alexey Gladkov <gladkov.alexey@gmail.com>
Alexey Gladkov [Tue, 2 Apr 2013 11:48:27 +0000 (15:48 +0400)]
Add lk_get_func function
Signed-off-by: Alexey Gladkov <gladkov.alexey@gmail.com>
Alexey Gladkov [Sat, 30 Mar 2013 14:07:55 +0000 (18:07 +0400)]
Add lk_get_key function
Signed-off-by: Alexey Gladkov <gladkov.alexey@gmail.com>
Alexey Gladkov [Sat, 23 Mar 2013 17:51:21 +0000 (21:51 +0400)]
Do not use _GNU_SOURCE
Signed-off-by: Alexey Gladkov <gladkov.alexey@gmail.com>
Alexey Gladkov [Sat, 23 Mar 2013 17:50:01 +0000 (21:50 +0400)]
Drop attr_* defines
Signed-off-by: Alexey Gladkov <gladkov.alexey@gmail.com>
Alexey Gladkov [Sat, 23 Mar 2013 16:44:16 +0000 (20:44 +0400)]
Rewrite logging
A new way of logging is made on the basis of syslog. I looked at libudev
and libkmod in development, so they are quite similar.
Unfortunately the new implementation breaks backward compatibility with
utilities, but i think it is inevitable.
Signed-off-by: Alexey Gladkov <gladkov.alexey@gmail.com>
Alexey Gladkov [Thu, 14 Mar 2013 12:29:16 +0000 (16:29 +0400)]
Change return code from lk_free
Signed-off-by: Alexey Gladkov <gladkov.alexey@gmail.com>
Alexey Gladkov [Sat, 9 Mar 2013 12:53:25 +0000 (16:53 +0400)]
Check incoming pointer
Signed-off-by: Alexey Gladkov <gladkov.alexey@gmail.com>
Alexey Gladkov [Mon, 25 Feb 2013 15:24:51 +0000 (19:24 +0400)]
libkeymap: Do not dump diacr values if lk_dump_keymap called
Signed-off-by: Alexey Gladkov <gladkov.alexey@gmail.com>
Alexey Gladkov [Mon, 25 Feb 2013 15:10:15 +0000 (19:10 +0400)]
libkeymap: Add lk_add_diacr function
Add a more general function to add values to the
array without any convertion.
Signed-off-by: Alexey Gladkov <gladkov.alexey@gmail.com>
Alexey Gladkov [Mon, 25 Feb 2013 13:20:01 +0000 (17:20 +0400)]
lk_free: Free func_table
Signed-off-by: Alexey Gladkov <gladkov.alexey@gmail.com>
Alexey Gladkov [Sun, 24 Feb 2013 00:40:37 +0000 (04:40 +0400)]
Big rename functions and source files
Signed-off-by: Alexey Gladkov <gladkov.alexey@gmail.com>
Alexey Gladkov [Fri, 22 Feb 2013 13:26:36 +0000 (17:26 +0400)]
libkeymap: Fix build warnings
Signed-off-by: Alexey Gladkov <gladkov.alexey@gmail.com>
Alexey Gladkov [Fri, 22 Feb 2013 13:14:25 +0000 (17:14 +0400)]
libkeymap: Export only lk_* symbols
Signed-off-by: Alexey Gladkov <gladkov.alexey@gmail.com>
Alexey Gladkov [Thu, 21 Feb 2013 11:46:46 +0000 (15:46 +0400)]
ksyms: All arrays are readonly
Signed-off-by: Alexey Gladkov <gladkov.alexey@gmail.com>
Alexey Gladkov [Thu, 21 Feb 2013 08:03:36 +0000 (12:03 +0400)]
Set charset through the struct kmap
Signed-off-by: Alexey Gladkov <gladkov.alexey@gmail.com>
Alexey Gladkov [Wed, 20 Feb 2013 19:50:00 +0000 (23:50 +0400)]
ksyms: Global syms[] and charsets[] shouldn't be modified
Signed-off-by: Alexey Gladkov <gladkov.alexey@gmail.com>
Alexey Gladkov [Tue, 19 Feb 2013 00:37:15 +0000 (04:37 +0400)]
Split ksyms source
Signed-off-by: Alexey Gladkov <gladkov.alexey@gmail.com>
Alexey Gladkov [Sun, 17 Feb 2013 21:54:48 +0000 (01:54 +0400)]
Split header files on public and private and add lk_ prefix for all public functions
Signed-off-by: Alexey Gladkov <gladkov.alexey@gmail.com>
Alexey Gladkov [Mon, 21 Jan 2013 00:42:29 +0000 (04:42 +0400)]
Make it possible to build libkeymap out-of-tree
Signed-off-by: Alexey Gladkov <gladkov.alexey@gmail.com>
Alexey Gladkov [Sun, 20 Jan 2013 22:53:33 +0000 (02:53 +0400)]
Merge branch 'master' into loadkeys
Signed-off-by: Alexey Gladkov <gladkov.alexey@gmail.com>
Conflicts:
.gitignore
src/Makefile.am
src/loadkeys.analyze.l
src/loadkeys.c
Mike Frysinger [Sun, 20 Jan 2013 18:39:00 +0000 (22:39 +0400)]
ignore new files
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Mike Frysinger [Sun, 20 Jan 2013 18:37:00 +0000 (22:37 +0400)]
fix parallel builds
The lex code will try to run two in parallel.
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Mike Frysinger [Sun, 20 Jan 2013 18:32:00 +0000 (22:32 +0400)]
delete unused var
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Mike Frysinger [Sun, 20 Jan 2013 18:32:00 +0000 (22:32 +0400)]
fix up libtool warnings
Use AM_PROG_AR with newer automake, and drop old libtool prog.
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Alexey Gladkov [Sun, 6 Jan 2013 21:31:56 +0000 (01:31 +0400)]
dumpkeys: Use libkeymap
Signed-off-by: Alexey Gladkov <gladkov.alexey@gmail.com>
Alexey Gladkov [Sun, 6 Jan 2013 21:14:59 +0000 (01:14 +0400)]
Add summary functions
Signed-off-by: Alexey Gladkov <gladkov.alexey@gmail.com>
Alexey Gladkov [Sat, 5 Jan 2013 15:41:25 +0000 (19:41 +0400)]
Ignore K_NOSUCHMAP keycode
Signed-off-by: Alexey Gladkov <gladkov.alexey@gmail.com>
Alexey Gladkov [Fri, 4 Jan 2013 22:05:02 +0000 (02:05 +0400)]
Add get_diacrs() and top level functions
Signed-off-by: Alexey Gladkov <gladkov.alexey@gmail.com>
Alexey Gladkov [Thu, 3 Jan 2013 00:34:08 +0000 (04:34 +0400)]
libkeymap: Add Makefile.am
Signed-off-by: Alexey Gladkov <gladkov.alexey@gmail.com>
Alexey Gladkov [Thu, 3 Jan 2013 00:33:00 +0000 (04:33 +0400)]
Add functions to load data from the kernel
Signed-off-by: Alexey Gladkov <gladkov.alexey@gmail.com>
Alexey Gladkov [Thu, 3 Jan 2013 00:18:11 +0000 (04:18 +0400)]
dump: Fix overflow of 'defining' variable
Signed-off-by: Alexey Gladkov <gladkov.alexey@gmail.com>
Alexey Gladkov [Tue, 11 Dec 2012 10:24:44 +0000 (14:24 +0400)]
Fix regression in
16117ce6ab
Signed-off-by: Alexey Gladkov <gladkov.alexey@gmail.com>
Alexey Gladkov [Wed, 5 Dec 2012 19:23:50 +0000 (23:23 +0400)]
Set 1.15.5 version
Signed-off-by: Alexey Gladkov <gladkov.alexey@gmail.com>
Alexey Gladkov [Mon, 3 Dec 2012 07:05:51 +0000 (11:05 +0400)]
po: Update vi.po from translationproject.org
Signed-off-by: Alexey Gladkov <gladkov.alexey@gmail.com>
Alexey Gladkov [Mon, 3 Dec 2012 06:57:36 +0000 (10:57 +0400)]
Update changelog and increase version (1.15.5wip)
Signed-off-by: Alexey Gladkov <gladkov.alexey@gmail.com>
Alexey Gladkov [Mon, 3 Dec 2012 06:21:09 +0000 (10:21 +0400)]
Fix msgstr in es.po and update translations
Special thanks Dmitry V. Levin.
Signed-off-by: Alexey Gladkov <gladkov.alexey@gmail.com>
Mike Frysinger [Sun, 2 Dec 2012 21:16:00 +0000 (01:16 +0400)]
ignore config.cache files
These show up when doing `./configure -C`.
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Mike Frysinger [Sun, 2 Dec 2012 21:16:00 +0000 (01:16 +0400)]
fix loadkeys.analyze lex handling
The loadkeys.analyze.c file is listed in EXTRA_DIST, but the header file
is not. So it isn't included in the tarball and regenerated.
Further, the automake lex targets have issues with parallel builds, so
add a fake dependency target to avoid that.
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Mike Frysinger [Sun, 2 Dec 2012 21:16:00 +0000 (01:16 +0400)]
fix various vlock build errors
The current code assumes the build is done in-tree and sets up -I paths
according to that. As such, out-of-tree builds fail. Fix AM_CPPFLAGS
to work in either case.
No build system should hardcode optimization/pipe flags. So delete that
AM_CFLAGS line and let the configure/user build settings work.
Finally, EXTRA_DIST should not be conditional. Otherwise, the configure
flags will impact the tarball created by `make distcheck`.
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Alexey Gladkov [Sat, 1 Dec 2012 22:52:49 +0000 (02:52 +0400)]
Set 1.15.4 version
Signed-off-by: Alexey Gladkov <gladkov.alexey@gmail.com>
Alexey Gladkov [Sat, 1 Dec 2012 22:39:24 +0000 (02:39 +0400)]
po: Update translations (from translationproject.org)
Signed-off-by: Alexey Gladkov <gladkov.alexey@gmail.com>
Alexey Gladkov [Sat, 24 Nov 2012 11:58:32 +0000 (15:58 +0400)]
Move libkeymap to separate directory
Signed-off-by: Alexey Gladkov <gladkov.alexey@gmail.com>
Alexey Gladkov [Sat, 24 Nov 2012 22:22:17 +0000 (02:22 +0400)]
Update changelog and increase version (1.15.4wip)
Signed-off-by: Alexey Gladkov <gladkov.alexey@gmail.com>
Alexey Gladkov [Sat, 24 Nov 2012 22:04:01 +0000 (02:04 +0400)]
Update translations
Signed-off-by: Alexey Gladkov <gladkov.alexey@gmail.com>
Alexey Gladkov [Sat, 24 Nov 2012 21:53:02 +0000 (01:53 +0400)]
Remove src/vlock
Signed-off-by: Alexey Gladkov <gladkov.alexey@gmail.com>
Alexey Gladkov [Wed, 21 Nov 2012 21:14:51 +0000 (01:14 +0400)]
Added output functions with temporary names to avoid the conflicts in the dumpkeys
Signed-off-by: Alexey Gladkov <gladkov.alexey@gmail.com>
Alexey Gladkov [Thu, 15 Nov 2012 21:28:25 +0000 (01:28 +0400)]
vlock: Internationalization
Signed-off-by: Alexey Gladkov <gladkov.alexey@gmail.com>
Alexey Gladkov [Thu, 15 Nov 2012 20:21:59 +0000 (00:21 +0400)]
configure: Rename --enable-vlock to --disable-vlock
Signed-off-by: Alexey Gladkov <gladkov.alexey@gmail.com>
Alexey Gladkov [Thu, 15 Nov 2012 20:20:14 +0000 (00:20 +0400)]
Delete the files generated by flex and bison
Signed-off-by: Alexey Gladkov <gladkov.alexey@gmail.com>
Petr Pisar [Thu, 15 Nov 2012 19:25:13 +0000 (23:25 +0400)]
vlock: erases scroll-back buffer
Alexey Gladkov [Fri, 26 Oct 2012 21:45:14 +0000 (01:45 +0400)]
Fix regression in
16117ce6ab
Parser's state incorrectly changed after rewritting to stack.
Signed-off-by: Alexey Gladkov <gladkov.alexey@gmail.com>
Alexey Gladkov [Sun, 14 Oct 2012 20:52:26 +0000 (00:52 +0400)]
Fix configure.ac
Signed-off-by: Alexey Gladkov <gladkov.alexey@gmail.com>
Alexey Gladkov [Thu, 11 Oct 2012 21:16:50 +0000 (01:16 +0400)]
Remove unnecessary include
Signed-off-by: Alexey Gladkov <gladkov.alexey@gmail.com>
Alexey Gladkov [Thu, 4 Oct 2012 21:23:18 +0000 (01:23 +0400)]
Add libkeymap internal library
Signed-off-by: Alexey Gladkov <gladkov.alexey@gmail.com>
Alexey Gladkov [Mon, 24 Sep 2012 15:05:57 +0000 (19:05 +0400)]
findfile: Mark as "const" read only arguments
Signed-off-by: Alexey Gladkov <gladkov.alexey@gmail.com>
Alexey Gladkov [Thu, 13 Sep 2012 21:21:06 +0000 (01:21 +0400)]
ksyms: Remove unused chosen_charset
Signed-off-by: Alexey Gladkov <gladkov.alexey@gmail.com>
Alexey Gladkov [Fri, 7 Sep 2012 14:12:19 +0000 (18:12 +0400)]
ksyms: Do not output messages directly
Signed-off-by: Alexey Gladkov <gladkov.alexey@gmail.com>
Alexey Gladkov [Fri, 7 Sep 2012 13:50:59 +0000 (17:50 +0400)]
ksyms: Use struct keymap
Signed-off-by: Alexey Gladkov <gladkov.alexey@gmail.com>
Alexey Gladkov [Thu, 6 Sep 2012 13:32:44 +0000 (17:32 +0400)]
Fix unused parameters
Signed-off-by: Alexey Gladkov <gladkov.alexey@gmail.com>
Alexey Gladkov [Thu, 6 Sep 2012 13:22:32 +0000 (17:22 +0400)]
Reorder functions in source code
Signed-off-by: Alexey Gladkov <gladkov.alexey@gmail.com>
Alexey Gladkov [Thu, 6 Sep 2012 10:04:57 +0000 (14:04 +0400)]
dumpkeys: Add the missing short options
Signed-off-by: Alexey Gladkov <gladkov.alexey@gmail.com>
Alexey Gladkov [Wed, 5 Sep 2012 14:35:00 +0000 (18:35 +0400)]
Function do_constant went back to the internal context
Signed-off-by: Alexey Gladkov <gladkov.alexey@gmail.com>
Alexey Gladkov [Wed, 5 Sep 2012 14:08:13 +0000 (18:08 +0400)]
Add the generated files to CLEANFILES
Signed-off-by: Alexey Gladkov <gladkov.alexey@gmail.com>
Alexey Gladkov [Wed, 5 Sep 2012 13:53:51 +0000 (17:53 +0400)]
Split loadkeys utility and parser
Signed-off-by: Alexey Gladkov <gladkov.alexey@gmail.com>
Alexey Gladkov [Tue, 4 Sep 2012 14:53:21 +0000 (18:53 +0400)]
Delete the files generated by flex and bison
Signed-off-by: Alexey Gladkov <gladkov.alexey@gmail.com>
Alexey Gladkov [Tue, 4 Sep 2012 14:13:03 +0000 (18:13 +0400)]
Workaround a mutual dependence between loadkeyes.h and loadkeys.analize.h
Signed-off-by: Alexey Gladkov <gladkov.alexey@gmail.com>
Alexey Gladkov [Wed, 29 Aug 2012 23:48:01 +0000 (03:48 +0400)]
Define logging levels
Signed-off-by: Alexey Gladkov <gladkov.alexey@gmail.com>
Alexey Gladkov [Wed, 29 Aug 2012 15:46:29 +0000 (19:46 +0400)]
Rewrite parser logging
Signed-off-by: Alexey Gladkov <gladkov.alexey@gmail.com>
Alexey Gladkov [Fri, 24 Aug 2012 09:11:08 +0000 (13:11 +0400)]
loadkeys: Fix yylineno
Signed-off-by: Alexey Gladkov <legion@altlinux.org>
Alexey Gladkov [Tue, 21 Aug 2012 21:17:03 +0000 (01:17 +0400)]
loadkeys: Rewrite the parser to reentrant mode
Signed-off-by: Alexey Gladkov <gladkov.alexey@gmail.com>
Alexey Gladkov [Tue, 21 Aug 2012 22:14:38 +0000 (02:14 +0400)]
[keymaps] Add dvorak-sv-a1 and dvorak-sv-a5 keymaps
Please add both A1 and A5 keymaps.
http://aoeu.info/layouts/files/svorak.map.gz
http://aoeu.info/layouts/files/svoraka5.map.gz
See: https://bugs.gentoo.org/430950
Signed-off-by: Alexey Gladkov <gladkov.alexey@gmail.com>
Alexey Gladkov [Sun, 19 Aug 2012 00:45:56 +0000 (04:45 +0400)]
loadkeys: Use kbsentry only inside parser
Signed-off-by: Alexey Gladkov <gladkov.alexey@gmail.com>
Alexey Gladkov [Mon, 13 Aug 2012 20:09:42 +0000 (00:09 +0400)]
loadkeys: Move to a separate structure all keymap depend variables
Signed-off-by: Alexey Gladkov <gladkov.alexey@gmail.com>