trenni 3.13.1 → 3.13.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/ext/.DS_Store +0 -0
- data/ext/tmp/.DS_Store +0 -0
- data/ext/tmp/x86_64-darwin16/lib/trenni/trenni.bundle +0 -0
- data/ext/tmp/{x86_64-linux → x86_64-darwin16}/trenni/2.4.0/Makefile +25 -24
- data/ext/tmp/x86_64-darwin16/trenni/2.4.0/escape.o +0 -0
- data/ext/tmp/x86_64-darwin16/trenni/2.4.0/markup.o +0 -0
- data/ext/tmp/x86_64-darwin16/trenni/2.4.0/mkmf.log +105 -0
- data/ext/tmp/x86_64-darwin16/trenni/2.4.0/tag.o +0 -0
- data/ext/tmp/x86_64-darwin16/trenni/2.4.0/template.o +0 -0
- data/ext/tmp/x86_64-darwin16/trenni/2.4.0/trenni.bundle +0 -0
- data/ext/tmp/x86_64-darwin16/trenni/2.4.0/trenni.o +0 -0
- data/ext/tmp/x86_64-darwin18/lib/trenni/trenni.bundle +0 -0
- data/ext/tmp/x86_64-darwin18/trenni/2.6.1/Makefile +266 -0
- data/ext/tmp/x86_64-darwin18/trenni/2.6.1/escape.o +0 -0
- data/ext/tmp/x86_64-darwin18/trenni/2.6.1/markup.o +0 -0
- data/ext/tmp/x86_64-darwin18/trenni/2.6.1/mkmf.log +109 -0
- data/ext/tmp/x86_64-darwin18/trenni/2.6.1/tag.o +0 -0
- data/ext/tmp/x86_64-darwin18/trenni/2.6.1/template.o +0 -0
- data/ext/tmp/x86_64-darwin18/trenni/2.6.1/trenni.bundle +0 -0
- data/ext/tmp/x86_64-darwin18/trenni/2.6.1/trenni.o +0 -0
- data/ext/tmp/x86_64-darwin18/trenni/2.6.2/Makefile +266 -0
- data/ext/tmp/x86_64-darwin18/trenni/2.6.2/escape.o +0 -0
- data/ext/tmp/x86_64-darwin18/trenni/2.6.2/markup.o +0 -0
- data/ext/tmp/x86_64-darwin18/trenni/2.6.2/mkmf.log +109 -0
- data/ext/tmp/x86_64-darwin18/trenni/2.6.2/tag.o +0 -0
- data/ext/tmp/x86_64-darwin18/trenni/2.6.2/template.o +0 -0
- data/ext/tmp/x86_64-darwin18/trenni/2.6.2/trenni.bundle +0 -0
- data/ext/tmp/x86_64-darwin18/trenni/2.6.2/trenni.o +0 -0
- data/ext/tmp/x86_64-darwin19/lib/trenni/trenni.bundle +0 -0
- data/ext/tmp/{x86_64-linux → x86_64-darwin19}/trenni/2.7.1/Makefile +28 -27
- data/ext/tmp/x86_64-darwin19/trenni/2.7.1/escape.o +0 -0
- data/ext/tmp/x86_64-darwin19/trenni/2.7.1/markup.o +0 -0
- data/ext/tmp/x86_64-darwin19/trenni/2.7.1/mkmf.log +109 -0
- data/ext/tmp/x86_64-darwin19/trenni/2.7.1/query.o +0 -0
- data/ext/tmp/x86_64-darwin19/trenni/2.7.1/tag.o +0 -0
- data/ext/tmp/x86_64-darwin19/trenni/2.7.1/template.o +0 -0
- data/ext/tmp/x86_64-darwin19/trenni/2.7.1/trenni.bundle +0 -0
- data/ext/tmp/x86_64-darwin19/trenni/2.7.1/trenni.o +0 -0
- data/ext/tmp/x86_64-darwin20/lib/trenni/trenni.bundle +0 -0
- data/ext/tmp/{x86_64-linux/trenni/2.7.0 → x86_64-darwin20/trenni/3.0.0}/Makefile +29 -28
- data/ext/tmp/x86_64-darwin20/trenni/3.0.0/escape.o +0 -0
- data/ext/tmp/x86_64-darwin20/trenni/3.0.0/markup.o +0 -0
- data/ext/tmp/x86_64-darwin20/trenni/3.0.0/mkmf.log +109 -0
- data/ext/tmp/x86_64-darwin20/trenni/3.0.0/query.o +0 -0
- data/ext/tmp/x86_64-darwin20/trenni/3.0.0/tag.o +0 -0
- data/ext/tmp/x86_64-darwin20/trenni/3.0.0/template.o +0 -0
- data/ext/tmp/x86_64-darwin20/trenni/3.0.0/trenni.bundle +0 -0
- data/ext/tmp/x86_64-darwin20/trenni/3.0.0/trenni.o +0 -0
- data/ext/trenni/.DS_Store +0 -0
- data/ext/trenni/escape.c +2 -0
- data/ext/trenni/extconf.rb +0 -0
- data/ext/trenni/trenni.c +7 -0
- data/lib/.DS_Store +0 -0
- data/lib/trenni/.DS_Store +0 -0
- data/lib/trenni/native.rb +1 -1
- data/lib/trenni/version.rb +1 -1
- data/parsers/.DS_Store +0 -0
- data/spec/.DS_Store +0 -0
- data/spec/trenni/template_spec/.DS_Store +0 -0
- metadata +58 -74
- data/ext/Rakefile +0 -19
- data/ext/tmp/x86_64-linux/lib/trenni/trenni.so +0 -0
- data/ext/tmp/x86_64-linux/trenni/2.4.0/escape.o +0 -0
- data/ext/tmp/x86_64-linux/trenni/2.4.0/markup.o +0 -0
- data/ext/tmp/x86_64-linux/trenni/2.4.0/mkmf.log +0 -108
- data/ext/tmp/x86_64-linux/trenni/2.4.0/tag.o +0 -0
- data/ext/tmp/x86_64-linux/trenni/2.4.0/template.o +0 -0
- data/ext/tmp/x86_64-linux/trenni/2.4.0/trenni.o +0 -0
- data/ext/tmp/x86_64-linux/trenni/2.4.0/trenni.so +0 -0
- data/ext/tmp/x86_64-linux/trenni/2.7.0/escape.o +0 -0
- data/ext/tmp/x86_64-linux/trenni/2.7.0/markup.o +0 -0
- data/ext/tmp/x86_64-linux/trenni/2.7.0/mkmf.log +0 -113
- data/ext/tmp/x86_64-linux/trenni/2.7.0/query.o +0 -0
- data/ext/tmp/x86_64-linux/trenni/2.7.0/tag.o +0 -0
- data/ext/tmp/x86_64-linux/trenni/2.7.0/template.o +0 -0
- data/ext/tmp/x86_64-linux/trenni/2.7.0/trenni.o +0 -0
- data/ext/tmp/x86_64-linux/trenni/2.7.0/trenni.so +0 -0
- data/ext/tmp/x86_64-linux/trenni/2.7.1/escape.o +0 -0
- data/ext/tmp/x86_64-linux/trenni/2.7.1/markup.o +0 -0
- data/ext/tmp/x86_64-linux/trenni/2.7.1/mkmf.log +0 -113
- data/ext/tmp/x86_64-linux/trenni/2.7.1/query.o +0 -0
- data/ext/tmp/x86_64-linux/trenni/2.7.1/tag.o +0 -0
- data/ext/tmp/x86_64-linux/trenni/2.7.1/template.o +0 -0
- data/ext/tmp/x86_64-linux/trenni/2.7.1/trenni.o +0 -0
- data/ext/tmp/x86_64-linux/trenni/2.7.1/trenni.so +0 -0
@@ -12,12 +12,12 @@ NULLCMD = :
|
|
12
12
|
#### Start of system configuration section. ####
|
13
13
|
|
14
14
|
srcdir = ../../../../trenni
|
15
|
-
topdir = /
|
15
|
+
topdir = /Users/samuel/.rubies/ruby-3.0.0/include/ruby-3.0.0
|
16
16
|
hdrdir = $(topdir)
|
17
|
-
arch_hdrdir = /
|
17
|
+
arch_hdrdir = /Users/samuel/.rubies/ruby-3.0.0/include/ruby-3.0.0/x86_64-darwin20
|
18
18
|
PATH_SEPARATOR = :
|
19
19
|
VPATH = $(srcdir):$(arch_hdrdir)/ruby:$(hdrdir)/ruby
|
20
|
-
prefix = $(DESTDIR)/
|
20
|
+
prefix = $(DESTDIR)/Users/samuel/.rubies/ruby-3.0.0
|
21
21
|
rubysitearchprefix = $(rubylibprefix)/$(sitearch)
|
22
22
|
rubyarchprefix = $(rubylibprefix)/$(arch)
|
23
23
|
rubylibprefix = $(libdir)/$(RUBY_BASE_NAME)
|
@@ -50,7 +50,7 @@ dvidir = $(docdir)
|
|
50
50
|
htmldir = $(docdir)
|
51
51
|
infodir = $(datarootdir)/info
|
52
52
|
docdir = $(datarootdir)/doc/$(PACKAGE)
|
53
|
-
oldincludedir = $(
|
53
|
+
oldincludedir = $(SDKROOT)/usr/include
|
54
54
|
includedir = $(prefix)/include
|
55
55
|
runstatedir = $(localstatedir)/run
|
56
56
|
localstatedir = $(prefix)/var
|
@@ -65,12 +65,12 @@ archdir = $(rubyarchdir)
|
|
65
65
|
|
66
66
|
|
67
67
|
CC_WRAPPER =
|
68
|
-
CC =
|
69
|
-
CXX =
|
70
|
-
LIBRUBY = $(
|
68
|
+
CC = clang -fdeclspec
|
69
|
+
CXX = clang++ -fdeclspec
|
70
|
+
LIBRUBY = $(LIBRUBY_A)
|
71
71
|
LIBRUBY_A = lib$(RUBY_SO_NAME)-static.a
|
72
|
-
LIBRUBYARG_SHARED =
|
73
|
-
LIBRUBYARG_STATIC = -
|
72
|
+
LIBRUBYARG_SHARED =
|
73
|
+
LIBRUBYARG_STATIC = -l$(RUBY_SO_NAME)-static -framework Security -framework Foundation $(MAINLIBS)
|
74
74
|
empty =
|
75
75
|
OUTFLAG = -o $(empty)
|
76
76
|
COUTFLAG = -o $(empty)
|
@@ -81,41 +81,41 @@ cflags = $(optflags) $(debugflags) $(warnflags)
|
|
81
81
|
cxxflags =
|
82
82
|
optflags = -O3
|
83
83
|
debugflags = -ggdb3
|
84
|
-
warnflags = -Wall -Wextra -Wdeprecated-declarations -
|
84
|
+
warnflags = -Wall -Wextra -Wdeprecated-declarations -Wdivision-by-zero -Wimplicit-function-declaration -Wimplicit-int -Wmisleading-indentation -Wpointer-arith -Wshorten-64-to-32 -Wwrite-strings -Wmissing-noreturn -Wno-constant-logical-operand -Wno-long-long -Wno-missing-field-initializers -Wno-overlength-strings -Wno-parentheses-equality -Wno-self-assign -Wno-tautological-compare -Wno-unused-parameter -Wno-unused-value -Wunused-variable -Wextra-tokens
|
85
85
|
cppflags =
|
86
|
-
CCDLFLAGS = -
|
87
|
-
CFLAGS = $(CCDLFLAGS) $(cflags) -
|
86
|
+
CCDLFLAGS = -fno-common
|
87
|
+
CFLAGS = $(CCDLFLAGS) $(cflags) -pipe -O3 -std=c99 $(ARCH_FLAG)
|
88
88
|
INCFLAGS = -I. -I$(arch_hdrdir) -I$(hdrdir)/ruby/backward -I$(hdrdir) -I$(srcdir)
|
89
89
|
DEFS =
|
90
|
-
CPPFLAGS = -DHAVE_RB_SYM2STR -DHAVE_RB_STR_CAT_CSTR
|
91
|
-
CXXFLAGS = $(CCDLFLAGS)
|
92
|
-
ldflags = -L. -
|
93
|
-
dldflags = -L/
|
90
|
+
CPPFLAGS = -DHAVE_RB_SYM2STR -DHAVE_RB_STR_CAT_CSTR -I/opt/local/include -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -D_DARWIN_UNLIMITED_SELECT -D_REENTRANT $(DEFS) $(cppflags)
|
91
|
+
CXXFLAGS = $(CCDLFLAGS) $(ARCH_FLAG)
|
92
|
+
ldflags = -L. -fstack-protector-strong -L/opt/local/lib
|
93
|
+
dldflags = -Wl,-undefined,dynamic_lookup -Wl,-multiply_defined,suppress -L/opt/local/lib
|
94
94
|
ARCH_FLAG =
|
95
95
|
DLDFLAGS = $(ldflags) $(dldflags) $(ARCH_FLAG)
|
96
|
-
LDSHARED = $(CC) -
|
97
|
-
LDSHAREDXX = $(CXX) -
|
96
|
+
LDSHARED = $(CC) -dynamic -bundle
|
97
|
+
LDSHAREDXX = $(CXX) -dynamic -bundle
|
98
98
|
AR = ar
|
99
99
|
EXEEXT =
|
100
100
|
|
101
101
|
RUBY_INSTALL_NAME = $(RUBY_BASE_NAME)
|
102
|
-
RUBY_SO_NAME = ruby
|
102
|
+
RUBY_SO_NAME = ruby.3.0
|
103
103
|
RUBYW_INSTALL_NAME =
|
104
104
|
RUBY_VERSION_NAME = $(RUBY_BASE_NAME)-$(ruby_version)
|
105
105
|
RUBYW_BASE_NAME = rubyw
|
106
106
|
RUBY_BASE_NAME = ruby
|
107
107
|
|
108
|
-
arch = x86_64-
|
108
|
+
arch = x86_64-darwin20
|
109
109
|
sitearch = $(arch)
|
110
|
-
ruby_version =
|
110
|
+
ruby_version = 3.0.0
|
111
111
|
ruby = $(bindir)/$(RUBY_BASE_NAME)
|
112
112
|
RUBY = $(ruby)
|
113
113
|
ruby_headers = $(hdrdir)/ruby.h $(hdrdir)/ruby/backward.h $(hdrdir)/ruby/ruby.h $(hdrdir)/ruby/defines.h $(hdrdir)/ruby/missing.h $(hdrdir)/ruby/intern.h $(hdrdir)/ruby/st.h $(hdrdir)/ruby/subst.h $(arch_hdrdir)/ruby/config.h
|
114
114
|
|
115
115
|
RM = rm -f
|
116
116
|
RM_RF = $(RUBY) -run -e rm -- -rf
|
117
|
-
RMDIRS = rmdir
|
118
|
-
MAKEDIRS = /
|
117
|
+
RMDIRS = rmdir -p
|
118
|
+
MAKEDIRS = /opt/local/bin/gmkdir -p
|
119
119
|
INSTALL = /usr/bin/install -c
|
120
120
|
INSTALL_PROG = $(INSTALL) -m 0755
|
121
121
|
INSTALL_DATA = $(INSTALL) -m 644
|
@@ -125,8 +125,8 @@ TOUCH = exit >
|
|
125
125
|
#### End of system configuration section. ####
|
126
126
|
|
127
127
|
preload =
|
128
|
-
libpath = . $(libdir)
|
129
|
-
LIBPATH = -L. -L$(libdir) -
|
128
|
+
libpath = . $(libdir) /opt/local/lib
|
129
|
+
LIBPATH = -L. -L$(libdir) -L/opt/local/lib
|
130
130
|
DEFFILE =
|
131
131
|
|
132
132
|
CLEANFILES = mkmf.log
|
@@ -137,16 +137,16 @@ extout =
|
|
137
137
|
extout_prefix =
|
138
138
|
target_prefix = /trenni
|
139
139
|
LOCAL_LIBS =
|
140
|
-
LIBS =
|
140
|
+
LIBS =
|
141
141
|
ORIG_SRCS = escape.c markup.c query.c tag.c template.c trenni.c
|
142
142
|
SRCS = $(ORIG_SRCS)
|
143
143
|
OBJS = escape.o markup.o query.o tag.o template.o trenni.o
|
144
|
-
HDRS = $(srcdir)/
|
144
|
+
HDRS = $(srcdir)/escape.h $(srcdir)/markup.h $(srcdir)/query.h $(srcdir)/tag.h $(srcdir)/template.h $(srcdir)/trenni.h
|
145
145
|
LOCAL_HDRS =
|
146
146
|
TARGET = trenni
|
147
147
|
TARGET_NAME = trenni
|
148
148
|
TARGET_ENTRY = Init_$(TARGET_NAME)
|
149
|
-
DLLIB = $(TARGET).
|
149
|
+
DLLIB = $(TARGET).bundle
|
150
150
|
EXTSTATIC =
|
151
151
|
STATIC_LIB =
|
152
152
|
|
@@ -260,6 +260,7 @@ $(TARGET_SO): $(OBJS) Makefile
|
|
260
260
|
$(ECHO) linking shared-object trenni/$(DLLIB)
|
261
261
|
-$(Q)$(RM) $(@)
|
262
262
|
$(Q) $(LDSHARED) -o $@ $(OBJS) $(LIBPATH) $(DLDFLAGS) $(LOCAL_LIBS) $(LIBS)
|
263
|
+
$(Q) $(POSTLINK)
|
263
264
|
|
264
265
|
|
265
266
|
|
Binary file
|
Binary file
|
@@ -0,0 +1,109 @@
|
|
1
|
+
have_func: checking for rb_sym2str()... -------------------- yes
|
2
|
+
|
3
|
+
"clang -fdeclspec -o conftest -I/Users/samuel/.rubies/ruby-3.0.0/include/ruby-3.0.0/x86_64-darwin20 -I/Users/samuel/.rubies/ruby-3.0.0/include/ruby-3.0.0/ruby/backward -I/Users/samuel/.rubies/ruby-3.0.0/include/ruby-3.0.0 -I../../../../trenni -I/opt/local/include -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -D_DARWIN_UNLIMITED_SELECT -D_REENTRANT -O3 -ggdb3 -Wall -Wextra -Wdeprecated-declarations -Wdivision-by-zero -Wimplicit-function-declaration -Wimplicit-int -Wmisleading-indentation -Wpointer-arith -Wshorten-64-to-32 -Wwrite-strings -Wmissing-noreturn -Wno-constant-logical-operand -Wno-long-long -Wno-missing-field-initializers -Wno-overlength-strings -Wno-parentheses-equality -Wno-self-assign -Wno-tautological-compare -Wno-unused-parameter -Wno-unused-value -Wunused-variable -Wextra-tokens -pipe -O3 -std=c99 conftest.c -L. -L/Users/samuel/.rubies/ruby-3.0.0/lib -L/opt/local/lib -L. -fstack-protector-strong -L/opt/local/lib -lruby.3.0-static -framework Security -framework Foundation -lpthread -lgmp -ldl -lobjc "
|
4
|
+
checked program was:
|
5
|
+
/* begin */
|
6
|
+
1: #include "ruby.h"
|
7
|
+
2:
|
8
|
+
3: int main(int argc, char **argv)
|
9
|
+
4: {
|
10
|
+
5: return !!argv[argc];
|
11
|
+
6: }
|
12
|
+
/* end */
|
13
|
+
|
14
|
+
"clang -fdeclspec -o conftest -I/Users/samuel/.rubies/ruby-3.0.0/include/ruby-3.0.0/x86_64-darwin20 -I/Users/samuel/.rubies/ruby-3.0.0/include/ruby-3.0.0/ruby/backward -I/Users/samuel/.rubies/ruby-3.0.0/include/ruby-3.0.0 -I../../../../trenni -I/opt/local/include -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -D_DARWIN_UNLIMITED_SELECT -D_REENTRANT -O3 -ggdb3 -Wall -Wextra -Wdeprecated-declarations -Wdivision-by-zero -Wimplicit-function-declaration -Wimplicit-int -Wmisleading-indentation -Wpointer-arith -Wshorten-64-to-32 -Wwrite-strings -Wmissing-noreturn -Wno-constant-logical-operand -Wno-long-long -Wno-missing-field-initializers -Wno-overlength-strings -Wno-parentheses-equality -Wno-self-assign -Wno-tautological-compare -Wno-unused-parameter -Wno-unused-value -Wunused-variable -Wextra-tokens -pipe -O3 -std=c99 conftest.c -L. -L/Users/samuel/.rubies/ruby-3.0.0/lib -L/opt/local/lib -L. -fstack-protector-strong -L/opt/local/lib -lruby.3.0-static -framework Security -framework Foundation -lpthread -lgmp -ldl -lobjc "
|
15
|
+
checked program was:
|
16
|
+
/* begin */
|
17
|
+
1: #include "ruby.h"
|
18
|
+
2:
|
19
|
+
3: /*top*/
|
20
|
+
4: extern int t(void);
|
21
|
+
5: int main(int argc, char **argv)
|
22
|
+
6: {
|
23
|
+
7: if (argc > 1000000) {
|
24
|
+
8: int (* volatile tp)(void)=(int (*)(void))&t;
|
25
|
+
9: printf("%d", (*tp)());
|
26
|
+
10: }
|
27
|
+
11:
|
28
|
+
12: return !!argv[argc];
|
29
|
+
13: }
|
30
|
+
14: int t(void) { void ((*volatile p)()); p = (void ((*)()))rb_sym2str; return !p; }
|
31
|
+
/* end */
|
32
|
+
|
33
|
+
--------------------
|
34
|
+
|
35
|
+
have_func: checking for rb_str_cat_cstr()... -------------------- yes
|
36
|
+
|
37
|
+
"clang -fdeclspec -o conftest -I/Users/samuel/.rubies/ruby-3.0.0/include/ruby-3.0.0/x86_64-darwin20 -I/Users/samuel/.rubies/ruby-3.0.0/include/ruby-3.0.0/ruby/backward -I/Users/samuel/.rubies/ruby-3.0.0/include/ruby-3.0.0 -I../../../../trenni -I/opt/local/include -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -D_DARWIN_UNLIMITED_SELECT -D_REENTRANT -O3 -ggdb3 -Wall -Wextra -Wdeprecated-declarations -Wdivision-by-zero -Wimplicit-function-declaration -Wimplicit-int -Wmisleading-indentation -Wpointer-arith -Wshorten-64-to-32 -Wwrite-strings -Wmissing-noreturn -Wno-constant-logical-operand -Wno-long-long -Wno-missing-field-initializers -Wno-overlength-strings -Wno-parentheses-equality -Wno-self-assign -Wno-tautological-compare -Wno-unused-parameter -Wno-unused-value -Wunused-variable -Wextra-tokens -pipe -O3 -std=c99 conftest.c -L. -L/Users/samuel/.rubies/ruby-3.0.0/lib -L/opt/local/lib -L. -fstack-protector-strong -L/opt/local/lib -lruby.3.0-static -framework Security -framework Foundation -lpthread -lgmp -ldl -lobjc "
|
38
|
+
checked program was:
|
39
|
+
/* begin */
|
40
|
+
1: #include "ruby.h"
|
41
|
+
2:
|
42
|
+
3: /*top*/
|
43
|
+
4: extern int t(void);
|
44
|
+
5: int main(int argc, char **argv)
|
45
|
+
6: {
|
46
|
+
7: if (argc > 1000000) {
|
47
|
+
8: int (* volatile tp)(void)=(int (*)(void))&t;
|
48
|
+
9: printf("%d", (*tp)());
|
49
|
+
10: }
|
50
|
+
11:
|
51
|
+
12: return !!argv[argc];
|
52
|
+
13: }
|
53
|
+
14: int t(void) { void ((*volatile p)()); p = (void ((*)()))rb_str_cat_cstr; return !p; }
|
54
|
+
/* end */
|
55
|
+
|
56
|
+
--------------------
|
57
|
+
|
58
|
+
have_func: checking for rb_str_reserve()... -------------------- no
|
59
|
+
|
60
|
+
"clang -fdeclspec -o conftest -I/Users/samuel/.rubies/ruby-3.0.0/include/ruby-3.0.0/x86_64-darwin20 -I/Users/samuel/.rubies/ruby-3.0.0/include/ruby-3.0.0/ruby/backward -I/Users/samuel/.rubies/ruby-3.0.0/include/ruby-3.0.0 -I../../../../trenni -I/opt/local/include -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -D_DARWIN_UNLIMITED_SELECT -D_REENTRANT -O3 -ggdb3 -Wall -Wextra -Wdeprecated-declarations -Wdivision-by-zero -Wimplicit-function-declaration -Wimplicit-int -Wmisleading-indentation -Wpointer-arith -Wshorten-64-to-32 -Wwrite-strings -Wmissing-noreturn -Wno-constant-logical-operand -Wno-long-long -Wno-missing-field-initializers -Wno-overlength-strings -Wno-parentheses-equality -Wno-self-assign -Wno-tautological-compare -Wno-unused-parameter -Wno-unused-value -Wunused-variable -Wextra-tokens -pipe -O3 -std=c99 conftest.c -L. -L/Users/samuel/.rubies/ruby-3.0.0/lib -L/opt/local/lib -L. -fstack-protector-strong -L/opt/local/lib -lruby.3.0-static -framework Security -framework Foundation -lpthread -lgmp -ldl -lobjc "
|
61
|
+
conftest.c:14:57: error: use of undeclared identifier 'rb_str_reserve'
|
62
|
+
int t(void) { void ((*volatile p)()); p = (void ((*)()))rb_str_reserve; return !p; }
|
63
|
+
^
|
64
|
+
1 error generated.
|
65
|
+
checked program was:
|
66
|
+
/* begin */
|
67
|
+
1: #include "ruby.h"
|
68
|
+
2:
|
69
|
+
3: /*top*/
|
70
|
+
4: extern int t(void);
|
71
|
+
5: int main(int argc, char **argv)
|
72
|
+
6: {
|
73
|
+
7: if (argc > 1000000) {
|
74
|
+
8: int (* volatile tp)(void)=(int (*)(void))&t;
|
75
|
+
9: printf("%d", (*tp)());
|
76
|
+
10: }
|
77
|
+
11:
|
78
|
+
12: return !!argv[argc];
|
79
|
+
13: }
|
80
|
+
14: int t(void) { void ((*volatile p)()); p = (void ((*)()))rb_str_reserve; return !p; }
|
81
|
+
/* end */
|
82
|
+
|
83
|
+
"clang -fdeclspec -o conftest -I/Users/samuel/.rubies/ruby-3.0.0/include/ruby-3.0.0/x86_64-darwin20 -I/Users/samuel/.rubies/ruby-3.0.0/include/ruby-3.0.0/ruby/backward -I/Users/samuel/.rubies/ruby-3.0.0/include/ruby-3.0.0 -I../../../../trenni -I/opt/local/include -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -D_DARWIN_UNLIMITED_SELECT -D_REENTRANT -O3 -ggdb3 -Wall -Wextra -Wdeprecated-declarations -Wdivision-by-zero -Wimplicit-function-declaration -Wimplicit-int -Wmisleading-indentation -Wpointer-arith -Wshorten-64-to-32 -Wwrite-strings -Wmissing-noreturn -Wno-constant-logical-operand -Wno-long-long -Wno-missing-field-initializers -Wno-overlength-strings -Wno-parentheses-equality -Wno-self-assign -Wno-tautological-compare -Wno-unused-parameter -Wno-unused-value -Wunused-variable -Wextra-tokens -pipe -O3 -std=c99 conftest.c -L. -L/Users/samuel/.rubies/ruby-3.0.0/lib -L/opt/local/lib -L. -fstack-protector-strong -L/opt/local/lib -lruby.3.0-static -framework Security -framework Foundation -lpthread -lgmp -ldl -lobjc "
|
84
|
+
Undefined symbols for architecture x86_64:
|
85
|
+
"_rb_str_reserve", referenced from:
|
86
|
+
_t in conftest-cf43c1.o
|
87
|
+
ld: symbol(s) not found for architecture x86_64
|
88
|
+
clang: error: linker command failed with exit code 1 (use -v to see invocation)
|
89
|
+
checked program was:
|
90
|
+
/* begin */
|
91
|
+
1: #include "ruby.h"
|
92
|
+
2:
|
93
|
+
3: /*top*/
|
94
|
+
4: extern int t(void);
|
95
|
+
5: int main(int argc, char **argv)
|
96
|
+
6: {
|
97
|
+
7: if (argc > 1000000) {
|
98
|
+
8: int (* volatile tp)(void)=(int (*)(void))&t;
|
99
|
+
9: printf("%d", (*tp)());
|
100
|
+
10: }
|
101
|
+
11:
|
102
|
+
12: return !!argv[argc];
|
103
|
+
13: }
|
104
|
+
14: extern void rb_str_reserve();
|
105
|
+
15: int t(void) { rb_str_reserve(); return 0; }
|
106
|
+
/* end */
|
107
|
+
|
108
|
+
--------------------
|
109
|
+
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
data/ext/trenni/escape.c
CHANGED
@@ -137,6 +137,8 @@ VALUE Trenni_Markup_escape_string(VALUE self, VALUE string) {
|
|
137
137
|
|
138
138
|
void Init_trenni_escape() {
|
139
139
|
rb_Trenni_MarkupString = rb_define_class_under(rb_Trenni, "MarkupString", rb_cString);
|
140
|
+
rb_gc_register_mark_object(rb_Trenni_MarkupString);
|
141
|
+
|
140
142
|
rb_include_module(rb_Trenni_MarkupString, rb_Trenni_Markup);
|
141
143
|
|
142
144
|
rb_undef_method(rb_class_of(rb_Trenni_Markup), "escape_string");
|
data/ext/trenni/extconf.rb
CHANGED
File without changes
|
data/ext/trenni/trenni.c
CHANGED
@@ -48,18 +48,25 @@ void Init_trenni() {
|
|
48
48
|
id_is_a = rb_intern("is_a?");
|
49
49
|
|
50
50
|
rb_Trenni = rb_define_module("Trenni");
|
51
|
+
rb_gc_register_mark_object(rb_Trenni);
|
52
|
+
|
51
53
|
rb_Trenni_Markup = rb_define_module_under(rb_Trenni, "Markup");
|
54
|
+
rb_gc_register_mark_object(rb_Trenni_Markup);
|
55
|
+
|
52
56
|
rb_Trenni_Native = rb_define_module_under(rb_Trenni, "Native");
|
57
|
+
rb_gc_register_mark_object(rb_Trenni_Native);
|
53
58
|
|
54
59
|
Init_trenni_escape();
|
55
60
|
|
56
61
|
rb_Trenni_ParseError = rb_const_get_at(rb_Trenni, rb_intern("ParseError"));
|
62
|
+
rb_gc_register_mark_object(rb_Trenni_ParseError);
|
57
63
|
|
58
64
|
rb_define_module_function(rb_Trenni_Native, "parse_markup", Trenni_Native_parse_markup, 3);
|
59
65
|
rb_define_module_function(rb_Trenni_Native, "parse_template", Trenni_Native_parse_template, 2);
|
60
66
|
rb_define_module_function(rb_Trenni_Native, "parse_query", Trenni_Native_parse_query, 2);
|
61
67
|
|
62
68
|
rb_Trenni_Tag = rb_const_get_at(rb_Trenni, rb_intern("Tag"));
|
69
|
+
rb_gc_register_mark_object(rb_Trenni_Tag);
|
63
70
|
|
64
71
|
Init_trenni_tag();
|
65
72
|
}
|
data/lib/.DS_Store
ADDED
Binary file
|
Binary file
|
data/lib/trenni/native.rb
CHANGED
data/lib/trenni/version.rb
CHANGED
data/parsers/.DS_Store
ADDED
Binary file
|
data/spec/.DS_Store
ADDED
Binary file
|
Binary file
|
metadata
CHANGED
@@ -1,57 +1,15 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: trenni
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.13.
|
4
|
+
version: 3.13.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Samuel Williams
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2021-10-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
|
-
- !ruby/object:Gem::Dependency
|
14
|
-
name: rake-compiler
|
15
|
-
requirement: !ruby/object:Gem::Requirement
|
16
|
-
requirements:
|
17
|
-
- - ">="
|
18
|
-
- !ruby/object:Gem::Version
|
19
|
-
version: '0'
|
20
|
-
type: :runtime
|
21
|
-
prerelease: false
|
22
|
-
version_requirements: !ruby/object:Gem::Requirement
|
23
|
-
requirements:
|
24
|
-
- - ">="
|
25
|
-
- !ruby/object:Gem::Version
|
26
|
-
version: '0'
|
27
|
-
- !ruby/object:Gem::Dependency
|
28
|
-
name: bake-bundler
|
29
|
-
requirement: !ruby/object:Gem::Requirement
|
30
|
-
requirements:
|
31
|
-
- - ">="
|
32
|
-
- !ruby/object:Gem::Version
|
33
|
-
version: '0'
|
34
|
-
type: :development
|
35
|
-
prerelease: false
|
36
|
-
version_requirements: !ruby/object:Gem::Requirement
|
37
|
-
requirements:
|
38
|
-
- - ">="
|
39
|
-
- !ruby/object:Gem::Version
|
40
|
-
version: '0'
|
41
|
-
- !ruby/object:Gem::Dependency
|
42
|
-
name: bake-modernize
|
43
|
-
requirement: !ruby/object:Gem::Requirement
|
44
|
-
requirements:
|
45
|
-
- - ">="
|
46
|
-
- !ruby/object:Gem::Version
|
47
|
-
version: '0'
|
48
|
-
type: :development
|
49
|
-
prerelease: false
|
50
|
-
version_requirements: !ruby/object:Gem::Requirement
|
51
|
-
requirements:
|
52
|
-
- - ">="
|
53
|
-
- !ruby/object:Gem::Version
|
54
|
-
version: '0'
|
55
13
|
- !ruby/object:Gem::Dependency
|
56
14
|
name: bundler
|
57
15
|
requirement: !ruby/object:Gem::Requirement
|
@@ -98,39 +56,60 @@ description:
|
|
98
56
|
email:
|
99
57
|
executables: []
|
100
58
|
extensions:
|
101
|
-
- ext/
|
59
|
+
- ext/trenni/extconf.rb
|
102
60
|
extra_rdoc_files: []
|
103
61
|
files:
|
104
62
|
- bake/trenni/entities.rb
|
105
63
|
- bake/trenni/parsers.rb
|
106
|
-
- ext
|
107
|
-
- ext/tmp
|
108
|
-
- ext/tmp/x86_64-
|
109
|
-
- ext/tmp/x86_64-
|
110
|
-
- ext/tmp/x86_64-
|
111
|
-
- ext/tmp/x86_64-
|
112
|
-
- ext/tmp/x86_64-
|
113
|
-
- ext/tmp/x86_64-
|
114
|
-
- ext/tmp/x86_64-
|
115
|
-
- ext/tmp/x86_64-
|
116
|
-
- ext/tmp/x86_64-
|
117
|
-
- ext/tmp/x86_64-
|
118
|
-
- ext/tmp/x86_64-
|
119
|
-
- ext/tmp/x86_64-
|
120
|
-
- ext/tmp/x86_64-
|
121
|
-
- ext/tmp/x86_64-
|
122
|
-
- ext/tmp/x86_64-
|
123
|
-
- ext/tmp/x86_64-
|
124
|
-
- ext/tmp/x86_64-
|
125
|
-
- ext/tmp/x86_64-
|
126
|
-
- ext/tmp/x86_64-
|
127
|
-
- ext/tmp/x86_64-
|
128
|
-
- ext/tmp/x86_64-
|
129
|
-
- ext/tmp/x86_64-
|
130
|
-
- ext/tmp/x86_64-
|
131
|
-
- ext/tmp/x86_64-
|
132
|
-
- ext/tmp/x86_64-
|
133
|
-
- ext/tmp/x86_64-
|
64
|
+
- ext/.DS_Store
|
65
|
+
- ext/tmp/.DS_Store
|
66
|
+
- ext/tmp/x86_64-darwin16/lib/trenni/trenni.bundle
|
67
|
+
- ext/tmp/x86_64-darwin16/trenni/2.4.0/Makefile
|
68
|
+
- ext/tmp/x86_64-darwin16/trenni/2.4.0/escape.o
|
69
|
+
- ext/tmp/x86_64-darwin16/trenni/2.4.0/markup.o
|
70
|
+
- ext/tmp/x86_64-darwin16/trenni/2.4.0/mkmf.log
|
71
|
+
- ext/tmp/x86_64-darwin16/trenni/2.4.0/tag.o
|
72
|
+
- ext/tmp/x86_64-darwin16/trenni/2.4.0/template.o
|
73
|
+
- ext/tmp/x86_64-darwin16/trenni/2.4.0/trenni.bundle
|
74
|
+
- ext/tmp/x86_64-darwin16/trenni/2.4.0/trenni.o
|
75
|
+
- ext/tmp/x86_64-darwin18/lib/trenni/trenni.bundle
|
76
|
+
- ext/tmp/x86_64-darwin18/trenni/2.6.1/Makefile
|
77
|
+
- ext/tmp/x86_64-darwin18/trenni/2.6.1/escape.o
|
78
|
+
- ext/tmp/x86_64-darwin18/trenni/2.6.1/markup.o
|
79
|
+
- ext/tmp/x86_64-darwin18/trenni/2.6.1/mkmf.log
|
80
|
+
- ext/tmp/x86_64-darwin18/trenni/2.6.1/tag.o
|
81
|
+
- ext/tmp/x86_64-darwin18/trenni/2.6.1/template.o
|
82
|
+
- ext/tmp/x86_64-darwin18/trenni/2.6.1/trenni.bundle
|
83
|
+
- ext/tmp/x86_64-darwin18/trenni/2.6.1/trenni.o
|
84
|
+
- ext/tmp/x86_64-darwin18/trenni/2.6.2/Makefile
|
85
|
+
- ext/tmp/x86_64-darwin18/trenni/2.6.2/escape.o
|
86
|
+
- ext/tmp/x86_64-darwin18/trenni/2.6.2/markup.o
|
87
|
+
- ext/tmp/x86_64-darwin18/trenni/2.6.2/mkmf.log
|
88
|
+
- ext/tmp/x86_64-darwin18/trenni/2.6.2/tag.o
|
89
|
+
- ext/tmp/x86_64-darwin18/trenni/2.6.2/template.o
|
90
|
+
- ext/tmp/x86_64-darwin18/trenni/2.6.2/trenni.bundle
|
91
|
+
- ext/tmp/x86_64-darwin18/trenni/2.6.2/trenni.o
|
92
|
+
- ext/tmp/x86_64-darwin19/lib/trenni/trenni.bundle
|
93
|
+
- ext/tmp/x86_64-darwin19/trenni/2.7.1/Makefile
|
94
|
+
- ext/tmp/x86_64-darwin19/trenni/2.7.1/escape.o
|
95
|
+
- ext/tmp/x86_64-darwin19/trenni/2.7.1/markup.o
|
96
|
+
- ext/tmp/x86_64-darwin19/trenni/2.7.1/mkmf.log
|
97
|
+
- ext/tmp/x86_64-darwin19/trenni/2.7.1/query.o
|
98
|
+
- ext/tmp/x86_64-darwin19/trenni/2.7.1/tag.o
|
99
|
+
- ext/tmp/x86_64-darwin19/trenni/2.7.1/template.o
|
100
|
+
- ext/tmp/x86_64-darwin19/trenni/2.7.1/trenni.bundle
|
101
|
+
- ext/tmp/x86_64-darwin19/trenni/2.7.1/trenni.o
|
102
|
+
- ext/tmp/x86_64-darwin20/lib/trenni/trenni.bundle
|
103
|
+
- ext/tmp/x86_64-darwin20/trenni/3.0.0/Makefile
|
104
|
+
- ext/tmp/x86_64-darwin20/trenni/3.0.0/escape.o
|
105
|
+
- ext/tmp/x86_64-darwin20/trenni/3.0.0/markup.o
|
106
|
+
- ext/tmp/x86_64-darwin20/trenni/3.0.0/mkmf.log
|
107
|
+
- ext/tmp/x86_64-darwin20/trenni/3.0.0/query.o
|
108
|
+
- ext/tmp/x86_64-darwin20/trenni/3.0.0/tag.o
|
109
|
+
- ext/tmp/x86_64-darwin20/trenni/3.0.0/template.o
|
110
|
+
- ext/tmp/x86_64-darwin20/trenni/3.0.0/trenni.bundle
|
111
|
+
- ext/tmp/x86_64-darwin20/trenni/3.0.0/trenni.o
|
112
|
+
- ext/trenni/.DS_Store
|
134
113
|
- ext/trenni/escape.c
|
135
114
|
- ext/trenni/escape.h
|
136
115
|
- ext/trenni/extconf.rb
|
@@ -147,7 +126,9 @@ files:
|
|
147
126
|
- ext/trenni/template.rl
|
148
127
|
- ext/trenni/trenni.c
|
149
128
|
- ext/trenni/trenni.h
|
129
|
+
- lib/.DS_Store
|
150
130
|
- lib/trenni.rb
|
131
|
+
- lib/trenni/.DS_Store
|
151
132
|
- lib/trenni/buffer.rb
|
152
133
|
- lib/trenni/builder.rb
|
153
134
|
- lib/trenni/entities.rb
|
@@ -170,10 +151,12 @@ files:
|
|
170
151
|
- lib/trenni/template.rb
|
171
152
|
- lib/trenni/uri.rb
|
172
153
|
- lib/trenni/version.rb
|
154
|
+
- parsers/.DS_Store
|
173
155
|
- parsers/trenni/entities.rl
|
174
156
|
- parsers/trenni/markup.rl
|
175
157
|
- parsers/trenni/query.rl
|
176
158
|
- parsers/trenni/template.rl
|
159
|
+
- spec/.DS_Store
|
177
160
|
- spec/spec_helper.rb
|
178
161
|
- spec/trenni/builder_spec.rb
|
179
162
|
- spec/trenni/corpus/large.rb
|
@@ -189,6 +172,7 @@ files:
|
|
189
172
|
- spec/trenni/template_error_spec.rb
|
190
173
|
- spec/trenni/template_performance_spec.rb
|
191
174
|
- spec/trenni/template_spec.rb
|
175
|
+
- spec/trenni/template_spec/.DS_Store
|
192
176
|
- spec/trenni/template_spec/basic.trenni
|
193
177
|
- spec/trenni/template_spec/buffer.trenni
|
194
178
|
- spec/trenni/template_spec/builder.trenni
|
@@ -221,7 +205,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
221
205
|
- !ruby/object:Gem::Version
|
222
206
|
version: '0'
|
223
207
|
requirements: []
|
224
|
-
rubygems_version: 3.
|
208
|
+
rubygems_version: 3.2.22
|
225
209
|
signing_key:
|
226
210
|
specification_version: 4
|
227
211
|
summary: A fast native templating system that compiles directly to Ruby code.
|
data/ext/Rakefile
DELETED
@@ -1,19 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
spec_path = File.expand_path('../trenni.gemspec', Dir.pwd)
|
4
|
-
spec = Gem::Specification.load(spec_path)
|
5
|
-
|
6
|
-
require "rake/extensiontask"
|
7
|
-
|
8
|
-
unless RUBY_PLATFORM =~ /java/
|
9
|
-
Rake::ExtensionTask.new("trenni") do |ext|
|
10
|
-
ext.ext_dir = 'trenni'
|
11
|
-
ext.lib_dir = '../lib/trenni'
|
12
|
-
end
|
13
|
-
else
|
14
|
-
task :compile do
|
15
|
-
puts "Nothing to compile for this platform."
|
16
|
-
end
|
17
|
-
end
|
18
|
-
|
19
|
-
task :default => :compile
|
Binary file
|
Binary file
|
Binary file
|