Sha256: 1831b078d0fbf97280d741a4490f1f3ef1781e30ff361a66bcfbb448dc0a93e1

Contents?: true

Size: 962 Bytes

Versions: 6

Compression:

Stored size: 962 Bytes

Contents

/* hint.h
 * Copyright (c) 2011, Peter Ohler
 * All rights reserved.
 */

#ifndef OX_HINT_H
#define OX_HINT_H

#include <stdbool.h>

typedef enum {
    ActiveOverlay   = 0,
    InactiveOverlay = 'i',
    BlockOverlay    = 'b',
    OffOverlay      = 'o',
    AbortOverlay    = 'a',
    NestOverlay     = 'n',  // nest flag is ignored
} Overlay;

typedef struct _hint {
    const char  *name;
    char         empty;    // must be closed or close auto it, not error
    char         nest;     // nesting allowed
    char         jump;     // jump to end <script> ... </script>
    char         overlay;  // Overlay
    const char **parents;
} *Hint;

typedef struct _hints {
    const char *name;
    Hint        hints;  // array of hints
    int         size;
} *Hints;

extern Hints ox_hints_html(void);
extern Hint  ox_hint_find(Hints hints, const char *name);
extern Hints ox_hints_dup(Hints h);
extern void  ox_hints_destroy(Hints h);

#endif /* OX_HINT_H */

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
ox-2.14.20 ext/ox/sax_hint.h
ox-2.14.19 ext/ox/sax_hint.h
ox-2.14.18 ext/ox/sax_hint.h
ox-2.14.17 ext/ox/sax_hint.h
ox-2.14.16 ext/ox/sax_hint.h
ox-2.14.15 ext/ox/sax_hint.h