C.f. Debian BTS http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=562291
> gcc -O -DPOSIX -DSYSV -DANSI -I/usr/include -DKPATHSEA -c -o bifont.o
> bifont.c
> In file included from /usr/include/kpathsea/str-llist.h:26,
> from /usr/include/kpathsea/pathsearch.h:23,
> from bifont.c:11:
> /usr/include/kpathsea/types.h:66: error: expected specifier-qualifier-list
> before 'str_llist_type'
> make[1]: *** [bifont.o] Error 1
[bifont.c]
8 #include "jsub.h"
9 #ifdef KPATHSEA
10 #include <kpathsea/c-auto.h>
11 #include <kpathsea/pathsearch.h>
12 #include <kpathsea/tex-file.h>
13 #endif
14
15 /*
This might be a bug in libkpathsea-dev instead under Gcc 4.4.
The /usr/include/kpathsea/str-llist.h defines "str_llist_elt_type",
but before it does that, it calls include:
#include <kpathsea/types.h>
The <kpathsea/types.h> needs "str_llist_elt_type", the which in my
understanding isn't defined yet. Thus:
/usr/include/kpathsea/types.h:66: error: expected
specifier-qualifier-list before 'str_llist_type'
Karl, any insight on this?
Jari
-----------------------------------------------------------------------
[/usr/include/kpathsea/str-llist.h]
/* str-llist.h: a linked list of strings,
It's pretty sad that both this and str-list exist; the reason is
that C cannot express iterators very well, and I don't want to change
all the for loops.
Copyright 1993, 1994, 2008 Karl Berry.
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either
version 2.1 of the License, or (at your option) any later version.
This library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public License
along with this library; if not, see <http://www.gnu.org/licenses/>. */
#ifndef STR_LLIST_H
#define STR_LLIST_H
#include <kpathsea/c-proto.h>
#include <kpathsea/types.h>
/* It's a little bizarre to be using the same type for the list and the
elements of the list, but no reason not to in this case, I think --
we never need a NULL string in the middle of the list, and an extra
NULL/NULL element always at the end is inconsequential. */
struct str_llist_elt
{
string str;
boolean moved;
struct str_llist_elt *next;
};
typedef struct str_llist_elt str_llist_elt_type;
typedef struct str_llist_elt *str_llist_type;
#define STR_LLIST(sl) ((sl).str)
#define STR_LLIST_MOVED(sl) ((sl).moved)
#define STR_LLIST_NEXT(sl) ((sl).next)
/* Add the new string E to the end of the list L. */
extern void str_llist_add (str_llist_type *l, string e);
/* Reorganize L so that E is below only other elements that have already
been moved. Set `moved' member for E. */
extern void str_llist_float (str_llist_type *l, str_llist_elt_type *e);
#endif /* not STR_LLIST_H */
--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]