288 |
* Read line from stdin and replace " ./<file name> " |
* Read line from stdin and replace " ./<file name> " |
289 |
* with the file number like this. |
* with the file number like this. |
290 |
* |
* |
291 |
* <A HREF="http://xxx/global/S/ ./main.c .html#110">main</A>\n |
* <a href='http://xxx/global/S/ ./main.c .html#110'>main</a>\n |
292 |
* | |
* | |
293 |
* v |
* v |
294 |
* <A HREF="http://xxx/global/S/39.html#110">main</A>\n |
* <a href='http://xxx/global/S/39.html#110'>main</a>\n |
295 |
* |
* |
296 |
* If the file name is not found in GPATH, change into the path to CGI script. |
* If the file name is not found in GPATH, change into the path to CGI script. |
297 |
* <A HREF="http://xxx/global/S/ ./README .html#9">main</A>\n |
* <a href='http://xxx/global/S/ ./README .html#9'>main</a>\n |
298 |
* | |
* | |
299 |
* v |
* v |
300 |
* <A HREF="http://xxx/global/cgi-bin/global.cgi?pattern=README&type=source#9">main</A>\n |
* <a href='http://xxx/global/cgi-bin/global.cgi?pattern=README&type=source#9'>main</a>\n |
301 |
*/ |
*/ |
302 |
if (gpath_open(".", 0, 0) < 0) |
if (gpath_open(".", 0, 0) < 0) |
303 |
die("GPATH not found."); |
die("GPATH not found."); |
343 |
else |
else |
344 |
printf("%%%02x", c); |
printf("%%%02x", c); |
345 |
} |
} |
346 |
fputs("&type=source", stdout); |
fputs("&type=source", stdout); |
347 |
for (; *q && *q != '#'; q++) |
for (; *q && *q != '#'; q++) |
348 |
; |
; |
349 |
if (*q == '\0') { |
if (*q == '\0') { |