aboutsummaryrefslogtreecommitdiff
path: root/word.c (unfollow)
Commit message (Collapse)AuthorFilesLines
2010-11-06uemacs: convert typedef struct VDESC to struct variable_description.Thiago Farina3-36/+32
Signed-off-by: Thiago Farina <tfransosi@gmail.com> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2010-11-03uemacs: remove forward declaration of 'struct video' from edef.hThiago Farina1-2/+0
Signed-off-by: Thiago Farina <tfransosi@gmail.com> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2010-11-02uemacs: get rid of BITMAP typedef.Thiago Farina2-19/+17
Signed-off-by: Thiago Farina <tfransosi@gmail.com> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2010-10-30uemacs: convert typedef struct WHBLOCK to struct while_block.Thiago Farina3-14/+14
Signed-off-by: Thiago Farina <tfransosi@gmail.com> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2010-10-25uemacs: Move function declarations from edef.h to efunc.h.Thiago Farina2-4/+5
Signed-off-by: Thiago Farina <tfransosi@gmail.com> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2010-09-13Fix a tiny typoChristian Faulhammer1-1/+1
Signed-off-by: Christian Faulhammer <christian@faulhammer.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2010-09-07uemacs/version.c: Add version function to output the version string information.Thiago Farina4-6/+16
Signed-off-by: Thiago Farina <tfransosi@gmail.com> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2010-09-07uemacs: Get rid of the CALLED macro.Thiago Farina4-35/+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>
2010-09-07uemacs: Remove more garbage emacs.* files from the tree.Thiago Farina3-56/+0
Signed-off-by: Thiago Farina <tfransosi@gmail.com> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2010-09-07uemacs: Remove two completly unused functions (fnclabel and spal).Thiago Farina9-135/+23
The implementation of these functions are doing anything at all at this moment. So cleanup a bit the code by removing fnclabel and spal functions completly. Signed-off-by: Thiago Farina <tfransosi@gmail.com> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2010-08-29uemacs: Remove garbage from the treePekka Enberg6-263/+0
This patch removes bunch of ancient Makefiles and VMS scripts from uemacs source tree. If somebody really needs them, they can always look them up from git repository history. Signed-off-by: Pekka Enberg <penberg@kernel.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2010-08-29uemacs: Clean up program executablePekka Enberg1-5/+7
This patch fixes Makefile 'clean' target to clean up program executable 'em'. Signed-off-by: Pekka Enberg <penberg@kernel.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2010-08-29uemacs: Fix return statementsPekka Enberg28-760/+760
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-29uemacs: Kill unused lckhello functionPekka Enberg1-6/+0
This patch kills an unused 'lckhello' function and gets rid of the following GCC warning: CC lock.o lock.c:160: warning: ‘lckhello’ defined but not used Signed-off-by: Pekka Enberg <penberg@kernel.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2010-08-29uemacs/efunc.h: Get rid of a duplicated exported type called "names".Thiago Farina3-10/+5
This type is already exported in edef.h Signed-off-by: Thiago Farina <tfransosi@gmail.com> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2010-08-29uemacs: Add more two options to the usage output.Thiago Farina1-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>
2010-08-28uemacs: Make getgoal function private to basic.c.Thiago Farina2-43/+41
This functions is only used internally by basic.c, so marking it static, to make it private. Signed-off-by: Thiago Farina <tfransosi@gmail.com> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2010-08-28uemacs: Fix out-of-box build on Mac OS XPekka Enberg1-2/+8
This patch fixes out-of-box build on Mac OS X by using "uname -s" to detect the underlying OS and fixing up defines accordingly. Cc: Yong Luk Stanley Elijah Goh <stan@t0xt.com> Signed-off-by: Pekka Enberg <penberg@kernel.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2010-08-24uemacs: Compiles on Mac OS X.Yong Luk Stanley Elijah Goh6-4/+12
Compiles on Mac OS X 10.6.4. setmode() is renamed to setemode() to avoid conflict with OS X's unistd.h's setmode(). Modify Makefile to enable the appropriate DEFINES to compile on Mac OS X. Signed-off-by: Yong Luk Stanley Elijah Goh <stan@t0xt.com> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2010-08-21uemacs: basic.c: Add support to go to the end of the buffer.Thiago Farina1-62/+63
There is a case when the user can type something like this: em filename + or even em + Instead of saying "Bogus argument" when the uemacs start, just go to the end of the buffer like we can do in vim for example. Signed-off-by: Thiago Farina <tfransosi@gmail.com> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2010-08-18uemacs: Add --help option.Thiago Farina5-86/+98
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>
2010-08-13uemacs: Add --version option.Thiago Farina1-23/+27
Signed-off-by: Thiago Farina <tfransosi@gmail.com> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2010-08-10uemacs: convert typedef struct KILL to struct kill.Thiago Farina4-12/+12
Signed-off-by: Thiago Farina <tfransosi@gmail.com> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2010-08-04uemacs: evar.h: Add enum function_type.Thiago Farina1-53/+54
Replace four macros used to define integer constants with a enum. Signed-off-by: Thiago Farina <tfransosi@gmail.com> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2010-08-02uemacs: ibmpc.c: Move the functions to the ANSI style declaration.Thiago Farina1-70/+79
Signed-off-by: Thiago Farina <tfransosi@gmail.com> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2010-08-01uemacs: convert typedef struct window_t to struct window.Thiago Farina12-63/+63
Signed-off-by: Thiago Farina <tfransosi@gmail.com> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2010-07-11uemacs: convert typedef struct TERM to struct terminal.Thiago Farina7-35/+39
Signed-off-by: Thiago Farina <tfransosi@gmail.com> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2010-07-10uemacs: convert typedef struct REGION to struct region.Thiago Farina4-11/+11
Signed-off-by: Thiago Farina <tfransosi@gmail.com> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2010-07-04uemacs: convert typedef struct NBIND to struct name_bind.Thiago Farina6-11/+11
Signed-off-by: Thiago Farina <tfransosi@gmail.com> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2010-06-30uemacs: convert typedef struct KEYTAB to struct key_tab.Thiago Farina4-30/+33
Signed-off-by: Thiago Farina <tfransosi@gmail.com> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2010-06-28uemacs/ansi.c: Convert the old functions style declarations to the new one.Thiago Farina1-28/+32
Signed-off-by: Thiago Farina <tfransosi@gmail.com> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2010-06-27uemacs: Convert typedef struct UVAR to struct user_variable.Thiago Farina2-10/+11
Signed-off-by: Thiago Farina <tfransosi@gmail.com> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2010-06-27uemacs: convert typedef struct UFUNC to struct user_function.Thiago Farina1-7/+6
Signed-off-by: Thiago Farina <tfransosi@gmail.com> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2010-06-11uemacs: Use ARRAY_SIZE in more places.Thiago Farina4-14/+18
Signed-off-by: Thiago Farina <thiago.farina@gmail.com> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2010-06-08uemacs: Add ARRAY_SIZE macro so we can get rid of some hard coded calculations.Thiago Farina3-12/+17
Signed-off-by: Thiago Farina <thiago.farina@gmail.com> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2010-06-01uemacs: convert typdef struct VIDEO to struct video.Thiago Farina2-22/+22
Signed-off-by: Thiago Farina <thiago.farina@gmail.com> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2010-04-28uemacs: rename 'readme' to 'README'Thiago Farina1-27/+27
Also removes some tabs and whitespaces. Cc: Pekka Enberg <penberg@cs.helsinki.fi> Signed-off-by: Thiago Farina <tfransosi@gmail.com> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2010-04-28uemacs: convert typdef struct LINE to struct line.Thiago Farina16-115/+115
Cc: Pekka Enberg <penberg@cs.helsinki.fi> Signed-off-by: Thiago Farina <tfransosi@gmail.com> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2010-02-27uemacs: enable -Wstrict-prototypesPekka Enberg6-6/+8
This patch enables the GCC '-Wstrict-prototypes' switch and fixes up broken prototypes. 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-27uemacs: rename 'makefile' to 'Makefile'Pekka Enberg1-0/+0
I keep typoing 'Makefile' instead of 'makefile'. I guess it's hard-wired to the brain by now so just rename the damn thing. 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-27uemacs: remove use of 'register' keywordPekka Enberg23-497/+497
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-26uemacs: remove unused functionsPekka Enberg4-25/+0
Commit 8fc7449 ("uemacs: fix sparse warnings, making file-local symbols static.") made some functions that are not used anywhere static. This patch removes them to kill the following compilation warnings: ansi.c:255: warning: ‘ansihello’ defined but not used ibmpc.c:505: warning: ‘ibmhello’ defined but not used vmsvt.c:521: warning: ‘hellovms’ defined but not used vt52.c:181: warning: ‘vt52hello’ defined but not used 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-26uemacs: make build output more readablePekka Enberg1-3/+18
This patch makes the build output look like what we have in the linux kernel so that warnings stand out better: CC ansi.o CC basic.o CC bind.o CC buffer.o buffer.c: In function ‘nextbuffer’: buffer.c:43: warning: ‘bp’ may be used uninitialized in this function CC crypt.o CC display.o [...] 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-15uemacs/line.c: remove two unused variables.Thiago Farina1-3/+0
line.c:21: warning: ‘ykbuf’ defined but not used line.c:22: warning: ‘ykboff’ defined but not used Signed-off-by: Thiago Farina <tfransosi@gmail.com> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2010-02-15uemacs: remove typdef struct BUFFER -> struct buffer.Thiago Farina13-64/+64
Signed-off-by: Thiago Farina <tfransosi@gmail.com> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2010-01-29uemacs: fix sparse warnings, making file-local symbols static.Thiago Farina12-30/+30
ansi.c:255:6: warning: symbol 'ansihello' was not declared. Should it be static? epath.h:11:6: warning: symbol 'pathname' was not declared. Should it be static? display.c:36:7: warning: symbol 'vscreen' was not declared. Should it be static? display.c:38:7: warning: symbol 'pscreen' was not declared. Should it be static? display.c:927:5: warning: symbol 'updateline' was not declared. Should it be static? evar.h:20:6: warning: symbol 'uv' was not declared. Should it be static? evar.h:24:6: warning: symbol 'envars' was not declared. Should it be static? evar.h:128:7: warning: symbol 'funcs' was not declared. Should it be static? fileio.c:14:6: warning: symbol 'ffp' was not declared. Should it be static? fileio.c:15:5: warning: symbol 'eofflag' was not declared. Should it be static? ibmpc.c:505:6: warning: symbol 'ibmhello' was not declared. Should it be static? isearch.c:36:5: warning: symbol 'saved_get_char' was not declared. Should it be static? isearch.c:37:5: warning: symbol 'eaten_char' was not declared. Should it be static? isearch.c:41:5: warning: symbol 'cmd_buff' was not declared. Should it be static? isearch.c:42:5: warning: symbol 'cmd_offset' was not declared. Should it be static? isearch.c:43:5: warning: symbol 'cmd_reexecute' was not declared. Should it be static? line.c:21:6: warning: symbol 'ykbuf' was not declared. Should it be static? line.c:22:5: warning: symbol 'ykboff' was not declared. Should it be static? lock.c:17:6: warning: symbol 'lname' was not declared. Should it be static? lock.c:18:5: warning: symbol 'numlocks' was not declared. Should it be static? vmsvt.c:521:6: warning: symbol 'hellovms' was not declared. Should it be static? vt52.c:181:6: warning: symbol 'vt52hello' was not declared. Should it be static? Signed-off-by: Thiago Farina <tfransosi@gmail.com> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>