1
0
mirror of https://github.com/rfivet/uemacs.git synced 2024-12-30 04:56:23 -05:00
Commit Graph

54 Commits

Author SHA1 Message Date
f0836bb66a Replace strncpy by mystrscpy. 2019-06-19 19:49:20 +08:00
9d864d8b00 Fix new warnings in updated gcc 2017-05-06 08:51:02 +08:00
9b1c5f48a2 Consistent use of upmode() to update all mode lines. 2015-10-22 15:26:07 +08:00
575659b1c1 apropos based on newmlarg (replacement of mlreply). 2015-10-01 08:03:14 +08:00
cfa5c7fb65 Review getnewtoken, introduce getnewtokval and rewrite function evaluation accordingly. 2015-09-27 21:11:51 +08:00
c3f4666ff3 Review usage of mlreply/ macarg/ gettokval according to execution context. 2015-09-01 11:29:08 +08:00
dfc9a50fcf Fix CID#39903 Unchecked return value. 2015-07-17 10:01:17 +08:00
8de64f81be Use strncpy instead of strcpy. (CID 39928 eval, 39931 file, 39932 exec, 39938 bind). 2015-03-19 12:42:47 +08:00
80cbd37f5c Add extra warning check and fix signed to unsigned comparison issues. 2015-02-28 20:29:00 +08:00
e8bb7b1ea2 Review apropos/buildlist/strinc.
Potential sign extension issue while converting key description to keycode.
2015-02-22 16:22:48 +08:00
e2be62323b Review scope of exported variables and functions for bind, eval, file,fileio, random. 2015-02-16 11:39:16 +08:00
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
f60e3fbc9f Review startup and associated prototypes. 2015-01-16 21:12:27 +08:00
b596a3a09c macarg takes buffer length as parameter instead of assuming all buffer have NSTRING size. 2015-01-08 12:46:46 +08:00
2fe2d9c153 Finish move of globals into input and random.
Remove globals.
2014-12-22 17:43:53 +08:00
80256bdd6d Remove edef.h, obsoleted by globals.h. 2014-12-22 17:41:40 +08:00
7573dcd226 Move edef.h out of bind.h and buffer.h out of edef.h. 2014-12-22 17:41:18 +08:00
dc3e8984ab Move standard includes of stdlib and string from edef.h. 2014-12-22 17:41:07 +08:00
47c67446b0 review naming and lookup of rc and hlp files. 2014-12-22 16:07:47 +08:00
5bbc6104ae Move flook and fexist to flook tosimplify dependency graph. 2014-12-22 16:06:50 +08:00
c96138add5 remove left dependencies to main: bindable functions. 2014-12-22 15:47:33 +08:00
f210ed610b cleanup bind & ebind dependencies to estruct & edef. 2014-12-22 15:28:20 +08:00
cae7222493 Clarify names interface (only used in bind and input). 2014-12-22 15:08:05 +08:00
c4a5c31d42 clarify ebind dependencies (only needed by bind). 2014-12-22 15:07:52 +08:00
b321dce49e Remove efunc as dependencies. 2014-12-22 15:06:48 +08:00
9c2c4b7635 Remove display from efunc. 2014-12-22 15:06:08 +08:00
539f327271 Remove input from efunc. 2014-12-22 15:05:57 +08:00
a61307aa59 Remove buffer from efunc. 2014-12-22 15:05:39 +08:00
0b093b8228 Remove main from efunc. 2014-12-22 15:04:37 +08:00
dce5f2239c Remove window from efunc. 2014-12-22 15:04:27 +08:00
7ede4aa6d8 remove exec from efunc. 2014-12-22 15:03:34 +08:00
ba277c5573 remove file from efunc. 2014-12-22 15:03:24 +08:00
9c311a1ba8 split efunc into corresponding headers. 2014-12-22 14:46:16 +08:00
fa56e5dfff remove fileio from efunc, update dependencies. 2014-12-22 14:44:58 +08:00
e86bdad4fc refactor epath into bind and util into eval. 2014-12-22 14:44:26 +08:00
4958b7d2af use constant strings for pathnames. 2014-12-22 14:44:06 +08:00
Thiago Farina
af19da1a99 uemacs: Move structure line and its functions to its own header file.
Signed-off-by: Thiago Farina <tfransosi@gmail.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2010-11-15 08:46:20 -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
81a3a0be6e uemacs: convert typedef struct window_t to struct window.
Signed-off-by: Thiago Farina <tfransosi@gmail.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2010-08-01 15:10: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
Thiago Farina
8403b1d597 uemacs: convert typedef struct KEYTAB to struct key_tab.
Signed-off-by: Thiago Farina <tfransosi@gmail.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2010-06-30 15:40:09 -07:00
Thiago Farina
3b4567fb81 uemacs: Use ARRAY_SIZE in more places.
Signed-off-by: Thiago Farina <thiago.farina@gmail.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2010-06-11 12:48:59 -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
Thiago Farina
5ffdebdbf3 uemacs: remove typdef struct BUFFER -> struct buffer.
Signed-off-by: Thiago Farina <tfransosi@gmail.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2010-02-15 18:33:31 -08: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
Linus Torvalds
ef92bc8cd9 Make sources mostly sparse-clean
Mainly an issue of taking care of a few remaining K&R function
declarations.
2005-10-01 01:09:22 -07:00
Linus Torvalds
8967dfc2c6 Fix ugly "definitions in header file" crud
Move various initializations into new "globals.c" file.

Also mark some variables static, and fix up some trivial compiler and
sparse warnings.
2005-10-01 00:33:44 -07:00
Linus Torvalds
12cb79ceb4 Avoid various name clashes with curses and termcap headers
This allows us to include the proper headers, instead of declaring
things (badly) by hand.
2005-10-01 00:22:55 -07:00
Linus Torvalds
d66d329986 Replace "WINDOW" type with "window_t"
Starting to try to avoid name clashes with curses and friends.
2005-10-01 00:02:32 -07:00
Linus Torvalds
d5dc3160cf Lots of ANSI'fication and cleanups
Still tons of warnings with "-Wall", but now it's actually getting closer.

It even compiles again.
2005-09-30 22:52:45 -07:00