From af876ebbd621a63a1a0636fb0ce74da5c2aca480 Mon Sep 17 00:00:00 2001 From: Perberos Date: Thu, 24 Nov 2011 23:33:08 -0300 Subject: allman style format --- src/mp-equation-private.h | 44 ++++++++++++++++++++++---------------------- 1 file changed, 22 insertions(+), 22 deletions(-) (limited to 'src/mp-equation-private.h') diff --git a/src/mp-equation-private.h b/src/mp-equation-private.h index 7ef96c2..319e916 100644 --- a/src/mp-equation-private.h +++ b/src/mp-equation-private.h @@ -26,39 +26,39 @@ typedef struct MPEquationParserState MPEquationParserState; /* State for parser */ struct MPEquationParserState { - /* User provided options */ - MPEquationOptions *options; + /* User provided options */ + MPEquationOptions* options; - /* Function to check if a variable is defined */ - int (*variable_is_defined)(MPEquationParserState *state, const char *name); + /* Function to check if a variable is defined */ + int (*variable_is_defined)(MPEquationParserState* state, const char* name); - /* Function to get variable values */ - int (*get_variable)(MPEquationParserState *state, const char *name, MPNumber *z); + /* Function to get variable values */ + int (*get_variable)(MPEquationParserState* state, const char* name, MPNumber* z); - /* Function to set variable values */ - void (*set_variable)(MPEquationParserState *state, const char *name, const MPNumber *x); + /* Function to set variable values */ + void (*set_variable)(MPEquationParserState* state, const char* name, const MPNumber *x); - /* Function to check if a function is defined */ - int (*function_is_defined)(MPEquationParserState *state, const char *name); + /* Function to check if a function is defined */ + int (*function_is_defined)(MPEquationParserState* state, const char* name); - /* Function to solve functions */ - int (*get_function)(MPEquationParserState *state, const char *name, const MPNumber *x, MPNumber *z); + /* Function to solve functions */ + int (*get_function)(MPEquationParserState* state, const char* name, const MPNumber* x, MPNumber* z); - /* Function to convert units */ - int (*convert)(MPEquationParserState *state, const MPNumber *x, const char *x_units, const char *z_units, MPNumber *z); + /* Function to convert units */ + int (*convert)(MPEquationParserState* state, const MPNumber* x, const char* x_units, const char* z_units, MPNumber* z); - // FIXME: get_operator?? + // FIXME: get_operator?? - /* Error returned from parser */ - int error; + /* Error returned from parser */ + int error; - /* Name of token where error occured */ - char *error_token; + /* Name of token where error occured */ + char* error_token; - /* Value returned from parser */ - MPNumber ret; + /* Value returned from parser */ + MPNumber ret; }; -int _mp_equation_error(void *yylloc, MPEquationParserState *state, char *text); +int _mp_equation_error(void* yylloc, MPEquationParserState* state, char* text); #endif -- cgit v1.2.1