comparison lib/linebuffer.c @ 5318:7c24a825b51d

Remove dependencies on unlocked-io.
author Paul Eggert <eggert@cs.ucla.edu>
date Mon, 04 Oct 2004 20:17:39 +0000
parents a90f003e26e9
children a48fb0e98c8c
comparison
equal deleted inserted replaced
5317:55fa1d36be4b 5318:7c24a825b51d
1 /* linebuffer.c -- read arbitrarily long lines 1 /* linebuffer.c -- read arbitrarily long lines
2 2
3 Copyright (C) 1986, 1991, 1998, 1999, 2001, 2003 Free Software 3 Copyright (C) 1986, 1991, 1998, 1999, 2001, 2003, 2004 Free
4 Foundation, Inc. 4 Software Foundation, Inc.
5 5
6 This program is free software; you can redistribute it and/or modify 6 This program is free software; you can redistribute it and/or modify
7 it under the terms of the GNU General Public License as published by 7 it under the terms of the GNU General Public License as published by
8 the Free Software Foundation; either version 2, or (at your option) 8 the Free Software Foundation; either version 2, or (at your option)
9 any later version. 9 any later version.
26 #include <stdio.h> 26 #include <stdio.h>
27 #include <stdlib.h> 27 #include <stdlib.h>
28 #include <string.h> 28 #include <string.h>
29 #include <sys/types.h> 29 #include <sys/types.h>
30 #include "linebuffer.h" 30 #include "linebuffer.h"
31 #include "unlocked-io.h"
32 #include "xalloc.h" 31 #include "xalloc.h"
32
33 #if USE_UNLOCKED_IO
34 # include "unlocked-io.h"
35 #endif
33 36
34 /* Initialize linebuffer LINEBUFFER for use. */ 37 /* Initialize linebuffer LINEBUFFER for use. */
35 38
36 void 39 void
37 initbuffer (struct linebuffer *linebuffer) 40 initbuffer (struct linebuffer *linebuffer)