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