[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Compiling groff 1.18 on Sun
From: |
Yair Lenga |
Subject: |
Compiling groff 1.18 on Sun |
Date: |
Fri, 07 Feb 2003 16:05:16 -0500 |
User-agent: |
Mozilla/5.0 (X11; U; IRIX64 IP30; en-US; rv:1.1) Gecko/20021001 |
Hi,
I was compiling Groff 1.18 with Sun C++ compiler (WS6U2). I got error
while trying to complie src/libs/libdriver/input.cc.
I made minor modification to get the code to compile (I'm not C++ coder,
so might have made things worst). Attached is the modified
get_string_arg function: I hope that someone can checkin the code into
the CVS (I'm behind a firewall).
Thanks
Yair Lenga
char *
get_string_arg(void)
{
StringBuf buf = StringBuf();
Char c = next_arg_begin();
while (!is_space_or_tab(c)
&& c != '\n' && c != EOF) {
// && c != Char('\n') && c != Char(EOF)) {
buf.append(c);
c = get_char();
}
unget_char(c); // restore white space
return buf.make_string();
}
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Compiling groff 1.18 on Sun,
Yair Lenga <=