Sha256: de02e3a497ba6c5d2e6a363e4481a8256897202e39e0c739ea4e052a8c20c7b8

Contents?: true

Size: 883 Bytes

Versions: 23

Compression:

Stored size: 883 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

23 entries across 23 versions & 1 rubygems

Version Path
ox-2.14.14 ext/ox/sax_hint.h
ox-2.14.13 ext/ox/sax_hint.h
ox-2.14.12 ext/ox/sax_hint.h
ox-2.14.11 ext/ox/sax_hint.h
ox-2.14.10 ext/ox/sax_hint.h
ox-2.14.9 ext/ox/sax_hint.h
ox-2.14.8 ext/ox/sax_hint.h
ox-2.14.7 ext/ox/sax_hint.h
ox-2.14.6 ext/ox/sax_hint.h
ox-2.14.5 ext/ox/sax_hint.h
ox-2.14.4 ext/ox/sax_hint.h
ox-2.14.3 ext/ox/sax_hint.h
ox-2.14.2 ext/ox/sax_hint.h
ox-2.14.1 ext/ox/sax_hint.h
ox-2.14.0 ext/ox/sax_hint.h
ox-2.13.4 ext/ox/sax_hint.h
ox-2.13.3 ext/ox/sax_hint.h
ox-2.13.2 ext/ox/sax_hint.h
ox-2.13.1 ext/ox/sax_hint.h
ox-2.12.1 ext/ox/sax_hint.h