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>
Alexey Gladkov [Thu, 9 Aug 2012 20:01:45 +0000 (00:01 +0400)]
loadkeys: Split variables between loadkeys.y and loadkeys.analyze.l
Signed-off-by: Alexey Gladkov <gladkov.alexey@gmail.com>
Alexey Gladkov [Wed, 8 Aug 2012 22:50:54 +0000 (02:50 +0400)]
loadkeys: Split flags that are used in the rules parser and flags that are used in the utility
Signed-off-by: Alexey Gladkov <gladkov.alexey@gmail.com>
Alexey Gladkov [Wed, 8 Aug 2012 20:59:24 +0000 (00:59 +0400)]
loadkeys: Remove OPT_QUIET option
Signed-off-by: Alexey Gladkov <gladkov.alexey@gmail.com>
Alexey Gladkov [Tue, 7 Aug 2012 22:15:15 +0000 (02:15 +0400)]
loadkeys: Fix lkerror
Signed-off-by: Alexey Gladkov <gladkov.alexey@gmail.com>
Alexey Gladkov [Sun, 5 Aug 2012 22:11:34 +0000 (02:11 +0400)]
loadkeys: Move prefer_unicode to loadkeys.y
Signed-off-by: Alexey Gladkov <gladkov.alexey@gmail.com>
Alexey Gladkov [Sat, 28 Jul 2012 20:33:07 +0000 (00:33 +0400)]
loadkeys: Move code changes prefer_unicode variable from set_charset()
Signed-off-by: Alexey Gladkov <gladkov.alexey@gmail.com>
Alexey Voinov [Sat, 28 Jul 2012 07:02:29 +0000 (11:02 +0400)]
Remove unused func_buf and fp
Alexey Voinov [Sat, 28 Jul 2012 07:01:57 +0000 (11:01 +0400)]
Simplify addfunc
Alexey Voinov [Fri, 27 Jul 2012 20:43:01 +0000 (00:43 +0400)]
Don't use func_buf in mktable
Alexey Gladkov [Thu, 12 Jul 2012 15:27:50 +0000 (19:27 +0400)]
loadkeys: Use enum for options
Signed-off-by: Alexey Gladkov <gladkov.alexey@gmail.com>
Alexey Gladkov [Thu, 12 Jul 2012 12:58:50 +0000 (16:58 +0400)]
loadkeys: Remove unused global variable private_error_ct
Signed-off-by: Alexey Gladkov <gladkov.alexey@gmail.com>
Alexey Gladkov [Sun, 8 Jul 2012 22:13:10 +0000 (02:13 +0400)]
loadkeys: Use the local buffer for function key string entry
Signed-off-by: Alexey Gladkov <gladkov.alexey@gmail.com>
Alexey Gladkov [Sun, 8 Jul 2012 21:12:47 +0000 (01:12 +0400)]
loadkeys: Do not call exit() the parser
Signed-off-by: Alexey Gladkov <gladkov.alexey@gmail.com>
Alexey Gladkov [Sun, 8 Jul 2012 11:45:18 +0000 (15:45 +0400)]
loadkeys: Use lkerror only inside parser
Signed-off-by: Alexey Gladkov <gladkov.alexey@gmail.com>
Alexey Gladkov [Sun, 8 Jul 2012 11:34:19 +0000 (15:34 +0400)]
loadkeys: Use the output stream as an argument
Signed-off-by: Alexey Gladkov <gladkov.alexey@gmail.com>
Alexey Gladkov [Sun, 8 Jul 2012 11:12:08 +0000 (15:12 +0400)]
loadkeys: Use lkerror() to output error messages
Signed-off-by: Alexey Gladkov <gladkov.alexey@gmail.com>
Alexey Gladkov [Fri, 6 Jul 2012 13:34:30 +0000 (17:34 +0400)]
loadkeys: Add lkverbose function
Signed-off-by: Alexey Gladkov <gladkov.alexey@gmail.com>
Alexey Gladkov [Fri, 6 Jul 2012 12:14:04 +0000 (16:14 +0400)]
loadkeys: Reformat code for better readability
Signed-off-by: Alexey Gladkov <gladkov.alexey@gmail.com>
Alexey Gladkov [Wed, 4 Jul 2012 21:29:57 +0000 (01:29 +0400)]
loadkeys: Remove error-free functions
Signed-off-by: Alexey Gladkov <gladkov.alexey@gmail.com>
Alexey Gladkov [Tue, 3 Jul 2012 22:19:29 +0000 (02:19 +0400)]
loadkeys: Do not output messages from the parser
Signed-off-by: Alexey Gladkov <gladkov.alexey@gmail.com>
Alexey Gladkov [Sat, 30 Jun 2012 18:46:51 +0000 (22:46 +0400)]
findfile: do not use the functions that prints messages
Signed-off-by: Alexey Gladkov <gladkov.alexey@gmail.com>
Alexey Gladkov [Tue, 12 Jun 2012 21:32:38 +0000 (01:32 +0400)]
Use lkfile_t in all utilities
Signed-off-by: Alexey Gladkov <gladkov.alexey@gmail.com>
Alexey Gladkov [Sun, 24 Jun 2012 22:22:05 +0000 (02:22 +0400)]
findfile: Add pathname buffer to lkfile_t
Signed-off-by: Alexey Gladkov <gladkov.alexey@gmail.com>
Alexey Gladkov [Sun, 24 Jun 2012 22:16:35 +0000 (02:16 +0400)]
findfile: Use lkfile_t inside
Signed-off-by: Alexey Gladkov <gladkov.alexey@gmail.com>
Alexey Gladkov [Mon, 19 Dec 2011 20:31:55 +0000 (00:31 +0400)]
findfile: optimize maybe_pipe_open()
Signed-off-by: Alexey Gladkov <gladkov.alexey@gmail.com>
Alexey Gladkov [Sun, 18 Dec 2011 14:30:05 +0000 (18:30 +0400)]
findfile: Do not use pathname[] inside
Signed-off-by: Alexey Gladkov <gladkov.alexey@gmail.com>
Alexey Gladkov [Sat, 17 Dec 2011 23:45:16 +0000 (03:45 +0400)]
Use lkfile_t as base file structure
Signed-off-by: Alexey Gladkov <gladkov.alexey@gmail.com>
Alexey Gladkov [Tue, 6 Dec 2011 20:55:24 +0000 (00:55 +0400)]
Fix error message
Signed-off-by: Alexey Gladkov <gladkov.alexey@gmail.com>