Changeset 9c83f2 in git


Ignore:
Timestamp:
Feb 4, 2011, 3:13:00 PM (13 years ago)
Author:
Hans Schoenemann <hannes@…>
Branches:
(u'fieker-DuVal', '117eb8c30fc9e991c4decca4832b1d19036c4c65')(u'spielwiese', 'fc741b6502fd8a97288eaa3eba6e5220f3c3df87')
Children:
6131742d9c3d9355ca824df2aada696af30a31fd
Parents:
4581a96e8a3be34bc5a0c30e5cc4415cf45006fc
git-author:
Hans Schoenemann <hannes@mathematik.uni-kl.de>2011-02-04 15:13:00+01:00
git-committer:
Mohamed Barakat <mohamed.barakat@rwth-aachen.de>2011-11-09 11:59:28+01:00
Message:
eati -> repoter
intvec.* -> misc
Files:
7 edited
2 moved

Legend:

Unmodified
Added
Removed
  • kernel/febase.cc

    r4581a96 r9c83f2  
    10191019
    10201020
    1021 const char* eati(const char *s, int *i)
    1022 {
    1023   int l=0;
    1024 
    1025   if    (*s >= '0' && *s <= '9')
    1026   {
    1027     *i = 0;
    1028     while (*s >= '0' && *s <= '9')
    1029     {
    1030       *i *= 10;
    1031       *i += *s++ - '0';
    1032       l++;
    1033       if ((l>=MAX_INT_LEN)||((*i) <0))
    1034       {
    1035         s-=l;
    1036         Werror("`%s` greater than %d(max. integer representation)",
    1037                 s,MAX_INT_VAL);
    1038         return s;
    1039       }
    1040     }
    1041   }
    1042   else *i = 1;
    1043   return s;
    1044 }
    10451021#else /* ! STANDALONE_PARSER */
    10461022#include <stdio.h>
  • kernel/febase.h

    r4581a96 r9c83f2  
    244244void    Warn(const char *fmt, ...);
    245245BOOLEAN contBuffer(feBufferTypes typ);
    246 const char *  eati(const char *s, int *i);
    247246BOOLEAN exitBuffer(feBufferTypes typ);
    248247BOOLEAN exitVoice();
  • libpolys/misc/Makefile.am

    r4581a96 r9c83f2  
    1 include_HEADERS=auxiliary.h mylimits.h
     1include_HEADERS=auxiliary.h mylimits.h options.h
    22
  • libpolys/misc/intvec.h

    r4581a96 r9c83f2  
    1010#include <string.h>
    1111#include <omalloc/omalloc.h>
    12 #include <kernel/febase.h>
     12#include <reporter/reporter.h>
    1313
    1414
  • libpolys/polys/monomials/p_polys.cc

    r4581a96 r9c83f2  
    1919#include <coeffs/longrat.h>
    2020#include <misc/options.h>
     21#include <misc/intvec.h>
    2122// #include <???/ideals.h>
    2223// #include <???/int64vec.h>
     
    18711872      h = nlInit(1, r->cf);
    18721873      p=ph;
     1874      Werror("longalg missing");
     1875      #if 0
    18731876      while (p!=NULL)
    18741877      { // each monom: coeff in Q_a
     
    19341937      }
    19351938      nlDelete(&h,r->algring->cf);
     1939      #endif
    19361940    }
    19371941  }
  • libpolys/polys/monomials/ring.cc

    r4581a96 r9c83f2  
    1414#include <omalloc/omalloc.h>
    1515#include <misc/options.h>
     16#include <misc/intvec.h>
    1617#include <polys/monomials/ring.h>
    1718#include <polys/monomials/p_polys.h>
  • libpolys/reporter/reporter.cc

    r4581a96 r9c83f2  
    375375/* end extern "C" */
    376376}
     377
     378const char* eati(const char *s, int *i)
     379{
     380  int l=0;
     381
     382  if    (*s >= '0' && *s <= '9')
     383  {
     384    *i = 0;
     385    while (*s >= '0' && *s <= '9')
     386    {
     387      *i *= 10;
     388      *i += *s++ - '0';
     389      l++;
     390      if ((l>=MAX_INT_LEN)||((*i) <0))
     391      {
     392        s-=l;
     393        Werror("`%s` greater than %d(max. integer representation)",
     394                s,MAX_INT_VAL);
     395        return s;
     396      }
     397    }
     398  }
     399  else *i = 1;
     400  return s;
     401}
  • libpolys/reporter/reporter.h

    r4581a96 r9c83f2  
    6363void    Warn(const char *fmt, ...);
    6464
     65const char *  eati(const char *s, int *i);
     66
    6567#endif /* c++ only */
    6668
Note: See TracChangeset for help on using the changeset viewer.