Sha256: b1766be85d706f8848ec9e64429b40c7c8684b26fcfbb8701a649c1ae802b201

Contents?: true

Size: 949 Bytes

Versions: 6

Compression:

Stored size: 949 Bytes

Contents

#ifndef CMARK_REFERENCES_H
#define CMARK_REFERENCES_H

#include "memory.h"
#include "chunk.h"

#ifdef __cplusplus
extern "C" {
#endif

struct cmark_reference {
  struct cmark_reference *next;
  unsigned char *label;
  cmark_chunk url;
  cmark_chunk title;
  unsigned int age;
};

typedef struct cmark_reference cmark_reference;

struct cmark_reference_map {
  cmark_mem *mem;
  cmark_reference *refs;
  cmark_reference **sorted;
  unsigned int size;
};

typedef struct cmark_reference_map cmark_reference_map;

cmark_reference_map *cmark_reference_map_new(cmark_mem *mem);
void cmark_reference_map_free(cmark_reference_map *map);
cmark_reference *cmark_reference_lookup(cmark_reference_map *map,
                                        cmark_chunk *label);
extern void cmark_reference_create(cmark_reference_map *map, cmark_chunk *label,
                                   cmark_chunk *url, cmark_chunk *title);

#ifdef __cplusplus
}
#endif

#endif

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
commonmarker-0.17.5 ext/commonmarker/cmark/src/references.h
commonmarker-0.17.4 ext/commonmarker/cmark/src/references.h
commonmarker-0.17.2 ext/commonmarker/cmark/src/references.h
commonmarker-0.17.1 ext/commonmarker/cmark/src/references.h
commonmarker-0.17.0 ext/commonmarker/cmark/src/references.h
commonmarker-0.16.8 ext/commonmarker/cmark/src/references.h