Mapper
sherrp.c
Go to the documentation of this file.
1 /*Translated by FOR_C, v3.4.2 (-), on 06/07/94 at 17:02:13 */
2 /*FOR_C Options SET: c=2 com=u do=r4 ftn=2ln6k op=iv s=dvn str=l sq=i */
3 #define _POSIX_SOURCE
4 #include <stdio.h>
5 #include <stdlib.h>
6 #include <ctype.h>
7 #include <dirent.h>
8 #include <unistd.h>
9 #include <math.h>
10 #include <string.h>
11 #include <fcntl.h>
12 #include <sys/stat.h>
13 #include "shef_structs_external.h"
14 
15 /*---------------------------------------------------------------------
16 
17  NAME
18  SUBROUTINE SHERRP(IER)
19 
20  PURPOSE
21  Print out error messages from sherr
22 
23  VERSION and UPDATES
24  1.0 MAY 94 David G. Brandon
25  Original Version
26  Also translated to 'C' using FOR_C
27  1.1 JAN 24 96 DGB
28  Increase message5 array to 63.
29  Add message warning 39.
30  1.2 SEP 9 97 DGB
31  Add printing capabilities for errors number
32  39, 40.
33  1.3 OCT 19 97 DGB
34  Add an additional piece ( message221 ) to message22.
35  --------------------------------------------------------------------- */
36 
37 
38 void sherrp(ier)
39 short int *ier;
40 {
41 
42  if( *ier == 1 )
43  {
44  fprintf(fp_.icher," %s\n",err1_.message1);
45  return;
46  }
47 
48  if( *ier == 2 )
49  {
50  fprintf( fp_.icher, " %s\n", err1_.message2 );
51  return;
52  }
53 
54 
55  if( *ier == 3 )
56  {
57  fprintf( fp_.icher," %s\n", err1_.message3 );
58  return;
59  }
60 
61 
62  if( *ier == 4 )
63  {
64  fprintf( fp_.icher, " %s\n", err1_.message4 );
65  return;
66  }
67 
68 
69  if( *ier == 5 )
70  {
71  fprintf( fp_.icher, " %s\n", err1_.message5 );
72  return;
73  }
74 
75  if( *ier == 6 )
76  {
77  fprintf( fp_.icher, " %s\n", err2_.message6 );
78  return;
79  }
80 
81  if( *ier == 7 )
82  {
83  fprintf( fp_.icher, " %s\n", err2_.message7 );
84  return;
85  }
86 
87 
88  if( *ier == 8 )
89  {
90  fprintf( fp_.icher, " %s\n", err2_.message8 );
91  return;
92  }
93 
94  if( *ier == 9 )
95  {
96  fprintf( fp_.icher, " %s\n", err2_.message9 );
97  return;
98  }
99 
100  if( *ier == 10 )
101  {
102  fprintf( fp_.icher, " %s\n", err2_.message10 );
103  return;
104  }
105 
106  if( *ier == 11 )
107  {
108  fprintf( fp_.icher, " %s\n", err3_.message11 );
109  return;
110  }
111 
112  if( *ier == 12 )
113  {
114  fprintf( fp_.icher, " %s\n", err3_.message12 );
115  return;
116  }
117 
118  if( *ier == 13 )
119  {
120  fprintf( fp_.icher, " %s\n", err3_.message13 );
121  return;
122  }
123 
124  if( *ier == 14 )
125  {
126  fprintf( fp_.icher, " %s\n",err3_.message14 );
127  return;
128  }
129 
130  if( *ier == 15 )
131  {
132  fprintf( fp_.icher, " %s\n", err3_.message15 );
133  return;
134  }
135 
136  if( *ier == 16 )
137  {
138  fprintf( fp_.icher, " %s\n", err3_.message14 );
139  return;
140  }
141 
142  if( *ier == 17 )
143  {
144  fprintf( fp_.icher, " %s\n", err4_.message17 );
145  return;
146  }
147 
148  if( *ier == 18 )
149  {
150  fprintf( fp_.icher, " %s\n", err4_.message18 );
151  return;
152  }
153 
154  if( *ier == 19 )
155  {
156  fprintf( fp_.icher, " %s\n", err4_.message19 );
157  return;
158  }
159 
160  if( *ier == 20 )
161  {
162  fprintf( fp_.icher, " %s\n", err4_.message20 );
163  return;
164  }
165 
166  if( *ier == 21 )
167  {
168  fprintf( fp_.icher, " %s\n", err5_.message21 );
169  return;
170  }
171 
172  if( *ier == 22 )
173  {
174  fprintf( fp_.icher, " %s\n %s\n",err5_.message22,
175  err5_.message221 );
176  return;
177  }
178 
179  if( *ier == 23 )
180  {
181  fprintf( fp_.icher, " %s\n", err5_.message23 );
182  return;
183  }
184 
185  if( *ier == 24 )
186  {
187  fprintf( fp_.icher, " %s\n", err5_.message24 );
188  return;
189  }
190 
191  if( *ier == 25 )
192  {
193  fprintf( fp_.icher, " %s\n", err5_.message25 );
194  return;
195  }
196 
197  if( *ier == 26 )
198  {
199  fprintf( fp_.icher, " %s\n",err6_.message26 );
200  return;
201  }
202 
203  if( *ier == 27 )
204  {
205  fprintf( fp_.icher, " %s\n",err6_.message27 );
206  return;
207  }
208 
209  if( *ier == 28 )
210  {
211  fprintf( fp_.icher, " %s\n", err6_.message28 );
212  return;
213  }
214 
215  if( *ier == 29 )
216  {
217  fprintf( fp_.icher, " %s\n", err6_.message29 );
218  return;
219  }
220 
221  if( *ier == 30 )
222  {
223  fprintf( fp_.icher, " %s\n", err6_.message30 );
224  return;
225  }
226 
227  if( *ier == 31 )
228  {
229  fprintf( fp_.icher, " %s\n", err7_.message31 );
230  return;
231  }
232 
233  if( *ier == 32 )
234  {
235  fprintf( fp_.icher, " %s\n", err7_.message32 );
236  return;
237  }
238 
239  if( *ier == 33 )
240  {
241  fprintf( fp_.icher, " %s\n", err7_.message33 );
242  return;
243  }
244 
245  if( *ier == 34 )
246  {
247  fprintf( fp_.icher, " %s\n", err7_.message34 );
248  return;
249  }
250 
251  if( *ier == 35 )
252  {
253  fprintf( fp_.icher, " %s\n", err7_.message35 );
254  return;
255  }
256 
257  if( *ier == 36 )
258  {
259  fprintf( fp_.icher, " %s\n", err8_.message36 );
260  return;
261  }
262 
263  if( *ier == 37 )
264  {
265  fprintf( fp_.icher, " %s\n %s\n", err8_.message37
266  , err8_.message371 );
267  return;
268  }
269 
270  if( *ier == 38 )
271  {
272  fprintf( fp_.icher, " %s\n", err8_.message38);
273  return;
274  }
275 
276  if( *ier == 39 ) /* dgb:09/10/97 */
277  {
278  fprintf( fp_.icher, " %s\n", err8_.message39);
279  return;
280  }
281 
282  if( *ier == 40 ) /* dgb:09/10/97 */
283  {
284  fprintf( fp_.icher, " %s\n", err8_.message40);
285  return;
286  }
287 
288  return;
289 
290 }
fprintf(fp,"%d %d %d %d 1\n", iminx, iminy, maxi, maxj)
struct t_err3_ err3_
struct t_err1_ err1_
struct t_err8_ err8_
struct t_err7_ err7_
struct t_pointers_ fp_
struct t_err5_ err5_
struct t_err4_ err4_
struct t_err6_ err6_
struct t_err2_ err2_
void sherrp(short int *ier)
Definition: sherrp.c:38
char message3[62]
Definition: shef_structs.h:135
char message2[43]
Definition: shef_structs.h:135
char message5[63]
Definition: shef_structs.h:135
char message4[29]
Definition: shef_structs.h:135
char message1[37]
Definition: shef_structs.h:135
char message7[34]
Definition: shef_structs.h:138
char message8[38]
Definition: shef_structs.h:138
char message6[57]
Definition: shef_structs.h:138
char message9[40]
Definition: shef_structs.h:138
char message10[32]
Definition: shef_structs.h:138
char message14[61]
Definition: shef_structs.h:141
char message15[51]
Definition: shef_structs.h:142
char message13[47]
Definition: shef_structs.h:141
char message11[45]
Definition: shef_structs.h:141
char message12[32]
Definition: shef_structs.h:141
char message19[75]
Definition: shef_structs.h:145
char message17[43]
Definition: shef_structs.h:145
char message18[48]
Definition: shef_structs.h:145
char message20[66]
Definition: shef_structs.h:146
char message25[38]
Definition: shef_structs.h:150
char message221[58]
Definition: shef_structs.h:149
char message23[51]
Definition: shef_structs.h:149
char message24[32]
Definition: shef_structs.h:150
char message22[67]
Definition: shef_structs.h:149
char message21[63]
Definition: shef_structs.h:149
char message30[45]
Definition: shef_structs.h:154
char message26[29]
Definition: shef_structs.h:153
char message27[29]
Definition: shef_structs.h:153
char message28[64]
Definition: shef_structs.h:153
char message29[43]
Definition: shef_structs.h:153
char message33[34]
Definition: shef_structs.h:157
char message35[79]
Definition: shef_structs.h:158
char message32[48]
Definition: shef_structs.h:157
char message31[41]
Definition: shef_structs.h:157
char message34[36]
Definition: shef_structs.h:157
char message39[77]
Definition: shef_structs.h:162
char message37[72]
Definition: shef_structs.h:161
char message38[82]
Definition: shef_structs.h:161
char message36[80]
Definition: shef_structs.h:161
char message371[53]
Definition: shef_structs.h:161
char message40[41]
Definition: shef_structs.h:162
FILE * icher
Definition: shef_structs.h:72