pike.git / src / modules / Image / mkdoc.pike

version» Context lines:

pike.git/src/modules/Image/mkdoc.pike:1: - /* $Id: mkdoc.pike,v 1.12 1997/10/29 02:57:06 mirar Exp $ */ + /* $Id: mkdoc.pike,v 1.13 1997/11/02 03:43:32 mirar Exp $ */      import Stdio;   import Array;      mapping parse=([]);   int illustration_counter;   object illustration_source;      string illustration_code=read_bytes("illustration.pike");   object lena_image=Image.image()->fromppm(read_file("doc/lena.ppm"));
pike.git/src/modules/Image/mkdoc.pike:160:    switch ((search(refto,"::")!=-1)+(search(refto,".")!=-1)*2)    {    case 0: if (refto!=my_module) link=my_prefix+"::"+refto;    else link=refto;    break;    case 1: link=my_module+"."+refto; break;    case 2:    case 3: link=refto; break;    }    +  s=0; t=0; +  sscanf(link,"%s.%s.%s",link,s,t); +  if (s) link+="."+s; +  if (t) link=link+".html#"+t; +  else    if (search(link,"::")!=-1)    link=replace(link,"::",".html#");    else    link+=".html";    return "<tt><a href="+urlify(link)+">"+refto+"</a></tt>";   }      object(File) make_file(string filename)   {    stdout->write("creating "+filename+"...\n");