Changeset 9c83f2 in git for kernel/febase.cc


Ignore:
Timestamp:
Feb 4, 2011, 3:13:00 PM (13 years ago)
Author:
Hans Schoenemann <hannes@…>
Branches:
(u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
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
File:
1 edited

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>
Note: See TracChangeset for help on using the changeset viewer.