|
|
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 p
Length: 1435 (0x59b)
Types: TextFile
Names: »parse_error.c«
└─⟦2d1937cfd⟧ Bits:30007241 EUUGD22: P.P 5.0
└─⟦35176feda⟧ »EurOpenD22/isode/isode-6.tar.Z«
└─⟦de7628f85⟧
└─⟦this⟧ »isode-6.0/dsap/common/parse_error.c«
/* parse_error.c - */
#ifndef lint
static char *rcsid = "$Header: /f/osi/dsap/common/RCS/parse_error.c,v 7.0 89/11/23 21:42:37 mrose Rel $";
#endif
/*
* $Header: /f/osi/dsap/common/RCS/parse_error.c,v 7.0 89/11/23 21:42:37 mrose Rel $
*
*
* $Log: parse_error.c,v $
* Revision 7.0 89/11/23 21:42:37 mrose
* Release 6.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.
*
*/
/* LINTLIBRARY */
#include "quipu/util.h"
#include "psap.h"
int print_parse_errors = TRUE;
int parse_status = 0;
PS opt = NULLPS;
int parse_line = 1;
extern LLog * log_dsap;
parse_error (a,b)
char *a, *b;
{
char buffer [LINESIZE];
parse_status++;
if (print_parse_errors) {
if (opt == NULLPS) {
opt = ps_alloc (std_open);
if (std_setup (opt,stderr) != OK) {
LLOG (log_dsap,LLOG_EXCEPTIONS,("cant open error (parse)..."));
LLOG (log_dsap,LLOG_EXCEPTIONS,(a,b));
return;
}
}
if (parse_line != 0)
ps_printf (opt,"line %d: ",parse_line);
ps_printf (opt,a,b);
ps_printf (opt,"\n");
} else {
if (parse_line != 0) {
(void) sprintf (buffer,"line %d: ",parse_line);
(void) strcat (buffer,a);
LLOG (log_dsap,LLOG_EXCEPTIONS,(buffer,b));
} else
LLOG (log_dsap,LLOG_EXCEPTIONS,(a,b));
}
}