| version 1.6, 2000/08/21 08:31:21 |
version 1.9, 2002/12/09 00:42:13 |
|
|
| * shall be made on your publication or presentation in any form of the |
* shall be made on your publication or presentation in any form of the |
| * results obtained by use of the SOFTWARE. |
* results obtained by use of the SOFTWARE. |
| * (4) In the event that you modify the SOFTWARE, you shall notify FLL by |
* (4) In the event that you modify the SOFTWARE, you shall notify FLL by |
| * e-mail at risa-admin@flab.fujitsu.co.jp of the detailed specification |
* e-mail at risa-admin@sec.flab.fujitsu.co.jp of the detailed specification |
| * for such modification or the source code of the modified part of the |
* for such modification or the source code of the modified part of the |
| * SOFTWARE. |
* SOFTWARE. |
| * |
* |
|
|
| * DEVELOPER SHALL HAVE NO LIABILITY IN CONNECTION WITH THE USE, |
* DEVELOPER SHALL HAVE NO LIABILITY IN CONNECTION WITH THE USE, |
| * PERFORMANCE OR NON-PERFORMANCE OF THE SOFTWARE. |
* PERFORMANCE OR NON-PERFORMANCE OF THE SOFTWARE. |
| * |
* |
| * $OpenXM: OpenXM_contrib2/asir2000/builtin/strobj.c,v 1.5 2000/03/02 07:16:09 noro Exp $ |
* $OpenXM: OpenXM_contrib2/asir2000/builtin/strobj.c,v 1.8 2001/10/09 01:36:07 noro Exp $ |
| */ |
*/ |
| #include "ca.h" |
#include "ca.h" |
| #include "parse.h" |
#include "parse.h" |
|
|
| p = BDY(str); |
p = BDY(str); |
| spos = QTOS(start); |
spos = QTOS(start); |
| chr = BDY(terminator)[0]; |
chr = BDY(terminator)[0]; |
| if ( spos > strlen(p) ) |
if ( spos > (int)strlen(p) ) |
| r = -1; |
r = -1; |
| else { |
else { |
| ind = strchr(p+spos,chr); |
ind = strchr(p+spos,chr); |
|
|
| FNODE fnode; |
FNODE fnode; |
| char *cmd; |
char *cmd; |
| #if PARI |
#if PARI |
| |
void recover(int); |
| |
|
| recover(0); |
recover(0); |
| if ( setjmp(environnement) ) { |
if ( setjmp(environnement) ) { |
| avma = top; recover(1); |
avma = top; recover(1); |
|
|
| } |
} |
| #endif |
#endif |
| cmd = BDY((STRING)ARG0(arg)); |
cmd = BDY((STRING)ARG0(arg)); |
| exprparse(0,cmd,&fnode); |
exprparse_create_var(0,cmd,&fnode); |
| *rp = eval(fnode); |
*rp = eval(fnode); |
| } |
} |
| |
|
| Line 233 void Pstrtov(arg,rp) |
|
| Line 235 void Pstrtov(arg,rp) |
|
| NODE arg; |
NODE arg; |
| P *rp; |
P *rp; |
| { |
{ |
| char *p,*t; |
char *p; |
| |
|
| p = BDY((STRING)ARG0(arg)); |
p = BDY((STRING)ARG0(arg)); |
| #if 0 |
#if 0 |