Commit graph

216 commits

Author SHA1 Message Date
Charlie Gordon
3511cd2b4b cosmetics 2007-12-18 12:22:09 +00:00
Charlie Gordon
8a19313259 typo 2007-12-18 12:20:51 +00:00
Charlie Gordon
ee10fbca09 added C compile rule 2007-12-18 12:20:28 +00:00
Charlie Gordon
c83a481c6e remark 2007-12-18 12:19:32 +00:00
Charlie Gordon
4cc7a43a4a use ssizeof 2007-12-18 12:18:54 +00:00
Charlie Gordon
83b9190263 remarks 2007-12-18 12:18:02 +00:00
Charlie Gordon
f99b132ebe display ISO-latin1 chars as graphics in ascii dump
default display width to a multiple of 16 in ascii dump
hex mode probe returns non 0 on text files
2007-12-18 12:17:10 +00:00
Charlie Gordon
7856ba0630 cosmetics 2007-12-18 12:13:02 +00:00
Charlie Gordon
dbfe7ecfba return success code in load_ligatures 2007-12-18 12:12:28 +00:00
Charlie Gordon
105aab2f47 cosmetics 2007-12-18 12:10:50 +00:00
Charlie Gordon
bf17e23390 renamed css_isxxx and css_toxxx ctype alternatives to qe_* 2007-12-15 16:44:31 +00:00
Charlie Gordon
ca80563f98 added ssizeof, cosmetics 2007-12-15 16:33:20 +00:00
Charlie Gordon
5768f42cd8 no longer use ctype.h macros and functions
- ctype.h has strong constraints on arguments
- ctype.h implements bogus irrelevant inefficient locale specific behaviour
- use replacement css_xxx functions
- all take int arguments: can be any value, yet only test ASCII subset
- all css_isxxx return true boolean (1 or 0)
- removed utoupper(int) -> css_toupper(int) has same functionality

resolved ffmpeg clash on string functions from cutils.c module
- added #defines to make them local
- renamed some strixxx functions to strxxxx (extended behaviour)
- moved case insensitive stuff to util.c

fixed bug in strtokey: C-M-x combinations were not recognized
improved eb_changecase
fixed C comment parsing in css parser
2007-12-15 16:02:47 +00:00
Charlie Gordon
0cc650bbbf fixed C comment parsing, improved output 2007-12-15 15:44:36 +00:00
Charlie Gordon
2d99a278f5 improved colorizer:
- simplified preprocessing directives, handle comments
 - colorize char constants and strings with different styles
 - handle javascript <!-- comments
 - handle numbers
 - better support for cast detection

more code simplifications
use colorizer for do_c_forward_block: should make this command non mode specific
2007-12-15 09:57:21 +00:00
Charlie Gordon
481248bc7b added and improved some buffer functions:
renamed eb_get_str to eb_get_contents
fixed buffer size issues in eb_get_line
fixed utf-8 issues in eb_get_strline
added eb_prev_line
added eb_goto_bol2: computes number of code points skipped
added eb_goto_eol
simplified code accordingly

added set_color1 inline function
renamed parse_config to do_load_config_file (invocable from A-x)
  changed command name from parse-config-file to load-config-file
  fixed bug when invoked with a filename
renamed center_cursor to do_center_cursor (invocable from A-x)
  made it invocable as center-cursor
2007-12-15 07:34:43 +00:00
Charlie Gordon
d2f16130c9 cosmetics, fixed encoding issue in do_tex_insert_quote 2007-12-15 07:32:45 +00:00
Charlie Gordon
79c8598db5 cosmetics 2007-12-15 07:31:38 +00:00
Charlie Gordon
4e5dcc5437 0 initialize allocated QEfonts 2007-12-15 07:31:11 +00:00
Charlie Gordon
559b3bb3bc simplified code using new buffer functions 2007-12-15 07:30:20 +00:00
Charlie Gordon
2ce9cd8aab added styles string-q and number 2007-12-15 07:27:45 +00:00
Charlie Gordon
915a19edb2 added and improved some buffer functions:
renamed eb_get_str to eb_get_contents
fixed buffer size issues in eb_get_line
fixed utf-8 issues in eb_get_strline
added eb_prev_line
added eb_goto_bol2: computes number of code points skipped
added eb_goto_eol
2007-12-15 07:24:03 +00:00
Charlie Gordon
f9f6b42059 fixed subtle bug in qe_realloc: store NULL ptr upon realloc to size 0 2007-12-13 23:13:11 +00:00
Charlie Gordon
26ea3f69a0 added wrappers and utilities for safer memory allocation:
type *qe_malloc(type);
type *qe_mallocz(type);
type *qe_malloc_array(type, count);
type *qe_mallocz_array(type, count);
type *qe_malloc_hack(type, extra_bytes);
type *qe_mallocz_hack(type, extra_bytes);
void qe_free(&ptr);
void *qe_realloc(&ptr, new_size);
char *qe_strdup(const char *str);
void *qe_malloc_bytes(size_t size);
void *qe_mallocz_bytes(size_t size);
void *qe_malloc_dup(const void *src, size_t size);

pass pointer address to bmp_free()
2007-12-12 11:49:02 +00:00
Charlie Gordon
7817049123 cosmetics 2007-12-12 08:51:02 +00:00
Charlie Gordon
57c3461e0d simplified set_color API, made in inline
improved command parsing, refined argval handling, pass as optional arg
pass command arguments as an array of unions
use correct type in command dispatcher (upto 2 arguments)
merged do_goto_byte, do_goto_line, do_goto_char, extend syntax
fixed kill commands: kills are appended/prepended to kill buffer
added append_next_kill command
added do_kill_line (split from do_kill_region)
added do_kill_word (removed do_delete_word)
added do_kill_paragraph
pass argval to do_backspace and do_delete_char, fix kill behaviour
fixed kill-ring initial state bug
fixed do_yank: set mark and this_cmd_func
fixed do_yank_pop: test last_cmd_func, use eb_delete instead of do_undo
fixed do_yank_pop kill-ring bug
added clamp(int x, int min, int max);
added qs->this_cmd_func so commands can override qs->last_cmd_func
allow KEY_ESC + extended key as command binding
added do_c_forward_block, needs rewrite using colorization code
added do_c_kill_block
added insert-char command (argval repeats instead of forcing char value)
renamed delete-word to kill-word
renamed backward-delete-word to backward-kill-word
added kill-beginning-of-line
2007-12-12 02:51:05 +00:00
Charlie Gordon
83f3ec16c3 typo 2007-12-12 02:24:33 +00:00
Charlie Gordon
2eb5a83259 fixed some meta ctrl key combinations in x11 2007-12-12 02:21:45 +00:00
Charlie Gordon
0507ffacc3 fixed function key mapping issues in X11 and Wndz
fixed C lang colorizer for some multiline stuff, wide char/strings
use countof() macro
cosmetics
2007-12-10 13:28:07 +00:00
Charlie Gordon
855660ae1f added missing C keywords and types 2007-12-10 11:03:36 +00:00
Charlie Gordon
612fa09e79 updated TCVN.TXT from yudit 2.8.1 2007-12-10 10:22:10 +00:00
Charlie Gordon
ed5052c99b use yudit TCVN.TXT file 2007-12-10 10:12:11 +00:00
Charlie Gordon
3695abe5b6 added more Hebrew keymaps
support multiple output for input methods
colorize function calls in C mode
2007-12-09 23:31:38 +00:00
Charlie Gordon
2d86be74a1 fixed bug in kmap loader 2007-12-07 12:06:42 +00:00
Charlie Gordon
a064ff97a0 more ctype unsigned char fixes 2007-12-06 17:59:23 +00:00
Charlie Gordon
d286b27756 made more local variables static
fixed bug in cfb32_fill_rectangle
use c99 syntax for new style struct initializers instead of gcc specific
simplified tolower unsigned char hacks
fixed various sparse warnings
2007-12-06 17:43:47 +00:00
Charlie Gordon
0446a52d21 added more charsets
simplified charset alias system
reorganized charset functions
groomed completion functions
2007-12-06 15:28:29 +00:00
Charlie Gordon
83dc067f86 imported mapping files from Unicode and other sources
removed redundant cp files
fixed charsets (8859-7 version 2003)
improved cptoqe.c
added index file cpdata.txt
2007-12-06 09:50:03 +00:00
Charlie Gordon
0f01d80609 reordered charsets 2007-12-05 10:32:11 +00:00
Charlie Gordon
b82cea744d small simplifications, remarks
small fixes and extra info in code page files
2007-12-05 08:49:38 +00:00
Charlie Gordon
71f55ca730 handle extra kmaps
fixed numerous bugs in kmaptoqe.c: handle \ syntax and report errors.
disable HebrewIsraeli.kmap and Kana.kmap because of partial support
2007-12-04 23:08:46 +00:00
Charlie Gordon
500161856e imported kmap files from yudit 1.6 2007-12-04 09:22:50 +00:00
Charlie Gordon
36567230e2 added charsetjis.c and charsetjis.def
moved code from charsetmore.c to charset.c and charsetjis.c
separate JIS table generation into jistoqe.c, make it generate charsetjis.def
2007-12-03 16:16:24 +00:00
Charlie Gordon
134ced6963 removed charset_table.c
added charsetjis.c and charsetjis.def
moved code from charsetmore.c to charset.c and charsetjis.c
improved cp parser cptoqe.c, make it generate charsetmore.c
small changes in QECharset structure: added eol_char and made aliases const
removed redundant QECharset declarations from qe.h
separate JIS table generation into jistoqe.c, make it generate charsetjis.def
updated Makefile, .cvsignore
improved fbftoqe.c
improved kmaptoqe.c, added --dump option
added argc, argv to QEmacsState
improved set_user_option: put runtime and user directories in front of res_path
added some missing file headings
2007-12-03 16:15:01 +00:00
Charlie Gordon
4937be13b6 cosmetics 2007-12-03 16:12:40 +00:00
Charlie Gordon
6c65411200 added missing headings, cosmetics 2007-12-03 16:10:38 +00:00
Charlie Gordon
c150f0a9a7 Added missing headings
Cosmetics
Fixed Makefile details
2007-12-03 10:40:21 +00:00
Charlie Gordon
9fdbca2c87 Imported original code page and keyboard map files
Fixed Makefile
Fixed .cvsignore
2007-12-03 10:18:33 +00:00
Charlie Gordon
0e1cfa053a report correct column number in terminal emulation, fixed crash bug on TAB in process buffer non interactive mode 2007-02-07 23:28:36 +00:00
Charlie Gordon
4dee871155 delayed terminal utf8 capability detection so qe no longer leaves 2 weird character on terminal upon leaving 2007-02-07 23:27:33 +00:00