1
0
mirror of https://github.com/rfivet/uemacs.git synced 2024-11-17 18:16:22 -05:00
Commit Graph

608 Commits

Author SHA1 Message Date
70a5812928 Review function table format. 2015-03-19 22:37:41 +08:00
d57257d653 FIX: User variable names first 10 characters are now significant.
Also CID 39927 Unbounded source buffer, 39933 Copy into fixed size buffer.
2015-03-19 20:52:55 +08:00
7f7cc5b6fd Fix CID 39905, 39906, 39907: Operands don't affect result. 2015-03-19 14:29:24 +08:00
9b40894342 Fix CID 39908: Dead code. 2015-03-19 14:27:58 +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
eb7217f8ec Fix CID 39910: &rnd 0 return a pseudo-random number instead of triggering a zero divide crash. 2015-03-18 12:27:55 +08:00
b1cc7bfe3a Fix CID 39902: Insure that buffer is properly terminated after a strncpy. 2015-03-17 17:17:35 +08:00
911b4cd402 Insure that coverity locs number is aligned with result from lc. 2015-03-17 17:14:43 +08:00
d01649bf3a Return error if &div or &mod by 0. 2015-03-17 09:04:22 +08:00
f97746a87b CID 39914: Fallthrough in switch was altering value of $gflags when assigning to $line. 2015-03-16 13:47:03 +08:00
5f9de6bb89 CID 39925: Missing size check on buffer name when creating a new buffer. 2015-03-16 13:24:08 +08:00
d56b3af45a CID 39909, 39912, 39918, 39920, 39922. 2015-03-16 11:17:28 +08:00
87350f4c16 Review getgoal code. 2015-03-16 10:46:51 +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
61f5fe7e2d Fix off by one buffer access.
Minor variable scope review.
2015-02-22 14:58:25 +08:00
4b2c50f6d2 Clean up splint warnings:
- Inconsistencies between defines.h and estruct.h.
- Review scope of termio local variables.
- Type mismatch in utf8.
2015-02-16 13:41:59 +08:00
e2be62323b Review scope of exported variables and functions for bind, eval, file,fileio, random. 2015-02-16 11:39:16 +08:00
e556f7714b Avoid calling mlwrite with computed string as format parameter. 2015-02-15 17:32:13 +08:00
2b8992350d Avoid unnecessary sprintf & buffers when updating message or status line. 2015-02-15 16:10:44 +08:00
c10c550bdd Valid compilation when CLEAN is set.
Use assert() and robust fallback instead of exit() to handle 'impossible' cases.
2015-02-15 14:41:35 +08:00
115d9babae When reading file, identify encoding (ASCII, UTF-8, EXTENDED, MIXED). 2015-02-15 13:30:54 +08:00
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
703c472f0b Review message line outputs. 2015-02-13 21:48:05 +08:00
bb44fc57ad Limit the scope of mlforce to eval. 2015-02-13 17:46:42 +08:00
2953531913 Insure that mlwrite( "") as same effect as mlerase(). 2015-02-13 15:33:21 +08:00
5e5558e00b Align naming convention for output of text on the message line: mlout*. (Was a mix of log & write). 2015-02-13 12:31:59 +08:00
6021a22b60 Move rdonly() in scope of line which is the first user module in the dependency list. 2015-02-13 11:54:17 +08:00
f8df147015 Insure restflag and resterr() belong to same scope. 2015-02-13 11:23:12 +08:00
e13bc9ca7e Version 4.2
Consistent display of µEMACS as program name among
- ue --version
- on status bar
- insert-string $progname
- write-message $progname (FIX).
2015-02-12 13:15:45 +08:00
b2306e379d Alternate version of make source based on $() functions instead of shell commands. 2015-02-11 20:22:43 +08:00
a68c05ed77 When detecting target platform, remove Windows variable part to reduce to CYGWIN and MINGW32. 2015-02-11 15:19:11 +08:00
cbb6a26e33 Revise sanity check on UTF-8 keyboard input sequence. 2015-02-10 18:09:59 +08:00
5401aec485 Accept UTF-8 sequence as keyboard input. 2015-02-10 17:07:43 +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
3f1ac2596c Fix getccol reporting when dealing with characters in range 0x80 .. 0xA0. 2015-02-09 13:31:39 +08:00
135238106c backward char movement consistent with mixed byte/UTF-8 content. 2015-02-08 19:11:26 +08:00
356a003194 buffer-position reports character under cursor according to type (either 0xXX or \uXXXX). 2015-02-08 14:47:56 +08:00
bdbd2d5437 Assert that unicode are limited to 0-10FFFF. 2015-02-08 14:26:07 +08:00
2cef071492 Insure correct UTF-8 encoding: asc( chr( 0x800)) == 0x800.
buffer-position displays unicode value of character under cursor instead of first byte of unicode sequence.
2015-02-06 13:20:51 +08:00
4cbf1e9ae1 Review cursor movement in presence of mixed latin1/unicode encoding. 2015-02-04 12:37:57 +08:00
a2d1b54c61 README.md edited online with Bitbucket 2015-02-03 05:08:17 +00:00
de04424e51 Align scope and parameter type for linsert and is_beginning_utf8. 2015-02-02 19:44:35 +08:00
83b323272d Put back the Micro in uEMACS both in status line and version string (ue --version). 2015-02-02 19:20:48 +08:00
91455a2e5a Insure &asc &chr 128 equals 128.
Insert-string can't handle character code > 0xFF.
2015-02-02 12:50:52 +08:00
7c74bfdc1a Align cursor movement according to character representation (^c and \nn). 2015-01-31 07:57:26 +08:00
a6a8936b8d Move unsupported OS files to fridge. 2015-01-29 22:08:34 +08:00
ebe4b9b2cc Use standard exit code as parameter to exit() in bindable. 2015-01-29 21:35:47 +08:00
639d912c88 Display correct mode on first empty buffer. 2015-01-27 20:22:47 +08:00
bc90c36603 Use temporary buffer in nextarg to avoid issue with strncpy under Linux. 2015-01-26 20:05:02 +08:00