File:  [MW Coherent from dump] / coherent / d / bin / bc / globals.c
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs
Wed May 29 04:56:39 2019 UTC (7 years, 2 months ago) by root
Branches: MarkWilliams, MAIN
CVS tags: relic, HEAD
coherent

#include <stdio.h>
#include "bc.h"


int	allok	    = TRUE;	/* True iff no outstanding errors */
int	scale	    = 0;	/* scale register */
extern	int	ibase;		/* input base from libmp/min.c */
dicent	*dictionary = NULL;	/* root of string table */
code	cstream[MAXCODE];	/* code stream */
code	*loc = cstream;		/* where next item of code stream goes */
mint	ten;			/* constant ten */
mint	maxsobase;		/* max small output base (16) */
mint	outbase;		/* output base */
rvalue	dot;			/* last number printed */
rvalue	zero;			/* constant zero */
FILE	*infile = stdin;	/* current input file */
int	inline = 0;		/* current line number */
char	*infnam = NULL;		/* current file name */

init()
{
	mitom(10, &ten);
	mcopy(&ten, &outbase);
	mitom(16, &maxsobase);
	mitom(0, &dot.mantissa);
	dot.scale = 0;
	mitom(0, &zero.mantissa);
	zero.scale = 0;
}

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.