Commit 7110feb8 authored by Daniel Salzman's avatar Daniel Salzman

scripts: remove trailing white spaces from Ragel parsers

parent 8f408bf0
......@@ -16,6 +16,9 @@ sed -i '/#line/d' $OUT_T0
sed -i '/static\ const\ int\ zone_scanner_en_/d' $OUT_T0
sed -i '/zone_scanner_first_final/d' $OUT_T0
# Remove trailing white spaces.
sed -i 's/\s*$//g' $OUT_T0
# Generate fast/huge zone parser.
ragel -G2 -s -o $OUT_G2 $IN
......@@ -24,6 +27,9 @@ sed -i '/#line/d' $OUT_G2
sed -i '/static\ const\ int\ zone_scanner_en_/d' $OUT_G2
sed -i '/zone_scanner_first_final/d' $OUT_G2
# Remove trailing white spaces.
sed -i 's/\s*$//g' $OUT_G2
popd
### YPARSER ###
......@@ -40,4 +46,7 @@ ragel -T0 -s -o $OUT_Y $IN_Y
sed -i '/#line/d' $OUT_Y
sed -i '/static\ const\ int\ yparser_/d' $OUT_Y
# Remove trailing white spaces.
sed -i 's/\s*$//g' $OUT_Y
popd
/* Copyright (C) 2015 CZ.NIC, z.s.p.o. <knot-dns@labs.nic.cz>
This program is free software: you can redistribute it and/or modify
......@@ -19,6 +20,9 @@
#include "libknot/yparser/yparser.h"
#include "libknot/libknot.h"
// Include parser static data (Ragel internals).
static const char _yparser_actions[] = {
......@@ -125,6 +129,10 @@ static const char _yparser_eof_actions[] = {
0, 3
};
int _yp_start_state =
24
;
......@@ -366,6 +374,7 @@ _again:
_out: {}
}
// Store the current parser position.
if (!parser->input.eof) {
parser->input.current = p;
......
This diff is collapsed.
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment