(parse_line): allow spelling Cflags as CFlags, pointed out by Tim
(get_compat_package): support legacy script gnome-vfs-config for
package name "libgnomevfs"
+ (read_one_line): just blow away all the stupid getc_unlocked crap
2001-06-18 Havoc Pennington <hp@pobox.com>
#include <sys/wait.h>
#include <sys/types.h>
-/* since we never use getc_unlocked now we should really
- * do something to speed up read_one_line
- */
-# define flockfile(f) (void)1
-# define funlockfile(f) (void)1
-# define getc_unlocked(f) getc(f)
-
#ifdef NATIVE_WIN32
#define STRICT
gboolean quoted = FALSE;
gboolean comment = FALSE;
int n_read = 0;
-
- flockfile (stream);
g_string_truncate (str, 0);
{
int c;
- c = getc_unlocked (stream);
+ c = getc (stream);
if (c == EOF)
{
case '\r':
case '\n':
{
- int next_c = getc_unlocked (stream);
+ int next_c = getc (stream);
if (!(c == EOF ||
(c == '\r' && next_c == '\n') ||
break;
case '\n':
{
- int next_c = getc_unlocked (stream);
+ int next_c = getc (stream);
if (!(c == EOF ||
(c == '\r' && next_c == '\n') ||
done:
- funlockfile (stream);
-
return n_read > 0;
}