Changeset 70bf188 in git


Ignore:
Timestamp:
Jun 28, 2011, 2:19:31 PM (13 years ago)
Author:
Hans Schoenemann <hannes@…>
Branches:
(u'spielwiese', '4a9821a93ffdc22a6696668bd4f6b8c9de3e6c5f')
Children:
7959ec93769d80d56f9893f174493c33cfc6a5b1
Parents:
a2dde000d30c3959f561880bd909b298a306bb48
Message:
changing a ring for the interpreter

git-svn-id: file:///usr/local/Singular/svn/trunk@14311 2c84dea3-7e68-4137-9b89-c4e89433aadc
File:
1 edited

Legend:

Unmodified
Added
Removed
  • HOWTO-libsingular

    ra2dde00 r70bf188  
    8585  }
    8686
     87  // changing a ring for the interpreter
     88  // re-using n and R from above
     89  R=rDefault(32003,3,n);
     90  idhdl newRingHdl=enterid("R" /* ring name*/,
     91                           0, /*nesting level, 0=global*/
     92                           RING_CMD,
     93                           &IDROOT,
     94                           FALSE);
     95   IDRING(newRingHdl)=R;
     96   // make R the default ring (include rChangeCurrRing):
     97   rSetHdl(newRingHdl);
     98   err=iiEStart(omStrDup("poly p=x;listvar();return();\n"),NULL);
     99
    87100  // calling a kernel function via the interpreter interface
    88101  sleftv r1; memset(&r1,0,sizeof(r1));
Note: See TracChangeset for help on using the changeset viewer.