aboutsummaryrefslogtreecommitdiff
path: root/main.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Remove the broken cryptographyRunxi Yu2024-08-121-22/+0
|
* Fix the unicode character limit (0 .. 0x10ffff)Linus Torvalds2012-09-241-1/+1
| | | | | | | | | | | | | | | | For some reason I had limited things to 0xffff, it really should be 0x10ffff. We don't actually support a full 32-bit unicode model anyway, since we use the high bits for the control/meta/^X/special bits, but there was no reason to limit things to 16 bits when we had 28 bits available. And the real limit for real Unicode characters is 0x10ffff. Add a silly example character past the 16-bit range to the UTF8 demo file: 'SMILING FACE WITH HALO' (U+1F607) from the 'emoticons' block. Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
* Start doing character removal properlyLinus Torvalds2012-07-111-1/+1
| | | | | | | | | | | This makes actual basic editing work. Including things like justify-paragraph etc, so lines get justified by number of UTF8 characters rather than bytes. There are probably tons of broken stuff left, but this actually seems to get the basics working right. Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
* Start actually inserting full utf8 sequencesLinus Torvalds2012-07-111-1/+1
| | | | | | | | | | | | | | This makes it possible to cut-and-paste the UTF8 testfile into a new buffer, and the end result looks correct. NOTE! We still do various things wrong while editing. For example, while the cursor movements were fixed, simple things like deleting a character still work on single bytes, rather than utf8 characters. So while this is getting much closer to actually editing UTF-8 data, it's not there yet. Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
* uemacs: Add -g options to the output usage.Thiago Farina2011-08-221-2/+3
| | | | | | | While I'm here, improve the word of the above two options. Signed-off-by: Thiago Farina <tfransosi@gmail.com> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
* Fix a tiny typoChristian Faulhammer2010-09-131-1/+1
| | | | | Signed-off-by: Christian Faulhammer <christian@faulhammer.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
* uemacs/version.c: Add version function to output the version string information.Thiago Farina2010-09-071-1/+1
| | | | | Signed-off-by: Thiago Farina <tfransosi@gmail.com> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
* uemacs: Get rid of the CALLED macro.Thiago Farina2010-09-071-26/+5
| | | | | | | | | 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>
* uemacs: Fix return statementsPekka Enberg2010-08-291-24/+24
| | | | | | | | 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>
* uemacs: Add more two options to the usage output.Thiago Farina2010-08-291-1/+3
| | | | | | | | | | | | Added + and +<n> to the usage output. Also fixed the following warning: main.c: In function ‘main’: main.c:121: warning: ‘gline’ may be used uninitialized in this function Signed-off-by: Thiago Farina <tfransosi@gmail.com> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
* uemacs: Add --help option.Thiago Farina2010-08-181-5/+19
| | | | | | | Add a basic usage() function to support the --help option. Signed-off-by: Thiago Farina <tfransosi@gmail.com> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
* uemacs: Add --version option.Thiago Farina2010-08-131-23/+27
| | | | | Signed-off-by: Thiago Farina <tfransosi@gmail.com> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
* uemacs: convert typedef struct window_t to struct window.Thiago Farina2010-08-011-4/+4
| | | | | Signed-off-by: Thiago Farina <tfransosi@gmail.com> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
* uemacs: remove use of 'register' keywordPekka Enberg2010-02-271-18/+18
| | | | | | | | | | | | | 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>
* uemacs: remove typdef struct BUFFER -> struct buffer.Thiago Farina2010-02-151-6/+6
| | | | | Signed-off-by: Thiago Farina <tfransosi@gmail.com> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
* Clean up various compile warningsLinus Torvalds2006-11-191-2/+2
| | | | | | | | | | 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>
* Make sources mostly sparse-cleanLinus Torvalds2005-10-011-2/+2
| | | | | Mainly an issue of taking care of a few remaining K&R function declarations.
* Avoid various name clashes with curses and termcap headersLinus Torvalds2005-10-011-2/+3
| | | | | This allows us to include the proper headers, instead of declaring things (badly) by hand.
* Replace "WINDOW" type with "window_t"Linus Torvalds2005-10-011-4/+4
| | | | Starting to try to avoid name clashes with curses and friends.
* More warning avoidance and code cleanupLinus Torvalds2005-09-301-8/+15
|
* Lots of ANSI'fication and cleanupsLinus Torvalds2005-09-301-7/+4
| | | | | | Still tons of warnings with "-Wall", but now it's actually getting closer. It even compiles again.
* First cut at turning things into proper modern ANSI CLinus Torvalds2005-09-301-28/+27
| | | | Hey! Real declarations!
* Fix up headers and bogus re-definitions to use <stdlib.h> and <string.h>Linus Torvalds2005-09-301-31/+0
| | | | | Hey, it's already compiling cleaner. Getting proper function declarations will be a bitch, though.
* Run "indent -kr -i8" on the sourcesLinus Torvalds2005-09-301-301/+294
| | | | Let's see how nasty it is to clean things up. For real.
* Minimal patches to make uemacs compile in a modern environment.Linus Torvalds2005-05-311-7/+4
| | | | | | make sure to include <errno.h>, and allow for the fact that newer gcc's don't allow function declarations in function scope (don't ask me why, but there you have it..)
* Initial import of em-4.0.15-ltLinus Torvalds2005-05-311-0/+895
This is a slightly updated version of uemacs-PK (PK is Pekka Kutvonen) which was used at Helsinki University a long time ago. My fingers cannot be retrained.