diff options
author | Perberos <[email protected]> | 2011-11-24 23:33:08 -0300 |
---|---|---|
committer | Perberos <[email protected]> | 2011-11-24 23:33:08 -0300 |
commit | af876ebbd621a63a1a0636fb0ce74da5c2aca480 (patch) | |
tree | fffc4b798e4172059fbd25d78f5bce93b3284af2 /src/mp.h | |
parent | 5b8921d58fbb5ad226815829dece99d5cfc781b8 (diff) | |
download | mate-calc-af876ebbd621a63a1a0636fb0ce74da5c2aca480.tar.bz2 mate-calc-af876ebbd621a63a1a0636fb0ce74da5c2aca480.tar.xz |
allman style format
Diffstat (limited to 'src/mp.h')
-rw-r--r-- | src/mp.h | 26 |
1 files changed, 12 insertions, 14 deletions
@@ -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); |