1
0
mirror of https://github.com/rfivet/uemacs.git synced 2024-11-16 01:26:06 -05:00
Commit Graph

71 Commits

Author SHA1 Message Date
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
3be85dec65 Recompile under MinGW32 with base framework for implementing kbd/screen (mingw32 + wscreen). 2014-12-22 20:58:10 +08:00
81c98138de Clean compile with RAMSIZE and RAMSHOW activated. 2014-12-22 17:45:01 +08:00
da813d2efc Partial move configuration options out of estruct.h. 2014-12-22 17:44:52 +08:00
c4becabbc2 Move globals defines from globals.c. 2014-12-22 17:44:41 +08:00
94d21c96f3 Move globals defines out of estruct.h. 2014-12-22 17:44:31 +08:00
bd14ff374f Move globals rval and tabmask to eval and line. 2014-12-22 17:43:01 +08:00
31b1cc84fb Move gflags to eval. 2014-12-22 17:39:53 +08:00
df349fa061 Recompile under CYGWIN64.
Move DEBUGM code to eval and exec.
2014-12-22 17:39:35 +08:00
526c1e3baa Review global literals for mode names and color names. 2014-12-22 17:38:58 +08:00
e2035f0d92 Move global variables to public input scope. 2014-12-22 17:37:06 +08:00
015771e7a5 Move search and flag related defines out of estruct. 2014-12-22 17:36:33 +08:00
9780b4ce16 Extract Struct terminal from estruct to terminal.h implemented by tcap. 2014-12-22 17:36:24 +08:00
e97f234607 AEDIT code activation moved from estruct to random.h. 2014-12-22 17:36:14 +08:00
1f7826d3a8 Move paragraph related function from basic.c to word.c. 2014-12-22 17:36:06 +08:00
9ec9176c81 Centralize kill buffer code in line.c 2014-12-22 17:35:58 +08:00
1de3e139bb Move APROP and Token type out of estruct. 2014-12-22 17:35:50 +08:00
58642eb97f Move variable related definition from estruct to eval, and ISRCH related ones to isearch. 2014-12-22 17:35:41 +08:00
01d108d56d Move struct while and related defines from estruct to exec. Review exec.h. 2014-12-22 17:35:32 +08:00
f99fe6fe54 Move magic related definitions from estruct.h to search.c. Review search.h accordingly. 2014-12-22 17:35:13 +08:00
870989f948 Move struct region from estruct.t to regiom.h. 2014-12-22 17:35:04 +08:00
7b079662e4 Remove line.h from estruct.h. 2014-12-22 17:34:55 +08:00
87cd40ce6a Extract struct buffer and struct window from estruct.h. 2014-12-22 16:11:13 +08:00
ab432a6781 Clean up dependecies on estruct by introducing defines.h. 2014-12-22 16:10:51 +08:00
c3bffda340 Extract retcode from estruct.h. Clean up log dependencies. 2014-12-22 16:09:31 +08:00
e83feafda1 Minimize Cygwin64 changes & use __unix__ instead of CYGWIN. 2014-12-22 16:08:47 +08:00
15012326db Compile under Cygwin64. 2014-12-22 16:08:37 +08:00
787189d50c Insure consistency when building with CRYPT on or off.
clarify fileio dependencies t crypt.
2014-12-22 15:50:47 +08:00
4bf4c48056 Review interface of fileio. 2014-12-22 15:49:42 +08:00
b57c1adc20 Move FIO return code into fileio.h, where they belong. 2014-12-22 15:49:32 +08:00
a3f3102013 DOS mode added to preserve eol termination. 2014-12-22 15:49:19 +08:00
e2fcb90996 clean macroes in main and remove main.h (no more dependencies to main). 2014-12-22 15:47:43 +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
93f2a6d691 clean up line dependencies. 2014-12-22 14:45:55 +08:00
08a3aa81e1 crypt depends on display and input instead of efunc. 2014-12-22 14:45:26 +08:00
Linus Torvalds
fa00fe882f Stop using 'short' for line and allocation sizes
Yes, yes, it probably made sense 30 years ago as a way to save a tiny
amount of memory, but especially when interspersed in structures that
have pointers (aligned to 64 bits these days), it's not even saving
memory today.  And it makes us fail in nasty ways when looking at files
with long lines.

So just make them 'int'.  And if you have a line that is longer than
2GB, you only have yourself to blame.  I no longer care.

In case anybody care, the "test-case" for this was a lovely UDDF file
with a binary divecomputer dump encoded as an XML element.  Resulting in
a lovely 41kB single line.  Not what poor micro-emacs was designed for,
I'm afraid.

I really should just learn another editor, rather than continue to
polish this turd.

Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2013-02-22 14:32:16 -08:00
Linus Torvalds
42d9cb33a5 Expand keycode to 'int' from 'short'
This uses the four high bits for the meta and control key sequences.
This means that we will be limiting our Unicode space to 28 bits, but
that's more than we really need.

It *would* be nicer if we just used the sign bit to mark "we have meta
character information") but that would require bigger changes.  And we
really don't need to worry about 30-bit unicode.  Small steps, remember.

Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2012-07-10 18:14:02 -07:00
Linus Torvalds
12e4647deb Remove the old utf8_mode thing.
Let's just plan on being fully utf8 some day.  We're not there yet, and
maybe we'll never be, but having the halfway mode is not useful either.

Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2012-07-10 15:09:31 -07:00
Thiago Farina
f28629471c uemacs: convert typedef struct RMC to struct magic_replacement.
Signed-off-by: Thiago Farina <tfransosi@gmail.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2010-11-30 14:39:37 -08:00
Thiago Farina
9744421f3c uemacs: Move MAXNLINE constant from estruct.h to file.c
This constant is used only there, so there is no reason for it to be
in estruct.h

Signed-off-by: Thiago Farina <tfransosi@gmail.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2010-11-28 17:20:07 -08:00
Thiago Farina
a1891f8efc uemacs: Move some constants from estruct.h to posix.c
These two constants are only needed/used by the posix.c file,
so just define them there.

Signed-off-by: Thiago Farina <tfransosi@gmail.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2010-11-28 14:16:57 -08:00
Thiago Farina
ebd4f2f1eb uemacs: convert typedef struct MC to struct magic.
Signed-off-by: Thiago Farina <tfransosi@gmail.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2010-11-28 12:29:52 -08:00
Thiago Farina
10ae171147 uemacs: Move NBLOCK constant into line.c
This constant is only used in line.c. So just keep it there.

Signed-off-by: Thiago Farina <tfransosi@gmail.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2010-11-15 14:07:43 -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
Thiago Farina
6ceea8ba9b uemacs: convert typedef struct VDESC to struct variable_description.
Signed-off-by: Thiago Farina <tfransosi@gmail.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2010-11-06 09:21:41 -07:00
Linus Torvalds
85b4f0af1a Merge branch 'master' of git://git.kernel.org/pub/scm/editors/uemacs/uemacs 2010-11-02 09:05:21 -04:00
Thiago Farina
4966cb355e uemacs: get rid of BITMAP typedef.
Signed-off-by: Thiago Farina <tfransosi@gmail.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2010-11-02 09:04:48 -04:00
Thiago Farina
6491f4c4f0 uemacs: convert typedef struct WHBLOCK to struct while_block.
Signed-off-by: Thiago Farina <tfransosi@gmail.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2010-10-30 18:09:40 -07:00
Thiago Farina
74336ca924 uemacs: Get rid of the CALLED macro.
uemacs is not a subprogram and doesn't seem it will be, so there is no reason
to leave this macro. And this macro is defined to 0, so we never reach the path
where we test for this macro.

Signed-off-by: Thiago Farina <tfransosi@gmail.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2010-09-07 13:47:00 -07:00