Changeset 21b9ef in git


Ignore:
Timestamp:
Feb 22, 2013, 11:09:40 AM (10 years ago)
Author:
Oleksandr Motsak <motsak@…>
Branches:
(u'jengelh-datetime', 'ceac47cbc86fe4a15902392bdbb9bd2ae0ea02c6')(u'spielwiese', 'cbf866d4f8c3861325311c042cb2033c053453b2')
Children:
a77d2792a2d6c14b59535b46c2dee9aba649b9b0
Parents:
603ac7ad326e99497d87fc21e0568f6fb89ad139
git-author:
Oleksandr Motsak <motsak@mathematik.uni-kl.de>2013-02-22 11:09:40+01:00
git-committer:
Oleksandr Motsak <motsak@mathematik.uni-kl.de>2013-02-22 11:12:58+01:00
Message:
Added n_Print for printing numbers during debugging
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • .gdbinit

    r603ac7a r21b9ef  
    2121end
    2222     
     23
     24
     25# print number coeffs
     26define nn
     27  if $argc > 0
     28    print $arg0
     29    if $arg0 != 0
     30      print *$arg0
     31
     32      if $argc == 2
     33        call n_Print($arg0, $arg1)
     34      else
     35        call n_Print($arg0, currRing->cf)
     36      end
     37    end
     38  end
     39end
     40     
  • Singular/.gdbinit

    • Property mode changed from 100644 to 120000
    r603ac7a r21b9ef  
    1 break dErrorBreak
    2 
     1../.gdbinit
  • libpolys/coeffs/coeffs.h

    r603ac7a r21b9ef  
    866866}
    867867
    868 
    869 #endif
    870 
     868/// print a number (BEWARE of string buffers!)
     869/// mostly for debugging
     870void   n_Print(number& a,  const coeffs r);
     871
     872#endif
     873
  • libpolys/coeffs/numbers.cc

    r603ac7a r21b9ef  
    523523}
    524524
     525
     526void n_Print(number& a,  const coeffs r)
     527{
     528   assume(r != NULL);
     529   n_Test(a,r);
     530   
     531   StringSetS(""); 
     532   n_Write(a, r);
     533   { char* s = StringEndS(); Print("%s", s); omFree(s); }
     534}
Note: See TracChangeset for help on using the changeset viewer.