DataMuseum.dk

Presents historical artifacts from the history of:

Commodore CBM-900

This is an automatic "excavation" of a thematic subset of
artifacts from Datamuseum.dk's BitArchive.

See our Wiki for more about Commodore CBM-900

Excavated with: AutoArchaeologist - Free & Open Source Software.


top - download

⟦c641a4a11⟧ TextFile

    Length: 875 (0x36b)
    Types: TextFile
    Notes: UNIX file
    Names: »sed0.c«

Derivation

└─⟦f27320a65⟧ Bits:30001972 Commodore 900 hard disk image with partial source code
    └─⟦f4b8d8c84⟧ UNIX V7 Filesystem
        └─ ⟦this⟧ »cmd/sed/sed0.c« 

TextFile

/*
 * A stream editor.
 */
#include <stdio.h>
#include "sed.h"

FILE	*ifp;				/* Input file pointer */
BRC	brcl[1+NBRC];			/* For remembering \( \) */
COM	*comp;				/* Pointer to command list */
COM	**compp;			/* Ptr to add next element */
ECL	*eclp;				/* Argument list pointer */
FIL	*filp;				/* Pointer to file list */
LAB	*labp;				/* Label list */
QCL	*qcbp;				/* For stacking braces */
int	pattlen;			/* Length of pattern */
int	holdlen;			/* Length of hold buffer */
int	dolflag;			/* Last line in file */
int	addnone;			/* Number was not found */
int	nflag;				/* Don't copy to output */
int	sflag;				/* Case insensitive */
int	nerr;				/* Number of errors */
int	lno;				/* Current line number */
char	linebuf[LHPSIZE];		/* Line buffer */
char	holdbuf[LHPSIZE];		/* Hold buffer */
char	pattbuf[LHPSIZE];		/* Pattern buffer */
char	*ncp;				/* Pointer in input */