Changeset e8edef in git


Ignore:
Timestamp:
Jan 31, 2020, 4:01:33 PM (4 years ago)
Author:
Hans Schoenemann <hannes@…>
Branches:
(u'fieker-DuVal', '117eb8c30fc9e991c4decca4832b1d19036c4c65')(u'spielwiese', 'b9f50b373314e74e83c7c060a651dd2913e1f033')
Children:
567945d548bee08c582e917dff1d59fcba891cd8
Parents:
3ada27bd457c540e7307b402cf08aeeebd40b113
Message:
complier warning: register
File:
1 edited

Legend:

Unmodified
Added
Removed
  • Singular/libparse.cc

    r3ada27 re8edef  
    14111411YY_DECL
    14121412        {
    1413         register yy_state_type yy_current_state;
    1414         register char *yy_cp, *yy_bp;
    1415         register int yy_act;
     1413        REGISTER yy_state_type yy_current_state;
     1414        REGISTER char *yy_cp, *yy_bp;
     1415        REGISTER int yy_act;
    14161416
    14171417#line 229 "libparse.l"
     
    14651465                do
    14661466                        {
    1467                         register YY_CHAR yy_c = yy_ec[YY_SC_TO_UI(*yy_cp)];
     1467                        REGISTER YY_CHAR yy_c = yy_ec[YY_SC_TO_UI(*yy_cp)];
    14681468                        if ( yy_accept[yy_current_state] )
    14691469                                {
     
    25972597static int yy_get_next_buffer()
    25982598        {
    2599         register char *dest = yy_current_buffer->yy_ch_buf;
    2600         register char *source = yytext_ptr;
    2601         register int number_to_move, i;
     2599        REGISTER char *dest = yy_current_buffer->yy_ch_buf;
     2600        REGISTER char *source = yytext_ptr;
     2601        REGISTER int number_to_move, i;
    26022602        int ret_val;
    26032603
     
    27292729static yy_state_type yy_get_previous_state()
    27302730        {
    2731         register yy_state_type yy_current_state;
    2732         register char *yy_cp;
     2731        REGISTER yy_state_type yy_current_state;
     2732        REGISTER char *yy_cp;
    27332733
    27342734        yy_current_state = yy_start;
     
    27372737        for ( yy_cp = yytext_ptr + YY_MORE_ADJ; yy_cp < yy_c_buf_p; ++yy_cp )
    27382738                {
    2739                 register YY_CHAR yy_c = (*yy_cp ? yy_ec[YY_SC_TO_UI(*yy_cp)] : 1);
     2739                REGISTER YY_CHAR yy_c = (*yy_cp ? yy_ec[YY_SC_TO_UI(*yy_cp)] : 1);
    27402740                if ( yy_accept[yy_current_state] )
    27412741                        {
     
    27692769#endif
    27702770        {
    2771         register int yy_is_jam;
    2772         register char *yy_cp = yy_c_buf_p;
    2773 
    2774         register YY_CHAR yy_c = 1;
     2771        REGISTER int yy_is_jam;
     2772        REGISTER char *yy_cp = yy_c_buf_p;
     2773
     2774        REGISTER YY_CHAR yy_c = 1;
    27752775        if ( yy_accept[yy_current_state] )
    27762776                {
     
    27932793#ifndef YY_NO_UNPUT
    27942794#ifdef YY_USE_PROTOS
    2795 static void yyunput( int c, register char *yy_bp )
     2795static void yyunput( int c, REGISTER char *yy_bp )
    27962796#else
    27972797static void yyunput( c, yy_bp )
    27982798int c;
    2799 VAR register char *yy_bp;
     2799VAR REGISTER char *yy_bp;
    28002800#endif
    28012801        {
    2802         register char *yy_cp = yy_c_buf_p;
     2802        REGISTER char *yy_cp = yy_c_buf_p;
    28032803
    28042804        /* undo effects of setting up yytext */
     
    28082808                { /* need to shift things up to make room */
    28092809                /* +2 for EOB chars. */
    2810                 register int number_to_move = yy_n_chars + 2;
    2811                 register char *dest = &yy_current_buffer->yy_ch_buf[
     2810                REGISTER int number_to_move = yy_n_chars + 2;
     2811                REGISTER char *dest = &yy_current_buffer->yy_ch_buf[
    28122812                                        yy_current_buffer->yy_buf_size + 2];
    2813                 register char *source =
     2813                REGISTER char *source =
    28142814                                &yy_current_buffer->yy_ch_buf[number_to_move];
    28152815
     
    32733273#endif
    32743274        {
    3275         register int i;
     3275        REGISTER int i;
    32763276        for ( i = 0; i < n; ++i )
    32773277                s1[i] = s2[i];
     
    32873287#endif
    32883288        {
    3289         register int n;
     3289        REGISTER int n;
    32903290        for ( n = 0; s[n]; ++n )
    32913291                ;
Note: See TracChangeset for help on using the changeset viewer.