comparison glib/null.c @ 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 null.c
3 ======
4
5 dummpy null window.
6
7
8 Copyright (c), 1989 The Medical Research Council, Applied Psychology Unit.
9
10
11 Author : John Holdsworth
12 Written : 22nd March, 1989.
13
14 Edited :
15
16
17
18
19 */
20
21 #include <stdio.h>
22 #include <malloc.h>
23
24 #include "windows.h"
25
26 #ifndef lint
27 static char *sccs_id = "@(#)null.c 1.1 J. Holdsworth (MRC-APU) 11/8/90" ;
28 #endif
29
30 static short null__x( info )
31 WindowObject info ;
32 {
33 return( 0 ) ;
34 }
35
36 static short null__y( info )
37 WindowObject info ;
38 {
39 return( 0 ) ;
40 }
41
42 static short null__width( info )
43 WindowObject info ;
44 {
45 return( 1 ) ;
46 }
47
48 static short null__height( info )
49 WindowObject info ;
50 {
51 return( 1 ) ;
52 }
53
54 static void null__draw( info, xs, ys, points )
55 WindowObject info ;
56 short xs[], ys[] ;
57 int points ;
58 {
59 return ;
60 }
61
62 static void null__clear( info )
63 WindowObject info ;
64 {
65 return ;
66 }
67
68 static void null__close( info )
69 WindowObject info ;
70 {
71 return ;
72 }
73
74 static int null__store( info )
75 WindowObject info ;
76 {
77 return ( 1 ) ;
78 }
79
80 static void null__recall( info, which )
81 WindowObject info ;
82 int which ;
83 {
84 #ifdef lint
85 info, which ;
86 #endif
87 return ;
88 }
89
90 static void null__fillRow( info, row, pixels, width )
91 WindowObject info ;
92 int row, *pixels, width ;
93 {
94 #ifdef lint
95 info, row, pixels, width ;
96 #endif
97 return ;
98 }
99
100 static void null__fillCol( info, col, input, min, max, match, height )
101 WindowObject info ;
102 int col ;
103 short *input ;
104 int min, max, *match, height ;
105 {
106 return ;
107 }
108
109 static void null__function( info, ys, segment, skip, offset, yspan, start, points )
110 WindowObject info ;
111 short *ys ;
112 int segment, skip ;
113 double offset, yspan ;
114 int start, points ;
115 {
116 return ;
117 }
118
119 static int null__read( info, fp, which )
120 WindowObject info ;
121 FILE *fp ;
122 int which ;
123 {
124 #ifdef lint
125 info ; fp ; which ;
126 #endif
127 return ;
128 }
129
130 static void null__write( info, fp )
131 WindowObject info ;
132 FILE *fp ;
133 {
134 #ifdef lint
135 info ; fp ;
136 #endif
137 return ;
138 }
139
140 static char null__pause( info )
141 WindowObject info ;
142 {
143 #ifdef lint
144 info ;
145 #endif
146 return ;
147 }
148
149
150 static void null__axes( info, title, xmin, xmax, xtitle, ymin, ymax, ytitle )
151 WindowObject info ;
152 char *title ;
153 double xmin, xmax ;
154 char *xtitle ;
155 double ymin, ymax ;
156 char *ytitle ;
157 {
158 return ;
159 }
160
161 static void null__marker( info, label, p, points )
162 WindowObject info ;
163 char *label ;
164 int p, points ;
165 {
166 return ;
167 }
168
169 static int null__special( info, code, data )
170 WindowObject info ;
171 int code ;
172 char *data ;
173 {
174 return 0 ;
175 }
176
177 static windowEntries entries = { null__x, null__y, null__width, null__height, null__draw, null__clear, null__close,
178 null__store, null__recall, null__fillRow, null__fillCol,
179 null__function, null__read, null__write,
180 null__pause, null__axes, null__marker, null__special } ;
181 static struct _window_object dummy_obj = { &entries, { 0 } } ;
182 WindowObject NullWindowObject = &dummy_obj ;
183
184 WindowObject newNullWindow()
185 {
186 return ( NullWindowObject ) ;
187 }
188