Commit Graph

25 Commits

Author SHA1 Message Date
Stefano Ceccherini
2323e7fa92 CID 1697. The FILE handle was leaked.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38099 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-08-14 16:24:48 +00:00
Rene Gollent
cdd17fcb56 Add an rdef for the keymap command line applet to specify background app so it doesn't pop up in Deskbar when being executed (especially annoying during Haiku builds).
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38093 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-08-14 01:44:46 +00:00
Jérôme Duval
5091a866ec To be validated as part of bug #6386. Update glibc regex to 2.11, headers/posix/regex.h included. This imposes some changes in some of our sources using the regex.h,
mostly bin tools and mail kit. The use of __USE_GNU macro is needed for instance when the expected regex implementation is the GNU one.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38031 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-08-11 16:49:58 +00:00
Joachim Seemer
97d73e2ab2 The generated keymap file had the wrong keymap-syntax in the first shebang line. '-l' expects a binary file as it's generated via '-c'. The correct parameter is '-s'.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@36814 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-05-14 18:24:03 +00:00
Axel Dörfler
910f10f2fc * Added libshared_build.a, currently only contains Keymap.cpp.
* keymap and <build>keymap are now using the BKeymap class as a base as well.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@36368 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-04-20 08:17:07 +00:00
Ingo Weinhold
bf5b4ce27a Replaced hardcoded printf()/scanf() format modifiers by the B_{PRI,SCN}*
macros. This fixes the broken keymaps when building on a 64 bit host.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@34283 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-11-26 15:42:54 +00:00
Oliver Tappe
16d5c24e53 * merged 32bit-wchar_t branches of buildtools and haiku back into
the respective trunk

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@31443 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-07-07 10:30:09 +00:00
Axel Dörfler
3836be3e80 * Reworked GetKey() after Marcus' suggestions. Thanks for the extra motivation
to work on this :-)
* Also made it return "false" if there was no mapping, which will prevent empty
  dead keys to be written now (ie. the output now looks exactly like our
  sources).


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@31222 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-06-24 09:00:22 +00:00
Stephan Aßmus
c454df7e29 This stuff is actually used on the build host platform as well...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@31209 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-06-23 14:05:01 +00:00
Axel Dörfler
e27f201987 * Added ability to save a "styles" attribute for StyledEdit. This implements
ticket #4032.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@31196 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-06-23 10:27:58 +00:00
Axel Dörfler
30dcc55d0a * More or less rewrote main.cpp to use getopt_long() instead of the self-made
argument evaluation. Also separated the evaluation from performing the
  options, solving a TODO, and added long versions for the options.
* Changed Keymap methods to work on a path instead of entry_refs - this
  simplifies the code a bit over the place.
* Added new option to load a source keymap directly (-s, --load-source).
* Renamed some methods to make clearer what they do.
* Added a way to directly write a source keymap to a file (by specifying the
  -o option together with -d).
* Coding style cleanup, ordered Keymap methods in the order they are declared.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@31195 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-06-23 09:44:31 +00:00
Ingo Weinhold
bc3955fea5 Preparations for removing __BEOS__ from the compiler defines.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28305 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-10-23 21:46:26 +00:00
Ingo Weinhold
4d121ec067 Patch by Andreas Faerber with changes by myself: Work towards Solaris
build platform support.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@26899 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-08-09 15:36:24 +00:00
Maurice Kalinowski
dff0e735eb julun+mauricek:
* Cygwin does not have regex support, so we use the one we already have in our glibc.
   * Keymap.h has a automatic forward declaration of re_registers, which causes a compile break on Cygwin, but not on other platforms. So add a include for regex.h in the header and remove it in the source file.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@26587 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-07-23 21:40:12 +00:00
Rene Gollent
1174007caf Modified bin/keymap's -h option to write a variable to the generated header
indicating the name of the keymap. Correspondingly, modified input_server 
to use the aforementioned variable in order to write the name attribute
to ~/config/Key_map. This allows Keymap prefs to correctly recognize the name
of the default keymap on a fresh build.



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@24951 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-04-12 22:41:19 +00:00
Jérôme Duval
b9d454b6ff don't forget to init the key_map
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@17978 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-06-30 10:06:49 +00:00
Stefano Ceccherini
980e1e66ca fixed build on linux
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@17694 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-06-01 19:59:23 +00:00
Axel Dörfler
c8467d6ba1 * Further improved error handling in class Keymap.
* Improved header output, it now looks a lot nicer.
* Fixed style issues of that header, too: replaced "s" prefix with the
  correct "k" prefix.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@17690 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-06-01 13:06:40 +00:00
Axel Dörfler
37e0ed4ace * Improved error output.
* Fixed some minor style issues.
* fChars was allocated with new[] but deleted with free() in the Keymap destructor.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@17686 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-06-01 10:05:56 +00:00
Jérôme Duval
2dd13cc8fe fix some memory leaks
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@16323 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-02-10 10:16:52 +00:00
Axel Dörfler
9ecef546db The "keymap" command can now be compiled on Zeta as well - for some stupid reason
it introduces a find_directory_r() instead of making the original call thread-safe.
Maybe we should only support this operation on Haiku, anyway.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@14597 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-10-31 14:49:28 +00:00
Ingo Weinhold
338b8dc301 Merged changes from branch build_system_redesign at revision 14573.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@14574 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-10-29 16:27:43 +00:00
Jérôme Duval
41c243b187 renamed key_map.cpp to main.cpp
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@11922 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-03-20 12:54:11 +00:00
Axel Dörfler
98cf460090 Moved bin/ out of apps/, make it build again.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@11910 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-03-19 00:39:42 +00:00
Axel Dörfler
17049c451a Moved bin/ directory out of apps/.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@11909 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-03-19 00:09:19 +00:00