summaryrefslogtreecommitdiff
path: root/src/mp.h
diff options
context:
space:
mode:
authorPerberos <[email protected]>2011-11-24 23:33:08 -0300
committerPerberos <[email protected]>2011-11-24 23:33:08 -0300
commitaf876ebbd621a63a1a0636fb0ce74da5c2aca480 (patch)
treefffc4b798e4172059fbd25d78f5bce93b3284af2 /src/mp.h
parent5b8921d58fbb5ad226815829dece99d5cfc781b8 (diff)
downloadmate-calc-af876ebbd621a63a1a0636fb0ce74da5c2aca480.tar.bz2
mate-calc-af876ebbd621a63a1a0636fb0ce74da5c2aca480.tar.xz
allman style format
Diffstat (limited to 'src/mp.h')
-rw-r--r--src/mp.h26
1 files changed, 12 insertions, 14 deletions
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);