pkgsrc/math/pari23/patches/patch-an
wiz d160569e57 Re-import pari-2.3.5nb19 as math/pari23 to prepare for pari update.
PARI-GP is a package which is aimed at efficient computations in
number theory, but also contains a large number of other useful
functions.  It is somewhat related to a Computer Algebra System, but
is not really one since it treats symbolic expressions as mathematical
entities such as matrices, polynomials, series, etc..., and not as
expressions per se.  However it is often much faster than other CAS,
and contains a large number of specific functions not found elsewhere,
essentially for use in number theory.

This package can be used in an interactive shell (GP) or as a C/C++
library (PARI). It is free software, in the sense of freedom AND 'free
of charge'.

This is the old 2.3 version of pari.
2016-03-03 13:23:22 +00:00

50 lines
1.9 KiB
Text

$NetBSD: patch-an,v 1.1 2016/03/03 13:23:22 wiz Exp $
--- src/language/anal.h.orig 2008-06-10 15:43:14.000000000 +0000
+++ src/language/anal.h
@@ -61,7 +61,6 @@ void changevalue_p(entree *ep, GEN x);
void changevalue(entree *ep, GEN val);
entree *do_alias(entree *ep);
int is_identifier(char *s);
-entree *is_entry_intern(char *s, entree **table, long *hash);
long is_keyword_char(char c);
char *readstring(char *src, char *s);
long loop_break(void);
@@ -80,23 +79,15 @@ void hit_return(void);
extern char *gp_function_name;
extern int (*whatnow_fun)(char *, int);
extern void (*sigint_fun)(void);
-extern void *foreignHandler;
-extern GEN (*foreignExprHandler)(char*);
-extern char foreignExprSwitch;
-extern entree * (*foreignAutoload)(char*, long);
-extern void (*foreignFuncFree)(entree *);
extern int (*default_exception_handler)(long);
extern const long functions_tblsz; /* hashcodes table size */
/* Variables containing the list of PARI functions */
-extern entree **functions_hash; /* functions hashtable */
extern entree **members_hash; /* members hashtable */
-extern entree functions_basic[];
/* Variables containing the list of specific GP functions */
extern entree functions_gp[];
extern entree gp_member_list[];
-extern entree functions_highlevel[];
/* Variables containing the list of old PARI fonctions (up to 1.39.15) */
extern entree **funct_old_hash; /* hashtable */
@@ -118,13 +109,6 @@ enum { RET_GEN, RET_INT, RET_LONG, RET_V
extern void *PARI_stack_limit;
#endif
-/* entrees */
-#define EpVALENCE(ep) ((ep)->valence & 0xFF)
-#define EpSTATIC(ep) ((ep)->valence & 0x100)
-#define EpSETSTATIC(ep) ((ep)->valence |= 0x100)
-#define EpPREDEFINED(ep) (EpVALENCE(ep) < EpUSER)
-enum { EpUSER = 100, EpNEW, EpALIAS, EpVAR, EpGVAR, EpMEMBER, EpINSTALL };
-
/* defaults */
char* get_sep(const char *t);
long get_int(const char *s, long dflt);