summaryrefslogtreecommitdiff
path: root/src/mark.c
diff options
context:
space:
mode:
authorAmadeusz Sławiński <amade@asmblr.net>2013-11-29 17:02:46 +0100
committerAmadeusz Sławiński <amade@asmblr.net>2015-06-26 14:23:15 +0200
commitaf8d0db2ebff6f7cf94022f80300c6d3c59f0386 (patch)
tree34487a00ef1413774c71e467dbb42a74c29c741f /src/mark.c
parentb8a5ad209410d5616918bce6333fb9cd684e4f93 (diff)
downloadscreen-af8d0db2ebff6f7cf94022f80300c6d3c59f0386.tar.gz
remove register keyword
modern compilers know better what they are doing
Diffstat (limited to 'src/mark.c')
-rw-r--r--src/mark.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/mark.c b/src/mark.c
index e9ac94e..7dea68a 100644
--- a/src/mark.c
+++ b/src/mark.c
@@ -100,8 +100,8 @@ static int is_letter(int c)
static int linestart(int y)
{
- register int x;
- register uint32_t *i;
+ int x;
+ uint32_t *i;
for (x = markdata->left_mar, i = WIN(y)->image + x; x < fore->w_width - 1; x++)
if (*i++ != ' ')
@@ -113,8 +113,8 @@ static int linestart(int y)
static int lineend(int y)
{
- register int x;
- register uint32_t *i;
+ int x;
+ uint32_t *i;
for (x = markdata->right_mar, i = WIN(y)->image + x; x >= 0; x--)
if (*i-- != ' ')
@@ -186,7 +186,7 @@ static int nextchar(int *xp, int *yp, int direction, char target, int num)
static void nextword(int *xp, int *yp, int flags, int num)
{
int xx = fore->w_width, yy = fore->w_histheight + fore->w_height;
- register int sx, oq, q, x, y;
+ int sx, oq, q, x, y;
struct mline *ml;
x = *xp;