ECC-1063: Apply consistent code style to source

This commit is contained in:
Shahram Najm 2020-01-29 10:27:59 +00:00
parent 1975eae139
commit 04bcc3792e
4 changed files with 170 additions and 165 deletions

View File

@ -64,7 +64,8 @@ See http://www.delorie.com/gnu/docs/automake/automake_48.html
#define MAX_SET 40
typedef struct key_value key_value;
struct key_value {
struct key_value
{
char* key;
grib_runtime_type value;
}

View File

@ -45,7 +45,8 @@
#define MODE_TAF 5
#define MODE_ANY 6
typedef union grib_typed_value {
typedef union grib_typed_value
{
long* long_value;
double* double_value;
const char* string_value;
@ -62,14 +63,16 @@ typedef struct grib_constraints {
} grib_constraints;
*/
typedef struct grib_options_help {
typedef struct grib_options_help
{
const char* id;
const char* args;
const char* help;
} grib_options_help;
typedef struct grib_option {
typedef struct grib_option
{
char* id;
char* args;
char* help;
@ -80,7 +83,8 @@ typedef struct grib_option {
typedef struct grib_failed grib_failed;
struct grib_failed {
struct grib_failed
{
int count;
int error;
grib_failed* next;
@ -88,7 +92,8 @@ struct grib_failed {
typedef struct grib_tools_file grib_tools_file;
struct grib_tools_file {
struct grib_tools_file
{
FILE* file;
char* name;
int handle_count;
@ -97,7 +102,8 @@ struct grib_tools_file {
grib_tools_file* next;
};
typedef struct grib_runtime_options {
typedef struct grib_runtime_options
{
int verbose;
int fail;
int skip;
@ -202,4 +208,3 @@ int grib_no_handle_action(grib_runtime_options* options,int err);
int exit_if_input_is_directory(const char* tool_name, const char* filename);
#endif

View File

@ -20,4 +20,3 @@ int getopt(int argc, char *argv[], const char *optstring);
#endif
#endif