dtext_rb 1.0.7 → 1.0.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/VERSION +1 -1
- data/dtext_rb.gemspec +2 -2
- data/ext/dtext/dtext.c +10 -8
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 75d154f405d4e6e9c96083403234349b8421058f
|
4
|
+
data.tar.gz: 8feb551419a768ccaf74e8710523bfc1c7150ec7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0379bdab7d9fbcd1fecd1508f92a1cbaade90b36386a7760f0c74688bb7c943add5e8203e8e69d5c1ee2baf9251e54dd43e1e02a8bfff413a97d8929f5799d80
|
7
|
+
data.tar.gz: 812ecfcc8f1cdeeb3b27b1cfa18005dcf198a96545b812a7a08ab169f0ba5e415eb6599ee07e45f81f3ab3b1c8fcc5500b5a1f94e843c52ea2291ce545eb76aa
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.0.
|
1
|
+
1.0.8
|
data/dtext_rb.gemspec
CHANGED
@@ -2,12 +2,12 @@
|
|
2
2
|
# DO NOT EDIT THIS FILE DIRECTLY
|
3
3
|
# Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
|
4
4
|
# -*- encoding: utf-8 -*-
|
5
|
-
# stub: dtext_rb 1.0.
|
5
|
+
# stub: dtext_rb 1.0.8 ruby lib
|
6
6
|
# stub: ext/dtext/extconf.rb
|
7
7
|
|
8
8
|
Gem::Specification.new do |s|
|
9
9
|
s.name = "dtext_rb"
|
10
|
-
s.version = "1.0.
|
10
|
+
s.version = "1.0.8"
|
11
11
|
|
12
12
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
13
13
|
s.require_paths = ["lib"]
|
data/ext/dtext/dtext.c
CHANGED
@@ -496,6 +496,7 @@ static void free_machine(StateMachine * sm) {
|
|
496
496
|
|
497
497
|
static VALUE parse(int argc, VALUE * argv, VALUE self) {
|
498
498
|
VALUE input;
|
499
|
+
VALUE input0;
|
499
500
|
VALUE options;
|
500
501
|
VALUE opt_inline;
|
501
502
|
VALUE opt_strip;
|
@@ -510,10 +511,11 @@ static VALUE parse(int argc, VALUE * argv, VALUE self) {
|
|
510
511
|
}
|
511
512
|
|
512
513
|
input = argv[0];
|
514
|
+
input0 = rb_str_dup(input);
|
513
515
|
|
514
516
|
sm = (StateMachine *)g_malloc0(sizeof(StateMachine));
|
515
|
-
|
516
|
-
init_machine(sm,
|
517
|
+
input0 = rb_str_cat(input0, "\0", 1);
|
518
|
+
init_machine(sm, input0);
|
517
519
|
|
518
520
|
if (argc > 1) {
|
519
521
|
options = argv[1];
|
@@ -532,7 +534,7 @@ static VALUE parse(int argc, VALUE * argv, VALUE self) {
|
|
532
534
|
}
|
533
535
|
|
534
536
|
|
535
|
-
#line
|
537
|
+
#line 538 "ext/dtext/dtext.c"
|
536
538
|
{
|
537
539
|
sm->cs = dtext_start;
|
538
540
|
( sm->top) = 0;
|
@@ -541,9 +543,9 @@ static VALUE parse(int argc, VALUE * argv, VALUE self) {
|
|
541
543
|
( sm->act) = 0;
|
542
544
|
}
|
543
545
|
|
544
|
-
#line
|
546
|
+
#line 1335 "ext/dtext/dtext.rl"
|
545
547
|
|
546
|
-
#line
|
548
|
+
#line 549 "ext/dtext/dtext.c"
|
547
549
|
{
|
548
550
|
if ( ( sm->p) == ( sm->pe) )
|
549
551
|
goto _test_eof;
|
@@ -555,7 +557,7 @@ _resume:
|
|
555
557
|
#line 1 "NONE"
|
556
558
|
{( sm->ts) = ( sm->p);}
|
557
559
|
break;
|
558
|
-
#line
|
560
|
+
#line 561 "ext/dtext/dtext.c"
|
559
561
|
}
|
560
562
|
|
561
563
|
switch ( sm->cs ) {
|
@@ -4086,7 +4088,7 @@ _again:
|
|
4086
4088
|
#line 1 "NONE"
|
4087
4089
|
{( sm->ts) = 0;}
|
4088
4090
|
break;
|
4089
|
-
#line
|
4091
|
+
#line 4092 "ext/dtext/dtext.c"
|
4090
4092
|
}
|
4091
4093
|
|
4092
4094
|
if ( sm->cs == 0 )
|
@@ -4405,7 +4407,7 @@ _again:
|
|
4405
4407
|
_out: {}
|
4406
4408
|
}
|
4407
4409
|
|
4408
|
-
#line
|
4410
|
+
#line 1336 "ext/dtext/dtext.rl"
|
4409
4411
|
|
4410
4412
|
dstack_close(sm);
|
4411
4413
|
|