Back to index

tetex-bin  3.0
Classes | Defines | Functions
fn.h File Reference
#include <kpathsea/c-proto.h>
#include <kpathsea/types.h>
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.


struct  fn_type


#define FN_STRING(fn)   ((fn).str)
#define FN_ALLOCATED(fn)   ((fn).allocated)
#define FN_LENGTH(fn)   ((fn).length)


KPSEDLL fn_type fn_init P1H (void)
KPSEDLL fn_type fn_copy0 P2H (const_string s, unsigned len)
KPSEDLL void fn_free P1H (fn_type *f)
KPSEDLL void fn_1grow P2H (fn_type *f, char c)
KPSEDLL void fn_grow P3H (fn_type *f, const_string source, unsigned length)
KPSEDLL void fn_str_grow P2H (fn_type *f, const_string s)
KPSEDLL void fn_shrink_to P2H (fn_type *f, unsigned loc)

Class Documentation

struct fn_type

Definition at line 31 of file fn.h.

Class Members
unsigned allocated
unsigned length
string str

Define Documentation

#define FN_ALLOCATED (   fn)    ((fn).allocated)

Definition at line 39 of file fn.h.

#define FN_LENGTH (   fn)    ((fn).length)

Definition at line 40 of file fn.h.

#define FN_STRING (   fn)    ((fn).str)

Definition at line 38 of file fn.h.

Function Documentation

KPSEDLL fn_type fn_init P1H ( void  ) [read]

Definition at line 260 of file afm2tfm.c.

   register char *p ;
   register int c ;

   param = buffer ;
   for (p=buffer; (c=getc(afmin)) != EOF;) {
      if (p - buffer >= INBUFSIZE)
         error("! input line too long; perhaps input file is malformed?") ;
      *p++ = c ;
      if (c == '\r') {
         c = getc(afmin) ;
         if (c != EOF) {
            if (c == '\n') {
               *p++ = c ;
            } else {
               ungetc(c, afmin) ;
         break ;
      } else if (c == '\n') {
         break ;
   *p = 0 ;
   (void)strcpy(obuffer, buffer) ;
   if (p == buffer && c == EOF)
      return(0) ;
      return(1) ;
KPSEDLL void fn_free P1H ( fn_type f)
KPSEDLL fn_type fn_copy0 P2H ( const_string  s,
unsigned  len 
KPSEDLL void fn_1grow P2H ( fn_type f,
char  c 
KPSEDLL void fn_str_grow P2H ( fn_type f,
const_string  s 
KPSEDLL void fn_shrink_to P2H ( fn_type f,
unsigned  loc 
KPSEDLL void fn_grow P3H ( fn_type f,
const_string  source,
unsigned  length