/usr/include/gribex/ECMWFdefinitions.h is in libemos-dev 000392+dfsg.1-2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 | /**
* Copyright 1981-2012 ECMWF.
*
* This software is licensed under the terms of the Apache Licence
* Version 2.0 which can be obtained at http://www.apache.org/licenses/LICENSE-2.0.
*
* In applying this licence, ECMWF does not waive the privileges and immunities
* granted to it by virtue of its status as an intergovernmental organisation
* nor does it submit to any jurisdiction.
*/
#ifndef ECMWFDEFNS_H
#define ECMWFDEFNS_H
#include "fortint.h"
void encodeMarsPart(fortint * inputArray, unsigned char * gribSection1);
void decodeMarsPart(fortint * outputArray, unsigned char * gribSection1);
fortint e_def_1(fortint * inputArray, unsigned char * gribSection1);
fortint d_def_1(fortint * outputArray, unsigned char * gribSection1);
fortint e_def_2(fortint * inputArray, unsigned char * gribSection1);
fortint d_def_2(fortint * outputArray, unsigned char * gribSection1);
fortint e_def_3(fortint * inputArray, unsigned char * gribSection1);
fortint d_def_3(fortint * outputArray, unsigned char * gribSection1);
fortint e_def_4(
fortint * inputArray,
unsigned char * gribSection1,
fortint * bitPointer);
fortint d_def_4(
fortint * outputArray,
unsigned char * gribSection1,
fortint * bitPointer);
fortint e_def_5(fortint * inputArray, unsigned char * gribSection1);
fortint d_def_5(fortint * outputArray, unsigned char * gribSection1);
fortint e_def_6(
fortint * inputArray,
unsigned char * gribSection1,
fortint * bitPointer);
fortint d_def_6(
fortint * outputArray,
unsigned char * gribSection1,
fortint * bitPointer);
fortint e_def_7(fortint * inputArray, unsigned char * gribSection1);
fortint d_def_7(fortint * outputArray, unsigned char * gribSection1);
fortint e_def_8(fortint * inputArray, unsigned char * gribSection1);
fortint d_def_8(fortint * outputArray, unsigned char * gribSection1);
fortint e_def_9(fortint * inputArray, unsigned char * gribSection1);
fortint d_def_9(fortint * outputArray, unsigned char * gribSection1);
fortint e_def_10(
fortint * inputArray,
unsigned char * gribSection1,
fortint * bitPointer);
fortint d_def_10(
fortint * outputArray,
unsigned char * gribSection1,
fortint * bitPointer);
fortint e_def_11(fortint * inputArray, unsigned char * gribSection1);
fortint d_def_11(fortint * outputArray, unsigned char * gribSection1);
fortint e_def_13(
fortint * inputArray,
unsigned char * gribSection1,
fortint * bitPointer);
fortint d_def_13(
fortint * outputArray,
unsigned char * gribSection1,
fortint * bitPointer);
fortint e_def_14(fortint * inputArray, unsigned char * gribSection1);
fortint d_def_14(fortint * outputArray, unsigned char * gribSection1);
fortint e_def_15(fortint * inputArray, unsigned char * gribSection1);
fortint d_def_15(fortint * outputArray, unsigned char * gribSection1);
fortint e_def_16(fortint * inputArray, unsigned char * gribSection1);
fortint d_def_16(fortint * outputArray, unsigned char * gribSection1);
fortint e_def_17(
fortint * inputArray,
unsigned char * gribSection1,
fortint * bitPointer);
fortint d_def_17(
fortint * outputArray,
unsigned char * gribSection1,
fortint * bitPointer);
fortint e_def_18(fortint * inputArray, unsigned char * gribSection1);
fortint d_def_18(fortint * outputArray, unsigned char * gribSection1);
fortint e_def_19(fortint * inputArray, unsigned char * gribSection1);
fortint d_def_19(fortint * outputArray, unsigned char * gribSection1);
fortint e_def_20(fortint * inputArray, unsigned char * gribSection1);
fortint d_def_20(fortint * outputArray, unsigned char * gribSection1);
fortint e_def_21(fortint * inputArray, unsigned char * gribSection1);
fortint d_def_21(fortint * outputArray, unsigned char * gribSection1);
fortint e_def_22(fortint * inputArray, unsigned char * gribSection1);
fortint d_def_22(fortint * outputArray, unsigned char * gribSection1);
fortint e_def_23(
fortint * inputArray, unsigned char * gribSection1, fortint * bitPointer);
fortint d_def_23(
fortint * outputArray, unsigned char * gribSection1, fortint * bitPointer);
fortint e_def_50(fortint * inputArray, unsigned char * gribSection1);
fortint d_def_50(fortint * outputArray, unsigned char * gribSection1);
fortint e_def_190(
fortint * inputArray,
unsigned char * gribSection1,
fortint * collectedLocalDefinitionBytes,
fortint * bitPointer);
fortint d_def_190(
fortint * outputArray,
unsigned char * gribSection1,
fortint * collectedLocalDefinitionBytes,
fortint * bitPointer);
fortint e_def_191(
fortint * inputArray,
unsigned char * gribSection1,
fortint * bitPointer);
fortint d_def_191(
fortint * outputArray,
unsigned char * gribSection1,
fortint * bitPointer);
fortint e_def_x(
fortint * definitionNumber,
fortint * outputArray,
unsigned char * gribSection1 );
fortint d_def_x(
fortint * definitionNumber,
fortint * outputArray,
unsigned char * gribSection1 );
fortint jmemove(
fortint * destination,
fortint * destinationOffset,
fortint * source,
fortint * sourceOffset,
fortint * length );
fortint e_def_1_(fortint * inputArray, unsigned char * gribSection1);
fortint d_def_1_(fortint * outputArray, unsigned char * gribSection1);
fortint e_def_2_(fortint * inputArray, unsigned char * gribSection1);
fortint d_def_2_(fortint * outputArray, unsigned char * gribSection1);
fortint e_def_3_(fortint * inputArray, unsigned char * gribSection1);
fortint d_def_3_(fortint * outputArray, unsigned char * gribSection1);
fortint e_def_4_(
fortint * inputArray,
unsigned char * gribSection1,
fortint * bitPointer);
fortint d_def_4_(
fortint * outputArray,
unsigned char * gribSection1,
fortint * bitPointer);
fortint e_def_5_(fortint * inputArray, unsigned char * gribSection1);
fortint d_def_5_(fortint * outputArray, unsigned char * gribSection1);
fortint e_def_6_(
fortint * inputArray,
unsigned char * gribSection1,
fortint * bitPointer);
fortint d_def_6_(
fortint * outputArray,
unsigned char * gribSection1,
fortint * bitPointer);
fortint e_def_7_(fortint * inputArray, unsigned char * gribSection1);
fortint d_def_7_(fortint * outputArray, unsigned char * gribSection1);
fortint e_def_8_(fortint * inputArray, unsigned char * gribSection1);
fortint d_def_8_(fortint * outputArray, unsigned char * gribSection1);
fortint e_def_9_(fortint * inputArray, unsigned char * gribSection1);
fortint d_def_9_(fortint * outputArray, unsigned char * gribSection1);
fortint e_def_10_(
fortint * inputArray,
unsigned char * gribSection1,
fortint * bitPointer);
fortint d_def_10_(
fortint * outputArray,
unsigned char * gribSection1,
fortint * bitPointer);
fortint e_def_11_(fortint * inputArray, unsigned char * gribSection1);
fortint d_def_11_(fortint * outputArray, unsigned char * gribSection1);
fortint e_def_13_(
fortint * inputArray,
unsigned char * gribSection1,
fortint * bitPointer);
fortint d_def_13_(
fortint * outputArray,
unsigned char * gribSection1,
fortint * bitPointer);
fortint e_def_14_(fortint * inputArray, unsigned char * gribSection1);
fortint d_def_14_(fortint * outputArray, unsigned char * gribSection1);
fortint e_def_15_(fortint * inputArray, unsigned char * gribSection1);
fortint d_def_15_(fortint * outputArray, unsigned char * gribSection1);
fortint e_def_16_(fortint * inputArray, unsigned char * gribSection1);
fortint d_def_16_(fortint * outputArray, unsigned char * gribSection1);
fortint e_def_17_(
fortint * inputArray,
unsigned char * gribSection1,
fortint * bitPointer);
fortint d_def_17_(
fortint * outputArray,
unsigned char * gribSection1,
fortint * bitPointer);
fortint e_def_18_(fortint * inputArray, unsigned char * gribSection1);
fortint d_def_18_(fortint * outputArray, unsigned char * gribSection1);
fortint e_def_19_(fortint * inputArray, unsigned char * gribSection1);
fortint d_def_19_(fortint * outputArray, unsigned char * gribSection1);
fortint e_def_20_(fortint * inputArray, unsigned char * gribSection1);
fortint d_def_20_(fortint * outputArray, unsigned char * gribSection1);
fortint e_def_21_(fortint * inputArray, unsigned char * gribSection1);
fortint d_def_21_(fortint * outputArray, unsigned char * gribSection1);
fortint e_def_50_(fortint * inputArray, unsigned char * gribSection1);
fortint d_def_50_(fortint * outputArray, unsigned char * gribSection1);
fortint e_def_190_(
fortint * inputArray,
unsigned char * gribSection1,
fortint * collectedLocalDefinitionBytes,
fortint * bitPointer);
fortint d_def_190_(
fortint * outputArray,
unsigned char * gribSection1,
fortint * collectedLocalDefinitionBytes,
fortint * bitPointer);
fortint e_def_191_(
fortint * inputArray,
unsigned char * gribSection1,
fortint * bitPointer);
fortint d_def_191_(
fortint * outputArray,
unsigned char * gribSection1,
fortint * bitPointer);
fortint e_def_x(
fortint * definitionNumber,
fortint * outputArray,
unsigned char * gribSection1 );
fortint d_def_x(
fortint * definitionNumber,
fortint * outputArray,
unsigned char * gribSection1 );
fortint jmemove_(
fortint * destination,
fortint * destinationOffset,
fortint * source,
fortint * sourceOffset,
fortint * length );
#define ONEBYTEINT(a) (fortint) ( *(a) )
#define TWOBYTEINT(a) (fortint) ( (*(a))<<8 | (*((a)+1))<<0 )
#define THREEBYTEINT(a) (fortint) (TWOBYTEINT((a))<<8 | (*((a)+2))<<0 )
#define FOURBYTEINT(a) (fortint) (THREEBYTEINT((a))<<8 | (*((a)+3))<<0 )
#define ONEBYTE(n) ((*(n)>> 0) & 0xFF)
#define MOVE1BYTE(p,n) ( *(p) = ((*(n)>> 0) & 0xFF) )
#define MOVE2BYTES(p,n) ( *(p) = ((*(n)>> 8) & 0xFF) ) , \
( *((p)+1) = ((*(n)>> 0) & 0xFF) )
#define MOVE3BYTES(p,n) ( *(p) = ((*(n)>>16) & 0xFF) ) , \
( *((p)+1) = ((*(n)>> 8) & 0xFF) ) , \
( *((p)+2) = ((*(n)>> 0) & 0xFF) )
#define MOVE4BYTES(p,n) ( *(p) = ((*(n)>>24) & 0xFF) ) , \
( *((p)+1) = ((*(n)>>16) & 0xFF) ) , \
( *((p)+2) = ((*(n)>> 8) & 0xFF) ) , \
( *((p)+3) = ((*(n)>> 0) & 0xFF) )
#endif /* End of ECMWFDEFNS_H */
|