#ifndef _PARSE_ARGS_MAIN_H
#define _PARSE_ARGS_MAIN_H

#include <tcl.h>
#include "tclstuff.h"
#include "tip445.h"
#include <string.h>
#include <stdlib.h>
#ifdef _MSC_VER
#include <malloc.h>             /* Needed for _malloca and _freea */
#endif

/* Check, if Tcl version supports Tcl_Size,
   which was introduced in Tcl 8.7 and 9.
*/
#ifndef TCL_SIZE_MAX
    #include <limits.h>
    #define TCL_SIZE_MAX INT_MAX

    #ifndef Tcl_Size
        typedef int Tcl_Size;
    #endif

    #define TCL_SIZE_MODIFIER ""
    #define Tcl_GetSizeIntFromObj Tcl_GetIntFromObj
    #define Tcl_NewSizeIntObj     Tcl_NewIntObj
#endif

#endif
