1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52
|
#ifndef LINEH
#define LINEH
/* Copyright (C) 1992, 1993 Free Software Foundation, Inc.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2, or (at your option)
any later version.
This program 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 General Public License for more details.
You should have received a copy of the GNU General Public License
along with Oleo; see the file COPYING. If not, write to
the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
/* t. lord Fri Aug 7 22:23:59 1992 */
#define LINE_MIN 28
struct line
{
int alloc;
char *buf;
};
#define init_line(L) bzero((L), sizeof (struct line))
#if PROTOTYPES
extern void set_line (struct line *line, char *string);
extern void setn_line (struct line *line, char *string, int n);
extern void catn_line (struct line *line, char *string, int n);
extern void sprint_line (struct line *line, char * fmt, ...);
extern void splicen_line (struct line * line, char * str, int n, int pos);
extern void edit_line (struct line * line, int begin, int len);
extern void free_line (struct line * line);
extern int read_line (struct line * line, FILE * fp, int * linec);
#else /* PROTOTYPES */
extern void set_line ();
extern void setn_line ();
extern void catn_line ();
extern void sprint_line ();
extern void splicen_line ();
extern void edit_line ();
extern void free_line ();
extern int read_line ();
#endif /* PROTOTYPES */
#endif
|