mirror of
https://github.com/PDP-10/its.git
synced 2026-03-24 09:30:29 +00:00
32 lines
467 B
Plaintext
32 lines
467 B
Plaintext
/*
|
|
* lexerr.c
|
|
*
|
|
* Bob Denny 28-Aug-82
|
|
* Move stdio dependencies to lexerr(), lexget(), lexech() and mapch()
|
|
*
|
|
* This is one of 4 modules in lexlib which depend
|
|
* upon the standard I/O package.
|
|
*/
|
|
|
|
#include <stdio.h>
|
|
#ifdef vms
|
|
#include "c:lex.h"
|
|
#else
|
|
#include <lex.h>
|
|
#endif
|
|
|
|
/*)LIBRARY
|
|
*/
|
|
|
|
lexerror(s)
|
|
{
|
|
if (yyline)
|
|
fprintf(stderr, "%d: ", yyline);
|
|
#ifdef vms
|
|
fprintf(stderr, "%s", s);
|
|
#else
|
|
fprintf(stderr, "%r", &s);
|
|
#endif
|
|
fprintf(stderr, "\n");
|
|
}
|