1 #include <nit_common.h>
2 #include "standard___stream._sep.h"
9 struct nitni_ref ref
; /* real ref struct, must be first */
11 typedef struct s_FDStream
*FDStream
;
12 #define FDStream_incr_ref( x ) nitni_global_ref_incr( (struct nitni_ref*)(x) )
13 #define FDStream_decr_ref( x ) nitni_global_ref_decr( (struct nitni_ref*)(x) )
18 struct nitni_ref ref
; /* real ref struct, must be first */
20 typedef struct s_Object
*Object
;
21 #define Object_incr_ref( x ) nitni_global_ref_incr( (struct nitni_ref*)(x) )
22 #define Object_decr_ref( x ) nitni_global_ref_decr( (struct nitni_ref*)(x) )
27 struct nitni_ref ref
; /* real ref struct, must be first */
29 typedef struct s_Array
*Array
;
30 #define Array_incr_ref( x ) nitni_global_ref_incr( (struct nitni_ref*)(x) )
31 #define Array_decr_ref( x ) nitni_global_ref_decr( (struct nitni_ref*)(x) )
33 #ifndef NULLABLE_INT_TYPE
34 #define NULLABLE_INT_TYPE
35 struct s_nullable_Int
{
36 struct nitni_ref ref
; /* real ref struct, must be first */
38 typedef struct s_nullable_Int
*nullable_Int
;
40 #define null_Int stream_null_Int
42 nullable_Int
stream_null_Int();
43 #define Int_incr_ref( x ) nitni_global_ref_incr( (struct nitni_ref*)(x) )
44 #define Int_decr_ref( x ) nitni_global_ref_decr( (struct nitni_ref*)(x) )
49 struct nitni_ref ref
; /* real ref struct, must be first */
51 typedef struct s_Array
*Array
;
52 #define Array_incr_ref( x ) nitni_global_ref_incr( (struct nitni_ref*)(x) )
53 #define Array_decr_ref( x ) nitni_global_ref_decr( (struct nitni_ref*)(x) )
55 #ifndef NULLABLE_OBJECT_TYPE
56 #define NULLABLE_OBJECT_TYPE
57 struct s_nullable_Object
{
58 struct nitni_ref ref
; /* real ref struct, must be first */
60 typedef struct s_nullable_Object
*nullable_Object
;
62 #define null_Object stream_null_Object
64 nullable_Object
stream_null_Object();
65 #define Object_incr_ref( x ) nitni_global_ref_incr( (struct nitni_ref*)(x) )
66 #define Object_decr_ref( x ) nitni_global_ref_decr( (struct nitni_ref*)(x) )
68 #include "stream_nit.h"
70 /* out/indirect function for stream::FDStream::native_close */
71 val_t
FDStream_native_close___out( val_t recv
, val_t i
);
73 /* out/indirect function for stream::FDStream::native_read_char */
74 val_t
FDStream_native_read_char___out( val_t recv
, val_t i
);
76 /* out/indirect function for stream::FDStream::native_read */
77 val_t
FDStream_native_read___out( val_t recv
, val_t i
, val_t buf
, val_t len
);
79 /* out/indirect function for stream::FDStream::native_write */
80 val_t
FDStream_native_write___out( val_t recv
, val_t i
, val_t buf
, val_t len
);
82 /* out/indirect function for stream::FDStream::native_write_char */
83 val_t
FDStream_native_write_char___out( val_t recv
, val_t i
, val_t c
);
85 /* out/indirect function for stream::Object::intern_poll */
86 val_t
Object_intern_poll___out( val_t recv
, val_t in_fds
, val_t out_fds
);
87 /* friendly for array::AbstractArrayRead::(abstract_collection::Collection::length) */
88 bigint
stream_Array_length( Array recv
);
90 #define Array_length stream_Array_length
92 /* friendly for array::Array::(abstract_collection::SequenceRead::[]) */
93 nullable_Object
stream_Array__index( Array recv
, bigint index
);
95 #define Array__index stream_Array__index
98 /* Type check for nullable Object with Int */
99 int stream_nullable_Object_is_a_Int( nullable_Object value
);
100 #ifndef nullable_Object_is_a_Int
101 #define nullable_Object_is_a_Int stream_nullable_Object_is_a_Int
104 /* Cast for nullable Object to Int */
105 bigint
stream_nullable_Object_as_Int( nullable_Object value
);
106 #ifndef nullable_Object_as_Int
107 #define nullable_Object_as_Int stream_nullable_Object_as_Int
110 /* Cast for Int to nullable Int */
111 nullable_Int
stream_Int_as_nullable( bigint value
);
112 #ifndef Int_as_nullable
113 #define Int_as_nullable stream_Int_as_nullable