*
*/
-#include <stdio.h>
-#include <unistd.h>
-#include <string.h>
-#include <stdlib.h>
-#include <inttypes.h>
+#include "filter-ast.hpp"
+#include "filter-ir.hpp"
+#include "filter-parser.hpp"
-#include <common/macros.hpp>
#include <common/compat/errno.hpp>
+#include <common/macros.hpp>
-#include "filter-ast.hpp"
-#include "filter-parser.hpp"
-#include "filter-ir.hpp"
+#include <inttypes.h>
+#include <stdio.h>
+#include <stdlib.h>
+#include <string.h>
+#include <unistd.h>
enum parse_char_result {
PARSE_CHAR_UNKNOWN = -2,
PARSE_CHAR_NORMAL = 0,
};
-static
-enum parse_char_result parse_char(const char **p)
+static enum parse_char_result parse_char(const char **p)
{
switch (**p) {
case '\\':
}
}
-static
-int validate_string(struct ir_op *node)
+static int validate_string(struct ir_op *node)
{
switch (node->op) {
case IR_OP_UNKNOWN:
switch (res) {
case PARSE_CHAR_UNKNOWN:
ret = -EINVAL;
- fprintf(stderr,
- "Unsupported escape character detected.\n");
+ fprintf(stderr, "Unsupported escape character detected.\n");
goto end_load;
case PARSE_CHAR_NORMAL:
default:
}
}
}
-end_load:
+ end_load:
return ret;
}
case IR_OP_UNARY: