1
0
mirror of https://github.com/rfivet/uemacs.git synced 2025-09-25 06:34:07 -04:00

uemacs: remove use of 'register' keyword

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>
This commit is contained in:
Pekka Enberg
2010-02-27 12:38:22 +02:00
committed by Linus Torvalds
parent 8a3292cd0d
commit 74ffb9e254
23 changed files with 497 additions and 497 deletions

28
basic.c
View File

@@ -33,7 +33,7 @@ int gotobol(int f, int n)
*/
int backchar(int f, int n)
{
register LINE *lp;
LINE *lp;
if (n < 0)
return (forwchar(f, -n));
@@ -90,7 +90,7 @@ int forwchar(int f, int n)
*/
int gotoline(int f, int n)
{
register int status; /* status return */
int status; /* status return */
char arg[NSTRING]; /* buffer to hold argument */
/* get an argument if one doesnt exist */
@@ -146,7 +146,7 @@ int gotoeob(int f, int n)
*/
int forwline(int f, int n)
{
register LINE *dlp;
LINE *dlp;
if (n < 0)
return (backline(f, -n));
@@ -183,7 +183,7 @@ int forwline(int f, int n)
*/
int backline(int f, int n)
{
register LINE *dlp;
LINE *dlp;
if (n < 0)
return (forwline(f, -n));
@@ -223,7 +223,7 @@ int backline(int f, int n)
*/
int gotobop(int f, int n)
{
register int suc; /* success of last backchar */
int suc; /* success of last backchar */
if (n < 0) /* the other way... */
return (gotoeop(f, -n));
@@ -270,7 +270,7 @@ int gotobop(int f, int n)
*/
int gotoeop(int f, int n)
{
register int suc; /* success of last backchar */
int suc; /* success of last backchar */
if (n < 0) /* the other way... */
return (gotobop(f, -n));
@@ -321,10 +321,10 @@ int gotoeop(int f, int n)
*/
int getgoal(LINE *dlp)
{
register int c;
register int col;
register int newcol;
register int dbo;
int c;
int col;
int newcol;
int dbo;
col = 0;
dbo = 0;
@@ -352,7 +352,7 @@ int getgoal(LINE *dlp)
*/
int forwpage(int f, int n)
{
register LINE *lp;
LINE *lp;
if (f == FALSE) {
#if SCROLLCODE
@@ -394,7 +394,7 @@ int forwpage(int f, int n)
*/
int backpage(int f, int n)
{
register LINE *lp;
LINE *lp;
if (f == FALSE) {
#if SCROLLCODE
@@ -448,8 +448,8 @@ int setmark(int f, int n)
*/
int swapmark(int f, int n)
{
register LINE *odotp;
register int odoto;
LINE *odotp;
int odoto;
if (curwp->w_markp == NULL) {
mlwrite("No mark in this window");