rename LTM_NO_FILE to MP_NO_FILE

This commit is contained in:
Daniel Mendler 2019-04-26 12:35:39 +02:00
parent 0337d48b67
commit 80f5fac53b
No known key found for this signature in database
GPG Key ID: D88ADB2A2693CA43
3 changed files with 8 additions and 3 deletions

View File

@ -3,7 +3,7 @@
/* LibTomMath, multiple-precision integer library -- Tom St Denis */
/* SPDX-License-Identifier: Unlicense */
#ifndef LTM_NO_FILE
#ifndef MP_NO_FILE
/* read a bigint from a file stream in ASCII */
int mp_fread(mp_int *a, int radix, FILE *stream)
{

View File

@ -3,7 +3,7 @@
/* LibTomMath, multiple-precision integer library -- Tom St Denis */
/* SPDX-License-Identifier: Unlicense */
#ifndef LTM_NO_FILE
#ifndef MP_NO_FILE
int mp_fwrite(const mp_int *a, int radix, FILE *stream)
{
char *buf;

View File

@ -8,6 +8,11 @@
#include <limits.h>
#ifndef LTM_NO_FILE
# warning LTM_NO_FILE has been deprecated, use MP_NO_FILE.
# define MP_NO_FILE
#endif
#ifndef MP_NO_FILE
# include <stdio.h>
#endif
@ -610,7 +615,7 @@ int mp_toradix(const mp_int *a, char *str, int radix);
int mp_toradix_n(const mp_int *a, char *str, int radix, int maxlen);
int mp_radix_size(const mp_int *a, int radix, int *size);
#ifndef LTM_NO_FILE
#ifndef MP_NO_FILE
int mp_fread(mp_int *a, int radix, FILE *stream);
int mp_fwrite(const mp_int *a, int radix, FILE *stream);
#endif