#include <config.h>
#include <stdio.h>
#include <string.h>
#include <stdarg.h>
#include <netlink.h>
#include <gmputil.h>
#include <erec.h>
Functions | |
void | erec_add_location (struct error_record *erec, const struct location *loc) |
__attribute__ ((format(printf, 3, 0))) | |
__attribute__ ((format(printf, 3, 4))) | |
void | erec_print (FILE *f, const struct error_record *erec) |
void | erec_print_list (FILE *f, struct list_head *list) |
Variables | |
const struct location | internal_location |
__attribute__ | ( | (format(printf, 3, 0)) | ) |
References erec_add_location(), error_record::msg, NULL, error_record::num_locations, error_record::type, type, and xmalloc().
__attribute__ | ( | (format(printf, 3, 4)) | ) |
void erec_add_location | ( | struct error_record * | erec, |
const struct location * | loc | ||
) |
References EREC_LOCATIONS_MAX, error_record::locations, and error_record::num_locations.
Referenced by __attribute__(), and __fmtstring().
void erec_print | ( | FILE * | f, |
const struct error_record * | erec | ||
) |
References buf, BUG, input_descriptor::data, input_descriptor::fd, location::first_column, location::first_line, location::indesc, INDESC_BUFFER, INDESC_CLI, INDESC_FILE, INDESC_INTERNAL, INDESC_NETLINK, location::last_column, line, location::line_offset, input_descriptor::location, error_record::locations, max, error_record::msg, input_descriptor::name, netlink_dump_expr(), location::nle, NULL, error_record::num_locations, input_descriptor::type, and error_record::type.
Referenced by cmd_evaluate(), erec_print_list(), and stmt_evaluate().
References erec_print(), error_record::list, and list_for_each_entry_safe.
Referenced by main().
Referenced by main(), and payload_expr_join().