[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
dispinclude not working in 4.1.2pre
- To: hobbit (at) hswn.dk
- Subject: dispinclude not working in 4.1.2pre
- From: Dominique Frise <Dominique.Frise (at) unil.ch>
- Date: Mon, 13 Mar 2006 08:46:00 +0100
- Organization: University of Lausanne
- User-agent: Mozilla/5.0 (X11; U; SunOS sun4u; en-US; rv:1.7.12) Gecko/20051003
Hi Henrik,
The dispinclude is not working in the latest snapshot I downloaded.
Hobbit was compiled under Solaris 9.
The problem seems to be in function stackfgets in lib/stackio.c.
I added following if statement to make it work:
[super (at) iris lib]# diff stackio.c stackio.c.dist
407c407,408
< if (extraincl && (strncmp(*buffer, extraincl, strlen(extraincl)) == 0)) {
---
> if ( (strncmp(*buffer, "include ", 8) == 0) ||
> (extraincl && (strncmp(*buffer, extraincl, strlen(extraincl)) == 0)) ) {
410,424d410
< eol = strchr(*buffer, '\n'); if (eol) *eol = '\0';
< newfn = *buffer + strlen(extraincl);
< newfn += strspn(newfn, " \t");
<
< if (*newfn && (stackfopen(newfn, "r", (void **)fdhead->listhead) != NULL))
< return stackfgets(buffer, bufferlen, extraincl);< else {
< errprintf("WARNING: Cannot open extra-include file '%s', line was:%s\n",
newfn, buffer);
< if (eol) *eol = '\n';
< return result;
< }
< }
< else if (strncmp(*buffer, "include ", 8) == 0) {
< char *newfn, *eol;
<
Dominique