Edinburgh Speech Tools  2.1-release
input.h File Reference
#include <stdio.h>
#include "charset.h"
#include "stdio16.h"
#include "dtd.h"
Include dependency graph for input.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  InputSource
 

Macros

#define XML_API
 
#define XEOE   (-999)
 
#define at_eol(s)   ((s)->next == (s)->line_length)
 
#define get(s)   (at_eol(s) ? get_with_fill(s) : (s)->line[(s)->next++])
 
#define unget(s)   ((s)->seen_eoe ? (s)->seen_eoe= 0 : (s)->next--)
 

Typedefs

typedef struct stream_ops * StreamOps
 
typedef int ReadProc(StreamOps ops, unsigned char *buf, int max_count)
 
typedef int WriteProc(StreamOps ops, unsigned char *buf, int count)
 
typedef void CloseProc(StreamOps ops)
 
typedef int SeekProc(StreamOps ops, int offset)
 

Functions

XML_API InputSource SourceFromStream (const char8 *description, FILE *file)
 
XML_API InputSource EntityOpen (Entity e)
 
XML_API InputSource NewInputSource (Entity e, FILE16 *f16)
 
XML_API int SourceTell (InputSource s)
 
XML_API int SourceSeek (InputSource s, int offset)
 
XML_API int SourceLineAndChar (InputSource s, int *linenum, int *charnum)
 
XML_API void SourcePosition (InputSource s, Entity *entity, int *char_number)
 
XML_API int get_with_fill (InputSource s)
 
XML_API void determine_character_encoding (InputSource s)
 

Macro Definition Documentation

#define XML_API

Definition at line 19 of file input.h.

#define XEOE   (-999)

Definition at line 74 of file input.h.

#define at_eol (   s)    ((s)->next == (s)->line_length)

Definition at line 76 of file input.h.

#define get (   s)    (at_eol(s) ? get_with_fill(s) : (s)->line[(s)->next++])

Definition at line 77 of file input.h.

#define unget (   s)    ((s)->seen_eoe ? (s)->seen_eoe= 0 : (s)->next--)

Definition at line 78 of file input.h.

Typedef Documentation

typedef struct stream_ops* StreamOps

Definition at line 30 of file input.h.

typedef int ReadProc(StreamOps ops, unsigned char *buf, int max_count)

Definition at line 31 of file input.h.

typedef int WriteProc(StreamOps ops, unsigned char *buf, int count)

Definition at line 32 of file input.h.

typedef void CloseProc(StreamOps ops)

Definition at line 33 of file input.h.

typedef int SeekProc(StreamOps ops, int offset)

Definition at line 34 of file input.h.

Function Documentation

XML_API InputSource SourceFromStream ( const char8 description,
FILE *  file 
)

Definition at line 57 of file input.c.

XML_API InputSource EntityOpen ( Entity  e)

Definition at line 68 of file input.c.

XML_API InputSource NewInputSource ( Entity  e,
FILE16 *  f16 
)

Definition at line 88 of file input.c.

XML_API int SourceTell ( InputSource  s)

Definition at line 163 of file input.c.

XML_API int SourceSeek ( InputSource  s,
int  offset 
)

Definition at line 221 of file input.c.

XML_API int SourceLineAndChar ( InputSource  s,
int linenum,
int charnum 
)

Definition at line 118 of file input.c.

XML_API void SourcePosition ( InputSource  s,
Entity *  entity,
int char_number 
)

Definition at line 157 of file input.c.

XML_API int get_with_fill ( InputSource  s)

Definition at line 529 of file input.c.

XML_API void determine_character_encoding ( InputSource  s)

Definition at line 480 of file input.c.