Changeset ed3c47 in git


Ignore:
Timestamp:
May 13, 1998, 4:53:46 PM (26 years ago)
Author:
Hans Schönemann <hannes@…>
Branches:
(u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
Children:
c6964d3e1ef307882e6dfb190e037a208fdd3a80
Parents:
7dc38717a028ca1c92f3fac68c5c7fd4c3267996
Message:
* hannes: changed syntax of NOT (does not require () any more)
          changes to make -Wall happy


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

Legend:

Unmodified
Added
Removed
  • Singular/ChangeLog

    r7dc3871 red3c47  
     1Wed May 13 16:52:09 MET DST 1998 hannes
     2        * changed syntax of NOT (does not require () any more)
    13Tue May 12 16:58:13 MET DST 1998 hannes
    24        * changed return type of option(): none -> string
  • Singular/grammar.y

    r7dc3871 red3c47  
    22*  Computer Algebra System SINGULAR     *
    33****************************************/
    4 /* $Id: grammar.y,v 1.32 1998-05-11 16:55:29 Singular Exp $ */
     4/* $Id: grammar.y,v 1.33 1998-05-13 14:53:44 Singular Exp $ */
    55/*
    66* ABSTRACT: SINGULAR shell grammatik
     
    283283%left '+' '-'
    284284%left '*' '/' '%' INTDIV
    285 %left UMINUS
     285%left UMINUS NOT
    286286%left  '^'
    287287%left '[' ']'
     
    781781            if(iiExprArith2(&$$,&$1,DOTDOT,&$3)) YYERROR;
    782782          }
    783         | NOT '(' expr ')'
     783        | NOT expr
    784784          {
    785785            memset(&$$,0,sizeof($$));
    786             int i; TESTSETINT($3,i);
     786            int i; TESTSETINT($2,i);
    787787            $$.rtyp  = INT_CMD;
    788788            $$.data = (void *)(i == 0 ? 1 : 0);
  • Singular/iplib.cc

    r7dc3871 red3c47  
    22*  Computer Algebra System SINGULAR     *
    33****************************************/
    4 /* $Id: iplib.cc,v 1.24 1998-05-09 14:34:29 krueger Exp $ */
     4/* $Id: iplib.cc,v 1.25 1998-05-13 14:53:45 Singular Exp $ */
    55/*
    66* ABSTRACT: interpreter: LIB and help
     
    2525#else /* HAVE_LIBPARSER */
    2626   procinfo *iiInitSingularProcinfo(procinfov pi, char *libname,
    27                                     char *procname, int line, long pos,
    28                                     BOOLEAN pstatic = FALSE);
     27                                    char *procname, int line, long pos,
     28                                    BOOLEAN pstatic = FALSE);
    2929#endif /* HAVE_LIBPARSER */
    3030
     
    308308  if(pi->is_static && myynest==0) {
    309309    Werror("'%s::%s()' is a local procedure and cannot be accessed by an user.",
    310            pi->libname, pi->procname);
     310           pi->libname, pi->procname);
    311311    return NULL;
    312312  }
     
    526526  }
    527527  if (BVERBOSE(V_LOAD_LIB)) Print( "// ** loaded %s %s", libnamebuf,
    528                                    text_buffer);
     528                                   text_buffer);
    529529  if( (lib_style == OLD_LIBSTYLE) && (BVERBOSE(V_LOAD_LIB)))
    530530    Warn( "library %s has an old format. Please fix it for the next time",
    531           newlib);
     531          newlib);
    532532  else {
    533533    if (BVERBOSE(V_LOAD_LIB)) Print("\n");
     
    737737/*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*/
    738738int iiAddCproc(char *libname, char *procname, BOOLEAN pstatic,
    739                BOOLEAN(*func)(leftv res, leftv v))
     739               BOOLEAN(*func)(leftv res, leftv v))
    740740{
    741741  procinfov pi;
     
    763763char *iiConvName(char *libname)
    764764{
    765   char *p = (char *)AllocL(strlen(libname)+7);
    766   char *q = mstrdup(libname);
    767   char *r = q;
    768   for(; *r!='\0'; r++)
     765  int l=strlen(libname)+7;
     766  char *p = (char *)AllocL(l);
     767  char *r;
     768
     769  memset(p,0,l);
     770  sprintf(p, "%s_init", libname);
     771  for(r=p; *r!='\0'; r++)
    769772  {
    770773    if(*r=='.') *r='_';
    771774    if(*r==':') *r='_';
    772775  }
    773   sprintf(p, "%s_init\0", q);
    774   FreeL((ADDRESS)q);
    775776  return(p);
    776777}
  • Singular/mminit.cc

    r7dc3871 red3c47  
    22*  Computer Algebra System SINGULAR     *
    33****************************************/
    4 /* $Id: mminit.cc,v 1.10 1998-04-28 08:46:22 obachman Exp $ */
     4/* $Id: mminit.cc,v 1.11 1998-05-13 14:53:46 Singular Exp $ */
    55/*
    66* ABSTRACT: init of memory management
     
    1111#include <stdlib.h>
    1212#include <string.h>
     13#define __USE_MISC
     14#include <unistd.h>
     15#include <sys/types.h>
    1316#include "mod2.h"
    1417#include "mmemory.h"
     
    153156#ifdef HAVE_SBRK
    154157#include <unistd.h>
    155 unsigned long mm_SbrkInit = sbrk(0);
     158unsigned long mm_SbrkInit = (unsigned long)sbrk(0);
    156159#endif
    157160
Note: See TracChangeset for help on using the changeset viewer.