pike.git / lib / modules / Parser.pmod / Tabular.pike

version» Context lines:

pike.git/lib/modules/Parser.pmod/Tabular.pike:659:   //!::accountname "(\n[^-:][^\n]*)*" drop   //!:messagetrailer mandatory single   //!::start "-"   //!::end "XXX"   //![Tabular description end]   array|mapping compile(string|Stdio.File|Stdio.FILE input)   { if(!input)    input="";    if(stringp(input))    input=Stdio.FakeFile(input); -  if(!input->unread) -  (input=Stdio.FILE())->assign(input); +  if(!input->unread) { +  Stdio.FILE tmpf = Stdio.FILE(); +  tmpf->assign(input); +  input = tmpf; +  }    int started=0;    int lineno=0;    string beginend="Tabular description ";    array fields=    ({"level","name","width",0,"delim",0,"match",0,"options","comment"});    array strip=({"name","width","delim","match","options","comment"});    int garbage=0;       mapping getline()    { mapping m;