Changeset 6f83c3d in git


Ignore:
Timestamp:
Oct 29, 1998, 2:27:56 PM (26 years ago)
Author:
Hans Schönemann <hannes@…>
Branches:
(u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
Children:
49e4cf52022a948fa0a8caaba481eaaefe28591a
Parents:
42aacda3aa026dde5ffeb3dc2f373683406c43ad
Message:
* hannes: Print-optimizations


git-svn-id: file:///usr/local/Singular/svn/trunk@2620 2c84dea3-7e68-4137-9b89-c4e89433aadc
Location:
Singular
Files:
1 added
3 edited

Legend:

Unmodified
Added
Removed
  • Singular/ipassign.cc

    r42aacda r6f83c3d  
    22*  Computer Algebra System SINGULAR     *
    33****************************************/
    4 /* $Id: ipassign.cc,v 1.39 1998-10-29 09:50:43 Singular Exp $ */
     4/* $Id: ipassign.cc,v 1.40 1998-10-29 13:27:54 Singular Exp $ */
    55
    66/*
     
    12911291            if (lt==LIST_CMD && (l->req_packhdl)!= NULL)
    12921292            {
    1293 //              Print("==========>ipAssign() - 3\n");
     1293              // Print("==========>ipAssign() - 3\n");
    12941294              namespaceroot->push( IDPACKAGE(l->req_packhdl) ,
    12951295                                   IDID(l->req_packhdl));
  • Singular/ipid.cc

    r42aacda r6f83c3d  
    22*  Computer Algebra System SINGULAR     *
    33****************************************/
    4 /* $Id: ipid.cc,v 1.24 1998-10-28 18:12:55 Singular Exp $ */
     4/* $Id: ipid.cc,v 1.25 1998-10-29 13:27:55 Singular Exp $ */
    55
    66/*
     
    428428  }
    429429  // pointer -------------------------------------------------------------
    430   else if(IDTYP(h)==POINTER_CMD) {
    431     Print(">>>>>>Free pointer\n");
     430  else if(IDTYP(h)==POINTER_CMD)
     431  {
     432    PrintS(">>>>>>Free pointer\n");
    432433  }
    433434#endif /* HAVE_NAMESPACES */
     
    496497  // now dechain it and delete idrec
    497498#ifdef KAI_
    498   if(h->next != NULL)Print("=======>%s(%x) -> %s<====\n", IDID(h), IDID(h), IDID(h->next));
    499   else Print("=======>%s(%x)<====\n", IDID(h), IDID(h));
     499  if(h->next != NULL)
     500    Print("=======>%s(%x) -> %s<====\n", IDID(h), IDID(h), IDID(h->next));
     501  else
     502    Print("=======>%s(%x)<====\n", IDID(h), IDID(h));
    500503#endif
    501504
     
    716719    {
    717720      Print("//dclose(%s)\n",pack->libname);
    718      
    719721    }
    720722    FreeL((ADDRESS)pack->libname);
     
    911913  for(nshdl=namespaceroot; nshdl->isroot != TRUE; nshdl = nshdl->next) {
    912914    //Print("NSstack: %s:%d, nesting=%d\n", nshdl->name, nshdl->lev, nshdl->myynest);
    913     if (nshdl->pack==pack) {
     915    if (nshdl->pack==pack)
     916    {
    914917      Warn("package '%s' still in use on level %d",nshdl->name, nshdl->lev);
    915918      return FALSE;
    916919    }
    917920  }
    918   if (nshdl->pack==pack) {
     921  if (nshdl->pack==pack)
     922  {
    919923    //Print("NSstack: %s:%d, nesting=%d\n", nshdl->name, nshdl->lev, nshdl->myynest);
    920924    Warn("package '%s' still in use on level %d",nshdl->name, nshdl->lev);
  • Singular/iplib.cc

    r42aacda r6f83c3d  
    22*  Computer Algebra System SINGULAR     *
    33****************************************/
    4 /* $Id: iplib.cc,v 1.38 1998-10-22 12:26:12 krueger Exp $ */
     4/* $Id: iplib.cc,v 1.39 1998-10-29 13:27:56 Singular Exp $ */
    55/*
    66* ABSTRACT: interpreter: LIB and help
     
    306306    if (iiLocalRing[i]==NULL) PrintS("NULL");
    307307    else                      Print("%d",iiLocalRing[i]);
    308     Print("\n");
     308    PrintLn();
    309309  }
    310310#endif
     
    315315      if (nshdl->currRing==NULL) PrintS("NULL");
    316316      else                       Print("%d",nshdl->currRing);
    317       Print("\n");
     317      PrintLn();
    318318    }
    319319    Print("%d lev %d:",nshdl->lev, nshdl->myynest);
    320320    if (nshdl->currRing==NULL) PrintS("NULL");
    321321    else                       Print("%d",nshdl->currRing);
    322     Print("\n");
     322    PrintLn();
    323323  }
    324324  if (currRing==NULL) PrintS("curr:NULL\n");
     
    407407                 err=TRUE;
    408408                 break;
    409                
     409
    410410    case LANG_SINGULAR:
    411411                 err=iiPStart(pn,sl);
     
    598598#ifdef HAVE_NAMESPACES
    599599  int token;
    600  
     600
    601601  if(IsCmd(plib, &token)) {
    602602    Werror("'%s' is resered identifier\n", plib);
     
    742742    }
    743743#if 0
    744     Print("--------------------\n");
    745     for(ls = library_stack; ls != NULL; ls = ls->next) {
     744    PrintS("--------------------\n");
     745    for(ls = library_stack; ls != NULL; ls = ls->next)
     746    {
    746747      Print("%s: LIB-stack:(%d), %s %s\n", newlib, ls->cnt, ls->get(),
    747748        ls->to_be_done ? "not loaded" : "loaded");
    748749    }
    749     Print("--------------------\n");
     750    PrintS("--------------------\n");
    750751#endif
    751752  }
     
    954955
    955956  h = enterid(mstrdup(procname),0, PROC_CMD, &IDROOT, FALSE);
    956   if ( h!= NULL ) {
     957  if ( h!= NULL )
     958  {
    957959    Print("register binary proc: %s::%s\n", libname, procname);
    958960    pi = IDPROC(h);
     
    964966    pi->data.o.function = func;
    965967    return(1);
    966   } else {
    967     Print("iiAddCproc: failed.\n");
     968  }
     969  else
     970  {
     971    PrintS("iiAddCproc: failed.\n");
    968972  }
    969973  return(0);
     
    10001004  // printf("iiConvName: '%s' '%s' => '%s'\n", libname, tmpname, r);
    10011005  FreeL(tmpname);
    1002  
     1006
    10031007  return(r);
    10041008}
Note: See TracChangeset for help on using the changeset viewer.