@@ -100,6 +100,8 @@ pure @safe:
100
100
101
101
static void error ( string msg = " Invalid symbol" ) @trusted /* exception only used in module */
102
102
{
103
+ pragma (inline, false ); // tame dmd inliner
104
+
103
105
// throw new ParseException( msg );
104
106
debug (info) printf( " error: %.*s\n " , cast (int ) msg.length, msg.ptr );
105
107
throw __ctfe ? new ParseException(msg)
@@ -110,6 +112,8 @@ pure @safe:
110
112
111
113
static void overflow ( string msg = " Buffer overflow" ) @trusted /* exception only used in module */
112
114
{
115
+ pragma (inline, false ); // tame dmd inliner
116
+
113
117
// throw new OverflowException( msg );
114
118
debug (info) printf( " overflow: %.*s\n " , cast (int ) msg.length, msg.ptr );
115
119
throw cast (OverflowException) cast (void * ) typeid (OverflowException).initializer;
@@ -176,6 +180,8 @@ pure @safe:
176
180
// move val to the end of the dst buffer
177
181
char [] shift ( const (char )[] val )
178
182
{
183
+ pragma (inline, false ); // tame dmd inliner
184
+
179
185
if ( val.length && ! mute )
180
186
{
181
187
assert ( contains( dst[0 .. len], val ) );
@@ -196,6 +202,8 @@ pure @safe:
196
202
// remove val from dst buffer
197
203
void remove ( const (char )[] val )
198
204
{
205
+ pragma (inline, false ); // tame dmd inliner
206
+
199
207
if ( val.length )
200
208
{
201
209
assert ( contains( dst[0 .. len], val ) );
@@ -210,6 +218,8 @@ pure @safe:
210
218
211
219
char [] append ( const (char )[] val )
212
220
{
221
+ pragma (inline, false ); // tame dmd inliner
222
+
213
223
if ( val.length && ! mute )
214
224
{
215
225
if ( ! dst.length )
@@ -252,6 +262,8 @@ pure @safe:
252
262
253
263
char [] put ( const (char )[] val )
254
264
{
265
+ pragma (inline, false ); // tame dmd inliner
266
+
255
267
if ( val.length )
256
268
{
257
269
if ( ! contains( dst[0 .. len], val ) )
0 commit comments