1 #ifndef TOOLLIB_MYSTREAM_H
2 #define TOOLLIB_MYSTREAM_H
5 Copyright © 1995-2001, The AROS Development Team. All rights reserved.
10 #ifndef TOOLLIB_TOOLLIB_H
11 # include <toollib/toollib.h>
13 #ifndef TOOLLIB_CALLBACK_H
14 # include <toollib/callback.h>
28 #define Str_Get(str,d) CallCB(((MyStream *)str)->get, str, 0, d)
29 #define Str_Unget(str,c,d) CallCB(((MyStream *)str)->unget, str, c, d)
30 #define Str_Put(str,c,d) CallCB(((MyStream *)str)->put, str, c, d)
32 #define Str_GetName(str) (((MyStream *)str)->name)
33 #define Str_GetLine(str) (((MyStream *)str)->line)
34 #define Str_SetLine(str,l) ((((MyStream *)str)->line) = (l))
35 #define Str_NextLine(str) (((MyStream *)str)->line ++)
37 extern int Str_Init
PARAMS ((MyStream
* ms
, const char * name
));
38 extern void Str_Delete
PARAMS ((MyStream
* ms
));
39 extern int Str_Puts
PARAMS ((MyStream
* ms
, const char * str
, CBD data
));
40 extern void Str_PushError
PARAMS ((MyStream
* ms
, const char * fmt
, ...));
41 extern void Str_PushWarn
PARAMS ((MyStream
* ms
, const char * fmt
, ...));
43 #endif /* TOOLLIB_MYSTREAM_H */