summaryrefslogtreecommitdiffstats
path: root/libkholidays
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2020-01-30 20:17:36 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2020-01-30 20:17:36 +0900
commit90c6a46c9c8d9d18e74302fa43b80ef77ce48f93 (patch)
tree7ad483a05ee27cd86b26d2461951f20ef21d5f77 /libkholidays
parentdcbadd8017836649a71783b3a2d8162b8d227d4a (diff)
downloadtdepim-90c6a46c9c8d9d18e74302fa43b80ef77ce48f93.tar.gz
tdepim-90c6a46c9c8d9d18e74302fa43b80ef77ce48f93.zip
Removed explicit usage of the 'register' keyword.
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'libkholidays')
-rw-r--r--libkholidays/parseholiday.c8
-rw-r--r--libkholidays/parseholiday.y8
-rw-r--r--libkholidays/scanholiday.c42
3 files changed, 29 insertions, 29 deletions
diff --git a/libkholidays/parseholiday.c b/libkholidays/parseholiday.c
index c215515e5..1923d955a 100644
--- a/libkholidays/parseholiday.c
+++ b/libkholidays/parseholiday.c
@@ -2571,8 +2571,8 @@ static int day_from_wday(int day, int wday, int num)
static void initialize()
{
- register struct holiday *hp;
- register int dy;
+ struct holiday *hp;
+ int dy;
initialized = 1;
for (hp=holidays, dy=0; dy < 366; dy++, hp++)
{
@@ -2594,8 +2594,8 @@ static void initialize()
char *parse_holidays(const char *holidayfile, int year, short force)
{
- register struct holiday *hp;
- register int dy;
+ struct holiday *hp;
+ int dy;
short piped = 0;
if (!initialized)
initialize();
diff --git a/libkholidays/parseholiday.y b/libkholidays/parseholiday.y
index fd03b11d2..50e80cb9d 100644
--- a/libkholidays/parseholiday.y
+++ b/libkholidays/parseholiday.y
@@ -634,8 +634,8 @@ static int day_from_wday(int day, int wday, int num)
static void initialize()
{
- register struct holiday *hp;
- register int dy;
+ struct holiday *hp;
+ int dy;
initialized = 1;
for (hp=holidays, dy=0; dy < 366; dy++, hp++)
{
@@ -657,8 +657,8 @@ static void initialize()
char *parse_holidays(const char *holidayfile, int year, short force)
{
- register struct holiday *hp;
- register int dy;
+ struct holiday *hp;
+ int dy;
short piped = 0;
if (!initialized)
initialize();
diff --git a/libkholidays/scanholiday.c b/libkholidays/scanholiday.c
index 4ea97560f..a0958a387 100644
--- a/libkholidays/scanholiday.c
+++ b/libkholidays/scanholiday.c
@@ -714,9 +714,9 @@ YY_MALLOC_DECL
YY_DECL
{
- register yy_state_type yy_current_state;
- register char *yy_cp = NULL, *yy_bp = NULL;
- register int yy_act;
+ yy_state_type yy_current_state;
+ char *yy_cp = NULL, *yy_bp = NULL;
+ int yy_act;
#line 13 "scanholiday.lex"
@@ -764,7 +764,7 @@ YY_DECL
yy_match:
do
{
- register YY_CHAR yy_c = yy_ec[YY_SC_TO_UI(*yy_cp)];
+ YY_CHAR yy_c = yy_ec[YY_SC_TO_UI(*yy_cp)];
if ( yy_accept[yy_current_state] )
{
yy_last_accepting_state = yy_current_state;
@@ -1293,9 +1293,9 @@ case YY_STATE_EOF(INITIAL):
static int yy_get_next_buffer()
{
- register char *dest = yy_current_buffer->yy_ch_buf;
- register char *source = yytext_ptr;
- register int number_to_move, i;
+ char *dest = yy_current_buffer->yy_ch_buf;
+ char *source = yytext_ptr;
+ int number_to_move, i;
int ret_val;
if ( yy_c_buf_p > &yy_current_buffer->yy_ch_buf[yy_n_chars + 1] )
@@ -1425,15 +1425,15 @@ static int yy_get_next_buffer()
static yy_state_type yy_get_previous_state()
{
- register yy_state_type yy_current_state;
- register char *yy_cp;
+ yy_state_type yy_current_state;
+ char *yy_cp;
yy_current_state = yy_start;
yy_current_state += YY_AT_BOL();
for ( yy_cp = yytext_ptr + YY_MORE_ADJ; yy_cp < yy_c_buf_p; ++yy_cp )
{
- register YY_CHAR yy_c = (*yy_cp ? yy_ec[YY_SC_TO_UI(*yy_cp)] : 1);
+ YY_CHAR yy_c = (*yy_cp ? yy_ec[YY_SC_TO_UI(*yy_cp)] : 1);
if ( yy_accept[yy_current_state] )
{
yy_last_accepting_state = yy_current_state;
@@ -1465,10 +1465,10 @@ static yy_state_type yy_try_NUL_trans( yy_current_state )
yy_state_type yy_current_state;
#endif
{
- register int yy_is_jam;
- register char *yy_cp = yy_c_buf_p;
+ int yy_is_jam;
+ char *yy_cp = yy_c_buf_p;
- register YY_CHAR yy_c = 1;
+ YY_CHAR yy_c = 1;
if ( yy_accept[yy_current_state] )
{
yy_last_accepting_state = yy_current_state;
@@ -1489,14 +1489,14 @@ yy_state_type yy_current_state;
#ifndef YY_NO_UNPUT
#ifdef YY_USE_PROTOS
-static void yyunput( int c, register char *yy_bp )
+static void yyunput( int c, char *yy_bp )
#else
static void yyunput( c, yy_bp )
int c;
-register char *yy_bp;
+char *yy_bp;
#endif
{
- register char *yy_cp = yy_c_buf_p;
+ char *yy_cp = yy_c_buf_p;
/* undo effects of setting up yytext */
*yy_cp = yy_hold_char;
@@ -1504,10 +1504,10 @@ register char *yy_bp;
if ( yy_cp < yy_current_buffer->yy_ch_buf + 2 )
{ /* need to shift things up to make room */
/* +2 for EOB chars. */
- register int number_to_move = yy_n_chars + 2;
- register char *dest = &yy_current_buffer->yy_ch_buf[
+ int number_to_move = yy_n_chars + 2;
+ char *dest = &yy_current_buffer->yy_ch_buf[
yy_current_buffer->yy_buf_size + 2];
- register char *source =
+ char *source =
&yy_current_buffer->yy_ch_buf[number_to_move];
while ( source > yy_current_buffer->yy_ch_buf )
@@ -1965,7 +1965,7 @@ yyconst char *s2;
int n;
#endif
{
- register int i;
+ int i;
for ( i = 0; i < n; ++i )
s1[i] = s2[i];
}
@@ -1979,7 +1979,7 @@ static int yy_flex_strlen( s )
yyconst char *s;
#endif
{
- register int n;
+ int n;
for ( n = 0; s[n]; ++n )
;