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.)

-
author:
+
minimum standard
+
C89/90
+
author
Neil
-
version:
-
0.9; 2017-03 fixed pedantic warnings
-
since:
-
0.8; 2013-07 case-insensitive sort - 0.7; 2012 sth.dsth.d handled properly - 0.6; 2008-03-24
+
version
+
1.1; 2017-03 fixed pedantic warnings; took out arg
+
since
+
0.6; 2008-03-24
@@ -200,12 +200,8 @@ After FilesSetFarourite, this enumerates them.

FilesName

char * FilesName (const struct Files *files)
-

-

-

-

-
return:
+
return
The file name of the selected file.
@@ -213,12 +209,8 @@ After FilesSetFarourite, this enumerates them.

FilesSize

int FilesSize (const struct Files *files)
-

-

-

-

-
return:
+
return
File size of the selected file.
@@ -226,12 +218,8 @@ After FilesSetFarourite, this enumerates them.

FilesIsDir

int FilesIsDir (const struct Files *files)
-

-

-

-

-
return:
+
return
Whether the file is a directory.
diff --git a/doc/Parser.html b/doc/Parser.html index 51c7d8a..befce96 100644 --- a/doc/Parser.html +++ b/doc/Parser.html @@ -45,31 +45,90 @@

Declarations

+
+

struct Parser

+
struct Parser
+

+See Parser. +

+
+
+
+ +
+

struct Files

+
struct Files
+

+Dependancy on Files +

+
+
+
+ +
+

typedef int (*ParserWidget)(const struct Files *, FILE *fp)

+
typedef int (*ParserWidget)(const struct Files *, FILE *fp)
+

+All ParserWidgets are in Widget.c +

+
+
+
+

Function Summary

- - - + + + + + + + + + + + + + - +
Return TypeFunction NameArgument List
const struct Symbol *matchconst char *str, const char *endstruct Parser *Parserconst char *str
voidParser_struct Parser **const p_ptr
voidParserRewindstruct Parser *p
int ParserParsestruct Parser *p, const struct Files *f, int invisible, FILE *fpstruct Parser *p, const struct Files *f, int invisible, + FILE *fp

Function Detail

-
-

match

-
const struct Symbol * match (const char *str, const char *end)
+
+

Parser

+
struct Parser * Parser (const char *str)
+
+
return
+
Creates a parser for the string, str.
+
+
+ +
+

Parser_

+
void Parser_ (struct Parser **const p_ptr)
+
+
parameter: p_ptr
+
A pointer to the Parser that's to be destucted.
+
+
+ +
+

ParserRewind

+
void ParserRewind (struct Parser *p)

-binary search +Resets the parser, p.

@@ -77,11 +136,22 @@ binary search

ParserParse

-
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.

+
parameter: f
+
Called in the handler to ParserWidgets.
+
parameter: invisible
+
No output.
+
parameter: fp
+
Output.
+
fixme
+
This fn needs rewriting; messy.
+
fixme
+
Invisible, hack.
diff --git a/doc/Recursor.html b/doc/Recursor.html index 7271a25..04aa1a4 100644 --- a/doc/Recursor.html +++ b/doc/Recursor.html @@ -25,13 +25,13 @@ padding: 4px; } - +Parser -

+

Parser