[Gmp-commit] /var/hg/gmp: Restore accidentally removed gmp.h includes from de...
mercurial at gmplib.org
mercurial at gmplib.org
Tue Aug 30 13:56:00 UTC 2016
details: /var/hg/gmp/rev/f92bdb96119d
changeset: 17075:f92bdb96119d
user: Torbjorn Granlund <tg at gmplib.org>
date: Tue Aug 30 15:55:58 2016 +0200
description:
Restore accidentally removed gmp.h includes from demos dir.
diffstat:
demos/calc/calc.y | 1 +
demos/calc/calcread.c | 1 +
demos/expr/expr.c | 1 +
demos/expr/exprf.c | 1 +
demos/expr/exprfa.c | 1 +
demos/expr/exprq.c | 1 +
demos/expr/exprqa.c | 1 +
demos/expr/exprv.c | 1 +
demos/expr/exprz.c | 1 +
demos/expr/exprza.c | 1 +
demos/expr/run-expr.c | 1 +
demos/expr/t-expr.c | 1 +
demos/factorize.c | 1 +
demos/isprime.c | 2 ++
demos/perl/GMP.xs | 1 +
demos/pexpr.c | 1 +
demos/primes.c | 1 +
demos/qcn.c | 1 +
18 files changed, 19 insertions(+), 0 deletions(-)
diffs (199 lines):
diff -r ecb53f51146e -r f92bdb96119d demos/calc/calc.y
--- a/demos/calc/calc.y Mon Aug 29 21:40:51 2016 +0200
+++ b/demos/calc/calc.y Tue Aug 30 15:55:58 2016 +0200
@@ -46,6 +46,7 @@
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
+#include "gmp.h"
#define NO_CALC_H /* because it conflicts with normal calc.c stuff */
#include "calc-common.h"
diff -r ecb53f51146e -r f92bdb96119d demos/calc/calcread.c
--- a/demos/calc/calcread.c Mon Aug 29 21:40:51 2016 +0200
+++ b/demos/calc/calcread.c Tue Aug 30 15:55:58 2016 +0200
@@ -26,6 +26,7 @@
#include <readline/readline.h>
#include <readline/history.h>
+#include "gmp.h"
/* change this to "#define TRACE(x) x" for a few diagnostics */
diff -r ecb53f51146e -r f92bdb96119d demos/expr/expr.c
--- a/demos/expr/expr.c Mon Aug 29 21:40:51 2016 +0200
+++ b/demos/expr/expr.c Tue Aug 30 15:55:58 2016 +0200
@@ -32,6 +32,7 @@
#include <stdio.h>
#include <string.h>
+#include "gmp.h"
#include "expr-impl.h"
diff -r ecb53f51146e -r f92bdb96119d demos/expr/exprf.c
--- a/demos/expr/exprf.c Mon Aug 29 21:40:51 2016 +0200
+++ b/demos/expr/exprf.c Tue Aug 30 15:55:58 2016 +0200
@@ -30,6 +30,7 @@
#include <stdio.h>
#include <string.h>
+#include "gmp.h"
#include "expr-impl.h"
diff -r ecb53f51146e -r f92bdb96119d demos/expr/exprfa.c
--- a/demos/expr/exprfa.c Mon Aug 29 21:40:51 2016 +0200
+++ b/demos/expr/exprfa.c Tue Aug 30 15:55:58 2016 +0200
@@ -37,6 +37,7 @@
#include <stdio.h>
#include <string.h>
+#include "gmp.h"
#include "expr-impl.h"
diff -r ecb53f51146e -r f92bdb96119d demos/expr/exprq.c
--- a/demos/expr/exprq.c Mon Aug 29 21:40:51 2016 +0200
+++ b/demos/expr/exprq.c Tue Aug 30 15:55:58 2016 +0200
@@ -30,6 +30,7 @@
#include <stdio.h>
#include <string.h>
+#include "gmp.h"
#include "expr-impl.h"
diff -r ecb53f51146e -r f92bdb96119d demos/expr/exprqa.c
--- a/demos/expr/exprqa.c Mon Aug 29 21:40:51 2016 +0200
+++ b/demos/expr/exprqa.c Tue Aug 30 15:55:58 2016 +0200
@@ -30,6 +30,7 @@
#include <stdio.h>
+#include "gmp.h"
#include "expr-impl.h"
diff -r ecb53f51146e -r f92bdb96119d demos/expr/exprv.c
--- a/demos/expr/exprv.c Mon Aug 29 21:40:51 2016 +0200
+++ b/demos/expr/exprv.c Tue Aug 30 15:55:58 2016 +0200
@@ -30,6 +30,7 @@
see https://www.gnu.org/licenses/. */
#include <stdio.h>
+#include "gmp.h"
#include "expr-impl.h"
diff -r ecb53f51146e -r f92bdb96119d demos/expr/exprz.c
--- a/demos/expr/exprz.c Mon Aug 29 21:40:51 2016 +0200
+++ b/demos/expr/exprz.c Tue Aug 30 15:55:58 2016 +0200
@@ -31,6 +31,7 @@
#include <ctype.h>
#include <stdio.h>
#include <string.h>
+#include "gmp.h"
#include "expr-impl.h"
diff -r ecb53f51146e -r f92bdb96119d demos/expr/exprza.c
--- a/demos/expr/exprza.c Mon Aug 29 21:40:51 2016 +0200
+++ b/demos/expr/exprza.c Tue Aug 30 15:55:58 2016 +0200
@@ -31,6 +31,7 @@
#include <ctype.h>
#include <stdio.h>
#include <string.h>
+#include "gmp.h"
#include "expr-impl.h"
diff -r ecb53f51146e -r f92bdb96119d demos/expr/run-expr.c
--- a/demos/expr/run-expr.c Mon Aug 29 21:40:51 2016 +0200
+++ b/demos/expr/run-expr.c Tue Aug 30 15:55:58 2016 +0200
@@ -43,6 +43,7 @@
#include <stdio.h>
#include <stdlib.h>
+#include "gmp.h"
#include "expr.h"
diff -r ecb53f51146e -r f92bdb96119d demos/expr/t-expr.c
--- a/demos/expr/t-expr.c Mon Aug 29 21:40:51 2016 +0200
+++ b/demos/expr/t-expr.c Tue Aug 30 15:55:58 2016 +0200
@@ -31,6 +31,7 @@
#include <stdio.h>
#include <stdlib.h>
+#include "gmp.h"
#include "tests.h"
#include "expr-impl.h"
diff -r ecb53f51146e -r f92bdb96119d demos/factorize.c
--- a/demos/factorize.c Mon Aug 29 21:40:51 2016 +0200
+++ b/demos/factorize.c Tue Aug 30 15:55:58 2016 +0200
@@ -21,6 +21,7 @@
#include <string.h>
#include <inttypes.h>
+#include "gmp.h"
static unsigned char primes_diff[] = {
#define P(a,b,c) a,
diff -r ecb53f51146e -r f92bdb96119d demos/isprime.c
--- a/demos/isprime.c Mon Aug 29 21:40:51 2016 +0200
+++ b/demos/isprime.c Tue Aug 30 15:55:58 2016 +0200
@@ -19,6 +19,8 @@
#include <string.h>
#include <stdio.h>
+#include "gmp.h"
+
char *progname;
void
diff -r ecb53f51146e -r f92bdb96119d demos/perl/GMP.xs
--- a/demos/perl/GMP.xs Mon Aug 29 21:40:51 2016 +0200
+++ b/demos/perl/GMP.xs Tue Aug 30 15:55:58 2016 +0200
@@ -85,6 +85,7 @@
#include "XSUB.h"
#include "patchlevel.h"
+#include "gmp.h"
/* Perl 5.005 doesn't have SvIsUV, only 5.6 and up.
diff -r ecb53f51146e -r f92bdb96119d demos/pexpr.c
--- a/demos/pexpr.c Mon Aug 29 21:40:51 2016 +0200
+++ b/demos/pexpr.c Tue Aug 30 15:55:58 2016 +0200
@@ -56,6 +56,7 @@
#include <sys/resource.h>
#endif
+#include "gmp.h"
/* SunOS 4 and HPUX 9 don't define a canonical SIGSTKSZ, use a default. */
#ifndef SIGSTKSZ
diff -r ecb53f51146e -r f92bdb96119d demos/primes.c
--- a/demos/primes.c Mon Aug 29 21:40:51 2016 +0200
+++ b/demos/primes.c Tue Aug 30 15:55:58 2016 +0200
@@ -50,6 +50,7 @@
we find possible record gaps. Should speed up the searches tremendously.
*/
+#include "gmp.h"
struct primes
{
diff -r ecb53f51146e -r f92bdb96119d demos/qcn.c
--- a/demos/qcn.c Mon Aug 29 21:40:51 2016 +0200
+++ b/demos/qcn.c Tue Aug 30 15:55:58 2016 +0200
@@ -42,6 +42,7 @@
#include <stdlib.h>
#include <string.h>
+#include "gmp.h"
#ifndef M_PI
#define M_PI 3.14159265358979323846
More information about the gmp-commit
mailing list