Defines | Functions | Variables

bsfile00r.c File Reference

#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#include <malloc.h>
#include <string.h>
#include <ctype.h>
#include "pkvaria.h"
#include "pknum.h"
#include "pkgeom.h"
#include "camerad.h"
#include "multibs.h"
#include "bsfile.h"
Include dependency graph for bsfile00r.c:

Defines

#define INBUFSIZE   1024
#define NAMEBUFSIZE   (BSF_MAX_NAME_LENGTH+1)
#define ADDTONBUF

Functions

void bsf_GetNextSymbol (void)
void bsf_CloseInputFile (void)
boolean bsf_OpenInputFile (const char *filename)
void bsf_PrintErrorLocation (void)

Variables

FILE * bsf_input = NULL
char * bsf_namebuffer = NULL
int bsf_nextsymbol
int bsf_nextint
double bsf_nextfloat
const char * bsf_keyword [BSF_NKEYWORDS]

Define Documentation

#define ADDTONBUF
Value:
{ if ( namebufcont < NAMEBUFSIZE-1 ) \
    bsf_namebuffer[namebufcont++] = (char)nextchar; \
  else { \
    bsf_nextsymbol = BSF_SYMB_ERROR; \
    return; \
  }}
#define INBUFSIZE   1024
#define NAMEBUFSIZE   (BSF_MAX_NAME_LENGTH+1)

Function Documentation

void bsf_CloseInputFile ( void   ) 
void bsf_GetNextSymbol ( void   ) 
boolean bsf_OpenInputFile ( const char *  filename  ) 
void bsf_PrintErrorLocation ( void   ) 

Variable Documentation

FILE* bsf_input = NULL
const char* bsf_keyword[BSF_NKEYWORDS]
Initial value:
 
  { "BCurve",
    "BPatch",
    "BSCurve",
    "BSHole",
    "BSMesh",
    "BSPatch",
    "closed",
    "cpoints",
    "cpointsmk",
    "degree",
    "dim",
    "domain",
    "facets",
    "halfedges",
    "knots",
    "knots_u",
    "knots_v",
    "name",
    "rational",
    "sides",
    "uniform",
    "vertices" }
char* bsf_namebuffer = NULL
double bsf_nextfloat