ext/redcloth_scan/redcloth_attributes.c in BBRedCloth-0.8.7 vs ext/redcloth_scan/redcloth_attributes.c in BBRedCloth-0.8.8

- old
+ new

@@ -419,11 +419,11 @@ _acts = _redcloth_attributes_actions + _redcloth_attributes_from_state_actions[cs]; _nacts = (unsigned int) *_acts++; while ( _nacts-- > 0 ) { switch ( *_acts++ ) { case 12: -#line 1 "ext/redcloth_scan/redcloth_attributes.c.rl" +#line 1 "NONE" {ts = p;} break; #line 428 "ext/redcloth_scan/redcloth_attributes.c" } } @@ -444,11 +444,11 @@ if ( (*p) < *_mid ) _upper = _mid - 1; else if ( (*p) > *_mid ) _lower = _mid + 1; else { - _trans += (_mid - _keys); + _trans += (unsigned int)(_mid - _keys); goto _match; } } _keys += _klen; _trans += _klen; @@ -467,11 +467,11 @@ if ( (*p) < _mid[0] ) _upper = _mid - 2; else if ( (*p) > _mid[1] ) _lower = _mid + 2; else { - _trans += ((_mid - _keys)>>1); + _trans += (unsigned int)((_mid - _keys)>>1); goto _match; } } _trans += _klen; } @@ -489,67 +489,67 @@ while ( _nacts-- > 0 ) { switch ( *_acts++ ) { case 0: -#line 5 "ext/redcloth_scan/redcloth_attributes.c.rl" +#line 5 "ext/redcloth_scan/redcloth_common.rl" { reg = p; } break; case 1: -#line 6 "ext/redcloth_scan/redcloth_attributes.c.rl" +#line 6 "ext/redcloth_scan/redcloth_common.rl" { bck = p; } break; case 2: -#line 7 "ext/redcloth_scan/redcloth_attributes.c.rl" +#line 7 "ext/redcloth_scan/redcloth_common.rl" { STORE("text"); } break; case 3: -#line 8 "ext/redcloth_scan/redcloth_attributes.c.rl" +#line 8 "ext/redcloth_scan/redcloth_common.rl" { CLEAR_REGS(); RESET_REG(); } break; case 4: -#line 10 "ext/redcloth_scan/redcloth_attributes.c.rl" +#line 10 "ext/redcloth_scan/redcloth_attributes.rl" { STORE("class_buf"); } break; case 5: -#line 10 "ext/redcloth_scan/redcloth_attributes.c.rl" +#line 10 "ext/redcloth_scan/redcloth_attributes.rl" {STORE("id_buf");} break; case 6: -#line 11 "ext/redcloth_scan/redcloth_attributes.c.rl" +#line 11 "ext/redcloth_scan/redcloth_attributes.rl" { STORE("lang_buf"); } break; case 7: -#line 12 "ext/redcloth_scan/redcloth_attributes.c.rl" +#line 12 "ext/redcloth_scan/redcloth_attributes.rl" { STORE("style_buf"); } break; case 8: -#line 23 "ext/redcloth_scan/redcloth_attributes.c.rl" +#line 23 "ext/redcloth_scan/redcloth_attributes.rl" { STORE("name"); } break; case 9: -#line 24 "ext/redcloth_scan/redcloth_attributes.c.rl" +#line 24 "ext/redcloth_scan/redcloth_attributes.rl" { STORE_B("name_without_attributes"); } break; case 13: -#line 1 "ext/redcloth_scan/redcloth_attributes.c.rl" +#line 1 "NONE" {te = p+1;} break; case 14: -#line 19 "ext/redcloth_scan/redcloth_attributes.c.rl" +#line 19 "ext/redcloth_scan/redcloth_attributes.rl" {act = 1;} break; case 15: -#line 19 "ext/redcloth_scan/redcloth_attributes.c.rl" +#line 19 "ext/redcloth_scan/redcloth_attributes.rl" {te = p;p--;{ SET_ATTRIBUTES(); }} break; case 16: -#line 19 "ext/redcloth_scan/redcloth_attributes.c.rl" +#line 19 "ext/redcloth_scan/redcloth_attributes.rl" {{p = ((te))-1;}{ SET_ATTRIBUTES(); }} break; case 17: -#line 1 "ext/redcloth_scan/redcloth_attributes.c.rl" +#line 1 "NONE" { switch( act ) { case 0: {{cs = 0; goto _again;}} break; case 1: @@ -557,35 +557,35 @@ break; } } break; case 18: -#line 28 "ext/redcloth_scan/redcloth_attributes.c.rl" +#line 28 "ext/redcloth_scan/redcloth_attributes.rl" {act = 2;} break; case 19: -#line 29 "ext/redcloth_scan/redcloth_attributes.c.rl" +#line 29 "ext/redcloth_scan/redcloth_attributes.rl" {act = 3;} break; case 20: -#line 28 "ext/redcloth_scan/redcloth_attributes.c.rl" +#line 28 "ext/redcloth_scan/redcloth_attributes.rl" {te = p;p--;{ SET_ATTRIBUTES(); }} break; case 21: -#line 29 "ext/redcloth_scan/redcloth_attributes.c.rl" +#line 29 "ext/redcloth_scan/redcloth_attributes.rl" {te = p;p--;{ SET_ATTRIBUTE("name_without_attributes", "name"); }} break; case 22: -#line 28 "ext/redcloth_scan/redcloth_attributes.c.rl" +#line 28 "ext/redcloth_scan/redcloth_attributes.rl" {{p = ((te))-1;}{ SET_ATTRIBUTES(); }} break; case 23: -#line 29 "ext/redcloth_scan/redcloth_attributes.c.rl" +#line 29 "ext/redcloth_scan/redcloth_attributes.rl" {{p = ((te))-1;}{ SET_ATTRIBUTE("name_without_attributes", "name"); }} break; case 24: -#line 1 "ext/redcloth_scan/redcloth_attributes.c.rl" +#line 1 "NONE" { switch( act ) { case 2: {{p = ((te))-1;} SET_ATTRIBUTES(); } break; case 3: @@ -602,14 +602,14 @@ _acts = _redcloth_attributes_actions + _redcloth_attributes_to_state_actions[cs]; _nacts = (unsigned int) *_acts++; while ( _nacts-- > 0 ) { switch ( *_acts++ ) { case 10: -#line 1 "ext/redcloth_scan/redcloth_attributes.c.rl" +#line 1 "NONE" {ts = 0;} break; case 11: -#line 1 "ext/redcloth_scan/redcloth_attributes.c.rl" +#line 1 "NONE" {act = 0;} break; #line 615 "ext/redcloth_scan/redcloth_attributes.c" } } \ No newline at end of file