C++ Parser toolkit: crude mmap added.

Mayan Moudgill <moudgill@cs.cornell.EDU>
Wed, 14 Apr 1993 20:55:56 GMT

          From comp.compilers

Related articles
A C++ Parser toolkit moudgill@cs.cornell.EDU (Mayan Moudgill) (1993-04-11)
C++ Parser toolkit: crude mmap added. moudgill@cs.cornell.EDU (Mayan Moudgill) (1993-04-14)
| List of all articles for this month |

Newsgroups: comp.lang.c++,alt.sources,comp.compilers
From: Mayan Moudgill <moudgill@cs.cornell.EDU>
Summary: Added a crude mmap() for those systems that don't have it.
Keywords: tools, comment
Organization: Cornell Univ. CS Dept, Ithaca NY 14853
References: 93-04-042
Date: Wed, 14 Apr 1993 20:55:56 GMT

I've added a crude mmap() for those systems that don't have it. It works
by new'ing the necessary space, and then reading the file into it. So,
EOF will not match (OUCH!!!). I'll try and work out something better when
I have the time.


As usual, its available for anon ftp as pub/Parser.shar from
ftp.cs.cornell.edu :)
Mayan
[Sounds to me like you forgot to set _end, the pointer to the end of the file
buffer. -John]
--


Post a followup to this message

Return to the comp.compilers page.
Search the comp.compilers archives again.