Changeset 117e00e in git


Ignore:
Timestamp:
Feb 3, 2018, 6:10:23 PM (6 years ago)
Author:
Hans Schoenemann <hannes@…>
Branches:
(u'fieker-DuVal', '117eb8c30fc9e991c4decca4832b1d19036c4c65')(u'spielwiese', 'b9f50b373314e74e83c7c060a651dd2913e1f033')
Children:
a667d5d8554cf504bf1683b047c0876768639576
Parents:
48ee38d3a169f00f44e0427a80903a8b1016ace1
git-author:
Hans Schoenemann <hannes@mathematik.uni-kl.de>2018-02-03 18:10:23+01:00
git-committer:
Hans Schoenemann <hannes@mathematik.uni-kl.de>2018-02-03 18:14:44+01:00
Message:
removed unused system includes, math.h ->cmath for .cc files
Files:
65 edited

Legend:

Unmodified
Added
Removed
  • Singular/attrib.cc

    r48ee38 r117e00e  
    2323#include "Singular/ipshell.h"
    2424#include "Singular/attrib.h"
    25 
    26 #include <stdlib.h>
    27 #include <stdio.h>
    28 #include <string.h>
    29 #include <ctype.h>
    30 #include <unistd.h>
    3125
    3226static omBin sattr_bin = omGetSpecBin(sizeof(sattr));
  • Singular/attrib.h

    r48ee38 r117e00e  
    77* ABSTRACT: attributes to leftv and idhdl
    88*/
    9 #include <string.h>
    109#include "kernel/structs.h"
    1110#include "omalloc/omalloc.h"
  • Singular/claptmpl.cc

    r48ee38 r117e00e  
    1111
    1212#include "kernel/mod2.h"
    13 //#include <vector>
    1413//using namespace std;
    1514  #define SINGULAR 1
  • Singular/cntrlc.cc

    r48ee38 r117e00e  
    55* ABSTRACT - interupt handling
    66*/
    7 #include <stdio.h>
    8 #include <stddef.h>
    9 #include <stdlib.h>
    10 #include <strings.h>
    11 #include <signal.h>
    12 #include <sys/types.h>
    13 #include <sys/wait.h>
    14 
    157#include "kernel/mod2.h"
    168
     
    3527#undef CALL_GDB
    3628#endif
    37 
    38  #include <unistd.h>
    39  #include <sys/types.h>
    4029
    4130 #ifdef TIME_WITH_SYS_TIME
  • Singular/dyn_modules/bigintm/mod_main.cc

    r48ee38 r117e00e  
    88#include "Singular/ipid.h"
    99#include "Singular/lists.h"
    10 
    11 #include <dlfcn.h>
    1210
    1311#include "bigintm.h"
  • Singular/dyn_modules/customstd/customstd.cc

    r48ee38 r117e00e  
    11#include "Singular/libsingular.h"
    2 #include <vector>
    3 #include <iostream>
     2//#include <vector>
     3//#include <iostream>
    44
    55// global variable potentially storing output
  • Singular/dyn_modules/gfanlib/bbcone.cc

    r48ee38 r117e00e  
    1616
    1717#include "callgfanlib_conversion.h"
    18 #include <sstream>
    1918
    2019#include "gfanlib/gfanlib.h"
  • Singular/dyn_modules/gfanlib/bbfan.cc

    r48ee38 r117e00e  
    1616#include "bbfan.h"
    1717#include "gfan.h"
    18 #include <sstream>
    1918
    2019int fanID;
  • Singular/dyn_modules/gfanlib/bbpolytope.cc

    r48ee38 r117e00e  
    1010
    1111#include "callgfanlib_conversion.h"
    12 #include <sstream>
    1312
    1413#include "gfanlib/gfanlib.h"
  • Singular/dyn_modules/gfanlib/flip.cc

    r48ee38 r117e00e  
    1 #include <utility>
    21#include "kernel/GBEngine/kstd1.h"
    32#include "gfanlib/gfanlib_vector.h"
  • Singular/dyn_modules/gfanlib/flip.h

    r48ee38 r117e00e  
    22#define GFANLIB_FLIP_H
    33
    4 #include <utility>
    54#include "polys/simpleideals.h"
    65#include "gfanlib/gfanlib_vector.h"
  • Singular/dyn_modules/gfanlib/gfanlib_exceptions.h

    r48ee38 r117e00e  
    22#define GFANLIB_EXCEPTIONS_H
    33
    4 #include <iostream>
    54#include <exception>
    65
  • Singular/dyn_modules/gfanlib/groebnerCone.cc

    r48ee38 r117e00e  
    1 #include <utility>
    21
    32#include "kernel/GBEngine/kstd1.h"
     
    1716#include "callgfanlib_conversion.h"
    1817#include "containsMonomial.h"
    19 // #include "flip.h"
    2018#include "tropicalCurves.h"
    2119#include "bbcone.h"
  • Singular/dyn_modules/gfanlib/groebnerCone.h

    r48ee38 r117e00e  
    99#include "kernel/ideals.h"
    1010#include "gfanlib/gfanlib.h"
    11 #include <set>
    1211
    1312#include "tropicalStrategy.h"
  • Singular/dyn_modules/gfanlib/initial.cc

    r48ee38 r117e00e  
    33
    44#include "gfanlib/gfanlib.h"
    5 
    6 #include <exception>
    75
    86long wDeg(const poly p, const ring r, const gfan::ZVector &w)
  • Singular/dyn_modules/gfanlib/ppinitialReduction.cc

    r48ee38 r117e00e  
    44#include "singularWishlist.h"
    55#include "ppinitialReduction.h"
    6 
    7 #include <map>
    8 #include <set>
    9 #include <exception>
    10 
    116
    127#ifndef NDEBUG
  • Singular/dyn_modules/gfanlib/tropicalCurves.cc

    r48ee38 r117e00e  
    1010#include "tropicalVarietyOfPolynomials.h"
    1111#include "tropicalCurves.h"
    12 #include <set>
    1312
    1413/***
  • Singular/dyn_modules/gfanlib/tropicalStrategy.h

    r48ee38 r117e00e  
    66#include "polys/simpleideals.h"
    77#include "kernel/ideals.h" // for idElem
    8 #include <set>
    98#include "callgfanlib_conversion.h"
    109#include "containsMonomial.h"
  • Singular/dyn_modules/gfanlib/tropicalVariety.cc

    r48ee38 r117e00e  
    99#include "kernel/structs.h"
    1010
    11 #include <iostream>
    1211#include "gfanlib/gfanlib_zfan.h"
    1312
  • Singular/dyn_modules/gfanlib/tropicalVarietyOfPolynomials.cc

    r48ee38 r117e00e  
    1 #include <set>
    21#include "gfanlib/gfanlib.h"
    32#include "polys/monomials/p_polys.h"
  • Singular/dyn_modules/gfanlib/tropicalVarietyOfPolynomials.h

    r48ee38 r117e00e  
    44#include "gfanlib/gfanlib.h"
    55#include "polys/monomials/p_polys.h"
    6 #include <set>
    76
    87#include "tropicalStrategy.h"
  • Singular/dyn_modules/gitfan/gitfan.cc

    r48ee38 r117e00e  
    1313
    1414#if HAVE_GFANLIB
    15 #include <stdio.h>
    16 #include <string.h>
    17 #include <ctype.h>
    18 #include <sys/stat.h>
    19 #include <iostream>
    20 #include <list>
    2115
    2216#include "Singular/dyn_modules/gfanlib/callgfanlib_conversion.h"
  • Singular/emacs.cc

    r48ee38 r117e00e  
    1818#endif
    1919
    20 #include <stdio.h>
    2120#include <unistd.h>
    2221
     
    2524#endif
    2625
    27 #include <stdlib.h>
    2826#include <stdarg.h>
    29 #include <string.h>
    3027
    3128#ifdef __CYGWIN__
  • Singular/extra.cc

    r48ee38 r117e00e  
    1616
    1717#include "factory/factory.h"
    18 
    19 #include <stdlib.h>
    20 #include <stdio.h>
    21 #include <string.h>
    22 #include <ctype.h>
    23 #include <signal.h>
    2418
    2519#ifdef TIME_WITH_SYS_TIME
  • Singular/feOpt.cc

    r48ee38 r117e00e  
    1111#include "kernel/mod2.h"
    1212
    13 #include <string.h>
    14 #include <stdlib.h>
    15 
    1613#include "factory/factory.h"
    1714
     
    3633
    3734#include <stdio.h>
    38 #include <unistd.h>
    39 #include <stdlib.h>
     35//#include <unistd.h>
     36//#include <stdlib.h>
    4037int main()
    4138{
  • Singular/feOptGen.cc

    r48ee38 r117e00e  
    55* ABSTRACT: Implementation of option business
    66*/
    7 
    8 #include <string.h>
    9 #include <stdlib.h>
    10 
    11 
    127
    138
     
    2722//
    2823#include <stdio.h>
    29 #include <unistd.h>
    3024#include <stdlib.h>
    3125int main()
  • Singular/febase.cc

    r48ee38 r117e00e  
    1616//#include "Singular/febase.h"
    1717
    18 #include <stdlib.h>
    19 #include <stdio.h>
    2018#include "misc/mylimits.h"
    21 #include <stdarg.h>
    22 #include <sys/stat.h>
    23 #include <ctype.h>
    24 #include <unistd.h>
    2519
    2620#ifdef HAVE_PWD_H
     
    8680#endif
    8781
    88 
    89 #else /* ! STANDALONE_PARSER */
    90 #include <stdio.h>
    91 
    9282#endif
    9383
  • Singular/fehelp.cc

    r48ee38 r117e00e  
    55* ABSTRACT: help system
    66*/
    7 
    8 #include <string.h>
    9 #include <unistd.h>
    10 #include <stdio.h>
    11 #include <stddef.h>
    12 #include <stdlib.h>
    13 #include <time.h>
    14 
    15 
    16 
    177
    188#include "kernel/mod2.h"
  • Singular/fevoices.cc

    r48ee38 r117e00e  
    1919#include "Singular/sdb.h"
    2020
    21 #include <stdlib.h>
    22 #include <stdio.h>
    2321#include "misc/mylimits.h"
    24 #include <stdarg.h>
    25 #include <sys/stat.h>
    26 #include <ctype.h>
    2722#include <unistd.h>
    2823
     
    682677  return p;
    683678}
    684 
    685 
    686 #else /* ! STANDALONE_PARSER */
    687 #include <stdio.h>
    688 
    689679#endif
    690680
  • Singular/gentable.cc

    r48ee38 r117e00e  
    1010#include <ctype.h>
    1111#include <stdio.h>
    12 #include <time.h>
    1312#include <unistd.h>
    14 #include <sys/types.h>
    1513#include <sys/stat.h>
    1614
  • Singular/iparith.cc

    r48ee38 r117e00e  
    66* ABSTRACT: table driven kernel interface, used by interpreter
    77*/
    8 //#include <sys/time.h>
    9 //#include <sys/resource.h>
    108//long all_farey=0L;
    119//long farey_cnt=0L;
     
    8179#include "reporter/si_signals.h"
    8280
    83 #include <stdlib.h>
    84 #include <string.h>
    8581#include <ctype.h>
    86 #include <stdio.h>
    87 #include <time.h>
    88 #include <unistd.h>
    89 #include <vector>
    9082
    9183ring rCompose(const lists  L, const BOOLEAN check_comp=TRUE, const long bitmask=0x7fff);
  • Singular/ipassign.cc

    r48ee38 r117e00e  
    66*           assignment of expressions and lists to objects or lists
    77*/
    8 
    9 #include <stdlib.h>
    10 #include <string.h>
    11 #include <ctype.h>
    12 
    138
    149#include "kernel/mod2.h"
  • Singular/ipid.cc

    r48ee38 r117e00e  
    4444#include "polys/mod_raw.h"
    4545#endif /* HAVE_DYNAMIC_LOADING */
    46 
    47 #include <string.h>
    4846
    4947omBin sip_command_bin = omGetSpecBin(sizeof(sip_command));
  • Singular/ipid.h

    r48ee38 r117e00e  
    88* ABSTRACT: identfier handling
    99*/
    10 #include <string.h>
    11 //#include "kernel/structs.h"
    1210#include "Singular/idrec.h"
    1311#include "Singular/subexpr.h"
  • Singular/iplib.cc

    r48ee38 r117e00e  
    55* ABSTRACT: interpreter: LIB and help
    66*/
    7 
    8 
    9 
    10 
    117
    128#include "kernel/mod2.h"
     
    2319#include "Singular/lists.h"
    2420
    25 //#include <stdlib.h>
    26 #include <stdio.h>
    27 #include <string.h>
    2821#include <ctype.h>
    29 #include <sys/stat.h>
    30 
    3122
    3223#if SIZEOF_LONG == 8
  • Singular/ipshell.cc

    r48ee38 r117e00e  
    6767#include "Singular/sdb.h"
    6868
    69 #include <math.h>
     69#include <cmath>
    7070#include <ctype.h>
    7171
  • Singular/libsingular.h

    r48ee38 r117e00e  
    11#ifndef LIBSINGULAR__H
    22#define LIBSINGULAR__H
    3 
    4 #include <math.h> // Why this?
    53
    64#include "singularconfig.h"
  • Singular/links/asciiLink.cc

    r48ee38 r117e00e  
    1919#include "Singular/ipshell.h"
    2020#include "Singular/links/silink.h"
    21 
    22 #include <stdio.h>
    23 #include <string.h>
    24 #include <sys/types.h>
    25 #include <sys/stat.h>
    26 #include <unistd.h>
    2721
    2822/* declarations */
  • Singular/links/ndbm.cc

    r48ee38 r117e00e  
    3232//**************************************************************************/
    3333
    34 #include <stdio.h>
    3534/* alternative:
    3635* #   define EPERM 1
     
    3938* #   define L_SET SEEK_SET
    4039*/
    41 #include <sys/types.h>
    42 #include <sys/stat.h>
    43 #include <sys/file.h>
    4440#include <errno.h>
    4541#include <stdlib.h>
    4642#include <string.h>
    47 #include <unistd.h>
    48 #include <fcntl.h>
    4943#ifndef HAVE_BCOPY
    5044#   define bcopy(a,b,c) memmove(b,a,c)
     
    6256static  int delitem(char buf[PBLKSIZ], int n);
    6357static  int additem(char buf[PBLKSIZ], datum item, datum item1);
    64 // extern  int errno;
    6558extern "C" int singular_fstat(int fd, struct stat *buf);
    6659
  • Singular/links/pipeLink.cc

    r48ee38 r117e00e  
    1919#include "pipeLink.h"
    2020
    21 #include <stdio.h>
    22 #include <fcntl.h>
    2321#include <errno.h>
    24 #include <unistd.h>
    25 #include <sys/types.h>
    26 #include <signal.h>
    2722#include <sys/types.h>          /* for portability */
    28 #include <sys/select.h>
    29 #include <sys/socket.h>
    3023
    3124typedef struct
  • Singular/links/silink.cc

    r48ee38 r117e00e  
    3232#include "feOpt.h"
    3333
    34 #include <stdio.h>
    35 #include <string.h>
    36 #include <sys/types.h>
    37 #include <sys/stat.h>
    38 #include <unistd.h>
    39 
    4034// #ifdef HAVE_DBM
    4135// #ifdef __CYGWIN__
  • Singular/links/sing_dbm.cc

    r48ee38 r117e00e  
    1111#include "kernel/mod2.h"
    1212
    13 #  include <stdio.h>
    1413#  include <fcntl.h>
    15 #  include <errno.h>
    1614
    1715#ifdef HAVE_DBM
  • Singular/links/ssiLink.cc

    r48ee38 r117e00e  
    4545#endif
    4646
    47 #include <stdio.h>
    48 #include <fcntl.h>
    4947#include <errno.h>
    50 #include <unistd.h>
    51 #include <sys/types.h>
    52 #include <signal.h>
    5348#include <sys/types.h>          /* for portability */
    54 #include <sys/select.h>
    55 #include <sys/socket.h>
    56 #include <netinet/in.h>
    5749#include <ctype.h>   /*for isdigit*/
    5850#include <netdb.h>
    59 #include <sys/wait.h>
    60 #include <time.h>
    6151
    6252#define SSI_VERSION 10
  • Singular/misc_ip.cc

    r48ee38 r117e00e  
    445445*}
    446446*/
    447 
    448 #include <string.h>
    449 #include <unistd.h>
    450 #include <stdio.h>
    451 #include <stddef.h>
    452 #include <stdlib.h>
    453 #include <time.h>
    454 
    455447
    456448void singular_example(char *str)
     
    10751067#endif
    10761068
    1077 #include <sys/types.h>
    1078 #include <sys/stat.h>
    1079 #include <unistd.h>
    1080 
    10811069extern "C"
    10821070int singular_fstat(int fd, struct stat *buf)
  • Singular/mmalloc.h

    r48ee38 r117e00e  
    77* ABSTRACT: declaration of routines for memory stuff
    88*/
    9 
    10 #include <stdlib.h>
    119
    1210#undef reallocSize
  • Singular/mod_lib.cc

    r48ee38 r117e00e  
    77#include "Singular/mod_lib.h"
    88
    9 #include <stdio.h>
    10 #include <string.h>
    119#include <ctype.h>
    1210#include <sys/stat.h>
  • Singular/subexpr.cc

    r48ee38 r117e00e  
    4141#include "Singular/number2.h"
    4242
    43 #include <stdlib.h>
    44 #include <stdio.h>
    45 #include <string.h>
    4643#include <ctype.h>
    47 #include <unistd.h>
    4844
    4945omBin sSubexpr_bin = omGetSpecBin(sizeof(_ssubexpr));
  • Singular/tesths.cc

    r48ee38 r117e00e  
    2020#include "Singular/fevoices.h"
    2121#include "kernel/oswrapper/timer.h"
    22 
    23 // #ifdef HAVE_FANS
    24 // #include <callgfanlib/bbcone.h>
    25 // #include <callgfanlib/bbpolytope.h>
    26 // #include <callgfanlib/bbfan.h>
    27 // #include <callgfanlib/gitfan.h>
    28 // #endif
    2922
    3023#include "ipshell.h"
     
    4336
    4437#include <unistd.h>
    45 #include <string.h>
    46 #include <stddef.h>
    47 #include <stdlib.h>
    48 #include <time.h>
    49 #include <errno.h>
    5038
    5139
  • Singular/walk.cc

    r48ee38 r117e00e  
    7575#include "coeffs/mpr_complex.h"
    7676
    77 #include <stdio.h>
    78 // === Zeit & System (Holger Croeni ===
    79 #include <time.h>
    80 #include <sys/time.h>
    81 #include <math.h>
    82 #include <sys/stat.h>
    83 #include <unistd.h>
    84 #include <float.h>
     77#include <cmath>
    8578#include "misc/mylimits.h"
    86 #include <sys/types.h>
    8779
    8880int nstep;
  • Singular/walk_ip.cc

    r48ee38 r117e00e  
    4141#include "polys/prCopy.h"
    4242
    43 //#include <stdlib.h>
    44 #include <stdio.h>
    45 #include <string.h>
    46 #include <ctype.h>
    47 #include <math.h>
    48 
    4943///////////////////////////////////////////////////////////////////
    5044//walkProc
  • Singular/wrapper.cc

    r48ee38 r117e00e  
    88
    99#include "Singular/subexpr.h"
    10 
    11 #include <string.h>
    1210
    1311//extern int (*ListGreatMove)(jList *,jList *,poly);
  • factory/facIrredTest.cc

    r48ee38 r117e00e  
    1515#include "config.h"
    1616
    17 #include <math.h>
     17#include <cmath>
    1818
    1919#include "facIrredTest.h"
  • factory/old/fac_univar.cc

    r48ee38 r117e00e  
    44#include "config.h"
    55
    6 
    7 #include <math.h>
    86
    97#include "cf_assert.h"
  • kernel/groebner_walk/walkSupport.cc

    r48ee38 r117e00e  
    1212#include "kernel/groebner_walk/walkSupport.h"
    1313#include "kernel/GBEngine/kstd1.h"
    14 
    15 #include <string.h>
    16 #include <math.h>
    1714
    1815extern BOOLEAN overflow_error;
  • kernel/numeric/mpr_base.cc

    r48ee38 r117e00e  
    3535#include "mpr_numeric.h"
    3636
    37 #include <math.h>
     37#include <cmath>
    3838//<-
    3939
  • kernel/numeric/mpr_inout.cc

    r48ee38 r117e00e  
    2929#include "kernel/polys.h"
    3030#include "kernel/ideals.h"
    31 
    32 
    33 #include <math.h>
    3431
    3532#include "mpr_base.h"
  • kernel/numeric/mpr_numeric.cc

    r48ee38 r117e00e  
    3030#include "mpr_numeric.h"
    3131
    32 #include <math.h>
     32#include <cmath>
    3333//<-
    3434
  • libpolys/coeffs/bigintmat.cc

    r48ee38 r117e00e  
    1515#include "coeffs/rmodulon.h"
    1616
    17 #include <math.h>
    18 #include <string.h>
     17#include <cmath>
    1918
    2019#ifdef HAVE_RINGS
  • libpolys/coeffs/ffields.cc

    r48ee38 r117e00e  
    1818#include "coeffs/ffields.h"
    1919
    20 #include <string.h>
    21 #include <math.h>
     20#include <cmath>
    2221#include <errno.h>
    2322
  • libpolys/coeffs/mpr_complex.cc

    r48ee38 r117e00e  
    2424#include "coeffs/longrat.h"
    2525
    26 #include <math.h>
     26#include <cmath>
    2727
    2828
  • libpolys/coeffs/shortfl.cc

    r48ee38 r117e00e  
    2222#include "coeffs/longrat.h"
    2323
    24 #include <string.h>
    25 #include <math.h>
     24//#include <string.h>
     25#include <cmath>
    2626
    2727// Private interface should be hidden!!!
     
    106106  else
    107107    i = 0;
    108   return i;
    109 }
    110 
    111 static int nrSize(number n, const coeffs)
    112 {
    113   SI_FLOAT f = nf(n).F();
    114   int i = (int)f;
    115   /* basically return the largest integer in n;
    116      only if this happens to be zero although n != 0,
    117      return 1;
    118      (this code ensures that zero has the size zero) */
    119   if ((f != 0.0) & (i == 0)) i = 1;
    120108  return i;
    121109}
     
    760748    /*nSize  = ndSize;*/
    761749#ifdef LDEBUG
    762   //n->cfDBTest=ndDBTest; // not yet implemented: nrDBTest;
     750  n->cfDBTest=nrDBTest; // not yet implemented: nrDBTest;
    763751#endif
    764752
  • libpolys/misc/prime.cc

    r48ee38 r117e00e  
    66 */
    77
    8 #include <math.h>
     8#include <cmath>
    99#include "misc/prime.h"
    1010#include "factory/cf_primes.h"
  • libpolys/polys/matpol.cc

    r48ee38 r117e00e  
    66* ABSTRACT:
    77*/
    8 
    9 #include <stdio.h>
    10 #include <math.h>
    118
    129#include "misc/auxiliary.h"
  • libpolys/polys/monomials/ring.cc

    r48ee38 r117e00e  
    77
    88/* includes */
    9 #include <math.h>
     9#include <cmath>
    1010
    1111#include "omalloc/omalloc.h"
  • libpolys/polys/weight.cc

    r48ee38 r117e00e  
    2222
    2323#include "polys/weight.h"
    24 
    25 #include <math.h>
    2624
    2725/*0 implementation*/
Note: See TracChangeset for help on using the changeset viewer.