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

⟦9d713faad⟧ TextFile

    Length: 1343 (0x53f)
    Types: TextFile
    Names: »qmsver.y«

Derivation

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

TextFile

%{
#ifndef lint
static char *rcs = "$Header: qmsver.y,v 1.1 88/01/15 12:19:41 simpson Rel $";
#endif
/*
$Log:	qmsver.y,v $
 * Revision 1.1  88/01/15  12:19:41  simpson
 * initial release
 * 
 * Revision 0.1  87/12/11  17:12:14  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;
static struct qmsver	Result;
%}
%token DATE FIRMWARE VERSION ENDLINE QUIC
%token <i> INTEGER
%token <r> REAL
%union {
    int	    i;
    float   r;
}
%%
version : VERSION '=' QUIC ':' REAL FIRMWARE ':' REAL DATE INTEGER '/'
    INTEGER '/' INTEGER ENDLINE 
	{
	    Result.version = $5;
	    Result.firmware = $8;
	    Result.date.month = $10;
	    Result.date.day = $12;
	    Result.date.year = $14;
	}
    ;
%%
#include "qmsverlex.c"

struct qmsver *qmsver()
{
    _FirstChar = TRUE;
    fputs(QUICON, _Ofp);
    fprintf(_Ofp, "%s00000", SYNTAX);
    fprintf(_Ofp, "%sVER%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 &Result;
}

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