Changeset 938688 in git for Singular/iplib.cc


Ignore:
Timestamp:
Nov 4, 2003, 5:43:50 PM (20 years ago)
Author:
Hans Schönemann <hannes@…>
Branches:
(u'spielwiese', 'b324714bf5073469800caef737deba1366fbd81f')
Children:
f2109c3093e6bb6775ec1f877280c8269b723df8
Parents:
65dea380b7de468a9f3050f10c6134b1ee5e6257
Message:
*hannes:2-1 new dir:kernel


git-svn-id: file:///usr/local/Singular/svn/trunk@6915 2c84dea3-7e68-4137-9b89-c4e89433aadc
File:
1 edited

Legend:

Unmodified
Added
Removed
  • Singular/iplib.cc

    r65dea3 r938688  
    22*  Computer Algebra System SINGULAR     *
    33****************************************/
    4 /* $Id: iplib.cc,v 1.103 2003-07-25 14:04:08 levandov Exp $ */
     4/* $Id: iplib.cc,v 1.104 2003-11-04 16:43:29 Singular Exp $ */
    55/*
    66* ABSTRACT: interpreter: LIB and help
     
    131131  int argstrlen=127;
    132132  *argstr='\0';
     133  int par=0;
    133134  do
    134135  {
     
    136137    s=e; // set s to the starting point of the arg
    137138         // and search for the end
    138     while ((*e!=',')&&(*e!=')')&&(*e!='\0'))
    139     {
     139    while ((*e!=',')
     140    &&((par!=0) || (*e!=')'))
     141    &&(*e!='\0'))
     142    {
     143      if (*e=='(') par++;
     144      else if (*e==')') par--;
    140145      args_found=args_found || (*e>' ');
    141146      e++;
Note: See TracChangeset for help on using the changeset viewer.