Sha256: a6928150e1ca29b5e3b564bf2bbde0ef4b6706a7091a8845145900d4eab6eab9

Contents?: true

Size: 627 Bytes

Versions: 4

Compression:

Stored size: 627 Bytes

Contents

#ifndef YARP_DIAGNOSTIC_H
#define YARP_DIAGNOSTIC_H

#include "yarp/defines.h"
#include "yarp/util/yp_list.h"

#include <stdbool.h>
#include <stdlib.h>

// This struct represents a diagnostic found during parsing.
typedef struct {
    yp_list_node_t node;
    const char *start;
    const char *end;
    const char *message;
} yp_diagnostic_t;

// Append a diagnostic to the given list of diagnostics.
bool yp_diagnostic_list_append(yp_list_t *list, const char *start, const char *end, const char *message);

// Deallocate the internal state of the given diagnostic list.
void yp_diagnostic_list_free(yp_list_t *list);

#endif

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
yarp-0.9.0 include/yarp/diagnostic.h
yarp-0.8.0 include/yarp/diagnostic.h
yarp-0.7.0 include/yarp/diagnostic.h
yarp-0.6.0 include/yarp/diagnostic.h