trenni 3.10.0 → 3.11.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (68) hide show
  1. checksums.yaml +4 -4
  2. data/bake/trenni/entities.rb +57 -0
  3. data/bake/trenni/parsers.rb +66 -0
  4. data/ext/.DS_Store +0 -0
  5. data/ext/tmp/.DS_Store +0 -0
  6. data/ext/tmp/x86_64-darwin16/lib/trenni/trenni.bundle +0 -0
  7. data/ext/tmp/x86_64-darwin16/trenni/2.4.0/Makefile +264 -0
  8. data/ext/tmp/x86_64-darwin16/trenni/2.4.0/escape.o +0 -0
  9. data/ext/tmp/x86_64-darwin16/trenni/2.4.0/markup.o +0 -0
  10. data/ext/tmp/x86_64-darwin16/trenni/2.4.0/mkmf.log +105 -0
  11. data/ext/tmp/x86_64-darwin16/trenni/2.4.0/tag.o +0 -0
  12. data/ext/tmp/x86_64-darwin16/trenni/2.4.0/template.o +0 -0
  13. data/ext/tmp/x86_64-darwin16/trenni/2.4.0/trenni.bundle +0 -0
  14. data/ext/tmp/x86_64-darwin16/trenni/2.4.0/trenni.o +0 -0
  15. data/ext/tmp/x86_64-darwin18/lib/trenni/trenni.bundle +0 -0
  16. data/ext/tmp/x86_64-darwin18/trenni/2.6.1/Makefile +266 -0
  17. data/ext/tmp/x86_64-darwin18/trenni/2.6.1/escape.o +0 -0
  18. data/ext/tmp/x86_64-darwin18/trenni/2.6.1/markup.o +0 -0
  19. data/ext/tmp/x86_64-darwin18/trenni/2.6.1/mkmf.log +109 -0
  20. data/ext/tmp/x86_64-darwin18/trenni/2.6.1/tag.o +0 -0
  21. data/ext/tmp/x86_64-darwin18/trenni/2.6.1/template.o +0 -0
  22. data/ext/tmp/x86_64-darwin18/trenni/2.6.1/trenni.bundle +0 -0
  23. data/ext/tmp/x86_64-darwin18/trenni/2.6.1/trenni.o +0 -0
  24. data/ext/tmp/x86_64-darwin18/trenni/2.6.2/Makefile +266 -0
  25. data/ext/tmp/x86_64-darwin18/trenni/2.6.2/escape.o +0 -0
  26. data/ext/tmp/x86_64-darwin18/trenni/2.6.2/markup.o +0 -0
  27. data/ext/tmp/x86_64-darwin18/trenni/2.6.2/mkmf.log +109 -0
  28. data/ext/tmp/x86_64-darwin18/trenni/2.6.2/tag.o +0 -0
  29. data/ext/tmp/x86_64-darwin18/trenni/2.6.2/template.o +0 -0
  30. data/ext/tmp/x86_64-darwin18/trenni/2.6.2/trenni.bundle +0 -0
  31. data/ext/tmp/x86_64-darwin18/trenni/2.6.2/trenni.o +0 -0
  32. data/ext/tmp/x86_64-darwin19/lib/trenni/trenni.bundle +0 -0
  33. data/ext/tmp/x86_64-darwin19/trenni/2.7.1/Makefile +267 -0
  34. data/ext/tmp/x86_64-darwin19/trenni/2.7.1/escape.o +0 -0
  35. data/ext/tmp/x86_64-darwin19/trenni/2.7.1/markup.o +0 -0
  36. data/ext/tmp/x86_64-darwin19/trenni/2.7.1/mkmf.log +109 -0
  37. data/ext/tmp/x86_64-darwin19/trenni/2.7.1/query.o +0 -0
  38. data/ext/tmp/x86_64-darwin19/trenni/2.7.1/tag.o +0 -0
  39. data/ext/tmp/x86_64-darwin19/trenni/2.7.1/template.o +0 -0
  40. data/ext/tmp/x86_64-darwin19/trenni/2.7.1/trenni.bundle +0 -0
  41. data/ext/tmp/x86_64-darwin19/trenni/2.7.1/trenni.o +0 -0
  42. data/ext/trenni/.DS_Store +0 -0
  43. data/lib/.DS_Store +0 -0
  44. data/lib/trenni/.DS_Store +0 -0
  45. data/lib/trenni/builder.rb +14 -4
  46. data/lib/trenni/entities.rb +2082 -2084
  47. data/lib/trenni/entities.trenni +1 -3
  48. data/lib/trenni/template.rb +19 -9
  49. data/lib/trenni/version.rb +1 -1
  50. data/parsers/.DS_Store +0 -0
  51. data/spec/.DS_Store +0 -0
  52. data/spec/trenni/builder_spec.rb +1 -1
  53. data/spec/trenni/template_spec/.DS_Store +0 -0
  54. metadata +73 -58
  55. data/.editorconfig +0 -6
  56. data/.gitignore +0 -19
  57. data/.rspec +0 -5
  58. data/.travis.yml +0 -23
  59. data/Gemfile +0 -21
  60. data/README.md +0 -312
  61. data/Rakefile +0 -21
  62. data/benchmark/call_vs_yield.rb +0 -52
  63. data/benchmark/interpolation_vs_concat.rb +0 -30
  64. data/benchmark/io_vs_string.rb +0 -91
  65. data/entities.json +0 -2233
  66. data/tasks/entities.rake +0 -34
  67. data/tasks/parsers.rake +0 -44
  68. data/trenni.gemspec +0 -38
@@ -0,0 +1,109 @@
1
+ have_func: checking for rb_sym2str()... -------------------- yes
2
+
3
+ " gcc -o conftest -I/Users/samuel/.rvm/rubies/ruby-2.6.2/include/ruby-2.6.0/x86_64-darwin18 -I/Users/samuel/.rvm/rubies/ruby-2.6.2/include/ruby-2.6.0/ruby/backward -I/Users/samuel/.rvm/rubies/ruby-2.6.2/include/ruby-2.6.0 -I../../../../trenni -I/opt/local/include -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -D_DARWIN_UNLIMITED_SELECT -D_REENTRANT -O3 -ggdb3 -Wall -Wextra -Wdeclaration-after-statement -Wdeprecated-declarations -Wdivision-by-zero -Wimplicit-function-declaration -Wimplicit-int -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 -fno-common -pipe -O3 -std=c99 conftest.c -L. -L/Users/samuel/.rvm/rubies/ruby-2.6.2/lib -L/opt/local/lib -L. -fstack-protector-strong -L/usr/local/lib -L/opt/local/lib -lruby.2.6 "
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 0;
11
+ 6: }
12
+ /* end */
13
+
14
+ " gcc -o conftest -I/Users/samuel/.rvm/rubies/ruby-2.6.2/include/ruby-2.6.0/x86_64-darwin18 -I/Users/samuel/.rvm/rubies/ruby-2.6.2/include/ruby-2.6.0/ruby/backward -I/Users/samuel/.rvm/rubies/ruby-2.6.2/include/ruby-2.6.0 -I../../../../trenni -I/opt/local/include -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -D_DARWIN_UNLIMITED_SELECT -D_REENTRANT -O3 -ggdb3 -Wall -Wextra -Wdeclaration-after-statement -Wdeprecated-declarations -Wdivision-by-zero -Wimplicit-function-declaration -Wimplicit-int -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 -fno-common -pipe -O3 -std=c99 conftest.c -L. -L/Users/samuel/.rvm/rubies/ruby-2.6.2/lib -L/opt/local/lib -L. -fstack-protector-strong -L/usr/local/lib -L/opt/local/lib -lruby.2.6 "
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 0;
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
+ " gcc -o conftest -I/Users/samuel/.rvm/rubies/ruby-2.6.2/include/ruby-2.6.0/x86_64-darwin18 -I/Users/samuel/.rvm/rubies/ruby-2.6.2/include/ruby-2.6.0/ruby/backward -I/Users/samuel/.rvm/rubies/ruby-2.6.2/include/ruby-2.6.0 -I../../../../trenni -I/opt/local/include -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -D_DARWIN_UNLIMITED_SELECT -D_REENTRANT -O3 -ggdb3 -Wall -Wextra -Wdeclaration-after-statement -Wdeprecated-declarations -Wdivision-by-zero -Wimplicit-function-declaration -Wimplicit-int -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 -fno-common -pipe -O3 -std=c99 conftest.c -L. -L/Users/samuel/.rvm/rubies/ruby-2.6.2/lib -L/opt/local/lib -L. -fstack-protector-strong -L/usr/local/lib -L/opt/local/lib -lruby.2.6 "
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 0;
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
+ " gcc -o conftest -I/Users/samuel/.rvm/rubies/ruby-2.6.2/include/ruby-2.6.0/x86_64-darwin18 -I/Users/samuel/.rvm/rubies/ruby-2.6.2/include/ruby-2.6.0/ruby/backward -I/Users/samuel/.rvm/rubies/ruby-2.6.2/include/ruby-2.6.0 -I../../../../trenni -I/opt/local/include -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -D_DARWIN_UNLIMITED_SELECT -D_REENTRANT -O3 -ggdb3 -Wall -Wextra -Wdeclaration-after-statement -Wdeprecated-declarations -Wdivision-by-zero -Wimplicit-function-declaration -Wimplicit-int -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 -fno-common -pipe -O3 -std=c99 conftest.c -L. -L/Users/samuel/.rvm/rubies/ruby-2.6.2/lib -L/opt/local/lib -L. -fstack-protector-strong -L/usr/local/lib -L/opt/local/lib -lruby.2.6 "
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 0;
79
+ 13: }
80
+ 14: int t(void) { void ((*volatile p)()); p = (void ((*)()))rb_str_reserve; return !p; }
81
+ /* end */
82
+
83
+ " gcc -o conftest -I/Users/samuel/.rvm/rubies/ruby-2.6.2/include/ruby-2.6.0/x86_64-darwin18 -I/Users/samuel/.rvm/rubies/ruby-2.6.2/include/ruby-2.6.0/ruby/backward -I/Users/samuel/.rvm/rubies/ruby-2.6.2/include/ruby-2.6.0 -I../../../../trenni -I/opt/local/include -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -D_DARWIN_UNLIMITED_SELECT -D_REENTRANT -O3 -ggdb3 -Wall -Wextra -Wdeclaration-after-statement -Wdeprecated-declarations -Wdivision-by-zero -Wimplicit-function-declaration -Wimplicit-int -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 -fno-common -pipe -O3 -std=c99 conftest.c -L. -L/Users/samuel/.rvm/rubies/ruby-2.6.2/lib -L/opt/local/lib -L. -fstack-protector-strong -L/usr/local/lib -L/opt/local/lib -lruby.2.6 "
84
+ Undefined symbols for architecture x86_64:
85
+ "_rb_str_reserve", referenced from:
86
+ _t in conftest-3d978f.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 0;
103
+ 13: }
104
+ 14: extern void rb_str_reserve();
105
+ 15: int t(void) { rb_str_reserve(); return 0; }
106
+ /* end */
107
+
108
+ --------------------
109
+
@@ -0,0 +1,267 @@
1
+
2
+ SHELL = /bin/sh
3
+
4
+ # V=0 quiet, V=1 verbose. other values don't work.
5
+ V = 0
6
+ Q1 = $(V:1=)
7
+ Q = $(Q1:0=@)
8
+ ECHO1 = $(V:1=@ :)
9
+ ECHO = $(ECHO1:0=@ echo)
10
+ NULLCMD = :
11
+
12
+ #### Start of system configuration section. ####
13
+
14
+ srcdir = ../../../../trenni
15
+ topdir = /Users/samuel/.rubies/ruby-2.7.1/include/ruby-2.7.0
16
+ hdrdir = $(topdir)
17
+ arch_hdrdir = /Users/samuel/.rubies/ruby-2.7.1/include/ruby-2.7.0/x86_64-darwin19
18
+ PATH_SEPARATOR = :
19
+ VPATH = $(srcdir):$(arch_hdrdir)/ruby:$(hdrdir)/ruby
20
+ prefix = $(DESTDIR)/Users/samuel/.rubies/ruby-2.7.1
21
+ rubysitearchprefix = $(rubylibprefix)/$(sitearch)
22
+ rubyarchprefix = $(rubylibprefix)/$(arch)
23
+ rubylibprefix = $(libdir)/$(RUBY_BASE_NAME)
24
+ exec_prefix = $(prefix)
25
+ vendorarchhdrdir = $(vendorhdrdir)/$(sitearch)
26
+ sitearchhdrdir = $(sitehdrdir)/$(sitearch)
27
+ rubyarchhdrdir = $(rubyhdrdir)/$(arch)
28
+ vendorhdrdir = $(rubyhdrdir)/vendor_ruby
29
+ sitehdrdir = $(rubyhdrdir)/site_ruby
30
+ rubyhdrdir = $(includedir)/$(RUBY_VERSION_NAME)
31
+ vendorarchdir = $(vendorlibdir)/$(sitearch)
32
+ vendorlibdir = $(vendordir)/$(ruby_version)
33
+ vendordir = $(rubylibprefix)/vendor_ruby
34
+ sitearchdir = $(sitelibdir)/$(sitearch)
35
+ sitelibdir = $(sitedir)/$(ruby_version)
36
+ sitedir = $(rubylibprefix)/site_ruby
37
+ rubyarchdir = $(rubylibdir)/$(arch)
38
+ rubylibdir = $(rubylibprefix)/$(ruby_version)
39
+ sitearchincludedir = $(includedir)/$(sitearch)
40
+ archincludedir = $(includedir)/$(arch)
41
+ sitearchlibdir = $(libdir)/$(sitearch)
42
+ archlibdir = $(libdir)/$(arch)
43
+ ridir = $(datarootdir)/$(RI_BASE_NAME)
44
+ mandir = $(datarootdir)/man
45
+ localedir = $(datarootdir)/locale
46
+ libdir = $(exec_prefix)/lib
47
+ psdir = $(docdir)
48
+ pdfdir = $(docdir)
49
+ dvidir = $(docdir)
50
+ htmldir = $(docdir)
51
+ infodir = $(datarootdir)/info
52
+ docdir = $(datarootdir)/doc/$(PACKAGE)
53
+ oldincludedir = $(SDKROOT)/usr/include
54
+ includedir = $(prefix)/include
55
+ runstatedir = $(localstatedir)/run
56
+ localstatedir = $(prefix)/var
57
+ sharedstatedir = $(prefix)/com
58
+ sysconfdir = $(prefix)/etc
59
+ datadir = $(datarootdir)
60
+ datarootdir = $(prefix)/share
61
+ libexecdir = $(exec_prefix)/libexec
62
+ sbindir = $(exec_prefix)/sbin
63
+ bindir = $(exec_prefix)/bin
64
+ archdir = $(rubyarchdir)
65
+
66
+
67
+ CC_WRAPPER =
68
+ CC = clang
69
+ CXX = clang++
70
+ LIBRUBY = $(LIBRUBY_A)
71
+ LIBRUBY_A = lib$(RUBY_SO_NAME)-static.a
72
+ LIBRUBYARG_SHARED =
73
+ LIBRUBYARG_STATIC = -l$(RUBY_SO_NAME)-static -framework Security -framework Foundation $(MAINLIBS)
74
+ empty =
75
+ OUTFLAG = -o $(empty)
76
+ COUTFLAG = -o $(empty)
77
+ CSRCFLAG = $(empty)
78
+
79
+ RUBY_EXTCONF_H =
80
+ cflags = $(optflags) $(debugflags) $(warnflags)
81
+ cxxflags =
82
+ optflags = -O3
83
+ debugflags = -ggdb3
84
+ warnflags = -Wall -Wextra -Wdeprecated-declarations -Wdivision-by-zero -Wimplicit-function-declaration -Wimplicit-int -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
+ cppflags =
86
+ CCDLFLAGS = -fno-common
87
+ CFLAGS = $(CCDLFLAGS) $(cflags) -pipe -O3 -std=c99 $(ARCH_FLAG)
88
+ INCFLAGS = -I. -I$(arch_hdrdir) -I$(hdrdir)/ruby/backward -I$(hdrdir) -I$(srcdir)
89
+ DEFS =
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) -g -O2 $(ARCH_FLAG)
92
+ ldflags = -L. -fstack-protector-strong -L/usr/local/lib -L/opt/local/lib
93
+ dldflags = -Wl,-undefined,dynamic_lookup -Wl,-multiply_defined,suppress -L/opt/local/lib
94
+ ARCH_FLAG =
95
+ DLDFLAGS = $(ldflags) $(dldflags) $(ARCH_FLAG)
96
+ LDSHARED = $(CC) -dynamic -bundle
97
+ LDSHAREDXX = $(CXX) -dynamic -bundle
98
+ AR = libtool -static
99
+ EXEEXT =
100
+
101
+ RUBY_INSTALL_NAME = $(RUBY_BASE_NAME)
102
+ RUBY_SO_NAME = ruby.2.7
103
+ RUBYW_INSTALL_NAME =
104
+ RUBY_VERSION_NAME = $(RUBY_BASE_NAME)-$(ruby_version)
105
+ RUBYW_BASE_NAME = rubyw
106
+ RUBY_BASE_NAME = ruby
107
+
108
+ arch = x86_64-darwin19
109
+ sitearch = $(arch)
110
+ ruby_version = 2.7.0
111
+ ruby = $(bindir)/$(RUBY_BASE_NAME)
112
+ RUBY = $(ruby)
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
+
115
+ RM = rm -f
116
+ RM_RF = $(RUBY) -run -e rm -- -rf
117
+ RMDIRS = rmdir -p
118
+ MAKEDIRS = /opt/local/bin/gmkdir -p
119
+ INSTALL = /opt/local/bin/ginstall -c
120
+ INSTALL_PROG = $(INSTALL) -m 0755
121
+ INSTALL_DATA = $(INSTALL) -m 644
122
+ COPY = cp
123
+ TOUCH = exit >
124
+
125
+ #### End of system configuration section. ####
126
+
127
+ preload =
128
+ libpath = . $(libdir) /opt/local/lib
129
+ LIBPATH = -L. -L$(libdir) -L/opt/local/lib
130
+ DEFFILE =
131
+
132
+ CLEANFILES = mkmf.log
133
+ DISTCLEANFILES =
134
+ DISTCLEANDIRS =
135
+
136
+ extout =
137
+ extout_prefix =
138
+ target_prefix = /trenni
139
+ LOCAL_LIBS =
140
+ LIBS =
141
+ ORIG_SRCS = escape.c markup.c query.c tag.c template.c trenni.c
142
+ SRCS = $(ORIG_SRCS)
143
+ OBJS = escape.o markup.o query.o tag.o template.o trenni.o
144
+ HDRS = $(srcdir)/tag.h $(srcdir)/query.h $(srcdir)/markup.h $(srcdir)/escape.h $(srcdir)/trenni.h $(srcdir)/template.h
145
+ LOCAL_HDRS =
146
+ TARGET = trenni
147
+ TARGET_NAME = trenni
148
+ TARGET_ENTRY = Init_$(TARGET_NAME)
149
+ DLLIB = $(TARGET).bundle
150
+ EXTSTATIC =
151
+ STATIC_LIB =
152
+
153
+ TIMESTAMP_DIR = .
154
+ BINDIR = $(bindir)
155
+ RUBYCOMMONDIR = $(sitedir)$(target_prefix)
156
+ RUBYLIBDIR = $(sitelibdir)$(target_prefix)
157
+ RUBYARCHDIR = $(sitearchdir)$(target_prefix)
158
+ HDRDIR = $(rubyhdrdir)/ruby$(target_prefix)
159
+ ARCHHDRDIR = $(rubyhdrdir)/$(arch)/ruby$(target_prefix)
160
+ TARGET_SO_DIR =
161
+ TARGET_SO = $(TARGET_SO_DIR)$(DLLIB)
162
+ CLEANLIBS = $(TARGET_SO)
163
+ CLEANOBJS = *.o *.bak
164
+
165
+ all: $(DLLIB)
166
+ static: $(STATIC_LIB)
167
+ .PHONY: all install static install-so install-rb
168
+ .PHONY: clean clean-so clean-static clean-rb
169
+
170
+ clean-static::
171
+ clean-rb-default::
172
+ clean-rb::
173
+ clean-so::
174
+ clean: clean-so clean-static clean-rb-default clean-rb
175
+ -$(Q)$(RM) $(CLEANLIBS) $(CLEANOBJS) $(CLEANFILES) .*.time
176
+
177
+ distclean-rb-default::
178
+ distclean-rb::
179
+ distclean-so::
180
+ distclean-static::
181
+ distclean: clean distclean-so distclean-static distclean-rb-default distclean-rb
182
+ -$(Q)$(RM) Makefile $(RUBY_EXTCONF_H) conftest.* mkmf.log
183
+ -$(Q)$(RM) core ruby$(EXEEXT) *~ $(DISTCLEANFILES)
184
+ -$(Q)$(RMDIRS) $(DISTCLEANDIRS) 2> /dev/null || true
185
+
186
+ realclean: distclean
187
+ install: install-so install-rb
188
+
189
+ install-so: $(DLLIB) $(TIMESTAMP_DIR)/.sitearchdir.-.trenni.time
190
+ $(INSTALL_PROG) $(DLLIB) $(RUBYARCHDIR)
191
+ clean-static::
192
+ -$(Q)$(RM) $(STATIC_LIB)
193
+ install-rb: pre-install-rb do-install-rb install-rb-default
194
+ install-rb-default: pre-install-rb-default do-install-rb-default
195
+ pre-install-rb: Makefile
196
+ pre-install-rb-default: Makefile
197
+ do-install-rb:
198
+ do-install-rb-default:
199
+ pre-install-rb-default:
200
+ @$(NULLCMD)
201
+ $(TIMESTAMP_DIR)/.sitearchdir.-.trenni.time:
202
+ $(Q) $(MAKEDIRS) $(@D) $(RUBYARCHDIR)
203
+ $(Q) $(TOUCH) $@
204
+
205
+ site-install: site-install-so site-install-rb
206
+ site-install-so: install-so
207
+ site-install-rb: install-rb
208
+
209
+ .SUFFIXES: .c .m .cc .mm .cxx .cpp .o .S
210
+
211
+ .cc.o:
212
+ $(ECHO) compiling $(<)
213
+ $(Q) $(CXX) $(INCFLAGS) $(CPPFLAGS) $(CXXFLAGS) $(COUTFLAG)$@ -c $(CSRCFLAG)$<
214
+
215
+ .cc.S:
216
+ $(ECHO) translating $(<)
217
+ $(Q) $(CXX) $(INCFLAGS) $(CPPFLAGS) $(CXXFLAGS) $(COUTFLAG)$@ -S $(CSRCFLAG)$<
218
+
219
+ .mm.o:
220
+ $(ECHO) compiling $(<)
221
+ $(Q) $(CXX) $(INCFLAGS) $(CPPFLAGS) $(CXXFLAGS) $(COUTFLAG)$@ -c $(CSRCFLAG)$<
222
+
223
+ .mm.S:
224
+ $(ECHO) translating $(<)
225
+ $(Q) $(CXX) $(INCFLAGS) $(CPPFLAGS) $(CXXFLAGS) $(COUTFLAG)$@ -S $(CSRCFLAG)$<
226
+
227
+ .cxx.o:
228
+ $(ECHO) compiling $(<)
229
+ $(Q) $(CXX) $(INCFLAGS) $(CPPFLAGS) $(CXXFLAGS) $(COUTFLAG)$@ -c $(CSRCFLAG)$<
230
+
231
+ .cxx.S:
232
+ $(ECHO) translating $(<)
233
+ $(Q) $(CXX) $(INCFLAGS) $(CPPFLAGS) $(CXXFLAGS) $(COUTFLAG)$@ -S $(CSRCFLAG)$<
234
+
235
+ .cpp.o:
236
+ $(ECHO) compiling $(<)
237
+ $(Q) $(CXX) $(INCFLAGS) $(CPPFLAGS) $(CXXFLAGS) $(COUTFLAG)$@ -c $(CSRCFLAG)$<
238
+
239
+ .cpp.S:
240
+ $(ECHO) translating $(<)
241
+ $(Q) $(CXX) $(INCFLAGS) $(CPPFLAGS) $(CXXFLAGS) $(COUTFLAG)$@ -S $(CSRCFLAG)$<
242
+
243
+ .c.o:
244
+ $(ECHO) compiling $(<)
245
+ $(Q) $(CC) $(INCFLAGS) $(CPPFLAGS) $(CFLAGS) $(COUTFLAG)$@ -c $(CSRCFLAG)$<
246
+
247
+ .c.S:
248
+ $(ECHO) translating $(<)
249
+ $(Q) $(CC) $(INCFLAGS) $(CPPFLAGS) $(CFLAGS) $(COUTFLAG)$@ -S $(CSRCFLAG)$<
250
+
251
+ .m.o:
252
+ $(ECHO) compiling $(<)
253
+ $(Q) $(CC) $(INCFLAGS) $(CPPFLAGS) $(CFLAGS) $(COUTFLAG)$@ -c $(CSRCFLAG)$<
254
+
255
+ .m.S:
256
+ $(ECHO) translating $(<)
257
+ $(Q) $(CC) $(INCFLAGS) $(CPPFLAGS) $(CFLAGS) $(COUTFLAG)$@ -S $(CSRCFLAG)$<
258
+
259
+ $(TARGET_SO): $(OBJS) Makefile
260
+ $(ECHO) linking shared-object trenni/$(DLLIB)
261
+ -$(Q)$(RM) $(@)
262
+ $(Q) $(LDSHARED) -o $@ $(OBJS) $(LIBPATH) $(DLDFLAGS) $(LOCAL_LIBS) $(LIBS)
263
+ $(Q) $(POSTLINK)
264
+
265
+
266
+
267
+ $(OBJS): $(HDRS) $(ruby_headers)
@@ -0,0 +1,109 @@
1
+ have_func: checking for rb_sym2str()... -------------------- yes
2
+
3
+ "clang -o conftest -I/Users/samuel/.rubies/ruby-2.7.1/include/ruby-2.7.0/x86_64-darwin19 -I/Users/samuel/.rubies/ruby-2.7.1/include/ruby-2.7.0/ruby/backward -I/Users/samuel/.rubies/ruby-2.7.1/include/ruby-2.7.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 -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-2.7.1/lib -L/opt/local/lib -L. -fstack-protector-strong -L/usr/local/lib -L/opt/local/lib -lruby.2.7-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 -o conftest -I/Users/samuel/.rubies/ruby-2.7.1/include/ruby-2.7.0/x86_64-darwin19 -I/Users/samuel/.rubies/ruby-2.7.1/include/ruby-2.7.0/ruby/backward -I/Users/samuel/.rubies/ruby-2.7.1/include/ruby-2.7.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 -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-2.7.1/lib -L/opt/local/lib -L. -fstack-protector-strong -L/usr/local/lib -L/opt/local/lib -lruby.2.7-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 -o conftest -I/Users/samuel/.rubies/ruby-2.7.1/include/ruby-2.7.0/x86_64-darwin19 -I/Users/samuel/.rubies/ruby-2.7.1/include/ruby-2.7.0/ruby/backward -I/Users/samuel/.rubies/ruby-2.7.1/include/ruby-2.7.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 -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-2.7.1/lib -L/opt/local/lib -L. -fstack-protector-strong -L/usr/local/lib -L/opt/local/lib -lruby.2.7-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 -o conftest -I/Users/samuel/.rubies/ruby-2.7.1/include/ruby-2.7.0/x86_64-darwin19 -I/Users/samuel/.rubies/ruby-2.7.1/include/ruby-2.7.0/ruby/backward -I/Users/samuel/.rubies/ruby-2.7.1/include/ruby-2.7.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 -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-2.7.1/lib -L/opt/local/lib -L. -fstack-protector-strong -L/usr/local/lib -L/opt/local/lib -lruby.2.7-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 -o conftest -I/Users/samuel/.rubies/ruby-2.7.1/include/ruby-2.7.0/x86_64-darwin19 -I/Users/samuel/.rubies/ruby-2.7.1/include/ruby-2.7.0/ruby/backward -I/Users/samuel/.rubies/ruby-2.7.1/include/ruby-2.7.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 -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-2.7.1/lib -L/opt/local/lib -L. -fstack-protector-strong -L/usr/local/lib -L/opt/local/lib -lruby.2.7-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-b80e49.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
+