Changeset 3572 in Sophya for trunk/SophyaLib/SysTools


Ignore:
Timestamp:
Feb 7, 2009, 10:50:34 PM (17 years ago)
Author:
cmv
Message:

char* -> const char* pour regler les problemes de deprecated string const... + comparaison unsigned signed + suppression EVOL_PLANCK rz+cmv 07/02/2009

Location:
trunk/SophyaLib/SysTools
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/SophyaLib/SysTools/commander.h

    r2955 r3572  
    7979                                        string& grp);
    8080  inline  void          RegisterCommand(string& keyw, string& usage, CmdExecutor * ce,
    81                                         char* grp)
     81                                        const char* grp)
    8282                        { string sgrp = grp; RegisterCommand(keyw, usage, ce, sgrp); }
    8383
  • trunk/SophyaLib/SysTools/cxxcmplnk.cc

    r3211 r3572  
    3737*/
    3838
    39 static char * gcxx_opt =
    40 "-O -fdollars-in-identifiers";
    41 static char * KCC_opt =
    42 "-O --exceptions --rtti  --auto_instantiation --one_instantiation_per_object -D__KCC__";
    43 static char * icc_opt =
    44 "-O -fpic -frtti";
    45 static char * cxx_opt =
    46 "-O -no_implicit_include -pthread";
    47 static char * SGICC_opt =  "-O -prelink -D__SGICC__ -LANG:std";
    48 static char * xlC_opt =
    49 "-O -qrtti=all -qeh=v6";
     39static const char * gcxx_opt = "-O -fdollars-in-identifiers";
     40static const char * KCC_opt =
     41  "-O --exceptions --rtti  --auto_instantiation --one_instantiation_per_object -D__KCC__";
     42static const char * icc_opt = "-O -fpic -frtti";
     43static const char * cxx_opt =
     44  "-O -no_implicit_include -pthread";
     45static const char * SGICC_opt =  "-O -prelink -D__SGICC__ -LANG:std";
     46static const char * xlC_opt = "-O -qrtti=all -qeh=v6";
    5047
    5148/* --Methode-- */
     
    251248int CxxCompilerLinker::BuildSO(string const & oname, string & soname)
    252249{
    253   // char * soext = ".dylib"; if defined(Darwin) - pas necessaire Reza 02/2002
    254   char * soext = ".so";
     250  // const char * soext = ".dylib"; if defined(Darwin) - pas necessaire Reza 02/2002
     251  const char * soext = ".so";
    255252
    256253  if (soname.length() < 1) {
  • trunk/SophyaLib/SysTools/timing.c

    r2648 r3572  
    115115          Comm, tcalt, tcal);
    116116
    117 printf("ElapsedTime(hh:mm:ss): Total= %02d:%02d:%02d ",
     117printf("ElapsedTime(hh:mm:ss): Total= %02ld:%02ld:%02ld ",
    118118       etmt/3600, (etmt%3600)/60, etmt%60);
    119 printf(" (Partial= %02d:%02d:%02d)\n",
     119printf(" (Partial= %02ld:%02ld:%02ld)\n",
    120120       etm/3600, (etm%3600)/60, etm%60);
    121121
Note: See TracChangeset for help on using the changeset viewer.