Mercurial > mercurial > hgweb_xdwtools.cgi
comparison xdwaddatn2.cpp @ 8:61ce4754737e
bug fix.
| author | pyon@macmini |
|---|---|
| date | Tue, 03 Apr 2018 00:11:01 +0900 |
| parents | 8de5b1bd9506 |
| children | cc5262d43399 |
comparison
equal
deleted
inserted
replaced
| 7:8de5b1bd9506 | 8:61ce4754737e |
|---|---|
| 1 /* Makefile | 1 /* Makefile |
| 2 debug: xdwaddatn2.c | 2 debug: xdwaddatn2.cpp |
| 3 #rm -rf tempXXXX | 3 #rm -rf tempXXXX |
| 4 #cls | 4 #cls |
| 5 g++ -g -O0 -I. xdwaddatn2.c xdwapi.lib | 5 gcc -g -O0 -I. xdwaddatn2.cpp xdwapi.lib |
| 6 #date | 6 #date |
| 7 #./a.exe -m -i target.xdw | 7 #./a.exe -m -i target.xdw |
| 8 #date | 8 #date |
| 9 | 9 |
| 10 release: xdwaddatn2.c | 10 release: xdwaddatn2.cpp |
| 11 g++ -I. xdwaddatn2.c xdwapi.lib -static -o xdwaddatn2.exe | 11 gcc -I. xdwaddatn2.cpp xdwapi.lib -static -o xdwaddatn2.exe |
| 12 strip xdwaddatn2.exe | 12 strip xdwaddatn2.exe |
| 13 | 13 |
| 14 clean: | 14 clean: |
| 15 rm -rf tempXXXX | 15 rm -rf tempXXXX |
| 16 */ | 16 */ |
| 26 #include <xdw_api.h> | 26 #include <xdw_api.h> |
| 27 #include <xdwapian.h> | 27 #include <xdwapian.h> |
| 28 | 28 |
| 29 #define MAXCOL 1024 | 29 #define MAXCOL 1024 |
| 30 #define MAXLINE 9999 | 30 #define MAXLINE 9999 |
| 31 #define BLOCKSZ 64 | |
| 32 | 31 |
| 33 void print_error( int code ) { | 32 void print_error( int code ) { |
| 34 switch ( code ) { | 33 switch ( code ) { |
| 35 case XDW_E_NOT_INSTALLED: | 34 case XDW_E_NOT_INSTALLED: |
| 36 fprintf( stderr, "DocuWorksがインストールされていません。" ); | 35 fprintf( stderr, "DocuWorksがインストールされていません。" ); |
