From 05ab183959c26fa092298a9d78b1d632f6dc28c3 Mon Sep 17 00:00:00 2001 From: David Bremner Date: Mon, 26 Jul 2021 14:18:17 -0300 Subject: move lrs_overflow int process_args.c Probably process_args.{c,h} should be renamed to something like common.{c,h} --- process_args.c | 6 ++++++ rat2float.c | 6 ------ 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/process_args.c b/process_args.c index d316a26..5c4655a 100644 --- a/process_args.c +++ b/process_args.c @@ -5,6 +5,12 @@ FILE *lrs_ifp; FILE *lrs_ofp; +void +lrs_overflow (int ignored) { + fprintf (stderr, "lrs_overflow called. exiting\n"); + exit(1); +} + void process_args(int argc, char **argv,char *docstring){ if (argc > 1 && argv[1][0]=='-' && argv[1][1]=='h') { fprintf(stderr,docstring); diff --git a/rat2float.c b/rat2float.c index 2b23de8..8c6951b 100644 --- a/rat2float.c +++ b/rat2float.c @@ -47,12 +47,6 @@ void rattodouble(integer_t num, integer_t denom, double *out_p){ #else typedef lrs_mp integer_t; #define MP_DIGITS 1000L - -void -lrs_overflow (int ignored) { - fprintf (stderr, "lrs_overflow called. exiting\n"); - exit(1); -} #endif #include "rat2float.h" -- cgit v1.2.3