Fix bug in previous; allprefixes didn't work if there were multiple prefixes.

This commit is contained in:
thorpej 1999-07-09 18:46:09 +00:00
parent 64f20db21b
commit 95a36e1425
1 changed files with 4 additions and 11 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: util.c,v 1.9 1999/07/09 09:53:01 mrg Exp $ */
/* $NetBSD: util.c,v 1.10 1999/07/09 18:46:09 thorpej Exp $ */
/*
* Copyright (c) 1992, 1993
@ -152,16 +152,9 @@ prefix_pop()
prefixes = pf->pf_next;
/*
* Once we're done with it, put it on the allprefixes list.
*/
if (allprefixes) {
allprefixes = pf;
pf->pf_next = NULL;
} else {
pf->pf_next = allprefixes;
allprefixes = pf;
}
/* Remember this prefix for emitting -I... directives later. */
pf->pf_next = allprefixes;
allprefixes = pf;
}
/*