Changeset 0ec43a in git


Ignore:
Timestamp:
Sep 10, 2008, 11:21:29 AM (15 years ago)
Author:
Hans Schönemann <hannes@…>
Branches:
(u'jengelh-datetime', 'ceac47cbc86fe4a15902392bdbb9bd2ae0ea02c6')(u'spielwiese', '00e2e9c41af3fde1273eb3633f4c0c7c3db2579d')
Children:
a5da6f30272bf99d0d44c402d1eb3efcf7d79858
Parents:
88d6313369cd3bc8cb8a65fa06a77e2f9a81dd0a
Message:
*hannes: gcc 4.2 fixes


git-svn-id: file:///usr/local/Singular/svn/trunk@11041 2c84dea3-7e68-4137-9b89-c4e89433aadc
Location:
Singular
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • Singular/cntrlc.cc

    r88d631 r0ec43a  
    22*  Computer Algebra System SINGULAR     *
    33****************************************/
    4 /* $Id: cntrlc.cc,v 1.56 2008-03-19 17:44:29 Singular Exp $ */
     4/* $Id: cntrlc.cc,v 1.57 2008-09-10 09:21:29 Singular Exp $ */
    55/*
    66* ABSTRACT - interupt handling
     
    428428  int pid;
    429429  char buf[16];
    430   char * args[4] = { "gdb", "Singularg", NULL, NULL };
     430  const char * args[4] = { "gdb", "Singularg", NULL, NULL };
    431431
    432432  #ifdef HAVE_FEREAD
  • Singular/extra.cc

    r88d631 r0ec43a  
    22*  Computer Algebra System SINGULAR      *
    33*****************************************/
    4 /* $Id: extra.cc,v 1.281 2008-08-07 18:08:36 levandov Exp $ */
     4/* $Id: extra.cc,v 1.282 2008-09-10 09:15:52 Singular Exp $ */
    55/*
    66* ABSTRACT: general interface to internals of Singular ("system" command)
     
    444444        return TRUE;
    445445      }
    446       char* errormsg;
     446      const char* errormsg;
    447447      if (h->Typ() == INT_CMD)
    448448      {
  • Singular/feOpt.cc

    r88d631 r0ec43a  
    22*  Computer Algebra System SINGULAR     *
    33****************************************/
    4 /* $Id: feOpt.cc,v 1.22 2005-07-27 15:47:54 Singular Exp $ */
     4/* $Id: feOpt.cc,v 1.23 2008-09-10 09:15:52 Singular Exp $ */
    55/*
    66* ABSTRACT: Implementation of option buisness
     
    293293#include <errno.h>
    294294
    295 static char* feOptAction(feOptIndex opt);
    296 char* feSetOptValue(feOptIndex opt, char* optarg)
     295static const char* feOptAction(feOptIndex opt);
     296const char* feSetOptValue(feOptIndex opt, char* optarg)
    297297{
    298298  if (opt == FE_OPT_UNDEF) return "option undefined";
     
    328328}
    329329
    330 char* feSetOptValue(feOptIndex opt, int optarg)
     330const char* feSetOptValue(feOptIndex opt, int optarg)
    331331{
    332332  if (opt == FE_OPT_UNDEF) return "option undefined";
     
    342342}
    343343
    344 static char* feOptAction(feOptIndex opt)
     344static const char* feOptAction(feOptIndex opt)
    345345{
    346346  // do some special actions
  • Singular/feOpt.h

    r88d631 r0ec43a  
    44*  Computer Algebra System SINGULAR     *
    55****************************************/
    6 /* $Id: feOpt.h,v 1.9 2006-05-29 14:27:53 Singular Exp $ */
     6/* $Id: feOpt.h,v 1.10 2008-09-10 09:15:51 Singular Exp $ */
    77/*
    88* ABSTRACT: Declarations for working with Options
     
    7676
    7777// opt->type must be feOptInt or feOptBool
    78 char* feSetOptValue(feOptIndex opt, int optarg);
     78const char* feSetOptValue(feOptIndex opt, int optarg);
    7979// for opt->type != feOptString, optarg is converted
    8080// to an int
    81 char* feSetOptValue(feOptIndex opt, char* optarg);
     81const char* feSetOptValue(feOptIndex opt, char* optarg);
    8282
    8383void fePrintOptValues();
  • Singular/silink.cc

    r88d631 r0ec43a  
    22*  Computer Algebra System SINGULAR     *
    33****************************************/
    4 /* $Id: silink.cc,v 1.48 2008-09-10 08:52:57 Singular Exp $ */
     4/* $Id: silink.cc,v 1.49 2008-09-10 09:18:01 Singular Exp $ */
    55
    66/*
     
    190190  BOOLEAN res;
    191191
    192   if (l->m == NULL) slInit(l, "");
     192  if (l->m == NULL) slInit(l, ((char*)""));
    193193
    194194  if (SI_LINK_OPEN_P(l))
  • Singular/walk.cc

    r88d631 r0ec43a  
    22*  Computer Algebra System SINGULAR      *
    33*****************************************/
    4 /* $Id: walk.cc,v 1.13 2008-03-19 17:44:37 Singular Exp $ */
     4/* $Id: walk.cc,v 1.14 2008-09-10 09:21:29 Singular Exp $ */
    55/*
    66* ABSTRACT: Implementation of the Groebner walk
     
    417417}
    418418
    419 static void idString(ideal L, char* st)
     419static void idString(ideal L, const char* st)
    420420{
    421421  int i, nL = IDELEMS(L);
     
    50945094      Print("\n// Subroutine needs (%d) steps.", nwalk);
    50955095      idElements(Glp, "last G in walk:");
    5096       PrintS("\n//****************************************");
     5096      PrintS("\n// ****************************************");
    50975097      Print("\n// Perturb the original target vector (%d): ", nsteppert);
    50985098      ivString(target_weight, "new target");
    5099       PrintS("\n//****************************************\n");
     5099      PrintS("\n// ****************************************\n");
    51005100      */
    51015101      rChangeCurrRing(newRing);
Note: See TracChangeset for help on using the changeset viewer.