Rename stream2 method "gets" to "getline"

because FORTIFY re#defines gets, and this gets is something different.
This commit is contained in:
Olaf Seibert
2022-01-05 22:29:03 +01:00
parent a0add7154f
commit 8d7414d7c3
5 changed files with 34 additions and 37 deletions

View File

@@ -40,15 +40,12 @@ DAMAGE.
struct stream;
typedef struct stream_vtbl {
void (
*delete) (
struct stream * stream); /* Destructor */
char *(
*gets) (
struct stream * stream); /* "gets" function */
void (
*rewind) (
struct stream * stream); /* "rewind" function */
void (*delete)(
struct stream *stream); /* Destructor */
char *(*getline)(
struct stream *stream); /* "getline" function */
void (*rewind)(
struct stream *stream); /* "rewind" function */
} STREAM_VTBL;
typedef struct stream {
@@ -114,7 +111,7 @@ void buffer_stream_construct(
BUFFER_STREAM * bstr,
BUFFER *buf,
char *name);
char *buffer_stream_gets(
char *buffer_stream_getline(
STREAM *str);
void buffer_stream_delete(
STREAM *str);
@@ -131,7 +128,7 @@ void stack_push(
STREAM *str);
void stack_pop(
STACK *stack);
char *stack_gets(
char *stack_getline(
STACK *stack);
#endif /* STREAM2_H */