~mdw
/
sgt
/
agedu
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Various polishing: man page tweaks, --version now does something,
[sgt/agedu]
/
html.c
diff --git
a/html.c
b/html.c
index
0d80eae
..
48f1827
100644
(file)
--- a/
html.c
+++ b/
html.c
@@
-11,17
+11,14
@@
#include <limits.h>
#include <time.h>
#include <limits.h>
#include <time.h>
+#include "agedu.h"
#include "html.h"
#include "html.h"
-#include "
m
alloc.h"
+#include "alloc.h"
#include "trie.h"
#include "index.h"
#include "trie.h"
#include "index.h"
-#define lenof(x) ( sizeof((x)) / sizeof(*(x)) )
-
#define MAXCOLOUR 511
#define MAXCOLOUR 511
-extern char pathsep;
-
struct html {
char *buf;
size_t buflen, bufsize;
struct html {
char *buf;
size_t buflen, bufsize;
@@
-428,7
+425,7
@@
char *html_query(const void *t, unsigned long index,
*/
htprintf(ctx, "<head>\n");
trie_getpath(t, index, path);
*/
htprintf(ctx, "<head>\n");
trie_getpath(t, index, path);
- htprintf(ctx, "<title>
agedu: "
);
+ htprintf(ctx, "<title>
%s: ", PNAME
);
htescape(ctx, path, strlen(path), 0);
htprintf(ctx, "</title>\n");
htprintf(ctx, "</head>\n");
htescape(ctx, path, strlen(path), 0);
htprintf(ctx, "</title>\n");
htprintf(ctx, "</head>\n");