forked from OpenBoardView/OpenBoardView
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
modify bv2raw.c to generate valid output, add x64 compile instruction…
…s and usage note. Signed-off-by: field <[email protected]>
- Loading branch information
Showing
1 changed file
with
8 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,6 +16,13 @@ | |
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. | ||
*/ | ||
|
||
/* 2016-12-20: [email protected] | ||
* add x64 (ubuntu) compile instructions: | ||
* gcc -L/usr/lib/x86_64-linux-gnu/ -o bv2raw bv2raw.c -I/usr/include/glib-2.0/ -I/usr/lib/x86_64-linux-gnu/glib-2.0/include/ -lglib-2.0 -lmdb | ||
* add short usage information: | ||
* Usage: bv2raw boardfile.bv > boardfile.bvr | ||
*/ | ||
|
||
#include "mdbtools.h" | ||
|
||
#ifdef DMALLOC | ||
|
@@ -112,6 +119,7 @@ int main(int argc, char **argv) { | |
} | ||
|
||
|
||
fprintf(outfile,"BVRAW_FORMAT_1\n"); | ||
for (this_table = 0; this_table < 3; this_table++) { | ||
|
||
table = mdb_read_table_by_name(mdb, tables[this_table], MDB_TABLE); | ||
|