pike.git / bin / mkxml.pike

version» Context lines:

pike.git/bin/mkxml.pike:1: - /* $Id: mkxml.pike,v 1.28 2001/07/20 00:21:48 nilsson Exp $ */ + /* $Id: mkxml.pike,v 1.29 2001/07/20 00:46:14 nilsson Exp $ */      string LENA_PATH = "../autodoc/image_ill.pnm";   string makepic1;   string makepic2;      mapping parse=([ " appendix":([]) ]);   int illustration_counter;      #define error(X) throw( ({ (X), backtrace()[0..sizeof(backtrace())-2] }) )   
pike.git/bin/mkxml.pike:515:    }       if(t[-1]==',') {    res += "<argument><value>" + t[..sizeof(t)-2] + "</value></argument>";    i++;    continue;    }       // Find name    string n = ""; +  i++;    for (; i<sizeof(in); i++) { -  if(in[i]==')') +  if(in[i]==')') { +  if(!sizeof(String.trim_all_whites(n))) +  throw( ({ "Empty argument name.\n", backtrace() }) );    return res + "<argument name=" + S(n) + "><type>" + t +    "</type></argument>\n"; -  +  }    if(in[i]==',') { -  +  if(!sizeof(String.trim_all_whites(n))) +  throw( ({ "Empty argument name.\n", backtrace() }) );    res += "<argument name=" + S(n) + "><type>" + t +    "</type></argument>\n";    break;    } -  if(in[i]==' ') +  if(in[i]==' ') {    if(n=="...") {    n = "";    t = "<varargs>" + t + "</varargs>";    } -  +  }    else    n += in[i..i];    }    i++;    }       throw( ({ "Malformed argument list \"(" + in + "\".\n",    backtrace() }) );    };