# HG changeset patch # User jcdutton # Date 1072906636 0 # Node ID c2d0cf87a5ee0bd2593f11759c10dc41ba393bfd # Parent eb503714e1c21c7f9783949ad50a9b0ca8b14a26 Some fixes to that libdvdnav compiles under cygwin. Submitted by: Frantisek Dvorak diff -r eb503714e1c2 -r c2d0cf87a5ee decoder.h --- a/decoder.h Wed Dec 31 16:56:12 2003 +0000 +++ b/decoder.h Wed Dec 31 21:37:16 2003 +0000 @@ -101,7 +101,7 @@ /* the big VM function, executing the given commands and writing * the link where to continue, the return value indicates if a jump * has been performed */ -int vmEval_CMD(vm_cmd_t commands[], int32_t num_commands, +int32_t vmEval_CMD(vm_cmd_t commands[], int32_t num_commands, registers_t *registers, link_t *return_values); /* extracts some bits from the command */ diff -r eb503714e1c2 -r c2d0cf87a5ee dvd_reader.h --- a/dvd_reader.h Wed Dec 31 16:56:12 2003 +0000 +++ b/dvd_reader.h Wed Dec 31 21:37:16 2003 +0000 @@ -166,7 +166,7 @@ * * offset_set = DVDFileSeek(dvd_file, seek_offset); */ -int DVDFileSeek( dvd_file_t *, int ); +int32_t DVDFileSeek( dvd_file_t *, int32_t ); /** * Reads the given number of bytes from the file. This call can only be used diff -r eb503714e1c2 -r c2d0cf87a5ee settings.c --- a/settings.c Wed Dec 31 16:56:12 2003 +0000 +++ b/settings.c Wed Dec 31 21:37:16 2003 +0000 @@ -29,7 +29,7 @@ /* Characteristics/setting API calls */ -dvdnav_status_t dvdnav_get_region_mask(dvdnav_t *this, int *region) { +dvdnav_status_t dvdnav_get_region_mask(dvdnav_t *this, int32_t *region) { if(!this || !region) { printerr("Passed a NULL this pointer."); return DVDNAV_STATUS_ERR; @@ -39,7 +39,7 @@ return DVDNAV_STATUS_OK; } -dvdnav_status_t dvdnav_set_region_mask(dvdnav_t *this, int mask) { +dvdnav_status_t dvdnav_set_region_mask(dvdnav_t *this, int32_t mask) { if(!this) { printerr("Passed a NULL this pointer."); return DVDNAV_STATUS_ERR; @@ -51,7 +51,7 @@ return DVDNAV_STATUS_OK; } -dvdnav_status_t dvdnav_set_readahead_flag(dvdnav_t *this, int use_readahead) { +dvdnav_status_t dvdnav_set_readahead_flag(dvdnav_t *this, int32_t use_readahead) { if(!this) { printerr("Passed a NULL this pointer."); return DVDNAV_STATUS_ERR; @@ -61,7 +61,7 @@ return DVDNAV_STATUS_OK; } -dvdnav_status_t dvdnav_get_readahead_flag(dvdnav_t *this, int *flag) { +dvdnav_status_t dvdnav_get_readahead_flag(dvdnav_t *this, int32_t *flag) { if(!this || !flag) { printerr("Passed a NULL this pointer."); return DVDNAV_STATUS_ERR; @@ -100,7 +100,7 @@ return set_language_register(this, code, 18); } -dvdnav_status_t dvdnav_set_PGC_positioning_flag(dvdnav_t *this, int pgc) { +dvdnav_status_t dvdnav_set_PGC_positioning_flag(dvdnav_t *this, int32_t pgc) { if(!this) { printerr("Passed a NULL this pointer."); return DVDNAV_STATUS_ERR; @@ -110,7 +110,7 @@ return DVDNAV_STATUS_OK; } -dvdnav_status_t dvdnav_get_PGC_positioning_flag(dvdnav_t *this, int *flag) { +dvdnav_status_t dvdnav_get_PGC_positioning_flag(dvdnav_t *this, int32_t *flag) { if(!this || !flag) { printerr("Passed a NULL this pointer."); return DVDNAV_STATUS_ERR;