Remove unused macros

This commit is contained in:
Shahram Najm 2016-04-29 18:32:32 +01:00
parent 1efea29c2c
commit e5ee658dde
7 changed files with 0 additions and 14 deletions

View File

@ -19,7 +19,6 @@
#include "eccodes.h"
#define MAX_KEY_LEN 255
#define MAX_VAL_LEN 1024
void usage(char* prog) {

View File

@ -26,7 +26,6 @@
#include "eccodes.h"
#define MAX_KEY_LEN 255
#define MAX_VAL_LEN 1024
static void usage(char* progname);

View File

@ -16,11 +16,6 @@
#include <math.h>
#define SCANXY 1
#define SCANYX 2
#define SCANRXRY 3
#define SCANXRY 4
#define SCANRXY 5
#define NUMBER(x) (sizeof(x)/sizeof(x[0]))
#define MAXITER 10

View File

@ -29,7 +29,6 @@ GRIB_INLINE static int strcmp(const char* a,const char* b) {
}
#endif
#define SIZE ((int)4097)
#ifndef NUMBER
#define NUMBER(a) (sizeof(a)/sizeof(a[0])) /* number of elem. of an array */
#endif

View File

@ -14,8 +14,6 @@
#include "grib_api_internal.h"
#define GRIB_EPSILON 10E-12
/* Return n to the power of s */
double grib_power(long s,long n)
{

View File

@ -20,8 +20,6 @@ GRIB_INLINE static int grib_inline_strcmp(const char* a,const char* b)
return (*a==0 && *b==0) ? 0 : 1;
}
#define SWAP(a,b) temp=(a);(a)=(b);(b)=temp;
int grib_set_expression(grib_handle* h, const char* name,grib_expression* e)
{
grib_accessor* a = grib_find_accessor(h, name);

View File

@ -30,8 +30,6 @@
#define CHECK(a) check(#a,a)
#define NUMBER(a) (sizeof(a)/sizeof(a[0]))
const char* file = 0;
int field = 0;