|
|
DataMuseum.dkPresents historical artifacts from the history of: DKUUG/EUUG Conference tapes |
This is an automatic "excavation" of a thematic subset of
See our Wiki for more about DKUUG/EUUG Conference tapes Excavated with: AutoArchaeologist - Free & Open Source Software. |
top - metrics - downloadIndex: T t
Length: 1383 (0x567)
Types: TextFile
Names: »testdebug.py«
└─⟦3d0c2be1b⟧ Bits:30001254 ISODE-5.0 Tape
└─⟦eba4602b1⟧ »./isode-5.0.tar.Z«
└─⟦d3ac74d73⟧
└─⟦this⟧ »isode-5.0/pepy/testdebug.py«
-- testdebug.py - support routine for pepy generated routines
-- $Header: /f/osi/pepy/RCS/testdebug.py,v 6.0 89/03/18 23:38:00 mrose Rel $
--
--
-- $Log: testdebug.py,v $
-- Revision 6.0 89/03/18 23:38:00 mrose
-- Release 5.0
--
--
-- NOTICE
--
-- Acquisition, use, and distribution of this module and related
-- materials are subject to the restrictions of a license agreement.
-- Consult the Preface in the User's Manual for the full terms of
-- this agreement.
--
--
TESTDEBUG DEFINITIONS ::=
%{
#ifndef lint
static char *rcsid = "$Header: /f/osi/pepy/RCS/testdebug.py,v 6.0 89/03/18 23:38:00 mrose Rel $";
#endif
/* LINTLIBRARY */
#include <stdio.h>
%}
BEGIN
END
%{
int testdebug (pe, s)
register PE pe;
register char *s;
{
char *cp;
register PS ps;
static int debug = OK;
switch (debug) {
case NOTOK:
return;
case OK:
if ((debug = (cp = getenv ("PEPYDEBUG")) && *cp ? atoi (cp)
: NOTOK) == NOTOK)
return;
(void) fflush (stdout);
fprintf (stderr, "testdebug made with %s\n", pepyid);
/* and fall... */
default:
(void) fflush (stdout);
fprintf (stderr, "%s\n", s);
if ((ps = ps_alloc (std_open)) == NULLPS)
break;
if (std_setup (ps, stderr) != NOTOK)
(void) pe2pl (ps, pe);
fprintf (stderr, "--------\n");
ps_free (ps);
break;
}
}
%}