diff --git a/Makefile.mingw b/Makefile.mingw deleted file mode 100644 index 257186f..0000000 --- a/Makefile.mingw +++ /dev/null @@ -1,37 +0,0 @@ -# Windows port cross-compiling with MacOSX MinGW 4.3.0 -# (good luck) - -PROJ := MakeIndex -VA := 0 -VB := 8 -FILES := Recursor Parser Widget Files -BDIR := win -BACK := backup -EXE := $(PROJ).exe -INST := $(PROJ)-$(VA)_$(VB) -OBJS := $(patsubst %,$(BDIR)/%.o,$(FILES)) -SRCS := $(patsubst %,%.c,$(FILES)) -H := $(patsubst %,%.h,$(FILES)) - -CC := /usr/local/i386-mingw32-4.3.0/bin/i386-mingw32-gcc -CF := -Wall -O3 -fasm -fomit-frame-pointer -ffast-math -funroll-loops -pedantic -ansi - -default: $(BDIR)/$(EXE) - -$(BDIR)/$(EXE): $(OBJS) - $(CC) $(CF) -o $@ $^ - -$(BDIR)/%.o: %.c - @mkdir -p $(BDIR) - $(CC) $(CF) -c $? -o $@ - -.PHONY: clean backup -clean: - -rm $(OBJS) - -setup: $(BDIR)/$(EXE) - @mkdir -p $(INST) - cp $(BDIR)/$(EXE) readme.txt gpl.txt copying.txt $(INST) - cp -a bin/example $(INST) - zip $(BDIR)/$(INST)-Win32-`date +%Y-%m-%dT%H%M%S` $(INST)/$(EXE) -r $(INST) - rm -R $(INST) diff --git a/doc/Files.html b/doc/Files.html index a1ae360..0d7ba02 100644 --- a/doc/Files.html +++ b/doc/Files.html @@ -41,22 +41,22 @@
Copyright 2008, 2012 Neil Edelman, distributed under the terms of the - GNU General Public License, see copying.txt, or - https://opensource.org/licenses/GPL-3.0. +GNU General Public License, see copying.txt, or +https://opensource.org/licenses/GPL-3.0.
- Files is a list of File (private class defiend below,) the Files can have - a relation to other Files by 'parent' and 'favourite' (@(pwd) uses this.) +Files is a list of File (private class defiend below,) the Files can have +a relation to other Files by 'parent' and 'favourite' (@(pwd) uses this.)
char * FilesName (const struct Files *files)-
-
--
int FilesSize (const struct Files *files)-
-
--
int FilesIsDir (const struct Files *files)-
-
--
typedef int (*ParserWidget)(const struct Files *, FILE *fp)+
+All ParserWidgets are in Widget.c +
+Return Type | Function Name | Argument List | |||
---|---|---|---|---|---|
const struct Symbol * | -match | -const char *str, const char *end | +struct Parser * | +Parser | +const char *str | +
void | +Parser_ | +struct Parser **const p_ptr | +|||
void | +ParserRewind | +struct Parser *p | |||
int | ParserParse | -struct Parser *p, const struct Files *f, int invisible, FILE *fp | +struct Parser *p, const struct Files *f, int invisible, + FILE *fp |
const struct Symbol * match (const char *str, const char *end)+
struct Parser * Parser (const char *str)+
void Parser_ (struct Parser **const p_ptr)+
void ParserRewind (struct Parser *p)
-binary search +Resets the parser, p.
int ParserParse (struct Parser *p, const struct Files *f, int invisible, FILE *fp)+
int ParserParse (struct Parser *p, const struct Files *f, int invisible, + FILE *fp)
-parse, called recusively (invisible, hack) fixme: this fn needs rewriting, messy +Parse, called recursively.
Copyright 2008, 2012 Neil Edelman, distributed under the terms of the - GNU General Public License, see copying.txt +GNU General Public License, see copying.txt
- This is the main program. I didn't know what to call it. +MakeIndex is a simple content management system that generates static +content, (mostly index.html,) on all the directories rooted at the directory +specified by the argument. It is based on a template file, ".index.html" and +".newsfeed.rss". Also included are files to summarise the directory structure +for a xml site map, compatible with Google, and any .news for an rss +feed. It takes one argument, <directory>, which is the root of the recursion. +
++There should be an <example> directory that has a bunch of files in it. Run +bin/MakeIndex example/; it should make a webpage out of the directory +structure and .index.html, open example/index.html after running to see. +
++.index.html, .sitemap.xml, .newsfeed.rss, see Parser for recognised +symbols. Assumes '..' is the parent directory, '.' is the current directory, +and '/' is the directory separator; works for UNIX, MacOS, Windows. +If this is not the case, the constants are in Files.c.
Return Type | Function Name | Argument List |
---|---|---|
int | +WidgetContent | +const struct Files *f, FILE *fp | +
int | +WidgetDate | +const struct Files *f, FILE *fp | +
int | +WidgetFilealt | +const struct Files *f, FILE *fp | +
int | +WidgetFiledesc | +const struct Files *f, FILE *fp | +
int | +WidgetFilehref | +const struct Files *f, FILE *fp | +
int | +WidgetFileicon | +const struct Files *f, FILE *fp | +
int | +WidgetFilename | +const struct Files *f, FILE *fp | +
int | +WidgetFiles | +const struct Files *f, FILE *fp | +
int | +WidgetFilesize | +const struct Files *f, FILE *fp | +
int | +WidgetNews | +const struct Files *f, FILE *fp | +
int | +WidgetNewsname | +const struct Files *f, FILE *fp | +
int | +WidgetNow | +const struct Files *f, FILE *fp | +
int | +WidgetPwd | +const struct Files *f, FILE *fp | +
int | +WidgetRoot | +const struct Files *f, FILE *fp | +
int | +WidgetTitle | +const struct Files *f, FILE *fp | +
int WidgetContent (const struct Files *f, FILE *fp)+
int WidgetFilealt (const struct Files *f, FILE *fp)+
int WidgetFiledesc (const struct Files *f, FILE *fp)+
int WidgetFilehref (const struct Files *f, FILE *fp)+
int WidgetFileicon (const struct Files *f, FILE *fp)+
int WidgetFilename (const struct Files *f, FILE *fp)+
int WidgetFilesize (const struct Files *f, FILE *fp)+