Sha256: 38140084a8215e4be4f4937b01c55e53b769ee24b46428d6bc75aedfba991813

Contents?: true

Size: 825 Bytes

Versions: 15

Compression:

Stored size: 825 Bytes

Contents

#ifndef CMARK_MAP_H
#define CMARK_MAP_H

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

#ifdef __cplusplus
extern "C" {
#endif

struct cmark_map_entry {
  struct cmark_map_entry *next;
  unsigned char *label;
  unsigned int age;
};

typedef struct cmark_map_entry cmark_map_entry;

struct cmark_map;

typedef void (*cmark_map_free_f)(struct cmark_map *, cmark_map_entry *);

struct cmark_map {
  cmark_mem *mem;
  cmark_map_entry *refs;
  cmark_map_entry **sorted;
  unsigned int size;
  cmark_map_free_f free;
};

typedef struct cmark_map cmark_map;

unsigned char *normalize_map_label(cmark_mem *mem, cmark_chunk *ref);
cmark_map *cmark_map_new(cmark_mem *mem, cmark_map_free_f free);
void cmark_map_free(cmark_map *map);
cmark_map_entry *cmark_map_lookup(cmark_map *map, cmark_chunk *label);

#ifdef __cplusplus
}
#endif

#endif

Version data entries

15 entries across 14 versions & 2 rubygems

Version Path
commonmarker-0.19.0 ext/commonmarker/map.h
commonmarker-0.18.2 ext/commonmarker/map.h
commonmarker-0.18.1 ext/commonmarker/map.h
commonmarker-0.18.0 ext/commonmarker/map.h
commonmarker-0.17.13 ext/commonmarker/map.h
commonmarker-0.17.12 ext/commonmarker/map.h
commonmarker-0.17.11 ext/commonmarker/map.h
commonmarker-0.17.10 ext/commonmarker/map.h
tdiary-5.0.8 vendor/bundle/gems/commonmarker-0.17.9/ext/commonmarker/map.h
commonmarker-0.17.9 ext/commonmarker/map.h
commonmarker-0.17.8 ext/commonmarker/map.h
commonmarker-0.17.7.1 ext/commonmarker/map.h
commonmarker-0.17.7 ext/commonmarker/map.h
commonmarker-0.17.7 ext/commonmarker/cmark-upstream/src/map.h
commonmarker-0.17.6 ext/commonmarker/cmark/src/map.h