mirror of
https://github.com/ganelson/inform.git
synced 2024-05-19 09:28:51 +03:00
Windows specific corrections to retrospective source
This commit is contained in:
parent
f19235fb00
commit
04d86f9c92
|
@ -188,7 +188,7 @@
|
||||||
#define SAFETY_MARGIN 32
|
#define SAFETY_MARGIN 32
|
||||||
#define BLANK_END_SIZE 128
|
#define BLANK_END_SIZE 128
|
||||||
#define MAX_BLOCKS_ALLOWED 15000
|
#define MAX_BLOCKS_ALLOWED 15000
|
||||||
#define MEMORY_GRANULARITY 200*1024*CPU_WORDSIZE_MULTIPLIER /* which must be divisible by 1024 */
|
#define MEMORY_GRANULARITY 300*1024*CPU_WORDSIZE_MULTIPLIER /* which must be divisible by 1024 */
|
||||||
#define INTEGRITY_NUMBER 0x12345678 /* a value unlikely to be in memory just by chance */
|
#define INTEGRITY_NUMBER 0x12345678 /* a value unlikely to be in memory just by chance */
|
||||||
#define CREATE(type_name) (allocate_##type_name())
|
#define CREATE(type_name) (allocate_##type_name())
|
||||||
#define DESTROY(this, type_name) (deallocate_##type_name(this))
|
#define DESTROY(this, type_name) (deallocate_##type_name(this))
|
||||||
|
@ -14649,6 +14649,7 @@ void Platform__platform_specific_closedir(void *folder) {
|
||||||
#ifdef WINDOWS_DIRECTORY_HANDLING
|
#ifdef WINDOWS_DIRECTORY_HANDLING
|
||||||
|
|
||||||
#include <sys/stat.h>
|
#include <sys/stat.h>
|
||||||
|
#include <direct.h>
|
||||||
#include <dirent.h>
|
#include <dirent.h>
|
||||||
#line 227 "inform7/Chapter 1/Platform-Specific Definitions.w"
|
#line 227 "inform7/Chapter 1/Platform-Specific Definitions.w"
|
||||||
#include <io.h>
|
#include <io.h>
|
||||||
|
|
|
@ -191,7 +191,7 @@
|
||||||
#define SAFETY_MARGIN 32
|
#define SAFETY_MARGIN 32
|
||||||
#define BLANK_END_SIZE 128
|
#define BLANK_END_SIZE 128
|
||||||
#define MAX_BLOCKS_ALLOWED 15000
|
#define MAX_BLOCKS_ALLOWED 15000
|
||||||
#define MEMORY_GRANULARITY 200*1024*CPU_WORDSIZE_MULTIPLIER /* which must be divisible by 1024 */
|
#define MEMORY_GRANULARITY 300*1024*CPU_WORDSIZE_MULTIPLIER /* which must be divisible by 1024 */
|
||||||
#define INTEGRITY_NUMBER 0x12345678 /* a value unlikely to be in memory just by chance */
|
#define INTEGRITY_NUMBER 0x12345678 /* a value unlikely to be in memory just by chance */
|
||||||
#define CREATE(type_name) (allocate_##type_name())
|
#define CREATE(type_name) (allocate_##type_name())
|
||||||
#define DESTROY(this, type_name) (deallocate_##type_name(this))
|
#define DESTROY(this, type_name) (deallocate_##type_name(this))
|
||||||
|
@ -14762,6 +14762,7 @@ void Platform__closedir(void *folder) {
|
||||||
#ifdef WINDOWS_DIRECTORY_HANDLING
|
#ifdef WINDOWS_DIRECTORY_HANDLING
|
||||||
|
|
||||||
#include <sys/stat.h>
|
#include <sys/stat.h>
|
||||||
|
#include <direct.h>
|
||||||
#include <dirent.h>
|
#include <dirent.h>
|
||||||
#line 241 "inform7/Chapter 1/Platform-Specific Definitions.w"
|
#line 241 "inform7/Chapter 1/Platform-Specific Definitions.w"
|
||||||
#include <io.h>
|
#include <io.h>
|
||||||
|
|
|
@ -184,7 +184,7 @@
|
||||||
#define SAFETY_MARGIN 32
|
#define SAFETY_MARGIN 32
|
||||||
#define BLANK_END_SIZE 128
|
#define BLANK_END_SIZE 128
|
||||||
#define MAX_BLOCKS_ALLOWED 15000
|
#define MAX_BLOCKS_ALLOWED 15000
|
||||||
#define MEMORY_GRANULARITY 200*1024*CPU_WORDSIZE_MULTIPLIER /* which must be divisible by 1024 */
|
#define MEMORY_GRANULARITY 300*1024*CPU_WORDSIZE_MULTIPLIER /* which must be divisible by 1024 */
|
||||||
#define INTEGRITY_NUMBER 0x12345678 /* a value unlikely to be in memory just by chance */
|
#define INTEGRITY_NUMBER 0x12345678 /* a value unlikely to be in memory just by chance */
|
||||||
#define CREATE(type_name) (allocate_##type_name())
|
#define CREATE(type_name) (allocate_##type_name())
|
||||||
#define COPY(to, from, type_name) (copy_##type_name(to, from))
|
#define COPY(to, from, type_name) (copy_##type_name(to, from))
|
||||||
|
@ -14659,6 +14659,7 @@ void Platform__closedir(void *folder) {
|
||||||
#ifdef WINDOWS_DIRECTORY_HANDLING
|
#ifdef WINDOWS_DIRECTORY_HANDLING
|
||||||
|
|
||||||
#include <sys/stat.h>
|
#include <sys/stat.h>
|
||||||
|
#include <direct.h>
|
||||||
#include <dirent.h>
|
#include <dirent.h>
|
||||||
#line 241 "inform7/Chapter 1/Platform-Specific Definitions.w"
|
#line 241 "inform7/Chapter 1/Platform-Specific Definitions.w"
|
||||||
#include <io.h>
|
#include <io.h>
|
||||||
|
|
Loading…
Reference in a new issue