Tidying up indentation

This commit is contained in:
Shahram Najm 2013-05-10 11:33:56 +01:00
parent b4a4f7855c
commit f8e9cf0032
4 changed files with 470 additions and 482 deletions

View File

@ -381,7 +381,6 @@ static int grib_load_codetable(grib_context* c,const char* filename,
t->entries[code].title = grib_context_strdup_persistent(c,title); t->entries[code].title = grib_context_strdup_persistent(c,title);
t->entries[code].units = grib_context_strdup_persistent(c,units); t->entries[code].units = grib_context_strdup_persistent(c,units);
} }
fclose(f); fclose(f);
@ -416,8 +415,6 @@ void grib_codetable_delete(grib_context* c) {
} }
static void dump(grib_accessor* a, grib_dumper* dumper) { static void dump(grib_accessor* a, grib_dumper* dumper) {
grib_accessor_codetable* self = (grib_accessor_codetable*)a; grib_accessor_codetable* self = (grib_accessor_codetable*)a;
char comment[2048]; char comment[2048];
@ -632,7 +629,6 @@ static void destroy(grib_context* context,grib_accessor* a)
grib_context_free(context, a->vvalue); grib_context_free(context, a->vvalue);
a->vvalue=NULL; a->vvalue=NULL;
} }
} }
static int get_native_type(grib_accessor* a){ static int get_native_type(grib_accessor* a){

View File

@ -165,7 +165,6 @@ static long value_count(grib_accessor* a)
long number_of_values; long number_of_values;
grib_accessor_data_g1simple_packing *self =(grib_accessor_data_g1simple_packing*)a; grib_accessor_data_g1simple_packing *self =(grib_accessor_data_g1simple_packing*)a;
/* Special case for when values are cleared */ /* Special case for when values are cleared */
/*if(a->length == 0) /*if(a->length == 0)
return 0;*/ return 0;*/
@ -173,7 +172,6 @@ static long value_count(grib_accessor* a)
if(grib_get_long_internal(a->parent->h,self->number_of_values,&number_of_values) != GRIB_SUCCESS) if(grib_get_long_internal(a->parent->h,self->number_of_values,&number_of_values) != GRIB_SUCCESS)
return 0; return 0;
return number_of_values; return number_of_values;
} }
static int pack_double(grib_accessor* a, const double* cval, size_t *len) static int pack_double(grib_accessor* a, const double* cval, size_t *len)

View File

@ -156,8 +156,6 @@ static long value_count(grib_accessor* a)
return n_vals; return n_vals;
} }
static int pack_double(grib_accessor* a, const double* cval, size_t *len) static int pack_double(grib_accessor* a, const double* cval, size_t *len)
{ {
grib_accessor_data_g2simple_packing* self = (grib_accessor_data_g2simple_packing*)a; grib_accessor_data_g2simple_packing* self = (grib_accessor_data_g2simple_packing*)a;

View File

@ -101,7 +101,6 @@ static int init(grib_nearest* nearest,grib_handle* h,grib_arguments* args)
if (!self->k) return GRIB_OUT_OF_MEMORY; if (!self->k) return GRIB_OUT_OF_MEMORY;
return 0; return 0;
} }
static int find(grib_nearest* nearest, grib_handle* h, static int find(grib_nearest* nearest, grib_handle* h,
@ -144,7 +143,7 @@ static int find(grib_nearest* nearest, grib_handle* h,
return ret ? ret : GRIB_GEOCALCULUS_PROBLEM; return ret ? ret : GRIB_GEOCALCULUS_PROBLEM;
} }
if( (ret = grib_get_long(h,self->Nj,&n))!= GRIB_SUCCESS) if ( (ret = grib_get_long(h,self->Nj,&n))!= GRIB_SUCCESS)
return ret; return ret;
self->lats_count=n; self->lats_count=n;
@ -334,7 +333,6 @@ static int find(grib_nearest* nearest, grib_handle* h,
return GRIB_SUCCESS; return GRIB_SUCCESS;
} }
static int destroy(grib_nearest* nearest) { static int destroy(grib_nearest* nearest) {
grib_nearest_latlon_reduced* self = (grib_nearest_latlon_reduced*) nearest; grib_nearest_latlon_reduced* self = (grib_nearest_latlon_reduced*) nearest;
if (self->lats) grib_context_free(nearest->context,self->lats); if (self->lats) grib_context_free(nearest->context,self->lats);
@ -345,5 +343,3 @@ static int destroy(grib_nearest* nearest) {
return GRIB_SUCCESS; return GRIB_SUCCESS;
} }