Skip to content

Commit bedd90d

Browse files
committed
tutorial & demo
1 parent 1559715 commit bedd90d

File tree

6 files changed

+438
-461
lines changed

6 files changed

+438
-461
lines changed

Makefile

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,10 +110,11 @@ ALLPASFILES := $(patsubst %.pas.mcp, %.pas, $(wildcard *.pas.mcp))
110110
ADTUNITS := $(patsubst %.pas, %$(obj_suffix), $(ALLPASFILES))
111111
TESTPROGS := $(patsubst %.pas, %$(prog_suffix), $(wildcard tests/*.pas))
112112
TESTUNITS := $(patsubst %.pas, %$(obj_suffix), $(wildcard tests/units/*.pas))
113+
DEMOPROGS := $(patsubst %.pas, %$(prog_suffix), $(wildcard demo/customer/*.pas))
113114

114115
TOOLSDEPS := $(wildcard tools/*.pas tools/*.c tools/*.h)
115116

116-
.PHONY : test install static dynamic smart all units tests debug windows docs clean cleandocs cleanprogs fastclean tools check
117+
.PHONY : test install static dynamic smart all units tests debug demo windows docs clean cleandocs cleanprogs fastclean tools check
117118

118119
all : units tests
119120

@@ -138,6 +139,8 @@ tests : units $(TESTPROGS) $(TESTUNITS)
138139

139140
debug : units tests
140141

142+
demo : units $(DEMOPROGS)
143+
141144
windows : units
142145

143146
tools : tools.dep

README.md

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
1-
PascalAdt is a library of data structures and algorithms for Free
2-
Pascal and Delphi, inspired by the C++ STL library.
1+
[PascalAdt](https://pascaladt.github.io) is a library of data
2+
structures and algorithms for Free Pascal inspired by the C++ STL
3+
library.
34

45
Features
56
--------
@@ -28,12 +29,15 @@ Installation and usage
2829
----------------------
2930
* Compilation: `make`
3031
* Tests: `make test`
31-
* Installation `make install`
32+
* Installation: `make install`
33+
* [Demo](demo/customer/customer.pas) compilation: `make demo`
3234

3335
Documentation
3436
-------------
3537

36-
See [docsrc/tutorial.txt](docsrc/tutorial.txt) and [demo/customer/customer.pas](demo/customer/customer.pas).
38+
[PascalAdt documentation](https://pascaladt.github.io/pascaladt-docs/index.html) is available at the [PascalAdt webpage](https://pascaladt.github.io/). It includes a tutorial and the API documentation auto-generated from sources with the [SrcDoc](https://github.com/lukaszcz/srcdoc/) program.
39+
40+
See also [docsrc/tutorial.txt](docsrc/tutorial.txt) and [demo/customer/customer.pas](demo/customer/customer.pas).
3741

3842
Copyright and license
3943
---------------------

adtstralgs.pas.mcp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -392,6 +392,7 @@ begin
392392
tab := KmpReverseComputeTable(str2);
393393

394394
len := Length(str2);
395+
Result := nil;
395396
SetLength(Result, len + 2);
396397
filler := len + 2;
397398
for i := 0 to len do

cleanup.sh

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -42,10 +42,7 @@ if [ "$REPLY" = "yes" ]; then
4242
cd units
4343
rm -f `ls -1 | grep '~'`
4444
rm -f `ls -1 | egrep -v "${FILES_TO_RETAIN}"'|(cpu)'`;
45-
cd cpu
46-
rm -f `ls -1 | grep '~'`
47-
rm -f `ls -1 | egrep -v "${FILES_TO_RETAIN}"'|(license.txt)'`;
48-
cd ../../../demo
45+
cd ../../demo
4946
rm -f `ls -1 | grep '~'`
5047
rm -f `ls -1 | egrep -v "${FILES_TO_RETAIN}"'|(customer)|(Makefile)'`;
5148
cd customer

0 commit comments

Comments
 (0)