File: yywrap.c

package info (click to toggle)
plotutils 2.6-15
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 14,040 kB
  • sloc: ansic: 68,670; sh: 20,086; cpp: 12,382; yacc: 2,588; makefile: 838; lex: 137
file content (28 lines) | stat: -rw-r--r-- 532 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
/* This file is part of the GNU plotutils package. */

/*
 * Copyright (C) 1996, 1997, 2005, 2008, Free Software Foundation, Inc.
 */

/*
 * lex wrapper for ode.
 *
 */

#include "sys-defines.h"
#include "ode.h"
#include "extern.h"

int
yywrap (void)
{
  if (yyin != stdin)		/* we were reading from a file, */
    {				/* so switch to reading from stdin */
      yyin = stdin;
      filename = "";
      curline = 1;
      return 0;
    }
  else				/* we were reading from stdin, */
    return 1;			/* so there's no more input */
}