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

/*
 * Common routines used by the
 * C compiler.
 * Switch segments.
 */
#ifdef	vax
#include	"INC$LIB:ops.h"
#else
#include	"ops.h"
#endif

int	oldseg	= -1;

/*
 * Perform a segment switch.
 * The driver of each phase sets "oldseg" to an illegal value (-1).
 */
newseg(nseg) register int nseg;
{
	register int oseg;

	if (oldseg == nseg)
		return(nseg);
	oseg = oldseg;
	oldseg = nseg;
	bput(ENTER);
	bput(nseg);
	return (oseg == -1 ? nseg : oseg);
}

unix.superglobalmegacorp.com

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