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

//#import <Foundation/Foundation.h>
//#import "XTGameRunner.h"


#ifndef XTads_osxtads_h
#define XTads_osxtads_h

/* TODO temprary - make real impl: */
#define PACKAGE_MAINTAINER "Rune Berg?"
#define PACKAGE_BUGREPORT "todo@todo.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;

//TODO exp com out:
#define USE_HTML 1
//TODO   impl as per www.tads.org/t3doc/doc/htmltads/charmode.htm ?

#undef DEBUG
	//TODO rm

extern void osxtads_init_logger();

extern int osxtads_show_terp_copyright_at_game_start();

#endif
