Bill Allombert on Wed, 29 Jun 2005 01:02:45 +0200 |
[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]
less gp-specific GP functions |
Hello PARI-dev, Here a patch that make most GP-specific gp function available to the libpari interpretor. It is potentially controversial since that allow GP code run through the libpari interpretor to use functions like write() and allocatemem(), but my opinion on the matter is that we should provide a way to configure what functions are available to the libpari interpretor and how it handle special case like allocatemem(). This patch add the following function to the libpari interpretor: allocatemem error global print print1 printp printp1 printtex trap write write1 writebin writetex The remaining functions in the 'gp' class are: default extern input quit read system whatnow. I hope to reduce that even further. Cheers, -- Bill. <ballombe@debian.org> Imagine a large red swirl here. Index: src/functions/programming/allocatemem =================================================================== RCS file: /home/cvs/pari/src/functions/programming/allocatemem,v retrieving revision 1.1 diff -u -r1.1 allocatemem --- src/functions/programming/allocatemem 26 Jun 2003 18:50:22 -0000 1.1 +++ src/functions/programming/allocatemem 28 Jun 2005 22:21:57 -0000 @@ -1,5 +1,4 @@ Function: allocatemem -Class: gp Section: programming C-Name: allocatemem0 Prototype: vD0,L, Index: src/functions/programming/error =================================================================== RCS file: /home/cvs/pari/src/functions/programming/error,v retrieving revision 1.3 diff -u -r1.3 error --- src/functions/programming/error 15 May 2005 21:55:32 -0000 1.3 +++ src/functions/programming/error 28 Jun 2005 22:21:57 -0000 @@ -1,5 +1,4 @@ Function: error -Class: gp Section: programming C-Name: error0 Prototype: vs* Index: src/functions/programming/global =================================================================== RCS file: /home/cvs/pari/src/functions/programming/global,v retrieving revision 1.1 diff -u -r1.1 global --- src/functions/programming/global 26 Jun 2003 18:50:25 -0000 1.1 +++ src/functions/programming/global 28 Jun 2005 22:21:57 -0000 @@ -1,5 +1,4 @@ Function: global -Class: gp Section: programming Help: global(x): declare x to be a global variable Index: src/functions/programming/print =================================================================== RCS file: /home/cvs/pari/src/functions/programming/print,v retrieving revision 1.2 diff -u -r1.2 print --- src/functions/programming/print 14 May 2005 14:12:53 -0000 1.2 +++ src/functions/programming/print 28 Jun 2005 22:21:57 -0000 @@ -1,5 +1,4 @@ Function: print -Class: gp Section: programming C-Name: print Prototype: vs* Index: src/functions/programming/print1 =================================================================== RCS file: /home/cvs/pari/src/functions/programming/print1,v retrieving revision 1.2 diff -u -r1.2 print1 --- src/functions/programming/print1 14 May 2005 14:12:53 -0000 1.2 +++ src/functions/programming/print1 28 Jun 2005 22:21:57 -0000 @@ -1,5 +1,4 @@ Function: print1 -Class: gp Section: programming C-Name: print1 Prototype: vs* Index: src/functions/programming/printp =================================================================== RCS file: /home/cvs/pari/src/functions/programming/printp,v retrieving revision 1.1 diff -u -r1.1 printp --- src/functions/programming/printp 26 Jun 2003 18:50:26 -0000 1.1 +++ src/functions/programming/printp 28 Jun 2005 22:21:57 -0000 @@ -1,5 +1,4 @@ Function: printp -Class: gp Section: programming C-Name: printp Prototype: vs* Index: src/functions/programming/printp1 =================================================================== RCS file: /home/cvs/pari/src/functions/programming/printp1,v retrieving revision 1.1 diff -u -r1.1 printp1 --- src/functions/programming/printp1 26 Jun 2003 18:50:26 -0000 1.1 +++ src/functions/programming/printp1 28 Jun 2005 22:21:57 -0000 @@ -1,5 +1,4 @@ Function: printp1 -Class: gp Section: programming C-Name: printp1 Prototype: vs* Index: src/functions/programming/printtex =================================================================== RCS file: /home/cvs/pari/src/functions/programming/printtex,v retrieving revision 1.1 diff -u -r1.1 printtex --- src/functions/programming/printtex 26 Jun 2003 18:50:26 -0000 1.1 +++ src/functions/programming/printtex 28 Jun 2005 22:21:57 -0000 @@ -1,5 +1,4 @@ Function: printtex -Class: gp Section: programming C-Name: printtex Prototype: vs* Index: src/functions/programming/trap =================================================================== RCS file: /home/cvs/pari/src/functions/programming/trap,v retrieving revision 1.2 diff -u -r1.2 trap --- src/functions/programming/trap 15 May 2005 21:55:32 -0000 1.2 +++ src/functions/programming/trap 28 Jun 2005 22:21:57 -0000 @@ -1,5 +1,4 @@ Function: trap -Class: gp Section: programming C-Name: trap0 Prototype: D"",r,DIDI Index: src/functions/programming/write =================================================================== RCS file: /home/cvs/pari/src/functions/programming/write,v retrieving revision 1.1 diff -u -r1.1 write --- src/functions/programming/write 26 Jun 2003 18:50:28 -0000 1.1 +++ src/functions/programming/write 28 Jun 2005 22:21:57 -0000 @@ -1,5 +1,4 @@ Function: write -Class: gp Section: programming C-Name: write0 Prototype: vss* Index: src/functions/programming/write1 =================================================================== RCS file: /home/cvs/pari/src/functions/programming/write1,v retrieving revision 1.1 diff -u -r1.1 write1 --- src/functions/programming/write1 26 Jun 2003 18:50:28 -0000 1.1 +++ src/functions/programming/write1 28 Jun 2005 22:21:57 -0000 @@ -1,5 +1,4 @@ Function: write1 -Class: gp Section: programming C-Name: write1 Prototype: vss* Index: src/functions/programming/writebin =================================================================== RCS file: /home/cvs/pari/src/functions/programming/writebin,v retrieving revision 1.1 diff -u -r1.1 writebin --- src/functions/programming/writebin 26 Jun 2003 18:50:28 -0000 1.1 +++ src/functions/programming/writebin 28 Jun 2005 22:21:57 -0000 @@ -1,5 +1,4 @@ Function: writebin -Class: gp Section: programming C-Name: gpwritebin Prototype: vsDG Index: src/functions/programming/writetex =================================================================== RCS file: /home/cvs/pari/src/functions/programming/writetex,v retrieving revision 1.1 diff -u -r1.1 writetex --- src/functions/programming/writetex 26 Jun 2003 18:50:29 -0000 1.1 +++ src/functions/programming/writetex 28 Jun 2005 22:21:57 -0000 @@ -1,5 +1,4 @@ Function: writetex -Class: gp Section: programming C-Name: writetex Prototype: vss*