comparison stitch/fillable.h @ 0:5242703e91d3 tip

Initial checkin for AIM92 aimR8.2 (last updated May 1997).
author tomwalters
date Fri, 20 May 2011 15:19:45 +0100
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:5242703e91d3
1 /*
2 fillable.h
3 ==========
4
5 fillable derived sources
6
7 */
8
9 #define SetFillableSource( _source , _filler, _name ) \
10 setFillableSource( &( _source )->parent, _filler, _name )
11 #define DeleteFillableSource( _source ) \
12 deleteFillableSource( &( _source )->parent )
13
14 /* derived Fillable sources */
15
16 #define NewRepeatingSource( _data , _segment ) \
17 newRepeatingSource( (Pointer) ( _data ), _segment )
18
19
20 #define NewSegmentingSource( _source, _block ) \
21 newSegmentingSource( _source, (ByteCount) ( _block ) )
22
23
24 #define NewCallbackSource( _filler, _state , _callback, _close, _name ) \
25 newCallbackSource( _filler, (Pointer) ( _state ), _callback, _close, _name )
26
27 #define NewExternalSource( _state , _callback, _close, _name ) \
28 newExternalSource( (Pointer) ( _state ), _callback, _close, _name )
29
30 #define NewThroughSource( _filler, _state , _callback, _close, _input, _name ) \
31 newThroughSource( _filler, (Pointer) ( _state ), _callback, _close, _input, _name )
32
33
34 #define NewProcessingSource( _state , _callback, _close, _input, _name ) \
35 newProcessingSource( (Pointer) ( _state ), _callback, _close, _input, _name )
36
37 #define NewSimpleProcessingSource( _callback, _input, _name ) \
38 newSimpleProcessingSource( _callback, _input, _name )
39
40
41 #define NewMultiplexedSource( _states , _callback, _close, _channels, _input, _name ) \
42 newMultiplexedSource( (Pointer *) ( _states ), _callback, _close, _channels, _input, _name )
43
44
45 #define NewMergingSource( _state , _callback, _close, _inputs, _name ) \
46 newMergingSource( (Pointer) ( _state ), _callback, _close, _inputs, _name )
47
48 #define SharingSource( _source1, _source2 ) \
49 sharingSource( _source1, _source2 )
50
51 /* derived higher level filling sources */
52
53 extern Source setFillableSource() ;
54 extern Pointer deleteFillableSource() ;
55
56 extern Source newSegmentingSource() ;
57
58 extern Source setCallbackSource() ;
59 extern Source newExternalSource() ;
60 extern Source newThroughSource() ;
61
62 extern Source newProcessingSource() ;
63 extern Source newSimpleProcessingSource() ;
64 extern Source newMultiplexedSource() ;
65 extern Source newMergingSource() ;
66
67 extern Source sharingSource() ;