Changeset 36f915 in git


Ignore:
Timestamp:
Apr 28, 2010, 1:06:50 PM (14 years ago)
Author:
Mohamed Barakat <mohamed.barakat@…>
Branches:
(u'fieker-DuVal', '117eb8c30fc9e991c4decca4832b1d19036c4c65')(u'spielwiese', 'b52fc4b2495505785981d640dcf7eb3e456778ef')
Children:
77e585d91301adb39a7f4d69c34f795b82ace33a
Parents:
e973a0ce6d1ac6e92ec28ec5a04c9b8d43229ab5
git-author:
Mohamed Barakat <mohamed.barakat@rwth-aachen.de>2010-04-28 13:06:50+02:00
git-committer:
Mohamed Barakat <mohamed.barakat@rwth-aachen.de>2011-11-09 11:49:01+01:00
Message:
adapted longrat0.cc
File:
1 edited

Legend:

Unmodified
Added
Removed
  • coeffs/longrat0.cc

    re973a0 r36f915  
    1010#include <stdio.h>
    1111#include <string.h>
    12 #include <kernel/mod2.h>
    13 #include <kernel/structs.h>
    14 #include <omalloc/omalloc.h>
    15 #include <kernel/febase.h>
    16 #include <kernel/longrat.h>
    17 #include <kernel/numbers.h>
     12#include "config.h"
     13#include "coeffs.h"
     14#include "omalloc.h"
     15#include "output.h"
     16#include "longrat.h"
     17#include "numbers.h"
    1818
    1919#define SR_HDL(A) ((long)(A))
     
    4848* extracts the number a from s, returns the rest
    4949*/
    50 const char * nlRead (const char *s, number *a)
     50const char * nlRead (const char *s, number *a, const coeffs r)
    5151{
    5252  if (*s<'0' || *s>'9')
     
    108108* write a rational number
    109109*/
    110 void nlWrite (number &a, const ring r)
     110void nlWrite (number &a, const coeffs r)
    111111{
    112112  char *s,*z;
     
    123123    if (a->s==0)
    124124    {
    125       nlNormalize(a);
     125      nlNormalize(a,r);
    126126      nlWrite(a,r);
    127127      return;
Note: See TracChangeset for help on using the changeset viewer.