Commit Graph

57 Commits

Author SHA1 Message Date
Renaud 1b2307e056 Partial fix of issues when using unicode sequence with describe-key, search-forward, query-replace-string. 2016-04-09 11:46:40 +08:00
Renaud 187b0ce4a3 Review echo of input on message line. 2016-03-12 12:58:05 +08:00
Renaud 45f138ac07 Remove mlreply after transition to replacement newmlarg. 2015-10-05 14:15:24 +08:00
Renaud 7f5f0dd7b3 Introduce newmlarg as alternative to mlreply.
Rewrite gotoline accordingly.
2015-09-29 10:43:19 +08:00
Renaud 198980b81f Review newmlargt interface and obsolete mlreplyt. 2015-09-29 10:25:36 +08:00
Renaud ce4d105794 Allow either dynamic or pre-defined input size from message line.
Insure to capture ABORT status when doing input from message line.
2015-09-28 17:46:00 +08:00
Renaud cbbd860bdc Rework insert-string for dynamic token input. 2015-09-27 22:13:20 +08:00
Renaud c3f4666ff3 Review usage of mlreply/ macarg/ gettokval according to execution context. 2015-09-01 11:29:08 +08:00
Renaud 8d412dc388 Review file scope of functions dealing with token extraction and token evaluation. 2015-08-25 16:34:15 +08:00
Renaud 51967939b8 Harmonize usage of mlreply, mlreplyt and nextarg based on actual needs (input always terminated either on meta or newline characters). 2015-08-25 09:17:41 +08:00
Renaud 2522a858c1 Fix CID#39937 Copy into fixed size buffer. 2015-07-17 10:44:35 +08:00
Renaud 66649313ae Insure file descriptor is properly closed when doing filename completion. 2015-03-22 22:02:16 +08:00
Renaud e556f7714b Avoid calling mlwrite with computed string as format parameter. 2015-02-15 17:32:13 +08:00
Renaud fbe92a1f52 Only support UTF-8 keyboard sequence on Cygwin.
FIX: Missing on  Linux, ue --help prints progname set in Makefile.
2015-02-14 10:21:50 +08:00
Renaud 703c472f0b Review message line outputs. 2015-02-13 21:48:05 +08:00
Renaud cbb6a26e33 Revise sanity check on UTF-8 keyboard input sequence. 2015-02-10 18:09:59 +08:00
Renaud 5401aec485 Accept UTF-8 sequence as keyboard input. 2015-02-10 17:07:43 +08:00
Renaud 7da7916b28 describe-key displays keycode in hexadecimal.
mlwrite assume parameter is unsigned int when doing %x format.
ostring output bytes > 0x7F as unsigned char.
2015-02-09 19:27:49 +08:00
Renaud 5fda2735a5 Do not use a temporary buffer to prompt user in mlyesno, thus avoiding problem with '%' or overflow. 2015-01-16 17:55:23 +08:00
Renaud b596a3a09c macarg takes buffer length as parameter instead of assuming all buffer have NSTRING size. 2015-01-08 12:46:46 +08:00
Renaud 20d21435e0 Rebuild on Linux.
Remove warnings on system and write call without return code check.
2015-01-02 14:20:07 +08:00
Renaud 3197080cb1 Introduce spat_t as search pattern type and reduce need for NPAT as pattern length constant. 2014-12-22 20:57:26 +08:00
Renaud 2fe2d9c153 Finish move of globals into input and random.
Remove globals.
2014-12-22 17:43:53 +08:00
Renaud f03b7c97e3 Move globals variables to related modules. 2014-12-22 17:42:27 +08:00
Renaud 80256bdd6d Remove edef.h, obsoleted by globals.h. 2014-12-22 17:41:40 +08:00
Renaud 7573dcd226 Move edef.h out of bind.h and buffer.h out of edef.h. 2014-12-22 17:41:18 +08:00
Renaud dc3e8984ab Move standard includes of stdlib and string from edef.h. 2014-12-22 17:41:07 +08:00
Renaud d6e3df6ff3 Move global window pointers to window and global keyboard variables to input. 2014-12-22 17:40:38 +08:00
Renaud 63e2f82211 Move global variable to module scope (display, exec, input). 2014-12-22 17:38:48 +08:00
Renaud e2035f0d92 Move global variables to public input scope. 2014-12-22 17:37:06 +08:00
Renaud 9780b4ce16 Extract Struct terminal from estruct to terminal.h implemented by tcap. 2014-12-22 17:36:24 +08:00
Renaud f5c715debd Review prototypes of prompting functions. 2014-12-22 16:10:35 +08:00
Renaud e83feafda1 Minimize Cygwin64 changes & use __unix__ instead of CYGWIN. 2014-12-22 16:08:47 +08:00
Renaud 15012326db Compile under Cygwin64. 2014-12-22 16:08:37 +08:00
Renaud c96138add5 remove left dependencies to main: bindable functions. 2014-12-22 15:47:33 +08:00
Renaud f210ed610b cleanup bind & ebind dependencies to estruct & edef. 2014-12-22 15:28:20 +08:00
Renaud cae7222493 Clarify names interface (only used in bind and input). 2014-12-22 15:08:05 +08:00
Renaud b321dce49e Remove efunc as dependencies. 2014-12-22 15:06:48 +08:00
Renaud 9c2c4b7635 Remove display from efunc. 2014-12-22 15:06:08 +08:00
Renaud b971f265fc Remove bind from efunc. 2014-12-22 15:04:46 +08:00
Renaud 0b093b8228 Remove main from efunc. 2014-12-22 15:04:37 +08:00
Renaud 7ede4aa6d8 remove exec from efunc. 2014-12-22 15:03:34 +08:00
Renaud 08a3aa81e1 crypt depends on display and input instead of efunc. 2014-12-22 14:45:26 +08:00
Thiago Farina d6e76cca7b uemacs: input.c: Fix mkstemp warning.
Fix the following warning:

input.c: In function ‘getstring’:
input.c:590: warning: ignoring return value of ‘mkstemp’, declared with attribute warn_unused_result

This add usage.c module for die function.
This also add wrapper.c module for the xmkstemp that is wrapper function
around the original mkstemp function.

Both module codes was largelly based on git, linux and sparse codes.

Signed-off-by: Thiago Farina <tfransosi@gmail.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2010-12-14 11:27:57 -08:00
Pekka Enberg 0f05e53f99 uemacs: Fix return statements
Return statement is not a function so remove superfluous use of parenthesis.

Cc: Thiago Farina <tfransosi@gmail.com>
Signed-off-by: Pekka Enberg <penberg@kernel.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2010-08-29 08:15:23 -07:00
Thiago Farina 724c4efc5f uemacs: convert typedef struct NBIND to struct name_bind.
Signed-off-by: Thiago Farina <tfransosi@gmail.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2010-07-04 20:14:34 -07:00
Pekka Enberg 74ffb9e254 uemacs: remove use of 'register' keyword
Lets welcome uEmacs/PK to the year 2010! As expected, the patch has no effect
on the generated code:

   text	   data	    bss	    dec	    hex	filename
 106002	   8864	  18616	 133482	  2096a	em
 106002	   8864	  18616	 133482	  2096a	em.new

Cc: Thiago Farina <tfransosi@gmail.com>
Signed-off-by: Pekka Enberg <penberg@cs.helsinki.fi>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2010-02-27 16:17:44 -08:00
Linus Torvalds c2a7e41fae Turn ESC+'[' into a CSI character
This avoids the annoying behavior where we're on the command line,
waiting for an ESC, and any control character sequence ends up finishing
the command line and eating the first ESC.

Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2008-06-07 11:52:42 -07:00
Linus Torvalds 686a9e74ed Clean up various compile warnings
Most of them were harmless: gcc not being smart enough to realize that
an uninitialized variable was never used if it wasn't initialized etc.

Some of them were name clashes ("crypt()" is a standard library
function, so rename it to "myencrypt()") etc.

Signed-off-by: Linus Torvalds <torvalds@osdl.org>
2006-11-19 11:52:18 -08:00
Horst von Brand 0fc43a8429 [PATCH] Fix use of mktemp() in uemacs
After your last round of changes it compiles without warnings here (Fedora
rawhide, gcc-4.0.2), but the link complains.

mktemp(3) isn't always secure, the problem is fixed in mkstemp(3)

Signed-off-by: Horst H. von Brand <vonbrand@inf.utfsm.cl>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
2005-10-01 20:07:33 -07:00