yywrap.c 532 B

1234567891011121314151617181920212223242526272829
  1. /* This file is part of the GNU plotutils package. */
  2. /*
  3. * Copyright (C) 1996, 1997, 2005, 2008, Free Software Foundation, Inc.
  4. */
  5. /*
  6. * lex wrapper for ode.
  7. *
  8. */
  9. #include "sys-defines.h"
  10. #include "ode.h"
  11. #include "extern.h"
  12. int
  13. yywrap (void)
  14. {
  15. if (yyin != stdin) /* we were reading from a file, */
  16. { /* so switch to reading from stdin */
  17. yyin = stdin;
  18. filename = "";
  19. curline = 1;
  20. return 0;
  21. }
  22. else /* we were reading from stdin, */
  23. return 1; /* so there's no more input */
  24. }