[Gmp-commit] /var/hg/gmp: Whitespace cleanup.
mercurial at gmplib.org
mercurial at gmplib.org
Sun Mar 4 19:43:09 CET 2012
details: /var/hg/gmp/rev/46f227af64c0
changeset: 14730:46f227af64c0
user: Marco Bodrato <bodrato at mail.dm.unipi.it>
date: Sun Mar 04 19:43:04 2012 +0100
description:
Whitespace cleanup.
diffstat:
demos/expr/expr-impl.h | 49 ++++++++++++++++++++++++-------------------------
demos/expr/expr.c | 2 +-
demos/expr/expr.h | 10 +++++-----
demos/expr/exprf.c | 4 ++--
demos/expr/exprq.c | 4 ++--
demos/expr/exprz.c | 4 ++--
6 files changed, 36 insertions(+), 37 deletions(-)
diffs (150 lines):
diff -r d287cfaf6732 -r 46f227af64c0 demos/expr/expr-impl.h
--- a/demos/expr/expr-impl.h Sun Mar 04 19:27:57 2012 +0100
+++ b/demos/expr/expr-impl.h Sun Mar 04 19:43:04 2012 +0100
@@ -83,7 +83,7 @@
struct mpexpr_control_t {
const struct mpexpr_operator_t *op;
- int argcount;
+ int argcount;
};
#define MPEXPR_VARIABLES 26
@@ -91,36 +91,35 @@
struct mpexpr_parse_t {
const struct mpexpr_operator_t *table;
- mpX_ptr res;
- int base;
- unsigned long prec;
+ mpX_ptr res;
+ int base;
+ unsigned long prec;
const char *e;
- size_t elen;
- mpX_srcptr *var;
- int error_code;
+ size_t elen;
+ mpX_srcptr *var;
+ int error_code;
- int token;
+ int token;
const struct mpexpr_operator_t *token_op;
- union mpX_t *data_stack;
- int data_top;
- int data_alloc;
- int data_inited;
+ union mpX_t *data_stack;
+ int data_top;
+ int data_alloc;
+ int data_inited;
- struct mpexpr_control_t *control_stack;
- int control_top;
- int control_alloc;
+ struct mpexpr_control_t *control_stack;
+ int control_top;
+ int control_alloc;
-
- mpexpr_fun_0ary_t mpX_clear;
- mpexpr_fun_i_unary_t mpX_ulong_p;
- mpexpr_fun_get_ui_t mpX_get_ui;
- mpexpr_fun_unary_ui_t mpX_init;
- mpexpr_fun_number_t mpX_number;
- mpexpr_fun_unary_t mpX_set;
- mpexpr_fun_unary_t mpX_set_or_swap;
- mpexpr_fun_set_si_t mpX_set_si;
- mpexpr_fun_swap_t mpX_swap;
+ mpexpr_fun_0ary_t mpX_clear;
+ mpexpr_fun_i_unary_t mpX_ulong_p;
+ mpexpr_fun_get_ui_t mpX_get_ui;
+ mpexpr_fun_unary_ui_t mpX_init;
+ mpexpr_fun_number_t mpX_number;
+ mpexpr_fun_unary_t mpX_set;
+ mpexpr_fun_unary_t mpX_set_or_swap;
+ mpexpr_fun_set_si_t mpX_set_si;
+ mpexpr_fun_swap_t mpX_swap;
};
diff -r d287cfaf6732 -r 46f227af64c0 demos/expr/expr.c
--- a/demos/expr/expr.c Sun Mar 04 19:27:57 2012 +0100
+++ b/demos/expr/expr.c Sun Mar 04 19:43:04 2012 +0100
@@ -278,7 +278,7 @@
a reference through CP. */
#define CONTROL_PUSH(opptr,args) \
do { \
- const struct mpexpr_operator_t *op = opptr; \
+ const struct mpexpr_operator_t *op = opptr; \
struct mpexpr_control_t *cp; \
CONTROL_SPACE (); \
p->control_top++; \
diff -r d287cfaf6732 -r 46f227af64c0 demos/expr/expr.h
--- a/demos/expr/expr.h Sun Mar 04 19:27:57 2012 +0100
+++ b/demos/expr/expr.h Sun Mar 04 19:43:04 2012 +0100
@@ -101,15 +101,15 @@
typedef void (*mpexpr_fun_t) (void);
struct mpexpr_operator_t {
- const char *name;
- mpexpr_fun_t fun;
- int type;
- int precedence;
+ const char *name;
+ mpexpr_fun_t fun;
+ int type;
+ int precedence;
};
int mpf_expr_a (const struct mpexpr_operator_t *, mpf_ptr, int,
- unsigned long,const char *, size_t, mpf_srcptr [26]);
+ unsigned long, const char *, size_t, mpf_srcptr [26]);
int mpf_expr (mpf_ptr, int, const char *, ...);
int mpq_expr_a (const struct mpexpr_operator_t *, mpq_ptr,
diff -r d287cfaf6732 -r 46f227af64c0 demos/expr/exprf.c
--- a/demos/expr/exprf.c Sun Mar 04 19:27:57 2012 +0100
+++ b/demos/expr/exprf.c Sun Mar 04 19:43:04 2012 +0100
@@ -106,8 +106,8 @@
#if HAVE_STDARG
va_start (ap, e);
#else
- mpf_ptr res;
- int base;
+ mpf_ptr res;
+ int base;
const char *e;
va_start (ap);
res = va_arg (ap, mpf_ptr);
diff -r d287cfaf6732 -r 46f227af64c0 demos/expr/exprq.c
--- a/demos/expr/exprq.c Sun Mar 04 19:27:57 2012 +0100
+++ b/demos/expr/exprq.c Sun Mar 04 19:43:04 2012 +0100
@@ -139,8 +139,8 @@
#if HAVE_STDARG
va_start (ap, e);
#else
- mpq_ptr res;
- int base;
+ mpq_ptr res;
+ int base;
const char *e;
va_start (ap);
res = va_arg (ap, mpq_ptr);
diff -r d287cfaf6732 -r 46f227af64c0 demos/expr/exprz.c
--- a/demos/expr/exprz.c Sun Mar 04 19:27:57 2012 +0100
+++ b/demos/expr/exprz.c Sun Mar 04 19:43:04 2012 +0100
@@ -190,8 +190,8 @@
#if HAVE_STDARG
va_start (ap, e);
#else
- mpz_ptr res;
- int base;
+ mpz_ptr res;
+ int base;
const char *e;
va_start (ap);
res = va_arg (ap, mpz_ptr);
More information about the gmp-commit
mailing list