DataMuseum.dk

Presents historical artifacts from the history of:

DKUUG/EUUG Conference tapes

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

See our Wiki for more about DKUUG/EUUG Conference tapes

Excavated with: AutoArchaeologist - Free & Open Source Software.


top - metrics - download
Index: T q

⟦0c685a3e2⟧ TextFile

    Length: 1551 (0x60f)
    Types: TextFile
    Names: »qmsovl.y«

Derivation

└─⟦060c9c824⟧ Bits:30007080 DKUUG TeX 2/12/89
    └─⟦this⟧ »./DVIware/laser-setters/quicspool/libqmsquery/qmsovl.y« 
└─⟦52210d11f⟧ Bits:30007239 EUUGD2: TeX 3 1992-12
    └─⟦af5ba6c8e⟧ »unix3.0/DVIWARE.tar.Z« 
        └─⟦ca79c7339⟧ 
            └─⟦this⟧ »DVIware/laser-setters/quicspool/libqmsquery/qmsovl.y« 

TextFile

%{
#ifndef lint
static char *rcs = "$Header: qmsovl.y,v 1.1 88/01/15 12:19:13 simpson Rel $";
#endif
/*
$Log:	qmsovl.y,v $
 * Revision 1.1  88/01/15  12:19:13  simpson
 * initial release
 * 
 * Revision 0.1  87/12/11  17:12:05  simpson
 * beta test
 * 
*/
#include <stdio.h>
#include <setjmp.h>
#include <local/standard.h>
#include "qms.h"

extern FILE	*_Ifp, *_Ofp;
extern Boolean	_FirstChar;
static jmp_buf	Env;
char		*malloc();
static struct qmsovl	*OvlList, *P;
%}
%token OVL INTEGER SPACE AUTOPAGE NONE ENDLINE
%%
ovllines : ovllines ovlline | ovlline ;

ovlline : OVL overlay ENDLINE ;

overlay : 
    NONE
	{
	    OvlList = NULL;
	}
    |
    INTEGER SPACE
	{
	    P = (struct qmsovl *)malloc((unsigned)sizeof(struct qmsovl));
	    P->next = OvlList, OvlList = P;
	    P->ovltype = regular;
	    P->ovlnumber = $1;
	    P->ovlsize = $2;
	}
    |
    AUTOPAGE
	{
	    P = (struct qmsovl *)malloc((unsigned)sizeof(struct qmsovl));
	    P->next = OvlList, OvlList = P;
	    P->ovltype = automatic;
	}
    ;
%%
#include "qmsovllex.c"

struct qmsovl *qmsovl()
{
    _FirstChar = TRUE;
    OvlList = NULL;
    fputs(QUICON, _Ofp);
    fprintf(_Ofp, "%s00000", SYNTAX);
    fprintf(_Ofp, "%sOVL%s", INFO, ENDCMD);
    fputs(QUICOFF, _Ofp);
    (void)fflush(_Ofp);
    if (setjmp(Env)) {
	while (timedgetc(_Ifp) != EOF)	/* Discard remaining input */
	    ;
	return NULL;
    }
    if (yyparse() != 0)
	return NULL;
    yysptr = yysbuf;	    /* Resets lex lookahead buffer */
    return OvlList;
}

static yyerror(s)
char	*s;
{
    longjmp(Env, TRUE);
}