Skip to content

Commit

Permalink
Include just gmp-impl.h, make gmp-impl.h grab gmp.h.
Browse files Browse the repository at this point in the history
  • Loading branch information
Torbjorn Granlund committed Aug 29, 2016
1 parent 33424c9 commit 1866afc
Show file tree
Hide file tree
Showing 782 changed files with 1 addition and 781 deletions.
1 change: 0 additions & 1 deletion assert.c
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@ see https://www.gnu.org/licenses/. */

#include <stdio.h>
#include <stdlib.h>
#include "gmp.h"
#include "gmp-impl.h"


Expand Down
1 change: 0 additions & 1 deletion compat.c
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@ GNU Lesser General Public License along with the GNU MP Library. If not,
see https://www.gnu.org/licenses/. */

#include <stdio.h>
#include "gmp.h"
#include "gmp-impl.h"


Expand Down
1 change: 0 additions & 1 deletion cxx/isfuns.cc
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ see https://www.gnu.org/licenses/. */
#include <cctype>
#include <iostream>
#include <string>
#include "gmp.h"
#include "gmp-impl.h"

using namespace std;
Expand Down
1 change: 0 additions & 1 deletion cxx/ismpf.cc
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@ see https://www.gnu.org/licenses/. */
#include <string>
#include <clocale> // for localeconv

#include "gmp.h"
#include "gmp-impl.h"

using namespace std;
Expand Down
1 change: 0 additions & 1 deletion cxx/ismpq.cc
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ see https://www.gnu.org/licenses/. */
#include <cctype>
#include <iostream>
#include <string>
#include "gmp.h"
#include "gmp-impl.h"

using namespace std;
Expand Down
1 change: 0 additions & 1 deletion cxx/ismpz.cc
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ see https://www.gnu.org/licenses/. */
#include <cctype>
#include <iostream>
#include <string>
#include "gmp.h"
#include "gmp-impl.h"

using namespace std;
Expand Down
1 change: 0 additions & 1 deletion cxx/ismpznw.cc
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ see https://www.gnu.org/licenses/. */
#include <cctype>
#include <iostream>
#include <string>
#include "gmp.h"
#include "gmp-impl.h"

using namespace std;
Expand Down
1 change: 0 additions & 1 deletion cxx/osdoprnti.cc
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@ see https://www.gnu.org/licenses/. */
#include <stdarg.h> /* for va_list and hence doprnt_funs_t */
#include <string.h> /* for strlen */

#include "gmp.h"
#include "gmp-impl.h"

using namespace std;
Expand Down
1 change: 0 additions & 1 deletion cxx/osfuns.cc
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@ see https://www.gnu.org/licenses/. */
#include <stdarg.h> /* for va_list and hence doprnt_funs_t */
#include <string.h>

#include "gmp.h"
#include "gmp-impl.h"

using namespace std;
Expand Down
1 change: 0 additions & 1 deletion cxx/osmpf.cc
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@ see https://www.gnu.org/licenses/. */
#include <stdarg.h> /* for va_list and hence doprnt_funs_t */
#include <string.h>

#include "gmp.h"
#include "gmp-impl.h"

using namespace std;
Expand Down
1 change: 0 additions & 1 deletion cxx/osmpq.cc
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@ see https://www.gnu.org/licenses/. */
#include <stdarg.h> /* for va_list and hence doprnt_funs_t */
#include <string.h>

#include "gmp.h"
#include "gmp-impl.h"

using namespace std;
Expand Down
1 change: 0 additions & 1 deletion cxx/osmpz.cc
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@ see https://www.gnu.org/licenses/. */
#include <stdarg.h> /* for va_list and hence doprnt_funs_t */
#include <string.h>

#include "gmp.h"
#include "gmp-impl.h"

using namespace std;
Expand Down
1 change: 0 additions & 1 deletion demos/calc/calc.y
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,6 @@ this program. If not, see https://www.gnu.org/licenses/. */
#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"

Expand Down
1 change: 0 additions & 1 deletion demos/calc/calcread.c
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ this program. If not, see https://www.gnu.org/licenses/. */
#include <readline/readline.h>
#include <readline/history.h>

#include "gmp.h"


/* change this to "#define TRACE(x) x" for a few diagnostics */
Expand Down
1 change: 0 additions & 1 deletion demos/expr/expr.c
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@ see https://www.gnu.org/licenses/. */
#include <stdio.h>
#include <string.h>

#include "gmp.h"
#include "expr-impl.h"


Expand Down
1 change: 0 additions & 1 deletion demos/expr/exprf.c
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ see https://www.gnu.org/licenses/. */

#include <stdio.h>
#include <string.h>
#include "gmp.h"
#include "expr-impl.h"


Expand Down
1 change: 0 additions & 1 deletion demos/expr/exprfa.c
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@ see https://www.gnu.org/licenses/. */
#include <stdio.h>
#include <string.h>

#include "gmp.h"
#include "expr-impl.h"


Expand Down
1 change: 0 additions & 1 deletion demos/expr/exprq.c
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ see https://www.gnu.org/licenses/. */

#include <stdio.h>
#include <string.h>
#include "gmp.h"
#include "expr-impl.h"


Expand Down
1 change: 0 additions & 1 deletion demos/expr/exprqa.c
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ see https://www.gnu.org/licenses/. */


#include <stdio.h>
#include "gmp.h"
#include "expr-impl.h"


Expand Down
1 change: 0 additions & 1 deletion demos/expr/exprv.c
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ GNU Lesser General Public License along with the GNU MP Library. If not,
see https://www.gnu.org/licenses/. */

#include <stdio.h>
#include "gmp.h"
#include "expr-impl.h"


Expand Down
1 change: 0 additions & 1 deletion demos/expr/exprz.c
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ see https://www.gnu.org/licenses/. */
#include <ctype.h>
#include <stdio.h>
#include <string.h>
#include "gmp.h"
#include "expr-impl.h"


Expand Down
1 change: 0 additions & 1 deletion demos/expr/exprza.c
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ see https://www.gnu.org/licenses/. */
#include <ctype.h>
#include <stdio.h>
#include <string.h>
#include "gmp.h"
#include "expr-impl.h"


Expand Down
1 change: 0 additions & 1 deletion demos/expr/run-expr.c
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@ see https://www.gnu.org/licenses/. */
#include <stdio.h>
#include <stdlib.h>

#include "gmp.h"
#include "expr.h"


Expand Down
1 change: 0 additions & 1 deletion demos/expr/t-expr.c
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ see https://www.gnu.org/licenses/. */
#include <stdio.h>
#include <stdlib.h>

#include "gmp.h"
#include "tests.h"
#include "expr-impl.h"

Expand Down
1 change: 0 additions & 1 deletion demos/factorize.c
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ this program. If not, see https://www.gnu.org/licenses/. */
#include <string.h>
#include <inttypes.h>

#include "gmp.h"

static unsigned char primes_diff[] = {
#define P(a,b,c) a,
Expand Down
1 change: 0 additions & 1 deletion demos/isprime.c
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ this program. If not, see https://www.gnu.org/licenses/. */
#include <stdlib.h>
#include <string.h>
#include <stdio.h>
#include "gmp.h"

char *progname;

Expand Down
1 change: 0 additions & 1 deletion demos/perl/GMP.xs
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,6 @@ see https://www.gnu.org/licenses/.
#include "XSUB.h"
#include "patchlevel.h"

#include "gmp.h"


/* Perl 5.005 doesn't have SvIsUV, only 5.6 and up.
Expand Down
1 change: 0 additions & 1 deletion demos/pexpr.c
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,6 @@ this program. If not, see https://www.gnu.org/licenses/. */
#include <sys/resource.h>
#endif

#include "gmp.h"

/* SunOS 4 and HPUX 9 don't define a canonical SIGSTKSZ, use a default. */
#ifndef SIGSTKSZ
Expand Down
1 change: 0 additions & 1 deletion demos/primes.c
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,6 @@ this program. If not, see https://www.gnu.org/licenses/. */
we find possible record gaps. Should speed up the searches tremendously.
*/

#include "gmp.h"

struct primes
{
Expand Down
1 change: 0 additions & 1 deletion demos/qcn.c
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@ this program. If not, see https://www.gnu.org/licenses/. */
#include <stdlib.h>
#include <string.h>

#include "gmp.h"

#ifndef M_PI
#define M_PI 3.14159265358979323846
Expand Down
1 change: 0 additions & 1 deletion errno.c
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@ see https://www.gnu.org/licenses/. */

#include <signal.h>

#include "gmp.h"
#include "gmp-impl.h"

int gmp_errno = 0;
Expand Down
1 change: 0 additions & 1 deletion extract-dbl.c
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ You should have received copies of the GNU General Public License and the
GNU Lesser General Public License along with the GNU MP Library. If not,
see https://www.gnu.org/licenses/. */

#include "gmp.h"
#include "gmp-impl.h"

#ifdef XDEBUG
Expand Down
1 change: 1 addition & 0 deletions gmp-impl.h
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,7 @@ see https://www.gnu.org/licenses/. */

#if ! defined (__GMP_WITHIN_CONFIGURE)
#include "config.h"
#include "gmp.h"
#include "gmp-mparam.h"
#include "fib_table.h"
#include "fac_table.h"
Expand Down
1 change: 0 additions & 1 deletion invalid.c
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@ see https://www.gnu.org/licenses/. */
#include <unistd.h> /* for getpid */
#endif

#include "gmp.h"
#include "gmp-impl.h"


Expand Down
1 change: 0 additions & 1 deletion memory.c
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ see https://www.gnu.org/licenses/. */
#include <stdio.h>
#include <stdlib.h> /* for malloc, realloc, free */

#include "gmp.h"
#include "gmp-impl.h"


Expand Down
1 change: 0 additions & 1 deletion mini-gmp/tests/hex-random.c
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ the GNU MP Library test suite. If not, see https://www.gnu.org/licenses/. */
#include <time.h>
#include <unistd.h>

#include "gmp.h"

#include "hex-random.h"

Expand Down
1 change: 0 additions & 1 deletion mp_bpl.c
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ You should have received copies of the GNU General Public License and the
GNU Lesser General Public License along with the GNU MP Library. If not,
see https://www.gnu.org/licenses/. */

#include "gmp.h"
#include "gmp-impl.h"

const int mp_bits_per_limb = GMP_LIMB_BITS;
Expand Down
1 change: 0 additions & 1 deletion mp_clz_tab.c
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@ You should have received copies of the GNU General Public License and the
GNU Lesser General Public License along with the GNU MP Library. If not,
see https://www.gnu.org/licenses/. */

#include "gmp.h"
#include "gmp-impl.h"
#include "longlong.h"

Expand Down
1 change: 0 additions & 1 deletion mp_dv_tab.c
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ You should have received copies of the GNU General Public License and the
GNU Lesser General Public License along with the GNU MP Library. If not,
see https://www.gnu.org/licenses/. */

#include "gmp.h"
#include "gmp-impl.h"

/* Table to be indexed by character, to get its numerical value. Assumes ASCII
Expand Down
1 change: 0 additions & 1 deletion mp_get_fns.c
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@ GNU Lesser General Public License along with the GNU MP Library. If not,
see https://www.gnu.org/licenses/. */

#include <stdio.h> /* for NULL */
#include "gmp.h"
#include "gmp-impl.h"

void
Expand Down
1 change: 0 additions & 1 deletion mp_minv_tab.c
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@ You should have received copies of the GNU General Public License and the
GNU Lesser General Public License along with the GNU MP Library. If not,
see https://www.gnu.org/licenses/. */

#include "gmp.h"
#include "gmp-impl.h"


Expand Down
1 change: 0 additions & 1 deletion mp_set_fns.c
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@ You should have received copies of the GNU General Public License and the
GNU Lesser General Public License along with the GNU MP Library. If not,
see https://www.gnu.org/licenses/. */

#include "gmp.h"
#include "gmp-impl.h"

void
Expand Down
1 change: 0 additions & 1 deletion mpf/abs.c
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ You should have received copies of the GNU General Public License and the
GNU Lesser General Public License along with the GNU MP Library. If not,
see https://www.gnu.org/licenses/. */

#include "gmp.h"
#include "gmp-impl.h"

void
Expand Down
1 change: 0 additions & 1 deletion mpf/add.c
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ You should have received copies of the GNU General Public License and the
GNU Lesser General Public License along with the GNU MP Library. If not,
see https://www.gnu.org/licenses/. */

#include "gmp.h"
#include "gmp-impl.h"

void
Expand Down
1 change: 0 additions & 1 deletion mpf/add_ui.c
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ You should have received copies of the GNU General Public License and the
GNU Lesser General Public License along with the GNU MP Library. If not,
see https://www.gnu.org/licenses/. */

#include "gmp.h"
#include "gmp-impl.h"

void
Expand Down
1 change: 0 additions & 1 deletion mpf/ceilfloor.c
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ You should have received copies of the GNU General Public License and the
GNU Lesser General Public License along with the GNU MP Library. If not,
see https://www.gnu.org/licenses/. */

#include "gmp.h"
#include "gmp-impl.h"


Expand Down
1 change: 0 additions & 1 deletion mpf/clear.c
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@ You should have received copies of the GNU General Public License and the
GNU Lesser General Public License along with the GNU MP Library. If not,
see https://www.gnu.org/licenses/. */

#include "gmp.h"
#include "gmp-impl.h"

void
Expand Down
1 change: 0 additions & 1 deletion mpf/clears.c
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@ GNU Lesser General Public License along with the GNU MP Library. If not,
see https://www.gnu.org/licenses/. */

#include <stdarg.h>
#include "gmp.h"
#include "gmp-impl.h"

void
Expand Down
1 change: 0 additions & 1 deletion mpf/cmp.c
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ You should have received copies of the GNU General Public License and the
GNU Lesser General Public License along with the GNU MP Library. If not,
see https://www.gnu.org/licenses/. */

#include "gmp.h"
#include "gmp-impl.h"

int
Expand Down
1 change: 0 additions & 1 deletion mpf/cmp_d.c
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@ see https://www.gnu.org/licenses/. */
#include <float.h> /* for DBL_MAX */
#endif

#include "gmp.h"
#include "gmp-impl.h"

int
Expand Down
Loading

0 comments on commit 1866afc

Please sign in to comment.