inp.c File Reference

#include "EXTERN.h"
#include "common.h"
#include "util.h"
#include "pch.h"
#include "INTERN.h"
#include "inp.h"

Include dependency graph for inp.c:

Go to the source code of this file.

Functions

void re_input ()
void scan_input (char *filename)
bool plan_a (char *filename)
void plan_b (char *filename)
char * ifetch (Reg1 LINENUM line, int whichbuf)
bool rev_in_string (char *string)

Variables

static long i_size
static char * i_womp
static char ** i_ptr
static int tifd = -1
static char * tibuf [2]
static LINENUM tiline [2] = {-1, -1}
static LINENUM lines_per_buf
static int tireclen


Function Documentation

char* ifetch Reg1 LINENUM  line,
int  whichbuf
 

Definition at line 281 of file inp.c.

References BUFFERSIZE, fatal2, i_ptr, lines_per_buf, Lseek, read, tibuf, tifd, tiline, and tireclen.

Referenced by dump_line(), and patch_match().

bool plan_a char *  filename  ) 
 

Definition at line 87 of file inp.c.

References CHECKOUT, Close, close, creat, FALSE, fatal2, free, GET, i_size, i_womp, ifd, makedirs(), malloc(), Nullch, open, RCSSUFFIX, read, Reg1, Reg2, s, S_IFMT, S_IFREG, say2, SCCSPREFIX, set_hunkmax(), Sprintf, stat, system(), TRUE, and verbose.

Referenced by scan_input().

void plan_b char *  filename  ) 
 

Definition at line 212 of file inp.c.

References ask2, BUFFERSIZE, creat, FALSE, fatal1, fatal2, fgets(), fopen(), Fseek, i, ifp, L, lines_per_buf, malloc(), Nullch, Nullfp, Reg1, Reg2, Reg3, Reg4, rev_in_string(), say2, strlen(), tibuf, tifd, tireclen, TRUE, verbose, and write.

Referenced by scan_input().

void re_input  ) 
 

Definition at line 40 of file inp.c.

References Close, free, i_ptr, i_size, i_womp, Null, Nullch, tibuf, tifd, tiline, tireclen, and TRUE.

Referenced by reinitialize_almost_everything().

bool rev_in_string char *  string  ) 
 

Definition at line 312 of file inp.c.

References isspace, Nullch, Reg1, Reg2, s, strlen(), strnEQ, and TRUE.

Referenced by plan_b().

void scan_input char *  filename  ) 
 

Definition at line 70 of file inp.c.

References plan_a(), plan_b(), say3, and verbose.

Referenced by main().


Variable Documentation

char** i_ptr [static]
 

Definition at line 29 of file inp.c.

Referenced by ifetch(), and re_input().

long i_size [static]
 

Definition at line 27 of file inp.c.

char* i_womp [static]
 

Definition at line 28 of file inp.c.

Referenced by plan_a(), and re_input().

LINENUM lines_per_buf [static]
 

Definition at line 34 of file inp.c.

Referenced by ifetch(), and plan_b().

char* tibuf[2] [static]
 

Definition at line 32 of file inp.c.

int tifd = -1 [static]
 

Definition at line 31 of file inp.c.

Referenced by ifetch(), plan_b(), and re_input().

LINENUM tiline[2] = {-1, -1} [static]
 

Definition at line 33 of file inp.c.

Referenced by ifetch(), and re_input().

int tireclen [static]
 

Definition at line 35 of file inp.c.

Referenced by ifetch(), plan_b(), and re_input().


Generated on Fri Apr 14 23:05:33 2006 for minix by  doxygen 1.4.6