Edinburgh Speech Tools  2.1-release
input.c File Reference
#include <stdio.h>
#include <stdlib.h>
#include <assert.h>
#include "system.h"
#include "charset.h"
#include "string16.h"
#include "dtd.h"
#include "input.h"
#include "url.h"
#include "ctype16.h"
Include dependency graph for input.c:

Go to the source code of this file.

Macros

#define ERR(m)   fprintf(stderr,m)
 
#define ERR1(m, x)   fprintf(stderr,m,x)
 
#define ERR2(m, x, y)   fprintf(stderr,m,x,y)
 
#define ERR3(m, x, y, z)   fprintf(stderr,m,x,y,z)
 

Functions

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

Macro Definition Documentation

#define ERR (   m)    fprintf(stderr,m)

Definition at line 41 of file input.c.

#define ERR1 (   m,
 
)    fprintf(stderr,m,x)

Definition at line 42 of file input.c.

#define ERR2 (   m,
  x,
 
)    fprintf(stderr,m,x,y)

Definition at line 43 of file input.c.

#define ERR3 (   m,
  x,
  y,
 
)    fprintf(stderr,m,x,y,z)

Definition at line 44 of file input.c.

Function Documentation

InputSource SourceFromStream ( const char8 description,
FILE *  file 
)

Definition at line 57 of file input.c.

InputSource EntityOpen ( Entity  e)

Definition at line 68 of file input.c.

InputSource NewInputSource ( Entity  e,
FILE16 *  f16 
)

Definition at line 88 of file input.c.

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

Definition at line 118 of file input.c.

void SourcePosition ( InputSource  s,
Entity *  entity,
int byte_offset 
)

Definition at line 157 of file input.c.

int SourceTell ( InputSource  s)

Definition at line 163 of file input.c.

int SourceSeek ( InputSource  s,
int  offset 
)

Definition at line 221 of file input.c.

void determine_character_encoding ( InputSource  s)

Definition at line 480 of file input.c.

int get_with_fill ( InputSource  s)

Definition at line 529 of file input.c.