diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-07-24 09:54:23 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-07-24 09:54:44 +0000 |
commit | 836b47cb7e99a977c5a23b059ca1d0b5065d310e (patch) | |
tree | 1604da8f482d02effa033c94a84be42bc0c848c3 /web/server/h2o/libh2o/misc/picotemplate-conf.pl | |
parent | Releasing debian version 1.44.3-2. (diff) | |
download | netdata-836b47cb7e99a977c5a23b059ca1d0b5065d310e.tar.xz netdata-836b47cb7e99a977c5a23b059ca1d0b5065d310e.zip |
Merging upstream version 1.46.3.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'web/server/h2o/libh2o/misc/picotemplate-conf.pl')
-rw-r--r-- | web/server/h2o/libh2o/misc/picotemplate-conf.pl | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/web/server/h2o/libh2o/misc/picotemplate-conf.pl b/web/server/h2o/libh2o/misc/picotemplate-conf.pl deleted file mode 100644 index 95eaa7a87..000000000 --- a/web/server/h2o/libh2o/misc/picotemplate-conf.pl +++ /dev/null @@ -1,21 +0,0 @@ -use strict; -use warnings; - -$main::push_expr = sub { - my $src = shift; - return qq{{ h2o_iovec_t _s = ($src); if (_s.len != 0 && _s.base[_s.len - 1] == '\\n') --_s.len; h2o_buffer_reserve(&_, _s.len); memcpy(_->bytes + _->size, _s.base, _s.len); _->size += _s.len; }}; -}; - -$main::push_void_expr = sub { - my $src = shift; - return qq{{ size_t _l = _->size; { $src }; if (_->size != 0 && _l != _->size && _->bytes[_->size - 1] == '\\n') --_->size; }}; -}; - -$main::push_str = sub { - my $str = shift; - $str =~ s/([\\'"])/\\$1/gs; - $str =~ s/\n/\\n/gs; - return $main::push_expr->(qq{h2o_iovec_init(H2O_STRLIT("$str"))}); -}; - -1; |