spider%netscape.com b6ec3a6450 Modularized Julian now resided in Zulu
git-svn-id: svn://10.0.0.236/trunk@11055 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-25 17:58:12 +00:00

78 lines
1.8 KiB
C

/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
*
* The contents of this file are subject to the Netscape Public License
* Version 1.0 (the "NPL"); you may not use this file except in
* compliance with the NPL. You may obtain a copy of the NPL at
* http://www.mozilla.org/NPL/
*
* Software distributed under the NPL is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
* for the specific language governing rights and limitations under the
* NPL.
*
* The Initial Developer of this code under the NPL is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
* Reserved.
*/
#ifndef _JULIAN_DEFINES_H
#define _JULIAN_DEFINES_H
#include "xp_mcom.h"
#include "nspr.h"
#ifdef PR_ASSERT
#undef PR_ASSERT
#endif
#define PR_ASSERT(a) assert(a)
/* create a XP_ACCESS call */
#ifdef JXP_ACCESS
#undef JXP_ACCESS
#endif
#define NOT_NULL(X) X
#define JBOOL XP_Bool
#if defined(XP_WIN32)
#define JSTRING CString
#define JCOLOR long
#define JXP_ACCESS _access
#elif defined(XP_UNIX)
#define stricmp strcasecmp
#define JXP_ACCESS access
#elif defined(XP_MAC)
#define JSTRING char[]
#define JCOLOR long
#define JXP_ACCESS access
#endif
/* #define JRGB(r, g ,b) ( (r & 0xfff) | ((g & 0xfff) << 12)) | ((b & 0xfff) << 24))) */
#define JRGB(r, g ,b) ( (r & 0xff) | ((g & 0xff) << 8) | ((b & 0xff) << 16) )
#define JCRED(r) ( (r ) & 0xff )
#define JCGREEN(g) ( (g >> 8 ) & 0xff )
#define JCBLUE(b) ( (b >> 16) & 0xff )
typedef struct
{
long x;
long y;
} JPOINT;
typedef struct
{
int iExternalLeading;
} JTEXTMETRIC;
/* Turn on capi only for jsun */
/* #define CAPI_READY 1 */
#if DEBUG_jsun
/* #define CAPI_READY 1 */
#endif
#endif /* _JULIAN_DEFINES_H */