//
//  osxtads.h
//  TadsTerp
//
//  Created by Rune Berg on 20/02/14.
//  Copyright (c) 2014 Rune Berg. All rights reserved.
//


#ifndef XTads_osxtads_h
#define XTads_osxtads_h

#define PACKAGE_MAINTAINER "Rune Berg"
#define PACKAGE_BUGREPORT "runeberg76@gmail.com"

#define HAVE_AND_KEYWORD 1
#define HAVE_OR_KEYWORD 1
#define HAVE_NOT_KEYWORD 1
#define HAVE_BOOL 1
#define HAVE_DECL_WCSLEN 1

/* TODO? Implement threads.
 * For now, just do what qtads does:
 */
//#undef OS_DECLARATIVE_TLS
//#define OS_DECL_TLS(t, v) t v

//TODO exp:
//#define VMGLOB_VARS 1
#define VMGLOB_PARAM 1
	//TODO doc, if kept

//TODO exp:
//#undef TADSNET

#include "osifctyp.h"
#include "osxtads_frobtads.h"
	//TODO join that file and this

/*
 / * copyright-date-string * /
#ifndef NO_T2_COPYRIGHT_NOTICE
trdptf("%s - A %s TADS %s Interpreter.\n",
	   G_tads_oem_app_name, G_tads_oem_display_mode,
	   TADS_RUNTIME_VERSION);
trdptf("%sopyright (c) 1993, 2012 by Michael J. Roberts.\n",
	   G_tads_oem_copyright_prefix ? "TADS c" : "C");
trdptf("%s\n", G_tads_oem_author);
#endif
*/

typedef FILE osfildef;

#define USE_HTML 1

#undef DEBUG
	//TODO rm

#define OS_BANNER_SIZE_PIXELS 100

#define STATUS_LINE_MODE_MAIN 0
#define STATUS_LINE_MODE_STATUS 1
#define STATUS_LINE_MODE_SUPPRESS 2

extern void osxtads_init_logger();

extern int osxtads_show_terp_copyright_at_game_start();

#endif
