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.h | 26 ++++++++++++-------------- 1 file changed, 12 insertions(+), 14 deletions(-) (limited to 'src/mp.h') diff --git a/src/mp.h b/src/mp.h index d71111d..d7f226f 100644 --- a/src/mp.h +++ b/src/mp.h @@ -53,28 +53,26 @@ * * x = sign * (MP_BASE^(exponent-1) + MP_BASE^(exponent-2) + ...) */ -typedef struct -{ - /* Sign (+1, -1) or 0 for the value zero */ - int sign, im_sign; +typedef struct { + /* Sign (+1, -1) or 0 for the value zero */ + int sign, im_sign; - /* Exponent (to base MP_BASE) */ - int exponent, im_exponent; + /* Exponent (to base MP_BASE) */ + int exponent, im_exponent; - /* Normalized fraction */ - int fraction[MP_SIZE], im_fraction[MP_SIZE]; + /* Normalized fraction */ + int fraction[MP_SIZE], im_fraction[MP_SIZE]; } MPNumber; -typedef enum -{ - MP_RADIANS, - MP_DEGREES, - MP_GRADIANS +typedef enum { + MP_RADIANS, + MP_DEGREES, + MP_GRADIANS } MPAngleUnit; /* Returns error string or NULL if no error */ // FIXME: Global variable -const char *mp_get_error(void); +const char* mp_get_error(void); /* Clear any current error */ void mp_clear_error(void); -- cgit v1.2.1