| 51 |
|
|
| 52 |
rem Mark Tetrode's commands |
rem Mark Tetrode's commands |
| 53 |
rem Compile & run |
rem Compile & run |
| 54 |
cl -DSUPPORT_UTF8 dftables.c |
cl -DSUPPORT_UTF8 -DSUPPORT_UCP dftables.c |
| 55 |
dftables.exe > chartables.c |
dftables.exe chartables.c |
| 56 |
|
|
| 57 |
(4) Compile maketables.c, get.c, study.c and pcre.c and link them all |
(4) Compile maketables.c, get.c, study.c and pcre.c and link them all |
| 58 |
together into an object library in whichever form your system keeps such |
together into an object library in whichever form your system keeps such |
| 62 |
|
|
| 63 |
rem Mark Tetrode's commands, for a static library |
rem Mark Tetrode's commands, for a static library |
| 64 |
rem Compile & lib |
rem Compile & lib |
| 65 |
cl -DSUPPORT_UTF8 -DPOSIX_MALLOC_THRESHOLD=10 /c maketables.c get.c study.c pcre.c |
cl -DSUPPORT_UTF8 -DSUPPORT_UCP -DPOSIX_MALLOC_THRESHOLD=10 /c maketables.c get.c study.c pcre.c |
| 66 |
lib /OUT:pcre.lib maketables.obj get.obj study.obj pcre.obj |
lib /OUT:pcre.lib maketables.obj get.obj study.obj pcre.obj |
| 67 |
|
|
| 68 |
(5) Similarly, compile pcreposix.c and link it (on its own) as the pcreposix |
(5) Similarly, compile pcreposix.c and link it (on its own) as the pcreposix |
| 70 |
|
|
| 71 |
rem Mark Tetrode's commands, for a static library |
rem Mark Tetrode's commands, for a static library |
| 72 |
rem Compile & lib |
rem Compile & lib |
| 73 |
cl -DSUPPORT_UTF8 -DPOSIX_MALLOC_THRESHOLD=10 /c pcreposix.c |
cl -DSUPPORT_UTF8 -DSUPPORT_UCP -DPOSIX_MALLOC_THRESHOLD=10 /c pcreposix.c |
| 74 |
lib /OUT:pcreposix.lib pcreposix.obj |
lib /OUT:pcreposix.lib pcreposix.obj |
| 75 |
|
|
| 76 |
(6) Compile the test program pcretest.c. This needs the functions in the |
(6) Compile the test program pcretest.c. This needs the functions in the |
| 78 |
|
|
| 79 |
rem Mark Tetrode's commands |
rem Mark Tetrode's commands |
| 80 |
rem compile & link |
rem compile & link |
| 81 |
cl pcretest.c pcre.lib pcreposix.lib |
cl /F0x400000 pcretest.c pcre.lib pcreposix.lib |
| 82 |
|
|
| 83 |
(7) Run pcretest on the testinput files in the testdata directory, and check |
(7) Run pcretest on the testinput files in the testdata directory, and check |
| 84 |
that the output matches the corresponding testoutput files. You must use the |
that the output matches the corresponding testoutput files. You must use the |
| 87 |
to change this if your system uses a different convention. |
to change this if your system uses a different convention. |
| 88 |
|
|
| 89 |
rem Mark Tetrode's commands |
rem Mark Tetrode's commands |
|
rem Make a change, i.e. space, backspace, and save again - do this for all |
|
|
rem to change UNIX to Win, \n to \n\r |
|
|
write testoutput1 |
|
|
write testoutput2 |
|
|
write testoutput3 |
|
|
write testoutput4 |
|
|
write testoutput5 |
|
| 90 |
pcretest testdata\testinput1 testdata\myoutput1 |
pcretest testdata\testinput1 testdata\myoutput1 |
| 91 |
windiff testdata\testoutput1 testdata\myoutput1 |
windiff testdata\testoutput1 testdata\myoutput1 |
| 92 |
pcretest -i testdata\testinput2 testdata\myoutput2 |
pcretest -i testdata\testinput2 testdata\myoutput2 |
| 97 |
windiff testdata\testoutput4 testdata\myoutput4 |
windiff testdata\testoutput4 testdata\myoutput4 |
| 98 |
pcretest testdata\testinput5 testdata\myoutput5 |
pcretest testdata\testinput5 testdata\myoutput5 |
| 99 |
windiff testdata\testoutput5 testdata\myoutput5 |
windiff testdata\testoutput5 testdata\myoutput5 |
| 100 |
|
pcretest testdata\testinput6 testdata\myoutput6 |
| 101 |
|
windiff testdata\testoutput6 testdata\myoutput6 |
| 102 |
|
|
| 103 |
|
|
| 104 |
FURTHER REMARKS |
FURTHER REMARKS |