version 1.27, 2014/07/11 09:10:50 |
version 1.28, 2014/07/11 10:31:28 |
Line 181 trylink(const char *buf, size_t *start, size_t end, si |
|
Line 181 trylink(const char *buf, size_t *start, size_t end, si |
|
{ |
{ |
size_t linkstart, realend, linkend, |
size_t linkstart, realend, linkend, |
i, j, textsz, stack; |
i, j, textsz, stack; |
const char *text; |
|
|
|
/* |
/* |
* Scan to the start of the terminus. |
* Scan to the start of the terminus. |
Line 218 trylink(const char *buf, size_t *start, size_t end, si |
|
Line 217 trylink(const char *buf, size_t *start, size_t end, si |
|
linkend = dsz > 1 ? realend - 1 : realend; |
linkend = dsz > 1 ? realend - 1 : realend; |
|
|
/* Re-scan to see if we have a title or section. */ |
/* Re-scan to see if we have a title or section. */ |
text = &buf[*start]; |
|
for (textsz = *start; textsz < linkend; textsz++) |
for (textsz = *start; textsz < linkend; textsz++) |
if ('|' == buf[textsz] || '/' == buf[textsz]) |
if ('|' == buf[textsz] || '/' == buf[textsz]) |
break; |
break; |