Sha256: e740c734bd89afdefc24ae53ffd3dd46ea0fa71386c6a44f01fc42e0d506ac0b

Contents?: true

Size: 939 Bytes

Versions: 29

Compression:

Stored size: 939 Bytes

Contents

#ifndef CMARK_REFERENCES_H
#define CMARK_REFERENCES_H

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

#ifdef __cplusplus
extern "C" {
#endif

#define REFMAP_SIZE 16

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

typedef struct cmark_reference cmark_reference;

struct cmark_reference_map {
  cmark_mem *mem;
  cmark_reference *table[REFMAP_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

29 entries across 29 versions & 1 rubygems

Version Path
commonmarker-0.16.7 ext/commonmarker/cmark/src/references.h
commonmarker-0.16.6 ext/commonmarker/cmark/src/references.h
commonmarker-0.16.5 ext/commonmarker/cmark/src/references.h
commonmarker-0.16.4 ext/commonmarker/cmark/src/references.h
commonmarker-0.16.1 ext/commonmarker/cmark/src/references.h
commonmarker-0.16.2 ext/commonmarker/cmark/src/references.h
commonmarker-0.16.3 ext/commonmarker/cmark/src/references.h
commonmarker-0.16.0 ext/commonmarker/cmark/src/references.h
commonmarker-0.15.0 ext/commonmarker/cmark/src/references.h
commonmarker-0.14.15 ext/commonmarker/cmark/src/references.h
commonmarker-0.14.14 ext/commonmarker/cmark/src/references.h
commonmarker-0.14.13 ext/commonmarker/cmark/src/references.h
commonmarker-0.14.12 ext/commonmarker/cmark/src/references.h
commonmarker-0.14.11 ext/commonmarker/cmark/src/references.h
commonmarker-0.14.9 ext/commonmarker/cmark/src/references.h
commonmarker-0.14.8 ext/commonmarker/cmark/src/references.h
commonmarker-0.14.7 ext/commonmarker/cmark/src/references.h
commonmarker-0.14.6 ext/commonmarker/cmark/src/references.h
commonmarker-0.14.5 ext/commonmarker/cmark/src/references.h
commonmarker-0.14.4 ext/commonmarker/cmark/src/references.h