Sha256: 5dbbada38f11efd95bf1da887b87a1e067eaf4e1bcd8df6e7f6fd1642fe46010

Contents?: true

Size: 850 Bytes

Versions: 14

Compression:

Stored size: 850 Bytes

Contents

#ifndef CMARK_MAP_H
#define CMARK_MAP_H

#include "chunk.h"

#ifdef __cplusplus
extern "C" {
#endif

struct cmark_map_entry {
  struct cmark_map_entry *next;
  unsigned char *label;
  size_t age;
  size_t size;
};

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;
  size_t size;
  size_t ref_size;
  size_t max_ref_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

14 entries across 14 versions & 3 rubygems

Version Path
commonmarker-0.23.11 ext/commonmarker/map.h
markly-0.12.1 ext/markly/map.h
markly-0.12.0 ext/markly/map.h
markly-0.11.0 ext/markly/map.h
markly-0.10.0 ext/markly/map.h
markly-0.9.1 ext/markly/map.h
commonmarker-0.23.10 ext/commonmarker/map.h
markly-0.9.0 ext/markly/map.h
markly-0.8.1 ext/markly/map.h
markly-0.8.0 ext/markly/map.h
qiita_marker-0.23.9.0 ext/qiita_marker/map.h
commonmarker-0.23.9 ext/commonmarker/map.h
commonmarker-0.23.8 ext/commonmarker/map.h
commonmarker-0.23.7 ext/commonmarker/map.h