/*
	File:		Strings.h

	Copyright:	© 1984-1993 by Apple Computer, Inc., all rights reserved.

	WARNING
	This file was auto generated by the interfacer tool. Modifications
	must be made to the master file.

*/

#ifndef __STRINGS__
#define __STRINGS__

#ifndef __TYPES__
#include <MacTypes.H>
#endif

#ifdef __cplusplus
extern "C" {
#endif

#if PRAGMA_IMPORT
#pragma import on
#endif

#if PRAGMA_STRUCT_ALIGN
	#pragma options align=mac68k
#elif PRAGMA_STRUCT_PACKPUSH
	#pragma pack(push, 2)
#elif PRAGMA_STRUCT_PACK
	#pragma pack(2)
#endif

#ifndef c2pstr
#if WINVER
#ifndef	_ASIPORT_
EXTERN F_ASIBND( char * ) ASI_CopyPtoC( BYTE const *pstr, BYTE *pcstr );
EXTERN F_ASIBND( unsigned char * ) ASI_CopyCtoP( BYTE const *pcstr, BYTE *pstr );
#endif
#define PtoCstr(p) ASI_CopyPtoC( (BYTE const *)p, (BYTE *)p )
#define CtoPstr(p) ASI_CopyCtoP( (BYTE const *)p, (BYTE *)p )
#define C2PStr(p) CtoPstr(p)
#define P2CStr(p) PtoCstr(p)
#else
unsigned char *CtoPstr(char *);
char *PtoCstr(unsigned char *);
unsigned char * pascal C2PStr(char *);
char * pascal P2CStr(unsigned char *);
#endif

#define c2pstr(s) CtoPstr(s)
#define p2cstr(s) PtoCstr(s)
#endif

#if 0		// Replaced with above from Pascal.h
extern StringPtr c2pstr(char *aStr);
extern char *p2cstr(StringPtr aStr);
extern StringPtr pascal C2PStr(Ptr cString);
extern Ptr pascal P2CStr(StringPtr pString);
#endif

#if PRAGMA_STRUCT_ALIGN
	#pragma options align=reset
#elif PRAGMA_STRUCT_PACKPUSH
	#pragma pack(pop)
#elif PRAGMA_STRUCT_PACK
	#pragma pack()
#endif

#ifdef PRAGMA_IMPORT_OFF
#pragma import off
#elif PRAGMA_IMPORT
#pragma import reset
#endif

#ifdef __cplusplus
}
#endif

#endif


