fix mac os x build and enable sandbox, codesign
parent
6eb21fe10f
commit
79b29947b6
|
@ -0,0 +1,10 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
||||
<plist version="1.0">
|
||||
<dict>
|
||||
<key>com.apple.security.app-sandbox</key>
|
||||
<true/>
|
||||
<key>com.apple.security.files.user-selected.read-only</key>
|
||||
<true/>
|
||||
</dict>
|
||||
</plist>
|
|
@ -105,22 +105,10 @@ public:
|
|||
switch (aShape)
|
||||
{
|
||||
case CelestiaCore::SizeVerCursor:
|
||||
changedCursor =
|
||||
#if MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_X_VERSION_10_3
|
||||
kThemeResizeUpDownCursor
|
||||
#else
|
||||
kThemeClosedHandCursor
|
||||
#endif
|
||||
;
|
||||
changedCursor = kThemeResizeUpDownCursor;
|
||||
break;
|
||||
case CelestiaCore::SizeHorCursor:
|
||||
changedCursor =
|
||||
#if MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_X_VERSION_10_3
|
||||
kThemeResizeLeftRightCursor
|
||||
#else
|
||||
kThemeClosedHandCursor
|
||||
#endif
|
||||
;
|
||||
changedCursor = kThemeResizeLeftRightCursor;
|
||||
break;
|
||||
default:
|
||||
changedCursor = kThemeArrowCursor;
|
||||
|
@ -129,7 +117,18 @@ public:
|
|||
|
||||
if (changedCursor != cursor)
|
||||
{
|
||||
SetThemeCursor(changedCursor);
|
||||
switch (changedCursor)
|
||||
{
|
||||
case kThemeResizeUpDownCursor:
|
||||
[[NSCursor resizeUpDownCursor] set];
|
||||
break;
|
||||
case kThemeResizeLeftRightCursor:
|
||||
[[NSCursor resizeLeftRightCursor] set];
|
||||
break;
|
||||
default:
|
||||
[[NSCursor arrowCursor] set];
|
||||
break;
|
||||
}
|
||||
cursor = changedCursor;
|
||||
shape = aShape;
|
||||
}
|
||||
|
|
|
@ -552,7 +552,7 @@ NSString* fatalErrorMessage;
|
|||
|
||||
- (void) forceDisplay
|
||||
{
|
||||
if (![glView needsDisplay]) [glView setNeedsDisplay:YES];
|
||||
[glView setNeedsDisplay:YES];
|
||||
}
|
||||
|
||||
- (void) display
|
||||
|
|
|
@ -160,13 +160,13 @@
|
|||
#endif
|
||||
return self;
|
||||
}
|
||||
-(unsigned)hash
|
||||
-(NSUInteger)hash
|
||||
{
|
||||
#ifdef URL_FAVORITES
|
||||
if (url)
|
||||
return [url hash];
|
||||
#endif
|
||||
return (unsigned)[_data pointerValue];
|
||||
return (NSUInteger)[_data pointerValue];
|
||||
}
|
||||
-(void)dealloc
|
||||
{
|
||||
|
|
|
@ -36,11 +36,13 @@
|
|||
} ;
|
||||
|
||||
NSOpenGLPixelFormat* pixFmt ;
|
||||
long swapInterval ;
|
||||
GLint swapInterval ;
|
||||
|
||||
self = [super initWithCoder: coder] ;
|
||||
if (self)
|
||||
{
|
||||
// Full resolution not supported, use scaling
|
||||
[self setWantsBestResolutionOpenGLSurface:NO];
|
||||
pixFmt = [[NSOpenGLPixelFormat alloc] initWithAttributes: attrs];
|
||||
|
||||
if (pixFmt)
|
||||
|
@ -48,7 +50,7 @@
|
|||
[self setPixelFormat: pixFmt] ;
|
||||
[pixFmt release];
|
||||
|
||||
if (0 == CGLEnable([[self openGLContext] CGLContextObj], 313))
|
||||
if (0 == CGLEnable([[self openGLContext] CGLContextObj], (CGLContextEnable)313))
|
||||
{
|
||||
NSLog(@"Multithreaded OpenGL enabled.");
|
||||
}
|
||||
|
@ -88,7 +90,7 @@
|
|||
|
||||
if (strstr(glRenderer, "ATI"))
|
||||
{
|
||||
[[self openGLContext] setValues: (const long *)&aaSamples
|
||||
[[self openGLContext] setValues: (const GLint *)&aaSamples
|
||||
forParameter: ATI_FSAA_LEVEL];
|
||||
}
|
||||
else
|
||||
|
@ -122,9 +124,9 @@
|
|||
if (context)
|
||||
{
|
||||
// The following silently fails if not supported
|
||||
CGLEnable([context CGLContextObj], 313);
|
||||
CGLEnable([context CGLContextObj], (CGLContextEnable)313);
|
||||
|
||||
long swapInterval = 1;
|
||||
GLint swapInterval = 1;
|
||||
[context setValues: &swapInterval
|
||||
forParameter: NSOpenGLCPSwapInterval];
|
||||
[self setOpenGLContext: context];
|
||||
|
@ -359,7 +361,7 @@
|
|||
CelestiaAppCore *appCore = [CelestiaAppCore sharedAppCore];
|
||||
[appCore mouseButtonUp:location modifiers:[appCore toCelestiaModifiers:[theEvent modifierFlags] buttons:CEL_RIGHT_BUTTON]];
|
||||
if([theEvent clickCount] > 0)
|
||||
[super rightMouseDown:theEvent]; //...Force context menu to appear only on clicks (not drags)
|
||||
[[self menuForEvent:theEvent] popUpMenuPositioningItem:nil atLocation:location inView:self]; //...Force context menu to appear only on clicks (not drags)
|
||||
}
|
||||
|
||||
- (void) rightMouseDragged: (NSEvent*) theEvent
|
Binary file not shown.
Binary file not shown.
|
@ -29,7 +29,7 @@
|
|||
<key>CFBundleIconFile</key>
|
||||
<string>celestia</string>
|
||||
<key>CFBundleIdentifier</key>
|
||||
<string>net.shatters.Celestia</string>
|
||||
<string>$(PRODUCT_BUNDLE_IDENTIFIER)</string>
|
||||
<key>CFBundleInfoDictionaryVersion</key>
|
||||
<string>6.0</string>
|
||||
<key>CFBundlePackageType</key>
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
|
||||
#import <Cocoa/Cocoa.h>
|
||||
|
||||
@class _MacInputWatcher;
|
||||
class _MacInputWatcher;
|
||||
|
||||
|
||||
@interface MacInputWatcher : NSObject
|
||||
|
|
|
@ -48,13 +48,13 @@
|
|||
-(void)addObject:(id)obj
|
||||
{
|
||||
if (![obj isKindOfClass:_myClass])
|
||||
[NSException raise:@"TypeError" format:@"%s invalid, only %s allowed",NAMEOF(obj),_myClass->name];
|
||||
[NSException raise:@"TypeError" format:@"%@ invalid, only %@ allowed",NSStringFromClass([obj class]),NSStringFromClass(_myClass)];
|
||||
[_array addObject:obj];
|
||||
}
|
||||
-(void)insertObject:(id)obj atIndex:(unsigned)idx
|
||||
{
|
||||
if (![obj isKindOfClass:_myClass])
|
||||
[NSException raise:@"TypeError" format:@"%s invalid, only %s allowed",NAMEOF(obj),_myClass->name];
|
||||
[NSException raise:@"TypeError" format:@"%@ invalid, only %@ allowed",NSStringFromClass([obj class]),NSStringFromClass(_myClass)];
|
||||
[_array insertObject:obj atIndex:idx];
|
||||
}
|
||||
-(void)removeLastObject
|
||||
|
@ -68,7 +68,7 @@
|
|||
-(void)replaceObjectAtIndex:(unsigned)idx withObject:(id)obj
|
||||
{
|
||||
if (![obj isKindOfClass:_myClass])
|
||||
[NSException raise:@"TypeError" format:@"%s invalid, only %s allowed",NAMEOF(obj),_myClass->name];
|
||||
[NSException raise:@"TypeError" format:@"%@ invalid, only %@ allowed",NSStringFromClass([obj class]),NSStringFromClass(_myClass)];
|
||||
[_array replaceObjectAtIndex:idx withObject:obj];
|
||||
}
|
||||
-(unsigned)count
|
||||
|
@ -319,4 +319,4 @@
|
|||
return minimumCover;
|
||||
}
|
||||
|
||||
@end
|
||||
@end
|
||||
|
|
155
macosx/SpiceCK.h
155
macosx/SpiceCK.h
|
@ -1,155 +0,0 @@
|
|||
/*
|
||||
|
||||
-Header_File SpiceCK.h ( CSPICE CK definitions )
|
||||
|
||||
-Abstract
|
||||
|
||||
Perform CSPICE definitions to support CK wrapper interfaces.
|
||||
|
||||
-Disclaimer
|
||||
|
||||
THIS SOFTWARE AND ANY RELATED MATERIALS WERE CREATED BY THE
|
||||
CALIFORNIA INSTITUTE OF TECHNOLOGY (CALTECH) UNDER A U.S.
|
||||
GOVERNMENT CONTRACT WITH THE NATIONAL AERONAUTICS AND SPACE
|
||||
ADMINISTRATION (NASA). THE SOFTWARE IS TECHNOLOGY AND SOFTWARE
|
||||
PUBLICLY AVAILABLE UNDER U.S. EXPORT LAWS AND IS PROVIDED "AS-IS"
|
||||
TO THE RECIPIENT WITHOUT WARRANTY OF ANY KIND, INCLUDING ANY
|
||||
WARRANTIES OF PERFORMANCE OR MERCHANTABILITY OR FITNESS FOR A
|
||||
PARTICULAR USE OR PURPOSE (AS SET FORTH IN UNITED STATES UCC
|
||||
SECTIONS 2312-2313) OR FOR ANY PURPOSE WHATSOEVER, FOR THE
|
||||
SOFTWARE AND RELATED MATERIALS, HOWEVER USED.
|
||||
|
||||
IN NO EVENT SHALL CALTECH, ITS JET PROPULSION LABORATORY, OR NASA
|
||||
BE LIABLE FOR ANY DAMAGES AND/OR COSTS, INCLUDING, BUT NOT
|
||||
LIMITED TO, INCIDENTAL OR CONSEQUENTIAL DAMAGES OF ANY KIND,
|
||||
INCLUDING ECONOMIC DAMAGE OR INJURY TO PROPERTY AND LOST PROFITS,
|
||||
REGARDLESS OF WHETHER CALTECH, JPL, OR NASA BE ADVISED, HAVE
|
||||
REASON TO KNOW, OR, IN FACT, SHALL KNOW OF THE POSSIBILITY.
|
||||
|
||||
RECIPIENT BEARS ALL RISK RELATING TO QUALITY AND PERFORMANCE OF
|
||||
THE SOFTWARE AND ANY RELATED MATERIALS, AND AGREES TO INDEMNIFY
|
||||
CALTECH AND NASA FOR ALL THIRD-PARTY CLAIMS RESULTING FROM THE
|
||||
ACTIONS OF RECIPIENT IN THE USE OF THE SOFTWARE.
|
||||
|
||||
-Required_Reading
|
||||
|
||||
None.
|
||||
|
||||
-Particulars
|
||||
|
||||
This header defines types that may be referenced in
|
||||
application code that calls CSPICE CK functions.
|
||||
|
||||
Typedef
|
||||
=======
|
||||
|
||||
Name Description
|
||||
---- ----------
|
||||
|
||||
SpiceCK05Subtype Typedef for enum indicating the
|
||||
mathematical representation used
|
||||
in an CK type 05 segment. Possible
|
||||
values and meanings are:
|
||||
|
||||
C05TP0:
|
||||
|
||||
Hermite interpolation, 8-
|
||||
element packets containing
|
||||
|
||||
q0, q1, q2, q3,
|
||||
dq0/dt, dq1/dt, dq2/dt dq3/dt
|
||||
|
||||
where q0, q1, q2, q3 represent
|
||||
quaternion components and dq0/dt,
|
||||
dq1/dt, dq2/dt, dq3/dt represent
|
||||
quaternion time derivative components.
|
||||
|
||||
Quaternions are unitless. Quaternion
|
||||
time derivatives have units of
|
||||
1/second.
|
||||
|
||||
|
||||
C05TP1:
|
||||
|
||||
Lagrange interpolation, 4-
|
||||
element packets containing
|
||||
|
||||
q0, q1, q2, q3,
|
||||
|
||||
where q0, q1, q2, q3 represent
|
||||
quaternion components. Quaternion
|
||||
derivatives are obtained by
|
||||
differentiating interpolating
|
||||
polynomials.
|
||||
|
||||
|
||||
C05TP2:
|
||||
|
||||
Hermite interpolation, 14-
|
||||
element packets containing
|
||||
|
||||
q0, q1, q2, q3,
|
||||
dq0/dt, dq1/dt, dq2/dt dq3/dt,
|
||||
av0, av1, av2,
|
||||
dav0/dt, dav1/dt, dav2/dt
|
||||
|
||||
where q0, q1, q2, q3 represent
|
||||
quaternion components and dq0/dt,
|
||||
dq1/dt, dq2/dt, dq3/dt represent
|
||||
quaternion time derivative components,
|
||||
av0, av1, av2 represent angular
|
||||
velocity components, and
|
||||
dav0/dt, dav1/dt, dav2/dt represent
|
||||
angular acceleration components.
|
||||
|
||||
|
||||
C05TP3:
|
||||
|
||||
Lagrange interpolation, 7-
|
||||
element packets containing
|
||||
|
||||
q0, q1, q2, q3,
|
||||
av0, av1, av2
|
||||
|
||||
where q0, q1, q2, q3 represent
|
||||
quaternion components and
|
||||
av0, av1, av2 represent angular
|
||||
velocity components.
|
||||
|
||||
|
||||
|
||||
Literature_References
|
||||
|
||||
None.
|
||||
|
||||
-Author_and_Institution
|
||||
|
||||
N.J. Bachman (JPL)
|
||||
|
||||
-Restrictions
|
||||
|
||||
None.
|
||||
|
||||
-Version
|
||||
|
||||
-CSPICE Version 1.0.0, 20-AUG-2002 (NJB)
|
||||
|
||||
*/
|
||||
|
||||
#ifndef HAVE_SPICE_CK_H
|
||||
|
||||
#define HAVE_SPICE_CK_H
|
||||
|
||||
|
||||
|
||||
/*
|
||||
CK type 05 subtype codes:
|
||||
*/
|
||||
|
||||
enum _SpiceCK05Subtype { C05TP0, C05TP1, C05TP2, C05TP3 };
|
||||
|
||||
|
||||
typedef enum _SpiceCK05Subtype SpiceCK05Subtype;
|
||||
|
||||
#endif
|
||||
|
|
@ -1,441 +0,0 @@
|
|||
/*
|
||||
|
||||
-Header_File SpiceCel.h ( CSPICE Cell definitions )
|
||||
|
||||
-Abstract
|
||||
|
||||
Perform CSPICE definitions for the SpiceCell data type.
|
||||
|
||||
-Disclaimer
|
||||
|
||||
THIS SOFTWARE AND ANY RELATED MATERIALS WERE CREATED BY THE
|
||||
CALIFORNIA INSTITUTE OF TECHNOLOGY (CALTECH) UNDER A U.S.
|
||||
GOVERNMENT CONTRACT WITH THE NATIONAL AERONAUTICS AND SPACE
|
||||
ADMINISTRATION (NASA). THE SOFTWARE IS TECHNOLOGY AND SOFTWARE
|
||||
PUBLICLY AVAILABLE UNDER U.S. EXPORT LAWS AND IS PROVIDED "AS-IS"
|
||||
TO THE RECIPIENT WITHOUT WARRANTY OF ANY KIND, INCLUDING ANY
|
||||
WARRANTIES OF PERFORMANCE OR MERCHANTABILITY OR FITNESS FOR A
|
||||
PARTICULAR USE OR PURPOSE (AS SET FORTH IN UNITED STATES UCC
|
||||
SECTIONS 2312-2313) OR FOR ANY PURPOSE WHATSOEVER, FOR THE
|
||||
SOFTWARE AND RELATED MATERIALS, HOWEVER USED.
|
||||
|
||||
IN NO EVENT SHALL CALTECH, ITS JET PROPULSION LABORATORY, OR NASA
|
||||
BE LIABLE FOR ANY DAMAGES AND/OR COSTS, INCLUDING, BUT NOT
|
||||
LIMITED TO, INCIDENTAL OR CONSEQUENTIAL DAMAGES OF ANY KIND,
|
||||
INCLUDING ECONOMIC DAMAGE OR INJURY TO PROPERTY AND LOST PROFITS,
|
||||
REGARDLESS OF WHETHER CALTECH, JPL, OR NASA BE ADVISED, HAVE
|
||||
REASON TO KNOW, OR, IN FACT, SHALL KNOW OF THE POSSIBILITY.
|
||||
|
||||
RECIPIENT BEARS ALL RISK RELATING TO QUALITY AND PERFORMANCE OF
|
||||
THE SOFTWARE AND ANY RELATED MATERIALS, AND AGREES TO INDEMNIFY
|
||||
CALTECH AND NASA FOR ALL THIRD-PARTY CLAIMS RESULTING FROM THE
|
||||
ACTIONS OF RECIPIENT IN THE USE OF THE SOFTWARE.
|
||||
|
||||
-Required_Reading
|
||||
|
||||
CELLS
|
||||
|
||||
-Particulars
|
||||
|
||||
This header defines structures, macros, and enumerated types that
|
||||
may be referenced in application code that calls CSPICE cell
|
||||
functions.
|
||||
|
||||
CSPICE cells are data structures that implement functionality
|
||||
parallel to that of the cell abstract data type in SPICELIB. In
|
||||
CSPICE, a cell is a C structure containing bookkeeping information,
|
||||
including a pointer to an associated data array.
|
||||
|
||||
For numeric data types, the data array is simply a SPICELIB-style
|
||||
cell, including a valid control area. For character cells, the data
|
||||
array has the same number of elements as the corresponding
|
||||
SPICELIB-style cell, but the contents of the control area are not
|
||||
maintained, and the data elements are null-terminated C-style
|
||||
strings.
|
||||
|
||||
CSPICE cells should be declared using the declaration macros
|
||||
provided in this header file. See the table of macros below.
|
||||
|
||||
|
||||
Structures
|
||||
==========
|
||||
|
||||
Name Description
|
||||
---- ----------
|
||||
|
||||
SpiceCell Structure containing CSPICE cell metadata.
|
||||
|
||||
The members are:
|
||||
|
||||
dtype: Data type of cell: character,
|
||||
integer, or double precision.
|
||||
|
||||
dtype has type
|
||||
SpiceCellDataType.
|
||||
|
||||
length: For character cells, the
|
||||
declared length of the
|
||||
cell's string array.
|
||||
|
||||
size: The maximum number of data
|
||||
items that can be stored in
|
||||
the cell's data array.
|
||||
|
||||
card: The cell's "cardinality": the
|
||||
number of data items currently
|
||||
present in the cell.
|
||||
|
||||
isSet: Boolean flag indicating whether
|
||||
the cell is a CSPICE set.
|
||||
Sets have no duplicate data
|
||||
items, and their data items are
|
||||
stored in increasing order.
|
||||
|
||||
adjust: Boolean flag indicating whether
|
||||
the cell's data area has
|
||||
adjustable size. Adjustable
|
||||
size cell data areas are not
|
||||
currently implemented.
|
||||
|
||||
init: Boolean flag indicating whether
|
||||
the cell has been initialized.
|
||||
|
||||
base: is a void pointer to the
|
||||
associated data array. base
|
||||
points to the start of the
|
||||
control area of this array.
|
||||
|
||||
data: is a void pointer to the
|
||||
first data slot in the
|
||||
associated data array. This
|
||||
slot is the element following
|
||||
the control area.
|
||||
|
||||
|
||||
ConstSpiceCell A const SpiceCell.
|
||||
|
||||
|
||||
|
||||
|
||||
Declaration Macros
|
||||
==================
|
||||
|
||||
Name Description
|
||||
---- ----------
|
||||
|
||||
SPICECHAR_CELL ( name, size, length ) Declare a
|
||||
character CSPICE
|
||||
cell having cell
|
||||
name name,
|
||||
maximum cell
|
||||
cardinality size,
|
||||
and string length
|
||||
length. The
|
||||
macro declares
|
||||
both the cell and
|
||||
the associated
|
||||
data array. The
|
||||
name of the data
|
||||
array begins with
|
||||
"SPICE_".
|
||||
|
||||
|
||||
SPICEDOUBLE_CELL ( name, size ) Like SPICECHAR_CELL,
|
||||
but declares a
|
||||
double precision
|
||||
cell.
|
||||
|
||||
|
||||
SPICEINT_CELL ( name, size ) Like
|
||||
SPICECHAR_CELL,
|
||||
but declares an
|
||||
integer cell.
|
||||
|
||||
Assignment Macros
|
||||
=================
|
||||
|
||||
Name Description
|
||||
---- ----------
|
||||
SPICE_CELL_SET_C( item, i, cell ) Assign the ith
|
||||
element of a
|
||||
character cell.
|
||||
Arguments cell
|
||||
and item are
|
||||
pointers.
|
||||
|
||||
SPICE_CELL_SET_D( item, i, cell ) Assign the ith
|
||||
element of a
|
||||
double precision
|
||||
cell. Argument
|
||||
cell is a
|
||||
pointer.
|
||||
|
||||
SPICE_CELL_SET_I( item, i, cell ) Assign the ith
|
||||
element of an
|
||||
integer cell.
|
||||
Argument cell is
|
||||
a pointer.
|
||||
|
||||
|
||||
Fetch Macros
|
||||
==============
|
||||
|
||||
Name Description
|
||||
---- ----------
|
||||
SPICE_CELL_GET_C( cell, i, lenout, item ) Fetch the ith
|
||||
element from a
|
||||
character cell.
|
||||
Arguments cell
|
||||
and item are
|
||||
pointers.
|
||||
Argument lenout
|
||||
is the available
|
||||
space in item.
|
||||
|
||||
SPICE_CELL_GET_D( cell, i, item ) Fetch the ith
|
||||
element from a
|
||||
double precision
|
||||
cell. Arguments
|
||||
cell and item are
|
||||
pointers.
|
||||
|
||||
SPICE_CELL_GET_I( cell, i, item ) Fetch the ith
|
||||
element from an
|
||||
integer cell.
|
||||
Arguments cell
|
||||
and item are
|
||||
pointers.
|
||||
Element Pointer Macros
|
||||
======================
|
||||
|
||||
Name Description
|
||||
---- ----------
|
||||
SPICE_CELL_ELEM_C( cell, i ) Macro evaluates
|
||||
to a SpiceChar
|
||||
pointer to the
|
||||
ith data element
|
||||
of a character
|
||||
cell. Argument
|
||||
cell is a
|
||||
pointer.
|
||||
|
||||
SPICE_CELL_ELEM_D( cell, i ) Macro evaluates
|
||||
to a SpiceDouble
|
||||
pointer to the
|
||||
ith data element
|
||||
of a double
|
||||
precision cell.
|
||||
Argument cell is
|
||||
a pointer.
|
||||
|
||||
SPICE_CELL_ELEM_I( cell, i ) Macro evaluates
|
||||
to a SpiceInt
|
||||
pointer to the
|
||||
ith data element
|
||||
of an integer
|
||||
cell. Argument
|
||||
cell is a
|
||||
pointer.
|
||||
|
||||
-Literature_References
|
||||
|
||||
None.
|
||||
|
||||
-Author_and_Institution
|
||||
|
||||
N.J. Bachman (JPL)
|
||||
|
||||
-Restrictions
|
||||
|
||||
None.
|
||||
|
||||
-Version
|
||||
|
||||
-CSPICE Version 1.0.0, 22-AUG-2002 (NJB)
|
||||
|
||||
*/
|
||||
#ifndef HAVE_SPICE_CELLS_H
|
||||
|
||||
#define HAVE_SPICE_CELLS_H
|
||||
|
||||
|
||||
/*
|
||||
Data type codes:
|
||||
*/
|
||||
typedef enum _SpiceDataType SpiceCellDataType;
|
||||
|
||||
|
||||
/*
|
||||
Cell structure:
|
||||
*/
|
||||
struct _SpiceCell
|
||||
|
||||
{ SpiceCellDataType dtype;
|
||||
SpiceInt length;
|
||||
SpiceInt size;
|
||||
SpiceInt card;
|
||||
SpiceBoolean isSet;
|
||||
SpiceBoolean adjust;
|
||||
SpiceBoolean init;
|
||||
void * base;
|
||||
void * data; };
|
||||
|
||||
typedef struct _SpiceCell SpiceCell;
|
||||
|
||||
typedef const SpiceCell ConstSpiceCell;
|
||||
|
||||
|
||||
/*
|
||||
SpiceCell control area size:
|
||||
*/
|
||||
#define SPICE_CELL_CTRLSZ 6
|
||||
|
||||
|
||||
/*
|
||||
Declaration macros:
|
||||
*/
|
||||
|
||||
#define SPICECHAR_CELL( name, size, length ) \
|
||||
\
|
||||
static SpiceChar SPICE_CELL_##name[SPICE_CELL_CTRLSZ + size][length]; \
|
||||
\
|
||||
static SpiceCell name = \
|
||||
\
|
||||
{ SPICE_CHR, \
|
||||
length, \
|
||||
size, \
|
||||
0, \
|
||||
SPICETRUE, \
|
||||
SPICEFALSE, \
|
||||
SPICEFALSE, \
|
||||
(void *) &(SPICE_CELL_##name), \
|
||||
(void *) &(SPICE_CELL_##name[SPICE_CELL_CTRLSZ]) }
|
||||
|
||||
|
||||
#define SPICEDOUBLE_CELL( name, size ) \
|
||||
\
|
||||
static SpiceDouble SPICE_CELL_##name [SPICE_CELL_CTRLSZ + size]; \
|
||||
\
|
||||
static SpiceCell name = \
|
||||
\
|
||||
{ SPICE_DP, \
|
||||
0, \
|
||||
size, \
|
||||
0, \
|
||||
SPICETRUE, \
|
||||
SPICEFALSE, \
|
||||
SPICEFALSE, \
|
||||
(void *) &(SPICE_CELL_##name), \
|
||||
(void *) &(SPICE_CELL_##name[SPICE_CELL_CTRLSZ]) }
|
||||
|
||||
|
||||
#define SPICEINT_CELL( name, size ) \
|
||||
\
|
||||
static SpiceInt SPICE_CELL_##name [SPICE_CELL_CTRLSZ + size]; \
|
||||
\
|
||||
static SpiceCell name = \
|
||||
\
|
||||
{ SPICE_INT, \
|
||||
0, \
|
||||
size, \
|
||||
0, \
|
||||
SPICETRUE, \
|
||||
SPICEFALSE, \
|
||||
SPICEFALSE, \
|
||||
(void *) &(SPICE_CELL_##name), \
|
||||
(void *) &(SPICE_CELL_##name[SPICE_CELL_CTRLSZ]) }
|
||||
|
||||
|
||||
/*
|
||||
Access macros for individual elements:
|
||||
*/
|
||||
|
||||
/*
|
||||
Data element pointer macros:
|
||||
*/
|
||||
|
||||
#define SPICE_CELL_ELEM_C( cell, i ) \
|
||||
\
|
||||
( ( (SpiceChar *) (cell)->data ) + (i)*( (cell)->length ) )
|
||||
|
||||
|
||||
#define SPICE_CELL_ELEM_D( cell, i ) \
|
||||
\
|
||||
( ( (SpiceDouble *) (cell)->data )[(i)] )
|
||||
|
||||
|
||||
#define SPICE_CELL_ELEM_I( cell, i ) \
|
||||
\
|
||||
( ( (SpiceInt *) (cell)->data )[(i)] )
|
||||
|
||||
|
||||
/*
|
||||
"Fetch" macros:
|
||||
*/
|
||||
|
||||
#define SPICE_CELL_GET_C( cell, i, lenout, item ) \
|
||||
\
|
||||
{ \
|
||||
SpiceInt nBytes; \
|
||||
\
|
||||
nBytes = brckti_c ( (cell)->length, 0, (lenout-1) ) \
|
||||
* sizeof ( SpiceChar ); \
|
||||
\
|
||||
memmove ( (item), SPICE_CELL_ELEM_C((cell), (i)), nBytes ); \
|
||||
\
|
||||
item[nBytes] = NULLCHAR; \
|
||||
}
|
||||
|
||||
|
||||
#define SPICE_CELL_GET_D( cell, i, item ) \
|
||||
\
|
||||
( (*item) = ( (SpiceDouble *) (cell)->data)[i] )
|
||||
|
||||
|
||||
#define SPICE_CELL_GET_I( cell, i, item ) \
|
||||
\
|
||||
( (*item) = ( (SpiceInt *) (cell)->data)[i] )
|
||||
|
||||
|
||||
/*
|
||||
Assignment macros:
|
||||
*/
|
||||
|
||||
#define SPICE_CELL_SET_C( item, i, cell ) \
|
||||
\
|
||||
{ \
|
||||
SpiceChar * sPtr; \
|
||||
SpiceInt nBytes; \
|
||||
\
|
||||
nBytes = brckti_c ( strlen(item), 0, (cell)->length - 1 ) \
|
||||
* sizeof ( SpiceChar ); \
|
||||
\
|
||||
sPtr = SPICE_CELL_ELEM_C((cell), (i)); \
|
||||
\
|
||||
memmove ( sPtr, (item), nBytes ); \
|
||||
\
|
||||
sPtr[nBytes] = NULLCHAR; \
|
||||
}
|
||||
|
||||
|
||||
#define SPICE_CELL_SET_D( item, i, cell ) \
|
||||
\
|
||||
( ( (SpiceDouble *) (cell)->data)[i] = (item) )
|
||||
|
||||
|
||||
#define SPICE_CELL_SET_I( item, i, cell ) \
|
||||
\
|
||||
( ( (SpiceInt *) (cell)->data)[i] = (item) )
|
||||
|
||||
|
||||
/*
|
||||
The enum SpiceTransDir is used to indicate language translation
|
||||
direction: C to Fortran or vice versa.
|
||||
*/
|
||||
enum _SpiceTransDir { C2F = 0, F2C = 1 };
|
||||
|
||||
typedef enum _SpiceTransDir SpiceTransDir;
|
||||
|
||||
|
||||
#endif
|
||||
|
448
macosx/SpiceEK.h
448
macosx/SpiceEK.h
|
@ -1,448 +0,0 @@
|
|||
/*
|
||||
|
||||
-Header_File SpiceEK.h ( CSPICE EK-specific definitions )
|
||||
|
||||
-Abstract
|
||||
|
||||
Perform CSPICE EK-specific definitions, including macros and user-
|
||||
defined types.
|
||||
|
||||
-Disclaimer
|
||||
|
||||
THIS SOFTWARE AND ANY RELATED MATERIALS WERE CREATED BY THE
|
||||
CALIFORNIA INSTITUTE OF TECHNOLOGY (CALTECH) UNDER A U.S.
|
||||
GOVERNMENT CONTRACT WITH THE NATIONAL AERONAUTICS AND SPACE
|
||||
ADMINISTRATION (NASA). THE SOFTWARE IS TECHNOLOGY AND SOFTWARE
|
||||
PUBLICLY AVAILABLE UNDER U.S. EXPORT LAWS AND IS PROVIDED "AS-IS"
|
||||
TO THE RECIPIENT WITHOUT WARRANTY OF ANY KIND, INCLUDING ANY
|
||||
WARRANTIES OF PERFORMANCE OR MERCHANTABILITY OR FITNESS FOR A
|
||||
PARTICULAR USE OR PURPOSE (AS SET FORTH IN UNITED STATES UCC
|
||||
SECTIONS 2312-2313) OR FOR ANY PURPOSE WHATSOEVER, FOR THE
|
||||
SOFTWARE AND RELATED MATERIALS, HOWEVER USED.
|
||||
|
||||
IN NO EVENT SHALL CALTECH, ITS JET PROPULSION LABORATORY, OR NASA
|
||||
BE LIABLE FOR ANY DAMAGES AND/OR COSTS, INCLUDING, BUT NOT
|
||||
LIMITED TO, INCIDENTAL OR CONSEQUENTIAL DAMAGES OF ANY KIND,
|
||||
INCLUDING ECONOMIC DAMAGE OR INJURY TO PROPERTY AND LOST PROFITS,
|
||||
REGARDLESS OF WHETHER CALTECH, JPL, OR NASA BE ADVISED, HAVE
|
||||
REASON TO KNOW, OR, IN FACT, SHALL KNOW OF THE POSSIBILITY.
|
||||
|
||||
RECIPIENT BEARS ALL RISK RELATING TO QUALITY AND PERFORMANCE OF
|
||||
THE SOFTWARE AND ANY RELATED MATERIALS, AND AGREES TO INDEMNIFY
|
||||
CALTECH AND NASA FOR ALL THIRD-PARTY CLAIMS RESULTING FROM THE
|
||||
ACTIONS OF RECIPIENT IN THE USE OF THE SOFTWARE.
|
||||
|
||||
-Required_Reading
|
||||
|
||||
None.
|
||||
|
||||
-Particulars
|
||||
|
||||
This header defines macros, enumerated types, structures, and
|
||||
typedefs that may be referenced in application code that calls CSPICE
|
||||
EK functions.
|
||||
|
||||
|
||||
Macros
|
||||
======
|
||||
|
||||
General limits
|
||||
--------------
|
||||
|
||||
Name Description
|
||||
---- ----------
|
||||
SPICE_EK_MXCLSG Maximum number of columns per segment.
|
||||
|
||||
SPICE_EK_TYPLEN Maximum length of a short string
|
||||
indicating a data type (one of
|
||||
{"CHR", "DP", "INT", "TIME"}). Such
|
||||
strings are returned by some of the
|
||||
Fortran SPICELIB EK routines, hence also
|
||||
by their f2c'd counterparts.
|
||||
|
||||
Sizes of EK objects
|
||||
-------------------
|
||||
|
||||
Name Description
|
||||
---- ----------
|
||||
|
||||
SPICE_EK_CNAMSZ Maximum length of column name.
|
||||
SPICE_EK_CSTRLN Length of string required to hold column
|
||||
name.
|
||||
SPICE_EK_TNAMSZ Maximum length of table name.
|
||||
SPICE_EK_TSTRLN Length of string required to hold table
|
||||
name.
|
||||
|
||||
|
||||
Query-related limits
|
||||
--------------------
|
||||
|
||||
Name Description
|
||||
---- ----------
|
||||
|
||||
SPICE_EK_MAXQRY Maximum length of an input query. This
|
||||
value is currently equivalent to
|
||||
twenty-five 80-character lines.
|
||||
|
||||
SPICE_EK_MAXQSEL Maximum number of columns that may be
|
||||
listed in the `SELECT clause' of a query.
|
||||
|
||||
SPICE_EK_MAXQTAB Maximum number of tables that may be
|
||||
listed in the `FROM clause' of a query.
|
||||
|
||||
SPICE_EK_MAXQCON Maximum number of relational expressions
|
||||
that may be listed in the `constraint
|
||||
clause' of a query.
|
||||
|
||||
This limit applies to a query when it is
|
||||
represented in `normalized form': that
|
||||
is, the constraints have been expressed
|
||||
as a disjunction of conjunctions of
|
||||
relational expressions. The number of
|
||||
relational expressions in a query that
|
||||
has been expanded in this fashion may be
|
||||
greater than the number of relations in
|
||||
the query as orginally written. For
|
||||
example, the expression
|
||||
|
||||
( ( A LT 1 ) OR ( B GT 2 ) )
|
||||
AND
|
||||
( ( C NE 3 ) OR ( D EQ 4 ) )
|
||||
|
||||
which contains 4 relational expressions,
|
||||
expands to the equivalent normalized
|
||||
constraint
|
||||
|
||||
( ( A LT 1 ) AND ( C NE 3 ) )
|
||||
OR
|
||||
( ( A LT 1 ) AND ( D EQ 4 ) )
|
||||
OR
|
||||
( ( B GT 2 ) AND ( C NE 3 ) )
|
||||
OR
|
||||
( ( B GT 2 ) AND ( D EQ 4 ) )
|
||||
|
||||
which contains eight relational
|
||||
expressions.
|
||||
|
||||
|
||||
|
||||
SPICE_EK_MAXQJOIN Maximum number of tables that can be
|
||||
joined.
|
||||
|
||||
SPICE_EK_MAXQJCON Maximum number of join constraints
|
||||
allowed.
|
||||
|
||||
SPICE_EK_MAXQORD Maximum number of columns that may be
|
||||
used in the `order-by clause' of a query.
|
||||
|
||||
SPICE_EK_MAXQTOK Maximum number of tokens in a query.
|
||||
Tokens
|
||||
are reserved words, column names,
|
||||
parentheses, and values. Literal strings
|
||||
and time values count as single tokens.
|
||||
|
||||
SPICE_EK_MAXQNUM Maximum number of numeric tokens in a
|
||||
query.
|
||||
|
||||
SPICE_EK_MAXQCLN Maximum total length of character tokens
|
||||
in a query.
|
||||
|
||||
SPICE_EK_MAXQSTR Maximum length of literal string values
|
||||
allowed in queries.
|
||||
|
||||
|
||||
Codes
|
||||
-----
|
||||
|
||||
Name Description
|
||||
---- ----------
|
||||
|
||||
SPICE_EK_VARSIZ Code used to indicate variable-size
|
||||
objects. Usually this is used in a
|
||||
context where a non-negative integer
|
||||
indicates the size of a fixed-size object
|
||||
and the presence of this code indicates a
|
||||
variable-size object.
|
||||
|
||||
The value of this constant must match the
|
||||
parameter IFALSE used in the Fortran
|
||||
library SPICELIB.
|
||||
|
||||
|
||||
Enumerated Types
|
||||
================
|
||||
|
||||
Enumerated code values
|
||||
----------------------
|
||||
|
||||
Name Description
|
||||
---- ----------
|
||||
SpiceEKDataType Codes for data types used in the EK
|
||||
interface: character, double precision,
|
||||
integer, and "time."
|
||||
|
||||
The values are:
|
||||
|
||||
{ SPICE_CHR = 0,
|
||||
SPICE_DP = 1,
|
||||
SPICE_INT = 2,
|
||||
SPICE_TIME = 3 }
|
||||
|
||||
|
||||
|
||||
SpiceEKExprClass Codes for types of expressions that may
|
||||
appear in the SELECT clause of EK
|
||||
queries. Values and meanings are:
|
||||
|
||||
|
||||
SPICE_EK_EXP_COL Selected item was a
|
||||
column. The column
|
||||
may qualified by a
|
||||
table name.
|
||||
|
||||
SPICE_EK_EXP_FUNC Selected item was
|
||||
a simple function
|
||||
invocation of the
|
||||
form
|
||||
|
||||
F ( <column> )
|
||||
|
||||
or else was
|
||||
|
||||
COUNT(*)
|
||||
|
||||
SPICE_EK_EXP_EXPR Selected item was a
|
||||
more general
|
||||
expression than
|
||||
those shown above.
|
||||
|
||||
|
||||
Numeric values are:
|
||||
|
||||
{ SPICE_EK_EXP_COL = 0,
|
||||
SPICE_EK_EXP_FUNC = 1,
|
||||
SPICE_EK_EXP_EXPR = 2 }
|
||||
|
||||
|
||||
Structures
|
||||
==========
|
||||
|
||||
EK API structures
|
||||
-----------------
|
||||
|
||||
Name Description
|
||||
---- ----------
|
||||
|
||||
SpiceEKAttDsc EK column attribute descriptor. Note
|
||||
that this object is distinct from the EK
|
||||
column descriptors used internally in
|
||||
the EK routines; those descriptors
|
||||
contain pointers as well as attribute
|
||||
information.
|
||||
|
||||
The members are:
|
||||
|
||||
cclass: Column class code.
|
||||
|
||||
dtype: Data type code: has type
|
||||
SpiceEKDataType.
|
||||
|
||||
strlen: String length. Applies to
|
||||
SPICE_CHR type. Value is
|
||||
SPICE_EK_VARSIZ for
|
||||
variable-length strings.
|
||||
|
||||
size: Column entry size; this is
|
||||
the number of array
|
||||
elements in a column
|
||||
entry. The value is
|
||||
SPICE_EK_VARSIZ for
|
||||
variable-size columns.
|
||||
|
||||
indexd: Index flag; value is
|
||||
SPICETRUE if the column is
|
||||
indexed, SPICEFALSE
|
||||
otherwise.
|
||||
|
||||
nullok: Null flag; value is
|
||||
SPICETRUE if the column
|
||||
may contain null values,
|
||||
SPICEFALSE otherwise.
|
||||
|
||||
|
||||
|
||||
SpiceEKSegSum EK segment summary. This structure
|
||||
contains user interface level descriptive
|
||||
information. The structure contains the
|
||||
following members:
|
||||
|
||||
tabnam The name of the table to
|
||||
which the segment belongs.
|
||||
|
||||
nrows The number of rows in the
|
||||
segment.
|
||||
|
||||
ncols The number of columns in
|
||||
the segment.
|
||||
|
||||
cnames An array of names of
|
||||
columns in the segment.
|
||||
Column names may contain
|
||||
as many as SPICE_EK_CNAMSZ
|
||||
characters. The array
|
||||
contains room for
|
||||
SPICE_EK_MXCLSG column
|
||||
names.
|
||||
|
||||
cdescrs An array of column
|
||||
attribute descriptors of
|
||||
type SpiceEKAttDsc.
|
||||
The array contains room
|
||||
for SPICE_EK_MXCLSG
|
||||
descriptors. The Ith
|
||||
descriptor corresponds to
|
||||
the column whose name is
|
||||
the Ith element of the
|
||||
array cnames.
|
||||
|
||||
-Literature_References
|
||||
|
||||
None.
|
||||
|
||||
-Author_and_Institution
|
||||
|
||||
N.J. Bachman (JPL)
|
||||
|
||||
-Restrictions
|
||||
|
||||
None.
|
||||
|
||||
-Version
|
||||
|
||||
-CSPICE Version 2.0.0 27-JUL-2002 (NJB)
|
||||
|
||||
Defined SpiceEKDataType using SpiceDataType. Removed declaration
|
||||
of enum _SpiceEKDataType.
|
||||
|
||||
-CSPICE Version 1.0.0, 05-JUL-1999 (NJB)
|
||||
|
||||
Renamed _SpiceEKAttDsc member "class" to "cclass." The
|
||||
former name is a reserved word in C++.
|
||||
|
||||
|
||||
-CSPICE Version 1.0.0, 24-FEB-1999 (NJB)
|
||||
|
||||
*/
|
||||
|
||||
#ifndef HAVE_SPICE_EK_H
|
||||
|
||||
#define HAVE_SPICE_EK_H
|
||||
|
||||
|
||||
|
||||
/*
|
||||
Constants
|
||||
*/
|
||||
|
||||
/*
|
||||
Sizes of EK objects:
|
||||
*/
|
||||
|
||||
#define SPICE_EK_CNAMSZ 32
|
||||
#define SPICE_EK_CSTRLN ( SPICE_EK_CNAMSZ + 1 )
|
||||
#define SPICE_EK_TNAMSZ 64
|
||||
#define SPICE_EK_TSTRLN ( SPICE_EK_TNAMSZ + 1 )
|
||||
|
||||
|
||||
|
||||
/*
|
||||
Maximum number of columns per segment:
|
||||
*/
|
||||
|
||||
#define SPICE_EK_MXCLSG 100
|
||||
|
||||
|
||||
/*
|
||||
Maximum length of string indicating data type:
|
||||
*/
|
||||
|
||||
#define SPICE_EK_TYPLEN 4
|
||||
|
||||
|
||||
/*
|
||||
Query-related limits (see header for details):
|
||||
*/
|
||||
|
||||
#define SPICE_EK_MAXQRY 2000
|
||||
#define SPICE_EK_MAXQSEL 50
|
||||
#define SPICE_EK_MAXQTAB 10
|
||||
#define SPICE_EK_MAXQCON 1000
|
||||
#define SPICE_EK_MAXQJOIN 10
|
||||
#define SPICE_EK_MAXQJCON 100
|
||||
#define SPICE_EK_MAXQORD 10
|
||||
#define SPICE_EK_MAXQTOK 500
|
||||
#define SPICE_EK_MAXQNUM 100
|
||||
#define SPICE_EK_MAXQCLN SPICE_EK_MAXQRY
|
||||
#define SPICE_EK_MAXQSTR 1024
|
||||
|
||||
|
||||
|
||||
/*
|
||||
Code indicating "variable size":
|
||||
*/
|
||||
#define SPICE_EK_VARSIZ (-1)
|
||||
|
||||
|
||||
|
||||
/*
|
||||
Data type codes:
|
||||
*/
|
||||
typedef SpiceDataType SpiceEKDataType;
|
||||
|
||||
|
||||
|
||||
/*
|
||||
SELECT clause expression type codes:
|
||||
*/
|
||||
enum _SpiceEKExprClass{ SPICE_EK_EXP_COL = 0,
|
||||
SPICE_EK_EXP_FUNC = 1,
|
||||
SPICE_EK_EXP_EXPR = 2 };
|
||||
|
||||
typedef enum _SpiceEKExprClass SpiceEKExprClass;
|
||||
|
||||
|
||||
|
||||
/*
|
||||
EK column attribute descriptor:
|
||||
*/
|
||||
|
||||
struct _SpiceEKAttDsc
|
||||
|
||||
{ SpiceInt cclass;
|
||||
SpiceEKDataType dtype;
|
||||
SpiceInt strlen;
|
||||
SpiceInt size;
|
||||
SpiceBoolean indexd;
|
||||
SpiceBoolean nullok; };
|
||||
|
||||
typedef struct _SpiceEKAttDsc SpiceEKAttDsc;
|
||||
|
||||
|
||||
|
||||
/*
|
||||
EK segment summary:
|
||||
*/
|
||||
|
||||
struct _SpiceEKSegSum
|
||||
|
||||
{ SpiceChar tabnam [SPICE_EK_TSTRLN];
|
||||
SpiceInt nrows;
|
||||
SpiceInt ncols;
|
||||
SpiceChar cnames [SPICE_EK_MXCLSG][SPICE_EK_CSTRLN];
|
||||
SpiceEKAttDsc cdescrs[SPICE_EK_MXCLSG]; };
|
||||
|
||||
typedef struct _SpiceEKSegSum SpiceEKSegSum;
|
||||
|
||||
|
||||
#endif
|
||||
|
|
@ -1,115 +0,0 @@
|
|||
/*
|
||||
|
||||
-Header_File SpiceEll.h ( CSPICE Ellipse definitions )
|
||||
|
||||
-Abstract
|
||||
|
||||
Perform CSPICE definitions for the SpiceEllipse data type.
|
||||
|
||||
-Disclaimer
|
||||
|
||||
THIS SOFTWARE AND ANY RELATED MATERIALS WERE CREATED BY THE
|
||||
CALIFORNIA INSTITUTE OF TECHNOLOGY (CALTECH) UNDER A U.S.
|
||||
GOVERNMENT CONTRACT WITH THE NATIONAL AERONAUTICS AND SPACE
|
||||
ADMINISTRATION (NASA). THE SOFTWARE IS TECHNOLOGY AND SOFTWARE
|
||||
PUBLICLY AVAILABLE UNDER U.S. EXPORT LAWS AND IS PROVIDED "AS-IS"
|
||||
TO THE RECIPIENT WITHOUT WARRANTY OF ANY KIND, INCLUDING ANY
|
||||
WARRANTIES OF PERFORMANCE OR MERCHANTABILITY OR FITNESS FOR A
|
||||
PARTICULAR USE OR PURPOSE (AS SET FORTH IN UNITED STATES UCC
|
||||
SECTIONS 2312-2313) OR FOR ANY PURPOSE WHATSOEVER, FOR THE
|
||||
SOFTWARE AND RELATED MATERIALS, HOWEVER USED.
|
||||
|
||||
IN NO EVENT SHALL CALTECH, ITS JET PROPULSION LABORATORY, OR NASA
|
||||
BE LIABLE FOR ANY DAMAGES AND/OR COSTS, INCLUDING, BUT NOT
|
||||
LIMITED TO, INCIDENTAL OR CONSEQUENTIAL DAMAGES OF ANY KIND,
|
||||
INCLUDING ECONOMIC DAMAGE OR INJURY TO PROPERTY AND LOST PROFITS,
|
||||
REGARDLESS OF WHETHER CALTECH, JPL, OR NASA BE ADVISED, HAVE
|
||||
REASON TO KNOW, OR, IN FACT, SHALL KNOW OF THE POSSIBILITY.
|
||||
|
||||
RECIPIENT BEARS ALL RISK RELATING TO QUALITY AND PERFORMANCE OF
|
||||
THE SOFTWARE AND ANY RELATED MATERIALS, AND AGREES TO INDEMNIFY
|
||||
CALTECH AND NASA FOR ALL THIRD-PARTY CLAIMS RESULTING FROM THE
|
||||
ACTIONS OF RECIPIENT IN THE USE OF THE SOFTWARE.
|
||||
|
||||
-Required_Reading
|
||||
|
||||
None.
|
||||
|
||||
-Particulars
|
||||
|
||||
This header defines structures and typedefs that may be referenced in
|
||||
application code that calls CSPICE Ellipse functions.
|
||||
|
||||
|
||||
Structures
|
||||
==========
|
||||
|
||||
Name Description
|
||||
---- ----------
|
||||
|
||||
SpiceEllipse Structure representing an ellipse in 3-
|
||||
dimensional space.
|
||||
|
||||
The members are:
|
||||
|
||||
center: Vector defining ellipse's
|
||||
center.
|
||||
|
||||
semiMajor: Vector defining ellipse's
|
||||
semi-major axis.
|
||||
|
||||
semiMinor: Vector defining ellipse's
|
||||
semi-minor axis.
|
||||
|
||||
The ellipse is the set of points
|
||||
|
||||
{X: X = center
|
||||
+ cos(theta) * semiMajor
|
||||
+ sin(theta) * semiMinor,
|
||||
|
||||
theta in [0, 2*Pi) }
|
||||
|
||||
|
||||
ConstSpiceEllipse A const SpiceEllipse.
|
||||
|
||||
|
||||
-Literature_References
|
||||
|
||||
None.
|
||||
|
||||
-Author_and_Institution
|
||||
|
||||
N.J. Bachman (JPL)
|
||||
|
||||
-Restrictions
|
||||
|
||||
None.
|
||||
|
||||
-Version
|
||||
|
||||
-CSPICE Version 1.0.0, 04-MAR-1999 (NJB)
|
||||
|
||||
*/
|
||||
|
||||
#ifndef HAVE_SPICE_ELLIPSES
|
||||
|
||||
#define HAVE_SPICE_ELLIPSES
|
||||
|
||||
|
||||
|
||||
/*
|
||||
Ellipse structure:
|
||||
*/
|
||||
|
||||
struct _SpiceEllipse
|
||||
|
||||
{ SpiceDouble center [3];
|
||||
SpiceDouble semiMajor [3];
|
||||
SpiceDouble semiMinor [3]; };
|
||||
|
||||
typedef struct _SpiceEllipse SpiceEllipse;
|
||||
|
||||
typedef const SpiceEllipse ConstSpiceEllipse;
|
||||
|
||||
#endif
|
||||
|
|
@ -1,106 +0,0 @@
|
|||
/*
|
||||
|
||||
-Header_File SpicePln.h ( CSPICE Plane definitions )
|
||||
|
||||
-Abstract
|
||||
|
||||
Perform CSPICE definitions for the SpicePlane data type.
|
||||
|
||||
-Disclaimer
|
||||
|
||||
THIS SOFTWARE AND ANY RELATED MATERIALS WERE CREATED BY THE
|
||||
CALIFORNIA INSTITUTE OF TECHNOLOGY (CALTECH) UNDER A U.S.
|
||||
GOVERNMENT CONTRACT WITH THE NATIONAL AERONAUTICS AND SPACE
|
||||
ADMINISTRATION (NASA). THE SOFTWARE IS TECHNOLOGY AND SOFTWARE
|
||||
PUBLICLY AVAILABLE UNDER U.S. EXPORT LAWS AND IS PROVIDED "AS-IS"
|
||||
TO THE RECIPIENT WITHOUT WARRANTY OF ANY KIND, INCLUDING ANY
|
||||
WARRANTIES OF PERFORMANCE OR MERCHANTABILITY OR FITNESS FOR A
|
||||
PARTICULAR USE OR PURPOSE (AS SET FORTH IN UNITED STATES UCC
|
||||
SECTIONS 2312-2313) OR FOR ANY PURPOSE WHATSOEVER, FOR THE
|
||||
SOFTWARE AND RELATED MATERIALS, HOWEVER USED.
|
||||
|
||||
IN NO EVENT SHALL CALTECH, ITS JET PROPULSION LABORATORY, OR NASA
|
||||
BE LIABLE FOR ANY DAMAGES AND/OR COSTS, INCLUDING, BUT NOT
|
||||
LIMITED TO, INCIDENTAL OR CONSEQUENTIAL DAMAGES OF ANY KIND,
|
||||
INCLUDING ECONOMIC DAMAGE OR INJURY TO PROPERTY AND LOST PROFITS,
|
||||
REGARDLESS OF WHETHER CALTECH, JPL, OR NASA BE ADVISED, HAVE
|
||||
REASON TO KNOW, OR, IN FACT, SHALL KNOW OF THE POSSIBILITY.
|
||||
|
||||
RECIPIENT BEARS ALL RISK RELATING TO QUALITY AND PERFORMANCE OF
|
||||
THE SOFTWARE AND ANY RELATED MATERIALS, AND AGREES TO INDEMNIFY
|
||||
CALTECH AND NASA FOR ALL THIRD-PARTY CLAIMS RESULTING FROM THE
|
||||
ACTIONS OF RECIPIENT IN THE USE OF THE SOFTWARE.
|
||||
|
||||
-Required_Reading
|
||||
|
||||
None.
|
||||
|
||||
-Particulars
|
||||
|
||||
This header defines structures and typedefs that may be referenced in
|
||||
application code that calls CSPICE Plane functions.
|
||||
|
||||
|
||||
Structures
|
||||
==========
|
||||
|
||||
Name Description
|
||||
---- ----------
|
||||
|
||||
SpicePlane Structure representing a plane in 3-
|
||||
dimensional space.
|
||||
|
||||
The members are:
|
||||
|
||||
normal: Vector normal to plane.
|
||||
|
||||
constant: Constant of plane equation
|
||||
|
||||
Plane =
|
||||
|
||||
{X: <normal,X> = constant}
|
||||
|
||||
|
||||
|
||||
ConstSpicePlane A const SpicePlane.
|
||||
|
||||
|
||||
-Literature_References
|
||||
|
||||
None.
|
||||
|
||||
-Author_and_Institution
|
||||
|
||||
N.J. Bachman (JPL)
|
||||
|
||||
-Restrictions
|
||||
|
||||
None.
|
||||
|
||||
-Version
|
||||
|
||||
-CSPICE Version 1.0.0, 04-MAR-1999 (NJB)
|
||||
|
||||
*/
|
||||
|
||||
#ifndef HAVE_SPICE_PLANES
|
||||
|
||||
#define HAVE_SPICE_PLANES
|
||||
|
||||
|
||||
|
||||
/*
|
||||
Plane structure:
|
||||
*/
|
||||
|
||||
struct _SpicePlane
|
||||
|
||||
{ SpiceDouble normal [3];
|
||||
SpiceDouble constant; };
|
||||
|
||||
typedef struct _SpicePlane SpicePlane;
|
||||
|
||||
typedef const SpicePlane ConstSpicePlane;
|
||||
|
||||
#endif
|
||||
|
|
@ -1,128 +0,0 @@
|
|||
/*
|
||||
|
||||
-Header_File SpiceSPK.h ( CSPICE SPK definitions )
|
||||
|
||||
-Abstract
|
||||
|
||||
Perform CSPICE definitions to support SPK wrapper interfaces.
|
||||
|
||||
-Disclaimer
|
||||
|
||||
THIS SOFTWARE AND ANY RELATED MATERIALS WERE CREATED BY THE
|
||||
CALIFORNIA INSTITUTE OF TECHNOLOGY (CALTECH) UNDER A U.S.
|
||||
GOVERNMENT CONTRACT WITH THE NATIONAL AERONAUTICS AND SPACE
|
||||
ADMINISTRATION (NASA). THE SOFTWARE IS TECHNOLOGY AND SOFTWARE
|
||||
PUBLICLY AVAILABLE UNDER U.S. EXPORT LAWS AND IS PROVIDED "AS-IS"
|
||||
TO THE RECIPIENT WITHOUT WARRANTY OF ANY KIND, INCLUDING ANY
|
||||
WARRANTIES OF PERFORMANCE OR MERCHANTABILITY OR FITNESS FOR A
|
||||
PARTICULAR USE OR PURPOSE (AS SET FORTH IN UNITED STATES UCC
|
||||
SECTIONS 2312-2313) OR FOR ANY PURPOSE WHATSOEVER, FOR THE
|
||||
SOFTWARE AND RELATED MATERIALS, HOWEVER USED.
|
||||
|
||||
IN NO EVENT SHALL CALTECH, ITS JET PROPULSION LABORATORY, OR NASA
|
||||
BE LIABLE FOR ANY DAMAGES AND/OR COSTS, INCLUDING, BUT NOT
|
||||
LIMITED TO, INCIDENTAL OR CONSEQUENTIAL DAMAGES OF ANY KIND,
|
||||
INCLUDING ECONOMIC DAMAGE OR INJURY TO PROPERTY AND LOST PROFITS,
|
||||
REGARDLESS OF WHETHER CALTECH, JPL, OR NASA BE ADVISED, HAVE
|
||||
REASON TO KNOW, OR, IN FACT, SHALL KNOW OF THE POSSIBILITY.
|
||||
|
||||
RECIPIENT BEARS ALL RISK RELATING TO QUALITY AND PERFORMANCE OF
|
||||
THE SOFTWARE AND ANY RELATED MATERIALS, AND AGREES TO INDEMNIFY
|
||||
CALTECH AND NASA FOR ALL THIRD-PARTY CLAIMS RESULTING FROM THE
|
||||
ACTIONS OF RECIPIENT IN THE USE OF THE SOFTWARE.
|
||||
|
||||
-Required_Reading
|
||||
|
||||
None.
|
||||
|
||||
-Particulars
|
||||
|
||||
This header defines types that may be referenced in
|
||||
application code that calls CSPICE SPK functions.
|
||||
|
||||
Typedef
|
||||
=======
|
||||
|
||||
Name Description
|
||||
---- ----------
|
||||
|
||||
SpiceSPK18Subtype Typedef for enum indicating the
|
||||
mathematical representation used
|
||||
in an SPK type 18 segment. Possible
|
||||
values and meanings are:
|
||||
|
||||
S18TP0:
|
||||
|
||||
Hermite interpolation, 12-
|
||||
element packets containing
|
||||
|
||||
x, y, z, dx/dt, dy/dt, dz/dt,
|
||||
vx, vy, vz, dvx/dt, dvy/dt, dvz/dt
|
||||
|
||||
where x, y, z represent Cartesian
|
||||
position components and vx, vy, vz
|
||||
represent Cartesian velocity
|
||||
components. Note well: vx, vy, and
|
||||
vz *are not necessarily equal* to the
|
||||
time derivatives of x, y, and z.
|
||||
This packet structure mimics that of
|
||||
the Rosetta/MEX orbit file from which
|
||||
the data are taken.
|
||||
|
||||
Position units are kilometers,
|
||||
velocity units are kilometers per
|
||||
second, and acceleration units are
|
||||
kilometers per second per second.
|
||||
|
||||
|
||||
S18TP1:
|
||||
|
||||
Lagrange interpolation, 6-
|
||||
element packets containing
|
||||
|
||||
x, y, z, dx/dt, dy/dt, dz/dt
|
||||
|
||||
where x, y, z represent Cartesian
|
||||
position components and vx, vy, vz
|
||||
represent Cartesian velocity
|
||||
components.
|
||||
|
||||
Position units are kilometers;
|
||||
velocity units are kilometers per
|
||||
second.
|
||||
|
||||
-Literature_References
|
||||
|
||||
None.
|
||||
|
||||
-Author_and_Institution
|
||||
|
||||
N.J. Bachman (JPL)
|
||||
|
||||
-Restrictions
|
||||
|
||||
None.
|
||||
|
||||
-Version
|
||||
|
||||
-CSPICE Version 1.0.0, 16-AUG-2002 (NJB)
|
||||
|
||||
*/
|
||||
|
||||
#ifndef HAVE_SPICE_SPK_H
|
||||
|
||||
#define HAVE_SPICE_SPK_H
|
||||
|
||||
|
||||
|
||||
/*
|
||||
SPK type 18 subtype codes:
|
||||
*/
|
||||
|
||||
enum _SpiceSPK18Subtype { S18TP0, S18TP1 };
|
||||
|
||||
|
||||
typedef enum _SpiceSPK18Subtype SpiceSPK18Subtype;
|
||||
|
||||
#endif
|
||||
|
|
@ -1,206 +0,0 @@
|
|||
/*
|
||||
|
||||
-Header_File SpiceUsr.h ( CSPICE user interface definitions )
|
||||
|
||||
-Abstract
|
||||
|
||||
Perform CSPICE user interface declarations, including type
|
||||
definitions and function prototype declarations.
|
||||
|
||||
-Disclaimer
|
||||
|
||||
THIS SOFTWARE AND ANY RELATED MATERIALS WERE CREATED BY THE
|
||||
CALIFORNIA INSTITUTE OF TECHNOLOGY (CALTECH) UNDER A U.S.
|
||||
GOVERNMENT CONTRACT WITH THE NATIONAL AERONAUTICS AND SPACE
|
||||
ADMINISTRATION (NASA). THE SOFTWARE IS TECHNOLOGY AND SOFTWARE
|
||||
PUBLICLY AVAILABLE UNDER U.S. EXPORT LAWS AND IS PROVIDED "AS-IS"
|
||||
TO THE RECIPIENT WITHOUT WARRANTY OF ANY KIND, INCLUDING ANY
|
||||
WARRANTIES OF PERFORMANCE OR MERCHANTABILITY OR FITNESS FOR A
|
||||
PARTICULAR USE OR PURPOSE (AS SET FORTH IN UNITED STATES UCC
|
||||
SECTIONS 2312-2313) OR FOR ANY PURPOSE WHATSOEVER, FOR THE
|
||||
SOFTWARE AND RELATED MATERIALS, HOWEVER USED.
|
||||
|
||||
IN NO EVENT SHALL CALTECH, ITS JET PROPULSION LABORATORY, OR NASA
|
||||
BE LIABLE FOR ANY DAMAGES AND/OR COSTS, INCLUDING, BUT NOT
|
||||
LIMITED TO, INCIDENTAL OR CONSEQUENTIAL DAMAGES OF ANY KIND,
|
||||
INCLUDING ECONOMIC DAMAGE OR INJURY TO PROPERTY AND LOST PROFITS,
|
||||
REGARDLESS OF WHETHER CALTECH, JPL, OR NASA BE ADVISED, HAVE
|
||||
REASON TO KNOW, OR, IN FACT, SHALL KNOW OF THE POSSIBILITY.
|
||||
|
||||
RECIPIENT BEARS ALL RISK RELATING TO QUALITY AND PERFORMANCE OF
|
||||
THE SOFTWARE AND ANY RELATED MATERIALS, AND AGREES TO INDEMNIFY
|
||||
CALTECH AND NASA FOR ALL THIRD-PARTY CLAIMS RESULTING FROM THE
|
||||
ACTIONS OF RECIPIENT IN THE USE OF THE SOFTWARE.
|
||||
|
||||
-Required_Reading
|
||||
|
||||
None.
|
||||
|
||||
-Particulars
|
||||
|
||||
This file is an umbrella header that includes all header files
|
||||
required to support the CSPICE application programming interface
|
||||
(API). Users' application code that calls CSPICE need include only
|
||||
this single header file. This file includes function prototypes for
|
||||
the entire set of CSPICE routines. Typedef statements used to create
|
||||
SPICE data types are also included.
|
||||
|
||||
|
||||
About SPICE data types
|
||||
======================
|
||||
|
||||
To assist with long-term maintainability of CSPICE, NAIF has elected
|
||||
to use typedefs to represent data types occurring in argument lists
|
||||
and as return values of CSPICE functions. These are:
|
||||
|
||||
SpiceBoolean
|
||||
SpiceChar
|
||||
SpiceDouble
|
||||
SpiceInt
|
||||
ConstSpiceBoolean
|
||||
ConstSpiceChar
|
||||
ConstSpiceDouble
|
||||
ConstSpiceInt
|
||||
|
||||
The SPICE typedefs map in an arguably natural way to ANSI C types:
|
||||
|
||||
SpiceBoolean -> enum { SPICEFALSE = 0, SPICETRUE = 1 }
|
||||
SpiceChar -> char
|
||||
SpiceDouble -> double
|
||||
SpiceInt -> int or long
|
||||
ConstX -> const X (X = any of the above types)
|
||||
|
||||
The type SpiceInt is a special case: the corresponding type is picked
|
||||
so as to be half the size of a double. On all currently supported
|
||||
platforms, type double occupies 8 bytes and type int occupies 4
|
||||
bytes. Other platforms may require a SpiceInt to map to type long.
|
||||
|
||||
While other data types may be used internally in CSPICE, no other
|
||||
types appear in the API.
|
||||
|
||||
|
||||
About CSPICE function prototypes
|
||||
================================
|
||||
|
||||
Because CSPICE function prototypes enable substantial
|
||||
compile-time error checking, we recommend that user
|
||||
applications always reference them. Including the header
|
||||
file SpiceUsr.h in any module that calls CSPICE will
|
||||
automatically make the prototypes available.
|
||||
|
||||
|
||||
About CSPICE C style
|
||||
====================
|
||||
|
||||
CSPICE is written in ANSI C. No attempt has been made to support K&R
|
||||
conventions or restrictions.
|
||||
|
||||
|
||||
About C++ compatibility
|
||||
=======================
|
||||
|
||||
The preprocessor directive -D__cplusplus should be used when
|
||||
compiling C++ source code that includes this header file. This
|
||||
directive will suppress mangling of CSPICE names, permitting linkage
|
||||
to a CSPICE object library built from object modules produced by
|
||||
an ANSI C compiler.
|
||||
|
||||
-Literature_References
|
||||
|
||||
None.
|
||||
|
||||
-Author_and_Institution
|
||||
|
||||
N.J. Bachman (JPL)
|
||||
E.D. Wright (JPL)
|
||||
|
||||
-Restrictions
|
||||
|
||||
The #include statements contained in this file are not part of
|
||||
the CSPICE API. The set of files included may change without notice.
|
||||
Users should not include these files directly in their own
|
||||
application code.
|
||||
|
||||
-Version
|
||||
|
||||
-CSPICE Version 3.0.0, 19-AUG-2002 (NJB)
|
||||
|
||||
Updated to include header files
|
||||
|
||||
SpiceCel.h
|
||||
SpiceCK.h
|
||||
SpiceSPK.h
|
||||
|
||||
-CSPICE Version 3.0.0, 17-FEB-1999 (NJB)
|
||||
|
||||
Updated to support suppression of name mangling when included in
|
||||
C++ source code. Also now interface macros to intercept function
|
||||
calls and perform automatic type casting.
|
||||
|
||||
Now includes platform macro definition header file.
|
||||
|
||||
References to types SpiceVoid and ConstSpiceVoid were removed.
|
||||
|
||||
-CSPICE Version 2.0.0, 06-MAY-1998 (NJB) (EDW)
|
||||
|
||||
*/
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
|
||||
#ifndef HAVE_SPICE_USER
|
||||
|
||||
#define HAVE_SPICE_USER
|
||||
|
||||
|
||||
/*
|
||||
Include CSPICE platform macro definitions.
|
||||
*/
|
||||
#include "SpiceZpl.h"
|
||||
|
||||
/*
|
||||
Include CSPICE data type definitions.
|
||||
*/
|
||||
#include "SpiceZdf.h"
|
||||
|
||||
/*
|
||||
Include the CSPICE EK interface definitions.
|
||||
*/
|
||||
#include "SpiceEK.h"
|
||||
|
||||
/*
|
||||
Include the CSPICE Cell interface definitions.
|
||||
*/
|
||||
#include "SpiceCel.h"
|
||||
|
||||
/*
|
||||
Include the CSPICE CK interface definitions.
|
||||
*/
|
||||
#include "SpiceCK.h"
|
||||
|
||||
/*
|
||||
Include the CSPICE SPK interface definitions.
|
||||
*/
|
||||
#include "SpiceSPK.h"
|
||||
|
||||
/*
|
||||
Include CSPICE prototypes.
|
||||
*/
|
||||
#include "SpiceZpr.h"
|
||||
|
||||
/*
|
||||
Define the CSPICE function interface macros.
|
||||
*/
|
||||
#include "SpiceZim.h"
|
||||
|
||||
|
||||
|
||||
#endif
|
||||
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
|
@ -1,223 +0,0 @@
|
|||
/*
|
||||
|
||||
-Header_File SpiceZdf.h ( CSPICE definitions )
|
||||
|
||||
-Abstract
|
||||
|
||||
Define CSPICE data types via typedefs; also define some user-visible
|
||||
enumerated types.
|
||||
|
||||
-Disclaimer
|
||||
|
||||
THIS SOFTWARE AND ANY RELATED MATERIALS WERE CREATED BY THE
|
||||
CALIFORNIA INSTITUTE OF TECHNOLOGY (CALTECH) UNDER A U.S.
|
||||
GOVERNMENT CONTRACT WITH THE NATIONAL AERONAUTICS AND SPACE
|
||||
ADMINISTRATION (NASA). THE SOFTWARE IS TECHNOLOGY AND SOFTWARE
|
||||
PUBLICLY AVAILABLE UNDER U.S. EXPORT LAWS AND IS PROVIDED "AS-IS"
|
||||
TO THE RECIPIENT WITHOUT WARRANTY OF ANY KIND, INCLUDING ANY
|
||||
WARRANTIES OF PERFORMANCE OR MERCHANTABILITY OR FITNESS FOR A
|
||||
PARTICULAR USE OR PURPOSE (AS SET FORTH IN UNITED STATES UCC
|
||||
SECTIONS 2312-2313) OR FOR ANY PURPOSE WHATSOEVER, FOR THE
|
||||
SOFTWARE AND RELATED MATERIALS, HOWEVER USED.
|
||||
|
||||
IN NO EVENT SHALL CALTECH, ITS JET PROPULSION LABORATORY, OR NASA
|
||||
BE LIABLE FOR ANY DAMAGES AND/OR COSTS, INCLUDING, BUT NOT
|
||||
LIMITED TO, INCIDENTAL OR CONSEQUENTIAL DAMAGES OF ANY KIND,
|
||||
INCLUDING ECONOMIC DAMAGE OR INJURY TO PROPERTY AND LOST PROFITS,
|
||||
REGARDLESS OF WHETHER CALTECH, JPL, OR NASA BE ADVISED, HAVE
|
||||
REASON TO KNOW, OR, IN FACT, SHALL KNOW OF THE POSSIBILITY.
|
||||
|
||||
RECIPIENT BEARS ALL RISK RELATING TO QUALITY AND PERFORMANCE OF
|
||||
THE SOFTWARE AND ANY RELATED MATERIALS, AND AGREES TO INDEMNIFY
|
||||
CALTECH AND NASA FOR ALL THIRD-PARTY CLAIMS RESULTING FROM THE
|
||||
ACTIONS OF RECIPIENT IN THE USE OF THE SOFTWARE.
|
||||
|
||||
-Required_Reading
|
||||
|
||||
None.
|
||||
|
||||
-Particulars
|
||||
|
||||
CSPICE data types
|
||||
=================
|
||||
|
||||
To assist with long-term maintainability of CSPICE, NAIF has elected
|
||||
to use typedefs to represent data types occurring in argument lists
|
||||
and as return values of CSPICE functions. These are:
|
||||
|
||||
SpiceBoolean
|
||||
SpiceChar
|
||||
SpiceDouble
|
||||
SpiceInt
|
||||
ConstSpiceBoolean
|
||||
ConstSpiceChar
|
||||
ConstSpiceDouble
|
||||
ConstSpiceInt
|
||||
|
||||
The SPICE typedefs map in an arguably natural way to ANSI C types:
|
||||
|
||||
SpiceBoolean -> int
|
||||
SpiceChar -> char
|
||||
SpiceDouble -> double
|
||||
SpiceInt -> int or long
|
||||
ConstX -> const X (X = any of the above types)
|
||||
|
||||
The type SpiceInt is a special case: the corresponding type is picked
|
||||
so as to be half the size of a double. On most currently supported
|
||||
platforms, type double occupies 8 bytes and type long occupies 4
|
||||
bytes. Other platforms may require a SpiceInt to map to type int.
|
||||
The Alpha/Digital Unix platform is an example of the latter case.
|
||||
|
||||
While other data types may be used internally in CSPICE, no other
|
||||
types appear in the API.
|
||||
|
||||
|
||||
CSPICE enumerated types
|
||||
=======================
|
||||
|
||||
These are provided to enhance readability of the code.
|
||||
|
||||
Type name Value set
|
||||
--------- ---------
|
||||
|
||||
_Spicestatus { SPICEFAILURE = -1, SPICESUCCESS = 0 }
|
||||
|
||||
|
||||
-Literature_References
|
||||
|
||||
None.
|
||||
|
||||
-Author_and_Institution
|
||||
|
||||
N.J. Bachman (JPL)
|
||||
E.D. Wright (JPL)
|
||||
|
||||
-Restrictions
|
||||
|
||||
None.
|
||||
|
||||
-Version
|
||||
|
||||
-CSPICE Version 6.0.0, 21-FEB-2006 (NJB)
|
||||
|
||||
Updated to support the PC Linux 64 bit mode/gcc platform.
|
||||
|
||||
-CSPICE Version 5.0.0, 27-JAN-2003 (NJB)
|
||||
|
||||
Updated to support the Sun Solaris 64 bit mode/gcc platform.
|
||||
|
||||
-CSPICE Version 4.0.0 27-JUL-2002 (NJB)
|
||||
|
||||
Added definition of SpiceDataType.
|
||||
|
||||
-CSPICE Version 3.0.0 18-SEP-1999 (NJB)
|
||||
|
||||
SpiceBoolean implementation changed from enumerated type to
|
||||
typedef mapping to int.
|
||||
|
||||
-CSPICE Version 2.0.0 29-JAN-1999 (NJB)
|
||||
|
||||
Made definition of SpiceInt and ConstSpiceInt platform
|
||||
dependent to accommodate the Alpha/Digital Unix platform.
|
||||
|
||||
Removed definitions of SpiceVoid and ConstSpiceVoid.
|
||||
|
||||
-CSPICE Version 1.0.0 25-OCT-1997 (KRG) (NJB) (EDW)
|
||||
*/
|
||||
|
||||
#ifndef HAVE_SPICEDEFS_H
|
||||
#define HAVE_SPICEDEFS_H
|
||||
|
||||
/*
|
||||
Include platform definitions, if they haven't been executed already.
|
||||
*/
|
||||
#ifndef HAVE_PLATFORM_MACROS_H
|
||||
#include "SpiceZpl.h"
|
||||
#endif
|
||||
|
||||
/*
|
||||
Basic data types. These are defined to be compatible with the
|
||||
types used by f2c, and so they follow the Fortran notion of what
|
||||
these things are. See the f2c documentation for the details
|
||||
about the choices for the sizes of these types.
|
||||
*/
|
||||
typedef char SpiceChar;
|
||||
typedef double SpiceDouble;
|
||||
typedef float SpiceFloat;
|
||||
|
||||
|
||||
|
||||
#if ( defined(CSPICE_ALPHA_DIGITAL_UNIX ) \
|
||||
|| defined(CSPICE_SUN_SOLARIS_64BIT_GCC ) \
|
||||
|| defined(CSPICE_PC_LINUX_64BIT_GCC ) )
|
||||
|
||||
typedef int SpiceInt;
|
||||
#else
|
||||
typedef long SpiceInt;
|
||||
#endif
|
||||
|
||||
|
||||
typedef const char ConstSpiceChar;
|
||||
typedef const double ConstSpiceDouble;
|
||||
typedef const float ConstSpiceFloat;
|
||||
|
||||
|
||||
#if ( defined(CSPICE_ALPHA_DIGITAL_UNIX ) \
|
||||
|| defined(CSPICE_SUN_SOLARIS_64BIT_GCC ) \
|
||||
|| defined(CSPICE_PC_LINUX_64BIT_GCC ) )
|
||||
|
||||
typedef const int ConstSpiceInt;
|
||||
#else
|
||||
typedef const long ConstSpiceInt;
|
||||
#endif
|
||||
|
||||
|
||||
/*
|
||||
More basic data types. These give mnemonics for some other data
|
||||
types in C that are not used in Fortran written by NAIF or
|
||||
supported by ANSI Fortran 77. These are for use in C functions
|
||||
but should not be passed to any C SPICE wrappers, ``*_c.c''
|
||||
since they are not Fortran compatible.
|
||||
*/
|
||||
typedef long SpiceLong;
|
||||
typedef short SpiceShort;
|
||||
|
||||
/*
|
||||
Unsigned data types
|
||||
*/
|
||||
typedef unsigned char SpiceUChar;
|
||||
typedef unsigned int SpiceUInt;
|
||||
typedef unsigned long SpiceULong;
|
||||
typedef unsigned short SpiceUShort;
|
||||
|
||||
/*
|
||||
Signed data types
|
||||
*/
|
||||
typedef signed char SpiceSChar;
|
||||
|
||||
/*
|
||||
Other basic types
|
||||
*/
|
||||
typedef int SpiceBoolean;
|
||||
typedef const int ConstSpiceBoolean;
|
||||
|
||||
#define SPICETRUE 1
|
||||
#define SPICEFALSE 0
|
||||
|
||||
|
||||
enum _Spicestatus { SPICEFAILURE = -1, SPICESUCCESS = 0 };
|
||||
|
||||
typedef enum _Spicestatus SpiceStatus;
|
||||
|
||||
|
||||
enum _SpiceDataType { SPICE_CHR = 0,
|
||||
SPICE_DP = 1,
|
||||
SPICE_INT = 2,
|
||||
SPICE_TIME = 3,
|
||||
SPICE_BOOL = 4 };
|
||||
|
||||
|
||||
typedef enum _SpiceDataType SpiceDataType;
|
||||
|
||||
|
||||
#endif
|
1286
macosx/SpiceZim.h
1286
macosx/SpiceZim.h
File diff suppressed because it is too large
Load Diff
|
@ -1,97 +0,0 @@
|
|||
/*
|
||||
|
||||
-Header_File SpiceZpl.h ( CSPICE platform macros )
|
||||
|
||||
-Abstract
|
||||
|
||||
Define macros identifying the host platform for which this
|
||||
version of CSPICE is targeted.
|
||||
|
||||
-Disclaimer
|
||||
|
||||
THIS SOFTWARE AND ANY RELATED MATERIALS WERE CREATED BY THE
|
||||
CALIFORNIA INSTITUTE OF TECHNOLOGY (CALTECH) UNDER A U.S.
|
||||
GOVERNMENT CONTRACT WITH THE NATIONAL AERONAUTICS AND SPACE
|
||||
ADMINISTRATION (NASA). THE SOFTWARE IS TECHNOLOGY AND SOFTWARE
|
||||
PUBLICLY AVAILABLE UNDER U.S. EXPORT LAWS AND IS PROVIDED "AS-IS"
|
||||
TO THE RECIPIENT WITHOUT WARRANTY OF ANY KIND, INCLUDING ANY
|
||||
WARRANTIES OF PERFORMANCE OR MERCHANTABILITY OR FITNESS FOR A
|
||||
PARTICULAR USE OR PURPOSE (AS SET FORTH IN UNITED STATES UCC
|
||||
SECTIONS 2312-2313) OR FOR ANY PURPOSE WHATSOEVER, FOR THE
|
||||
SOFTWARE AND RELATED MATERIALS, HOWEVER USED.
|
||||
|
||||
IN NO EVENT SHALL CALTECH, ITS JET PROPULSION LABORATORY, OR NASA
|
||||
BE LIABLE FOR ANY DAMAGES AND/OR COSTS, INCLUDING, BUT NOT
|
||||
LIMITED TO, INCIDENTAL OR CONSEQUENTIAL DAMAGES OF ANY KIND,
|
||||
INCLUDING ECONOMIC DAMAGE OR INJURY TO PROPERTY AND LOST PROFITS,
|
||||
REGARDLESS OF WHETHER CALTECH, JPL, OR NASA BE ADVISED, HAVE
|
||||
REASON TO KNOW, OR, IN FACT, SHALL KNOW OF THE POSSIBILITY.
|
||||
|
||||
RECIPIENT BEARS ALL RISK RELATING TO QUALITY AND PERFORMANCE OF
|
||||
THE SOFTWARE AND ANY RELATED MATERIALS, AND AGREES TO INDEMNIFY
|
||||
CALTECH AND NASA FOR ALL THIRD-PARTY CLAIMS RESULTING FROM THE
|
||||
ACTIONS OF RECIPIENT IN THE USE OF THE SOFTWARE.
|
||||
|
||||
-Required_Reading
|
||||
|
||||
None.
|
||||
|
||||
-Literature_References
|
||||
|
||||
None.
|
||||
|
||||
-Particulars
|
||||
|
||||
This header file defines macros that enable CSPICE code to be
|
||||
compiled conditionally based on the identity of the host platform.
|
||||
|
||||
The macros defined here ARE visible in the macro name space of
|
||||
any file that includes SpiceUsr.h. The names are prefixed with
|
||||
the string CSPICE_ to help prevent conflicts with macros defined
|
||||
by users' applications.
|
||||
|
||||
-Author_and_Institution
|
||||
|
||||
N.J. Bachman (JPL)
|
||||
B.V. Semenov (JPL)
|
||||
E.D. Wright (JPL)
|
||||
|
||||
-Version
|
||||
|
||||
-CSPICE Version 2.1.0, 15-NOV-2006 (BVS)
|
||||
|
||||
Updated for MAC-OSX-INTEL_C environment.
|
||||
|
||||
-CSPICE Version 2.0.0, 21-FEB-2006 (NJB)
|
||||
|
||||
Updated for PC-LINUX-64BIT-GCC_C environment.
|
||||
|
||||
-CSPICE Version 1.3.0, 06-MAR-2005 (NJB)
|
||||
|
||||
Updated for SUN-SOLARIS-64BIT-GCC_C environment.
|
||||
|
||||
-CSPICE Version 1.2.0, 03-JAN-2005 (BVS)
|
||||
|
||||
Updated for PC-CYGWIN_C environment.
|
||||
|
||||
-CSPICE Version 1.1.0, 27-JUL-2002 (BVS)
|
||||
|
||||
Updated for MAC-OSX-NATIVE_C environment.
|
||||
|
||||
-CSPICE Version 1.0.0, 26-FEB-1999 (NJB) (EDW)
|
||||
|
||||
-Index_Entries
|
||||
|
||||
platform ID macros for CSPICE
|
||||
|
||||
*/
|
||||
|
||||
|
||||
#ifndef HAVE_PLATFORM_MACROS_H
|
||||
#define HAVE_PLATFORM_MACROS_H
|
||||
|
||||
|
||||
#define CSPICE_MAC_OSX_NATIVE
|
||||
|
||||
#endif
|
||||
|
3445
macosx/SpiceZpr.h
3445
macosx/SpiceZpr.h
File diff suppressed because it is too large
Load Diff
|
@ -28,8 +28,10 @@
|
|||
|
||||
- (void)setStatusText: (NSString *)statusText
|
||||
{
|
||||
[status setStringValue: statusText];
|
||||
[status displayIfNeeded];
|
||||
dispatch_async(dispatch_get_main_queue(), ^{
|
||||
[status setStringValue: statusText];
|
||||
[status displayIfNeeded];
|
||||
});
|
||||
}
|
||||
|
||||
- (void)showWindow
|
||||
|
|
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
|
@ -3,7 +3,7 @@
|
|||
archiveVersion = 1;
|
||||
classes = {
|
||||
};
|
||||
objectVersion = 42;
|
||||
objectVersion = 45;
|
||||
objects = {
|
||||
|
||||
/* Begin PBXAggregateTarget section */
|
||||
|
@ -44,7 +44,11 @@
|
|||
88654A240DB29585007C8027 /* celx_position.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 88654A110DB29585007C8027 /* celx_position.cpp */; };
|
||||
88654A260DB29585007C8027 /* celx_rotation.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 88654A130DB29585007C8027 /* celx_rotation.cpp */; };
|
||||
88654A280DB29585007C8027 /* celx_vector.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 88654A150DB29585007C8027 /* celx_vector.cpp */; };
|
||||
CE4EEA6E0F50144A003341A2 /* cspice.a in Frameworks */ = {isa = PBXBuildFile; fileRef = CE4EEA6D0F50144A003341A2 /* cspice.a */; };
|
||||
9708E6A92312A8BB0015C9F4 /* libjpeg.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 9708E6A72312A8B00015C9F4 /* libjpeg.a */; };
|
||||
97E4018123101501002013C7 /* cspice.a in Frameworks */ = {isa = PBXBuildFile; fileRef = CE4EEA6D0F50144A003341A2 /* cspice.a */; };
|
||||
97E4018323101501002013C7 /* libpng.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 97E4018223101501002013C7 /* libpng.a */; };
|
||||
97E401852310150F002013C7 /* libz.tbd in Frameworks */ = {isa = PBXBuildFile; fileRef = 97E401842310150F002013C7 /* libz.tbd */; };
|
||||
97E40189231015AD002013C7 /* liblua5.1.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 97E40188231015AD002013C7 /* liblua5.1.a */; };
|
||||
CE5203030F4F9DD0007D0DE8 /* spiceinterface.cpp in Sources */ = {isa = PBXBuildFile; fileRef = CE5202FD0F4F9DD0007D0DE8 /* spiceinterface.cpp */; };
|
||||
CE5203040F4F9DD0007D0DE8 /* spiceorbit.cpp in Sources */ = {isa = PBXBuildFile; fileRef = CE5202FF0F4F9DD0007D0DE8 /* spiceorbit.cpp */; };
|
||||
CE5203050F4F9DD0007D0DE8 /* spicerotation.cpp in Sources */ = {isa = PBXBuildFile; fileRef = CE5203010F4F9DD0007D0DE8 /* spicerotation.cpp */; };
|
||||
|
@ -127,7 +131,7 @@
|
|||
E56430F707769C9000E2C4A3 /* vertexprog.cpp in Sources */ = {isa = PBXBuildFile; fileRef = F51C6DDE02959A17014901DC /* vertexprog.cpp */; };
|
||||
E56430F807769C9000E2C4A3 /* vsop87.cpp in Sources */ = {isa = PBXBuildFile; fileRef = F51C6DDF02959A17014901DC /* vsop87.cpp */; };
|
||||
E56430F907769C9000E2C4A3 /* CelestiaController.m in Sources */ = {isa = PBXBuildFile; fileRef = F5040B0F02A484DA014901DC /* CelestiaController.m */; };
|
||||
E56430FA07769C9000E2C4A3 /* CelestiaOpenGLView.m in Sources */ = {isa = PBXBuildFile; fileRef = F5274ED302AE88260100020A /* CelestiaOpenGLView.m */; };
|
||||
E56430FA07769C9000E2C4A3 /* CelestiaOpenGLView.mm in Sources */ = {isa = PBXBuildFile; fileRef = F5274ED302AE88260100020A /* CelestiaOpenGLView.mm */; };
|
||||
E56430FB07769C9000E2C4A3 /* orbit.cpp in Sources */ = {isa = PBXBuildFile; fileRef = F51C6DC802959A17014901DC /* orbit.cpp */; };
|
||||
E56430FC07769C9000E2C4A3 /* GotoWindowController.m in Sources */ = {isa = PBXBuildFile; fileRef = F55C817602AF55890100020A /* GotoWindowController.m */; };
|
||||
E56430FD07769C9000E2C4A3 /* Astro.mm in Sources */ = {isa = PBXBuildFile; fileRef = F55F041202B1105D0100020A /* Astro.mm */; };
|
||||
|
@ -246,7 +250,6 @@
|
|||
E5D446660777291700A1577D /* utf8.cpp in Sources */ = {isa = PBXBuildFile; fileRef = E5D446640777291700A1577D /* utf8.cpp */; };
|
||||
E5D4467607772B6C00A1577D /* CelestiaSettings.mm in Sources */ = {isa = PBXBuildFile; fileRef = E5D4467407772B6C00A1577D /* CelestiaSettings.mm */; };
|
||||
E5D4467807772BA000A1577D /* CGLInfo.m in Sources */ = {isa = PBXBuildFile; fileRef = F505BFFA02CA9DAE0100020A /* CGLInfo.m */; };
|
||||
E5D471270778E33C007731C3 /* libpng.dylib in Frameworks */ = {isa = PBXBuildFile; fileRef = E5D471260778E33C007731C3 /* libpng.dylib */; };
|
||||
E5D542770D0B87EA00E8C513 /* Menu_Extensions.m in Sources */ = {isa = PBXBuildFile; fileRef = E5D5425F0D0B86B200E8C513 /* Menu_Extensions.m */; };
|
||||
E5D766140982B1860099DBBD /* HelpWindow.nib in Resources */ = {isa = PBXBuildFile; fileRef = E5D7660E0982B1860099DBBD /* HelpWindow.nib */; };
|
||||
E5D766700982B4660099DBBD /* amalthea.cmod in Copy Models */ = {isa = PBXBuildFile; fileRef = E5D766270982B3300099DBBD /* amalthea.cmod */; };
|
||||
|
@ -293,10 +296,6 @@
|
|||
E5E2BDD70C24F7E6000D6E83 /* TextWindowController.m in Sources */ = {isa = PBXBuildFile; fileRef = E5E2BDD50C24F7E6000D6E83 /* TextWindowController.m */; };
|
||||
E5E365AD095C11B500B14224 /* SplashScreen.m in Sources */ = {isa = PBXBuildFile; fileRef = E5E365AB095C11B500B14224 /* SplashScreen.m */; };
|
||||
E5E365AF095C123E00B14224 /* splash.png in Resources */ = {isa = PBXBuildFile; fileRef = E5E365AE095C123E00B14224 /* splash.png */; };
|
||||
E5F8C9690795232900D1DAF2 /* libpng.dylib in Frameworks */ = {isa = PBXBuildFile; fileRef = E5D471260778E33C007731C3 /* libpng.dylib */; };
|
||||
E5F8C9E50795235E00D1DAF2 /* liblua.dylib in Frameworks */ = {isa = PBXBuildFile; fileRef = E5F8C9E30795235E00D1DAF2 /* liblua.dylib */; };
|
||||
E5F8C9E70795239600D1DAF2 /* liblua.dylib in Copy Libraries */ = {isa = PBXBuildFile; fileRef = E5F8C9E30795235E00D1DAF2 /* liblua.dylib */; };
|
||||
E5F8C9E90795239600D1DAF2 /* libpng.dylib in Copy Libraries */ = {isa = PBXBuildFile; fileRef = E5D471260778E33C007731C3 /* libpng.dylib */; };
|
||||
FF7B2B0E0E89B0D90089BF43 /* globular.cpp in Sources */ = {isa = PBXBuildFile; fileRef = FF7B2B0C0E89B0D90089BF43 /* globular.cpp */; };
|
||||
FF7B2B1B0E89B22D0089BF43 /* charm2.stc in Copy Data */ = {isa = PBXBuildFile; fileRef = FF7B2B110E89B1A30089BF43 /* charm2.stc */; };
|
||||
FF7B2B1C0E89B23D0089BF43 /* galaxies.dsc in Copy Data */ = {isa = PBXBuildFile; fileRef = FF7B2B120E89B1A30089BF43 /* galaxies.dsc */; };
|
||||
|
@ -394,18 +393,6 @@
|
|||
name = "Copy Extras";
|
||||
runOnlyForDeploymentPostprocessing = 1;
|
||||
};
|
||||
E56917DA0778217300F0F0AF /* Copy Libraries */ = {
|
||||
isa = PBXCopyFilesBuildPhase;
|
||||
buildActionMask = 12;
|
||||
dstPath = "";
|
||||
dstSubfolderSpec = 10;
|
||||
files = (
|
||||
E5F8C9E70795239600D1DAF2 /* liblua.dylib in Copy Libraries */,
|
||||
E5F8C9E90795239600D1DAF2 /* libpng.dylib in Copy Libraries */,
|
||||
);
|
||||
name = "Copy Libraries";
|
||||
runOnlyForDeploymentPostprocessing = 0;
|
||||
};
|
||||
E572837407939F2500C1F239 /* Copy Misc */ = {
|
||||
isa = PBXCopyFilesBuildPhase;
|
||||
buildActionMask = 8;
|
||||
|
@ -543,6 +530,15 @@
|
|||
88654A140DB29585007C8027 /* celx_rotation.h */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.h; name = celx_rotation.h; path = ../src/celestia/celx_rotation.h; sourceTree = SOURCE_ROOT; };
|
||||
88654A150DB29585007C8027 /* celx_vector.cpp */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.cpp.cpp; name = celx_vector.cpp; path = ../src/celestia/celx_vector.cpp; sourceTree = SOURCE_ROOT; };
|
||||
88654A160DB29585007C8027 /* celx_vector.h */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.h; name = celx_vector.h; path = ../src/celestia/celx_vector.h; sourceTree = SOURCE_ROOT; };
|
||||
9708E69F2312A8310015C9F4 /* jerror.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = jerror.h; path = include/jerror.h; sourceTree = "<group>"; };
|
||||
9708E6A02312A8310015C9F4 /* jmorecfg.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = jmorecfg.h; path = include/jmorecfg.h; sourceTree = "<group>"; };
|
||||
9708E6A12312A8310015C9F4 /* jpeglib.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = jpeglib.h; path = include/jpeglib.h; sourceTree = "<group>"; };
|
||||
9708E6A22312A8310015C9F4 /* jconfig.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = jconfig.h; path = include/jconfig.h; sourceTree = "<group>"; };
|
||||
9708E6A72312A8B00015C9F4 /* libjpeg.a */ = {isa = PBXFileReference; lastKnownFileType = archive.ar; name = libjpeg.a; path = lib/libjpeg.a; sourceTree = "<group>"; };
|
||||
9726813A231D0D930014C8D7 /* Celestia.entitlements */ = {isa = PBXFileReference; lastKnownFileType = text.plist.entitlements; path = Celestia.entitlements; sourceTree = "<group>"; };
|
||||
97E4018223101501002013C7 /* libpng.a */ = {isa = PBXFileReference; lastKnownFileType = archive.ar; name = libpng.a; path = lib/libpng.a; sourceTree = "<group>"; };
|
||||
97E401842310150F002013C7 /* libz.tbd */ = {isa = PBXFileReference; lastKnownFileType = "sourcecode.text-based-dylib-definition"; name = libz.tbd; path = usr/lib/libz.tbd; sourceTree = SDKROOT; };
|
||||
97E40188231015AD002013C7 /* liblua5.1.a */ = {isa = PBXFileReference; lastKnownFileType = archive.ar; name = liblua5.1.a; path = lib/liblua5.1.a; sourceTree = "<group>"; };
|
||||
CE4EEA6D0F50144A003341A2 /* cspice.a */ = {isa = PBXFileReference; lastKnownFileType = archive.ar; name = cspice.a; path = lib/cspice.a; sourceTree = "<group>"; };
|
||||
CE5202FD0F4F9DD0007D0DE8 /* spiceinterface.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = spiceinterface.cpp; path = ../src/celengine/spiceinterface.cpp; sourceTree = SOURCE_ROOT; };
|
||||
CE5202FE0F4F9DD0007D0DE8 /* spiceinterface.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = spiceinterface.h; path = ../src/celengine/spiceinterface.h; sourceTree = SOURCE_ROOT; };
|
||||
|
@ -550,17 +546,17 @@
|
|||
CE5203000F4F9DD0007D0DE8 /* spiceorbit.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = spiceorbit.h; path = ../src/celengine/spiceorbit.h; sourceTree = SOURCE_ROOT; };
|
||||
CE5203010F4F9DD0007D0DE8 /* spicerotation.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = spicerotation.cpp; path = ../src/celengine/spicerotation.cpp; sourceTree = SOURCE_ROOT; };
|
||||
CE5203020F4F9DD0007D0DE8 /* spicerotation.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = spicerotation.h; path = ../src/celengine/spicerotation.h; sourceTree = SOURCE_ROOT; };
|
||||
CE5203090F4F9F8D007D0DE8 /* SpiceUsr.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SpiceUsr.h; sourceTree = "<group>"; };
|
||||
CE52030C0F4FA05C007D0DE8 /* SpiceCel.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SpiceCel.h; sourceTree = "<group>"; };
|
||||
CE52030D0F4FA05C007D0DE8 /* SpiceCK.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SpiceCK.h; sourceTree = "<group>"; };
|
||||
CE52030E0F4FA05C007D0DE8 /* SpiceEK.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SpiceEK.h; sourceTree = "<group>"; };
|
||||
CE52030F0F4FA05C007D0DE8 /* SpiceSPK.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SpiceSPK.h; sourceTree = "<group>"; };
|
||||
CE5203100F4FA05C007D0DE8 /* SpiceZdf.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SpiceZdf.h; sourceTree = "<group>"; };
|
||||
CE5203110F4FA05C007D0DE8 /* SpiceZim.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SpiceZim.h; sourceTree = "<group>"; };
|
||||
CE5203120F4FA05C007D0DE8 /* SpiceZpl.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SpiceZpl.h; sourceTree = "<group>"; };
|
||||
CE5203130F4FA05C007D0DE8 /* SpiceZpr.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SpiceZpr.h; sourceTree = "<group>"; };
|
||||
CE52031C0F4FA1BC007D0DE8 /* SpiceEll.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SpiceEll.h; sourceTree = "<group>"; };
|
||||
CE52031D0F4FA1BC007D0DE8 /* SpicePln.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SpicePln.h; sourceTree = "<group>"; };
|
||||
CE5203090F4F9F8D007D0DE8 /* SpiceUsr.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = SpiceUsr.h; path = include/SpiceUsr.h; sourceTree = "<group>"; };
|
||||
CE52030C0F4FA05C007D0DE8 /* SpiceCel.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = SpiceCel.h; path = include/SpiceCel.h; sourceTree = "<group>"; };
|
||||
CE52030D0F4FA05C007D0DE8 /* SpiceCK.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = SpiceCK.h; path = include/SpiceCK.h; sourceTree = "<group>"; };
|
||||
CE52030E0F4FA05C007D0DE8 /* SpiceEK.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = SpiceEK.h; path = include/SpiceEK.h; sourceTree = "<group>"; };
|
||||
CE52030F0F4FA05C007D0DE8 /* SpiceSPK.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = SpiceSPK.h; path = include/SpiceSPK.h; sourceTree = "<group>"; };
|
||||
CE5203100F4FA05C007D0DE8 /* SpiceZdf.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = SpiceZdf.h; path = include/SpiceZdf.h; sourceTree = "<group>"; };
|
||||
CE5203110F4FA05C007D0DE8 /* SpiceZim.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = SpiceZim.h; path = include/SpiceZim.h; sourceTree = "<group>"; };
|
||||
CE5203120F4FA05C007D0DE8 /* SpiceZpl.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = SpiceZpl.h; path = include/SpiceZpl.h; sourceTree = "<group>"; };
|
||||
CE5203130F4FA05C007D0DE8 /* SpiceZpr.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = SpiceZpr.h; path = include/SpiceZpr.h; sourceTree = "<group>"; };
|
||||
CE52031C0F4FA1BC007D0DE8 /* SpiceEll.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = SpiceEll.h; path = include/SpiceEll.h; sourceTree = "<group>"; };
|
||||
CE52031D0F4FA1BC007D0DE8 /* SpicePln.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = SpicePln.h; path = include/SpicePln.h; sourceTree = "<group>"; };
|
||||
CE70D6BC0F3856880020C34D /* zh_CN */ = {isa = PBXFileReference; lastKnownFileType = text.rtf; name = zh_CN; path = zh_CN.lproj/Credits.rtf; sourceTree = "<group>"; };
|
||||
CE70D6BD0F38568E0020C34D /* zh_CN */ = {isa = PBXFileReference; lastKnownFileType = wrapper.nib; name = zh_CN; path = zh_CN.lproj/MainMenu.nib; sourceTree = "<group>"; };
|
||||
CE70D6BE0F3856930020C34D /* zh_CN */ = {isa = PBXFileReference; lastKnownFileType = wrapper.nib; name = zh_CN; path = zh_CN.lproj/BrowserWindow.nib; sourceTree = "<group>"; };
|
||||
|
@ -583,9 +579,9 @@
|
|||
E51224570CF9FC7D009092A2 /* BrowserItem.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = BrowserItem.h; sourceTree = "<group>"; };
|
||||
E51224580CF9FC7D009092A2 /* BrowserItem.mm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.objcpp; path = BrowserItem.mm; sourceTree = "<group>"; };
|
||||
E51224730CF9FE7C009092A2 /* Astro.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = Astro.h; sourceTree = "<group>"; };
|
||||
E5323E3B0C05E84400401D3B /* lauxlib.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = lauxlib.h; sourceTree = "<group>"; };
|
||||
E5323E3C0C05E84400401D3B /* lua.hpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.h; path = lua.hpp; sourceTree = "<group>"; };
|
||||
E5323E3D0C05E84400401D3B /* luaconf.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = luaconf.h; sourceTree = "<group>"; };
|
||||
E5323E3B0C05E84400401D3B /* lauxlib.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = lauxlib.h; path = include/lauxlib.h; sourceTree = "<group>"; };
|
||||
E5323E3C0C05E84400401D3B /* lua.hpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.h; name = lua.hpp; path = include/lua.hpp; sourceTree = "<group>"; };
|
||||
E5323E3D0C05E84400401D3B /* luaconf.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = luaconf.h; path = include/luaconf.h; sourceTree = "<group>"; };
|
||||
E532F4E80933331800D7D5B3 /* dsodb.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = dsodb.cpp; path = ../src/celengine/dsodb.cpp; sourceTree = SOURCE_ROOT; };
|
||||
E532F4E90933331800D7D5B3 /* dsodb.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = dsodb.h; path = ../src/celengine/dsodb.h; sourceTree = SOURCE_ROOT; };
|
||||
E532F4EA0933331800D7D5B3 /* dsoname.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = dsoname.cpp; path = ../src/celengine/dsoname.cpp; sourceTree = SOURCE_ROOT; };
|
||||
|
@ -699,10 +695,10 @@
|
|||
E5B48EB70C22065E00C6FBD7 /* MacInputWatcher.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = MacInputWatcher.h; sourceTree = "<group>"; };
|
||||
E5B48EB80C22065E00C6FBD7 /* MacInputWatcher.mm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.objcpp; path = MacInputWatcher.mm; sourceTree = "<group>"; };
|
||||
E5B615060777307F001BB2BF /* celestia.icns */ = {isa = PBXFileReference; lastKnownFileType = image.icns; path = celestia.icns; sourceTree = "<group>"; };
|
||||
E5B61B2C077737A6001BB2BF /* lua.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = lua.h; sourceTree = "<group>"; };
|
||||
E5B61B2D077737A6001BB2BF /* lualib.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = lualib.h; sourceTree = "<group>"; };
|
||||
E5B61B2E077737A6001BB2BF /* png.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = png.h; sourceTree = "<group>"; };
|
||||
E5B61B2F077737A6001BB2BF /* pngconf.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = pngconf.h; sourceTree = "<group>"; };
|
||||
E5B61B2C077737A6001BB2BF /* lua.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = lua.h; path = include/lua.h; sourceTree = "<group>"; };
|
||||
E5B61B2D077737A6001BB2BF /* lualib.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = lualib.h; path = include/lualib.h; sourceTree = "<group>"; };
|
||||
E5B61B2E077737A6001BB2BF /* png.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = png.h; path = include/png.h; sourceTree = "<group>"; };
|
||||
E5B61B2F077737A6001BB2BF /* pngconf.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = pngconf.h; path = include/pngconf.h; sourceTree = "<group>"; };
|
||||
E5C9B46B084909B90071B1EE /* README for Mac OS X.rtf */ = {isa = PBXFileReference; lastKnownFileType = text.rtf; path = "README for Mac OS X.rtf"; sourceTree = "<group>"; };
|
||||
E5CAABA60D3D7A08001926FC /* POSupport.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = POSupport.cpp; sourceTree = "<group>"; };
|
||||
E5CC202909AA823400CFFF2C /* POConverter */ = {isa = PBXFileReference; explicitFileType = "compiled.mach-o.executable"; includeInIndex = 0; path = POConverter; sourceTree = BUILT_PRODUCTS_DIR; };
|
||||
|
@ -937,7 +933,7 @@
|
|||
F5233227042F819501000002 /* trajmanager.cpp */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.cpp; name = trajmanager.cpp; path = ../src/celengine/trajmanager.cpp; sourceTree = SOURCE_ROOT; };
|
||||
F5233228042F819501000002 /* trajmanager.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = trajmanager.h; path = ../src/celengine/trajmanager.h; sourceTree = SOURCE_ROOT; };
|
||||
F5274ED202AE88260100020A /* CelestiaOpenGLView.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = CelestiaOpenGLView.h; sourceTree = "<group>"; };
|
||||
F5274ED302AE88260100020A /* CelestiaOpenGLView.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = CelestiaOpenGLView.m; sourceTree = "<group>"; };
|
||||
F5274ED302AE88260100020A /* CelestiaOpenGLView.mm */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.objcpp; path = CelestiaOpenGLView.mm; sourceTree = "<group>"; };
|
||||
F53036BB03D908CE01000002 /* url.cpp */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.cpp; name = url.cpp; path = ../src/celestia/url.cpp; sourceTree = SOURCE_ROOT; };
|
||||
F53036BC03D908CE01000002 /* url.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = url.h; path = ../src/celestia/url.h; sourceTree = SOURCE_ROOT; };
|
||||
F55A246102B2AE6E0100020A /* CelestiaBody.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = CelestiaBody.h; sourceTree = "<group>"; };
|
||||
|
@ -1050,13 +1046,14 @@
|
|||
isa = PBXFrameworksBuildPhase;
|
||||
buildActionMask = 2147483647;
|
||||
files = (
|
||||
97E401852310150F002013C7 /* libz.tbd in Frameworks */,
|
||||
E564312B07769C9000E2C4A3 /* Cocoa.framework in Frameworks */,
|
||||
E564312C07769C9000E2C4A3 /* OpenGL.framework in Frameworks */,
|
||||
E5D471270778E33C007731C3 /* libpng.dylib in Frameworks */,
|
||||
E5F8C9690795232900D1DAF2 /* libpng.dylib in Frameworks */,
|
||||
E5F8C9E50795235E00D1DAF2 /* liblua.dylib in Frameworks */,
|
||||
E5C9ADE10848FFEF0071B1EE /* Carbon.framework in Frameworks */,
|
||||
CE4EEA6E0F50144A003341A2 /* cspice.a in Frameworks */,
|
||||
97E40189231015AD002013C7 /* liblua5.1.a in Frameworks */,
|
||||
9708E6A92312A8BB0015C9F4 /* libjpeg.a in Frameworks */,
|
||||
97E4018323101501002013C7 /* libpng.a in Frameworks */,
|
||||
97E4018123101501002013C7 /* cspice.a in Frameworks */,
|
||||
);
|
||||
runOnlyForDeploymentPostprocessing = 0;
|
||||
};
|
||||
|
@ -1076,7 +1073,7 @@
|
|||
children = (
|
||||
F5040B0F02A484DA014901DC /* CelestiaController.m */,
|
||||
F5231C7102C2997601000006 /* CelestiaFavorites.m */,
|
||||
F5274ED302AE88260100020A /* CelestiaOpenGLView.m */,
|
||||
F5274ED302AE88260100020A /* CelestiaOpenGLView.mm */,
|
||||
E5D4467407772B6C00A1577D /* CelestiaSettings.mm */,
|
||||
F505BFFA02CA9DAE0100020A /* CGLInfo.m */,
|
||||
E51224580CF9FC7D009092A2 /* BrowserItem.mm */,
|
||||
|
@ -1150,6 +1147,7 @@
|
|||
29B97314FDCFA39411CA2CEA /* celestia */ = {
|
||||
isa = PBXGroup;
|
||||
children = (
|
||||
9726813A231D0D930014C8D7 /* Celestia.entitlements */,
|
||||
F51C6D38029595BA014901DC /* Celestia Main */,
|
||||
080E96DDFE201D6D7F000001 /* Classes */,
|
||||
29B97315FDCFA39411CA2CEA /* Other Sources */,
|
||||
|
@ -1164,6 +1162,7 @@
|
|||
29B97315FDCFA39411CA2CEA /* Other Sources */ = {
|
||||
isa = PBXGroup;
|
||||
children = (
|
||||
9708E69E2312A8110015C9F4 /* jpeg */,
|
||||
CE52031E0F4FA1CD007D0DE8 /* Spice */,
|
||||
CE52031F0F4FA1EF007D0DE8 /* Lua */,
|
||||
CE5203200F4FA20A007D0DE8 /* png */,
|
||||
|
@ -1202,12 +1201,27 @@
|
|||
29B97323FDCFA39411CA2CEA /* Frameworks */ = {
|
||||
isa = PBXGroup;
|
||||
children = (
|
||||
97E40188231015AD002013C7 /* liblua5.1.a */,
|
||||
9708E6A72312A8B00015C9F4 /* libjpeg.a */,
|
||||
97E401842310150F002013C7 /* libz.tbd */,
|
||||
97E4018223101501002013C7 /* libpng.a */,
|
||||
1058C7A0FEA54F0111CA2CBB /* Linked Frameworks */,
|
||||
1058C7A2FEA54F0111CA2CBB /* Other Frameworks */,
|
||||
);
|
||||
name = Frameworks;
|
||||
sourceTree = "<group>";
|
||||
};
|
||||
9708E69E2312A8110015C9F4 /* jpeg */ = {
|
||||
isa = PBXGroup;
|
||||
children = (
|
||||
9708E6A22312A8310015C9F4 /* jconfig.h */,
|
||||
9708E69F2312A8310015C9F4 /* jerror.h */,
|
||||
9708E6A02312A8310015C9F4 /* jmorecfg.h */,
|
||||
9708E6A12312A8310015C9F4 /* jpeglib.h */,
|
||||
);
|
||||
name = jpeg;
|
||||
sourceTree = "<group>";
|
||||
};
|
||||
CE52031E0F4FA1CD007D0DE8 /* Spice */ = {
|
||||
isa = PBXGroup;
|
||||
children = (
|
||||
|
@ -1822,7 +1836,6 @@
|
|||
E56430BA07769C9000E2C4A3 /* Resources */,
|
||||
E56430C007769C9000E2C4A3 /* Sources */,
|
||||
E564312907769C9000E2C4A3 /* Frameworks */,
|
||||
E56917DA0778217300F0F0AF /* Copy Libraries */,
|
||||
E5CC203B09AA83A900CFFF2C /* Convert PO */,
|
||||
E572837407939F2500C1F239 /* Copy Misc */,
|
||||
E567F018099110C000D05031 /* Copy Data */,
|
||||
|
@ -1863,10 +1876,24 @@
|
|||
/* Begin PBXProject section */
|
||||
29B97313FDCFA39411CA2CEA /* Project object */ = {
|
||||
isa = PBXProject;
|
||||
attributes = {
|
||||
LastUpgradeCheck = 1030;
|
||||
TargetAttributes = {
|
||||
E564302B07769C9000E2C4A3 = {
|
||||
SystemCapabilities = {
|
||||
com.apple.Sandbox = {
|
||||
enabled = 1;
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
buildConfigurationList = E532F41D0933316100D7D5B3 /* Build configuration list for PBXProject "celestia" */;
|
||||
compatibilityVersion = "Xcode 2.4";
|
||||
developmentRegion = en;
|
||||
hasScannedForEncodings = 0;
|
||||
knownRegions = (
|
||||
en,
|
||||
English,
|
||||
Japanese,
|
||||
French,
|
||||
|
@ -1972,7 +1999,7 @@
|
|||
);
|
||||
runOnlyForDeploymentPostprocessing = 1;
|
||||
shellPath = /bin/sh;
|
||||
shellScript = "DIDBUILD=0\nfor po in $SRCROOT/../po/*.po; do\n f=${po##*/};f=${f%.*}\n if [ $f == 'en' ];then f='English'\n fi\n LPROJ=$BUILT_PRODUCTS_DIR/$UNLOCALIZED_RESOURCES_FOLDER_PATH/$f.lproj\n mkdir -p $LPROJ\n if [ $po -nt $LPROJ/po.strings ];then\n echo \"$BUILT_PRODUCTS_DIR/POConverter -sn $po $LPROJ/po.strings\"\n $BUILT_PRODUCTS_DIR/POConverter -sn $po $LPROJ/po.strings\n DIDBUILD=1\n fi\ndone\n\nfor po in $SRCROOT/../po2/*.po; do\n f=${po##*/};f=${f%.*}\n if [ $f == 'en' ];then f='English'\n fi\n LPROJ=$BUILT_PRODUCTS_DIR/$UNLOCALIZED_RESOURCES_FOLDER_PATH/$f.lproj\n mkdir -p $LPROJ\n if [ $po -nt $LPROJ/celestia_constellations.strings ];then\n echo \"$BUILT_PRODUCTS_DIR/POConverter -sn $po $LPROJ/celestia_constellations.strings\"\n $BUILT_PRODUCTS_DIR/POConverter -sn $po $LPROJ/celestia_constellations.strings\n DIDBUILD=1\n fi\ndone\nif [ $DIDBUILD -eq 1 ];then\n echo \"Touch $BUILT_PRODUCTS_DIR/$PRODUCT_NAME.app\"\n touch -c $BUILT_PRODUCTS_DIR/$PRODUCT_NAME.app\nfi";
|
||||
shellScript = "DIDBUILD=0\nfor po in $SRCROOT/../po/*.po; do\n f=${po##*/};f=${f%.*}\n if [ $f == 'en' ];then f='English'\n fi\n LPROJ=$BUILT_PRODUCTS_DIR/$UNLOCALIZED_RESOURCES_FOLDER_PATH/$f.lproj\n mkdir -p $LPROJ\n if [ $po -nt $LPROJ/po.strings ];then\n echo \"$BUILT_PRODUCTS_DIR/POConverter -sn $po $LPROJ/po.strings\"\n $BUILT_PRODUCTS_DIR/POConverter -sn $po $LPROJ/po.strings\n DIDBUILD=1\n fi\ndone\n\nfor po in $SRCROOT/../po2/*.po; do\n f=${po##*/};f=${f%.*}\n if [ $f == 'en' ];then f='English'\n fi\n LPROJ=$BUILT_PRODUCTS_DIR/$UNLOCALIZED_RESOURCES_FOLDER_PATH/$f.lproj\n mkdir -p $LPROJ\n if [ $po -nt $LPROJ/celestia_constellations.strings ];then\n echo \"$BUILT_PRODUCTS_DIR/POConverter -sn $po $LPROJ/celestia_constellations.strings\"\n $BUILT_PRODUCTS_DIR/POConverter -sn $po $LPROJ/celestia_constellations.strings\n DIDBUILD=1\n fi\ndone\nif [ $DIDBUILD -eq 1 ];then\n echo \"Touch $BUILT_PRODUCTS_DIR/$PRODUCT_NAME.app\"\n touch -c $BUILT_PRODUCTS_DIR/$PRODUCT_NAME.app\nfi\n";
|
||||
showEnvVarsInLog = 0;
|
||||
};
|
||||
/* End PBXShellScriptBuildPhase section */
|
||||
|
@ -2036,7 +2063,7 @@
|
|||
E56430F707769C9000E2C4A3 /* vertexprog.cpp in Sources */,
|
||||
E56430F807769C9000E2C4A3 /* vsop87.cpp in Sources */,
|
||||
E56430F907769C9000E2C4A3 /* CelestiaController.m in Sources */,
|
||||
E56430FA07769C9000E2C4A3 /* CelestiaOpenGLView.m in Sources */,
|
||||
E56430FA07769C9000E2C4A3 /* CelestiaOpenGLView.mm in Sources */,
|
||||
E56430FB07769C9000E2C4A3 /* orbit.cpp in Sources */,
|
||||
E56430FC07769C9000E2C4A3 /* GotoWindowController.m in Sources */,
|
||||
E56430FD07769C9000E2C4A3 /* Astro.mm in Sources */,
|
||||
|
@ -2282,6 +2309,7 @@
|
|||
GCC_DYNAMIC_NO_PIC = NO;
|
||||
GCC_OPTIMIZATION_LEVEL = 0;
|
||||
PRODUCT_NAME = Celestia;
|
||||
SKIP_INSTALL = NO;
|
||||
};
|
||||
name = Development;
|
||||
};
|
||||
|
@ -2289,6 +2317,7 @@
|
|||
isa = XCBuildConfiguration;
|
||||
buildSettings = {
|
||||
PRODUCT_NAME = Celestia;
|
||||
SKIP_INSTALL = NO;
|
||||
};
|
||||
name = HDR_Development;
|
||||
};
|
||||
|
@ -2297,29 +2326,33 @@
|
|||
buildSettings = {
|
||||
DEPLOYMENT_POSTPROCESSING = YES;
|
||||
PRODUCT_NAME = Celestia;
|
||||
SKIP_INSTALL = NO;
|
||||
};
|
||||
name = Universal_Release;
|
||||
};
|
||||
CEC000530F3BCC2900E518E0 /* HDR_Universal_Release */ = {
|
||||
isa = XCBuildConfiguration;
|
||||
buildSettings = {
|
||||
DEPLOYMENT_POSTPROCESSING = YES;
|
||||
PRODUCT_NAME = Celestia;
|
||||
SKIP_INSTALL = NO;
|
||||
};
|
||||
name = HDR_Universal_Release;
|
||||
};
|
||||
E50E8707097436A4006687D3 /* Universal_Release */ = {
|
||||
isa = XCBuildConfiguration;
|
||||
buildSettings = {
|
||||
ARCHS = (
|
||||
ppc,
|
||||
i386,
|
||||
);
|
||||
COPY_PHASE_STRIP = NO;
|
||||
CLANG_CXX_LANGUAGE_STANDARD = "compiler-default";
|
||||
CLANG_CXX_LIBRARY = "libc++";
|
||||
CODE_SIGN_ENTITLEMENTS = Celestia.entitlements;
|
||||
CODE_SIGN_IDENTITY = "Mac Developer";
|
||||
CODE_SIGN_STYLE = Automatic;
|
||||
DEPLOYMENT_POSTPROCESSING = YES;
|
||||
DEVELOPMENT_TEAM = 22NR5428TD;
|
||||
ENABLE_HARDENED_RUNTIME = YES;
|
||||
GCC_DYNAMIC_NO_PIC = YES;
|
||||
GCC_ENABLE_CPP_EXCEPTIONS = NO;
|
||||
GCC_ENABLE_CPP_RTTI = NO;
|
||||
GCC_ENABLE_FIX_AND_CONTINUE = NO;
|
||||
GCC_GENERATE_DEBUGGING_SYMBOLS = NO;
|
||||
GCC_PREFIX_HEADER = Util.h;
|
||||
GCC_PREPROCESSOR_DEFINITIONS = (
|
||||
|
@ -2337,12 +2370,13 @@
|
|||
GENERATE_PKGINFO_FILE = NO;
|
||||
HEADER_SEARCH_PATHS = ../src;
|
||||
INFOPLIST_FILE = Info.plist;
|
||||
INSTALL_PATH = "$(HOME)/Applications";
|
||||
LIBRARY_SEARCH_PATHS = (
|
||||
Frameworks,
|
||||
lib,
|
||||
);
|
||||
INSTALL_PATH = "$(LOCAL_APPS_DIR)";
|
||||
LIBRARY_SEARCH_PATHS = "$(PROJECT_DIR)/lib";
|
||||
PRODUCT_BUNDLE_IDENTIFIER = net.shatters.Celestia;
|
||||
PRODUCT_NAME = Celestia;
|
||||
PROVISIONING_PROFILE_SPECIFIER = "";
|
||||
SKIP_INSTALL = NO;
|
||||
SYSTEM_HEADER_SEARCH_PATHS = include;
|
||||
WRAPPER_EXTENSION = app;
|
||||
ZERO_LINK = NO;
|
||||
};
|
||||
|
@ -2351,6 +2385,9 @@
|
|||
E50E8708097436A4006687D3 /* Universal_Release */ = {
|
||||
isa = XCBuildConfiguration;
|
||||
buildSettings = {
|
||||
CLANG_ENABLE_MODULES = NO;
|
||||
COPY_PHASE_STRIP = NO;
|
||||
DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
|
||||
GCC_PREPROCESSOR_DEFINITIONS = (
|
||||
"$(inherited)",
|
||||
PNG_SUPPORT,
|
||||
|
@ -2358,20 +2395,25 @@
|
|||
LUA_USE_MACOSX,
|
||||
"LUA_VER=0x050100",
|
||||
USE_SPICE,
|
||||
JPEG_SUPPORT,
|
||||
);
|
||||
MACOSX_DEPLOYMENT_TARGET_i386 = 10.4;
|
||||
MACOSX_DEPLOYMENT_TARGET_ppc = 10.3;
|
||||
PREBINDING = NO;
|
||||
SDKROOT = /Developer/SDKs/MacOSX10.4u.sdk;
|
||||
STRIP_INSTALLED_PRODUCT = NO;
|
||||
MACOSX_DEPLOYMENT_TARGET = 10.7;
|
||||
SDKROOT = macosx;
|
||||
SKIP_INSTALL = YES;
|
||||
STRIP_INSTALLED_PRODUCT = YES;
|
||||
};
|
||||
name = Universal_Release;
|
||||
};
|
||||
E532F41A0933316100D7D5B3 /* Development */ = {
|
||||
isa = XCBuildConfiguration;
|
||||
buildSettings = {
|
||||
COPY_PHASE_STRIP = NO;
|
||||
GCC_ENABLE_FIX_AND_CONTINUE = YES;
|
||||
CLANG_CXX_LANGUAGE_STANDARD = "compiler-default";
|
||||
CLANG_CXX_LIBRARY = "libc++";
|
||||
CODE_SIGN_ENTITLEMENTS = Celestia.entitlements;
|
||||
CODE_SIGN_IDENTITY = "Mac Developer";
|
||||
CODE_SIGN_STYLE = Automatic;
|
||||
DEVELOPMENT_TEAM = 22NR5428TD;
|
||||
ENABLE_HARDENED_RUNTIME = YES;
|
||||
GCC_GENERATE_DEBUGGING_SYMBOLS = YES;
|
||||
GCC_OPTIMIZATION_LEVEL = 0;
|
||||
GCC_PREFIX_HEADER = Util.h;
|
||||
|
@ -2389,13 +2431,13 @@
|
|||
GENERATE_PKGINFO_FILE = NO;
|
||||
HEADER_SEARCH_PATHS = ../src;
|
||||
INFOPLIST_FILE = Info.plist;
|
||||
INSTALL_PATH = "$(HOME)/Applications";
|
||||
LIBRARY_SEARCH_PATHS = (
|
||||
Frameworks,
|
||||
lib,
|
||||
);
|
||||
PREBINDING = NO;
|
||||
INSTALL_PATH = "$(LOCAL_APPS_DIR)";
|
||||
LIBRARY_SEARCH_PATHS = "$(PROJECT_DIR)/lib";
|
||||
PRODUCT_BUNDLE_IDENTIFIER = net.shatters.Celestia;
|
||||
PRODUCT_NAME = Celestia;
|
||||
PROVISIONING_PROFILE_SPECIFIER = "";
|
||||
SKIP_INSTALL = NO;
|
||||
SYSTEM_HEADER_SEARCH_PATHS = include;
|
||||
WRAPPER_EXTENSION = app;
|
||||
ZERO_LINK = NO;
|
||||
};
|
||||
|
@ -2404,6 +2446,11 @@
|
|||
E532F41E0933316100D7D5B3 /* Development */ = {
|
||||
isa = XCBuildConfiguration;
|
||||
buildSettings = {
|
||||
CLANG_ENABLE_MODULES = NO;
|
||||
COPY_PHASE_STRIP = NO;
|
||||
DEBUG_INFORMATION_FORMAT = dwarf;
|
||||
ENABLE_TESTABILITY = YES;
|
||||
GCC_OPTIMIZATION_LEVEL = 0;
|
||||
GCC_PREPROCESSOR_DEFINITIONS = (
|
||||
"$(inherited)",
|
||||
PNG_SUPPORT,
|
||||
|
@ -2411,9 +2458,13 @@
|
|||
LUA_USE_MACOSX,
|
||||
"LUA_VER=0x050100",
|
||||
USE_SPICE,
|
||||
JPEG_SUPPORT,
|
||||
);
|
||||
SDKROOT = /Developer/SDKs/MacOSX10.4u.sdk;
|
||||
STRIP_INSTALLED_PRODUCT = NO;
|
||||
MACOSX_DEPLOYMENT_TARGET = 10.7;
|
||||
ONLY_ACTIVE_ARCH = YES;
|
||||
SDKROOT = macosx;
|
||||
SKIP_INSTALL = YES;
|
||||
STRIP_INSTALLED_PRODUCT = YES;
|
||||
};
|
||||
name = Development;
|
||||
};
|
||||
|
@ -2426,8 +2477,8 @@
|
|||
TARGET_CELESTIA,
|
||||
);
|
||||
INSTALL_PATH = "$(HOME)/bin";
|
||||
PREBINDING = NO;
|
||||
PRODUCT_NAME = POConverter;
|
||||
SKIP_INSTALL = NO;
|
||||
ZERO_LINK = NO;
|
||||
};
|
||||
name = Development;
|
||||
|
@ -2445,8 +2496,8 @@
|
|||
"-framework",
|
||||
Foundation,
|
||||
);
|
||||
PREBINDING = NO;
|
||||
PRODUCT_NAME = POConverter;
|
||||
SKIP_INSTALL = NO;
|
||||
ZERO_LINK = NO;
|
||||
};
|
||||
name = Universal_Release;
|
||||
|
@ -2464,8 +2515,8 @@
|
|||
"-framework",
|
||||
Foundation,
|
||||
);
|
||||
PREBINDING = NO;
|
||||
PRODUCT_NAME = POConverter;
|
||||
SKIP_INSTALL = NO;
|
||||
ZERO_LINK = NO;
|
||||
};
|
||||
name = HDR_Development;
|
||||
|
@ -2483,8 +2534,8 @@
|
|||
"-framework",
|
||||
Foundation,
|
||||
);
|
||||
PREBINDING = NO;
|
||||
PRODUCT_NAME = POConverter;
|
||||
SKIP_INSTALL = NO;
|
||||
ZERO_LINK = NO;
|
||||
};
|
||||
name = HDR_Universal_Release;
|
||||
|
@ -2492,8 +2543,13 @@
|
|||
E5F9EC680D9EA6BE00A83FEF /* HDR_Development */ = {
|
||||
isa = XCBuildConfiguration;
|
||||
buildSettings = {
|
||||
COPY_PHASE_STRIP = NO;
|
||||
GCC_ENABLE_FIX_AND_CONTINUE = YES;
|
||||
CLANG_CXX_LANGUAGE_STANDARD = "compiler-default";
|
||||
CLANG_CXX_LIBRARY = "libc++";
|
||||
CODE_SIGN_ENTITLEMENTS = Celestia.entitlements;
|
||||
CODE_SIGN_IDENTITY = "Mac Developer";
|
||||
CODE_SIGN_STYLE = Automatic;
|
||||
DEVELOPMENT_TEAM = 22NR5428TD;
|
||||
ENABLE_HARDENED_RUNTIME = YES;
|
||||
GCC_GENERATE_DEBUGGING_SYMBOLS = YES;
|
||||
GCC_OPTIMIZATION_LEVEL = 0;
|
||||
GCC_PREFIX_HEADER = Util.h;
|
||||
|
@ -2511,13 +2567,13 @@
|
|||
GENERATE_PKGINFO_FILE = NO;
|
||||
HEADER_SEARCH_PATHS = ../src;
|
||||
INFOPLIST_FILE = Info.plist;
|
||||
INSTALL_PATH = "$(HOME)/Applications";
|
||||
LIBRARY_SEARCH_PATHS = (
|
||||
Frameworks,
|
||||
lib,
|
||||
);
|
||||
PREBINDING = NO;
|
||||
INSTALL_PATH = "$(LOCAL_APPS_DIR)";
|
||||
LIBRARY_SEARCH_PATHS = "$(PROJECT_DIR)/lib";
|
||||
PRODUCT_BUNDLE_IDENTIFIER = net.shatters.Celestia;
|
||||
PRODUCT_NAME = Celestia;
|
||||
PROVISIONING_PROFILE_SPECIFIER = "";
|
||||
SKIP_INSTALL = NO;
|
||||
SYSTEM_HEADER_SEARCH_PATHS = include;
|
||||
WRAPPER_EXTENSION = app;
|
||||
ZERO_LINK = NO;
|
||||
};
|
||||
|
@ -2526,16 +2582,17 @@
|
|||
E5F9EC690D9EA6BE00A83FEF /* HDR_Universal_Release */ = {
|
||||
isa = XCBuildConfiguration;
|
||||
buildSettings = {
|
||||
ARCHS = (
|
||||
ppc,
|
||||
i386,
|
||||
);
|
||||
COPY_PHASE_STRIP = NO;
|
||||
CLANG_CXX_LANGUAGE_STANDARD = "compiler-default";
|
||||
CLANG_CXX_LIBRARY = "libc++";
|
||||
CODE_SIGN_ENTITLEMENTS = Celestia.entitlements;
|
||||
CODE_SIGN_IDENTITY = "Mac Developer";
|
||||
CODE_SIGN_STYLE = Automatic;
|
||||
DEPLOYMENT_POSTPROCESSING = YES;
|
||||
DEVELOPMENT_TEAM = 22NR5428TD;
|
||||
ENABLE_HARDENED_RUNTIME = YES;
|
||||
GCC_DYNAMIC_NO_PIC = YES;
|
||||
GCC_ENABLE_CPP_EXCEPTIONS = NO;
|
||||
GCC_ENABLE_CPP_RTTI = NO;
|
||||
GCC_ENABLE_FIX_AND_CONTINUE = NO;
|
||||
GCC_GENERATE_DEBUGGING_SYMBOLS = NO;
|
||||
GCC_PREFIX_HEADER = Util.h;
|
||||
GCC_PREPROCESSOR_DEFINITIONS = (
|
||||
|
@ -2553,12 +2610,13 @@
|
|||
GENERATE_PKGINFO_FILE = NO;
|
||||
HEADER_SEARCH_PATHS = ../src;
|
||||
INFOPLIST_FILE = Info.plist;
|
||||
INSTALL_PATH = "$(HOME)/Applications";
|
||||
LIBRARY_SEARCH_PATHS = (
|
||||
Frameworks,
|
||||
lib,
|
||||
);
|
||||
INSTALL_PATH = "$(LOCAL_APPS_DIR)";
|
||||
LIBRARY_SEARCH_PATHS = "$(PROJECT_DIR)/lib";
|
||||
PRODUCT_BUNDLE_IDENTIFIER = net.shatters.Celestia;
|
||||
PRODUCT_NAME = Celestia;
|
||||
PROVISIONING_PROFILE_SPECIFIER = "";
|
||||
SKIP_INSTALL = NO;
|
||||
SYSTEM_HEADER_SEARCH_PATHS = include;
|
||||
WRAPPER_EXTENSION = app;
|
||||
ZERO_LINK = NO;
|
||||
};
|
||||
|
@ -2567,6 +2625,11 @@
|
|||
E5F9EC6A0D9EA6BE00A83FEF /* HDR_Development */ = {
|
||||
isa = XCBuildConfiguration;
|
||||
buildSettings = {
|
||||
CLANG_ENABLE_MODULES = NO;
|
||||
COPY_PHASE_STRIP = NO;
|
||||
DEBUG_INFORMATION_FORMAT = dwarf;
|
||||
ENABLE_TESTABILITY = YES;
|
||||
GCC_OPTIMIZATION_LEVEL = 0;
|
||||
GCC_PREPROCESSOR_DEFINITIONS = (
|
||||
"$(inherited)",
|
||||
PNG_SUPPORT,
|
||||
|
@ -2576,15 +2639,22 @@
|
|||
USE_SPICE,
|
||||
USE_HDR,
|
||||
HDR_COMPRESS,
|
||||
JPEG_SUPPORT,
|
||||
);
|
||||
SDKROOT = /Developer/SDKs/MacOSX10.4u.sdk;
|
||||
STRIP_INSTALLED_PRODUCT = NO;
|
||||
MACOSX_DEPLOYMENT_TARGET = 10.7;
|
||||
ONLY_ACTIVE_ARCH = YES;
|
||||
SDKROOT = macosx;
|
||||
SKIP_INSTALL = YES;
|
||||
STRIP_INSTALLED_PRODUCT = YES;
|
||||
};
|
||||
name = HDR_Development;
|
||||
};
|
||||
E5F9EC6B0D9EA6BE00A83FEF /* HDR_Universal_Release */ = {
|
||||
isa = XCBuildConfiguration;
|
||||
buildSettings = {
|
||||
CLANG_ENABLE_MODULES = NO;
|
||||
COPY_PHASE_STRIP = NO;
|
||||
DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
|
||||
GCC_PREPROCESSOR_DEFINITIONS = (
|
||||
"$(inherited)",
|
||||
PNG_SUPPORT,
|
||||
|
@ -2594,12 +2664,12 @@
|
|||
USE_SPICE,
|
||||
USE_HDR,
|
||||
HDR_COMPRESS,
|
||||
JPEG_SUPPORT,
|
||||
);
|
||||
MACOSX_DEPLOYMENT_TARGET_i386 = 10.4;
|
||||
MACOSX_DEPLOYMENT_TARGET_ppc = 10.3;
|
||||
PREBINDING = NO;
|
||||
SDKROOT = /Developer/SDKs/MacOSX10.4u.sdk;
|
||||
STRIP_INSTALLED_PRODUCT = NO;
|
||||
MACOSX_DEPLOYMENT_TARGET = 10.7;
|
||||
SDKROOT = macosx;
|
||||
SKIP_INSTALL = YES;
|
||||
STRIP_INSTALLED_PRODUCT = YES;
|
||||
};
|
||||
name = HDR_Universal_Release;
|
||||
};
|
||||
|
|
174
macosx/lauxlib.h
174
macosx/lauxlib.h
|
@ -1,174 +0,0 @@
|
|||
/*
|
||||
** $Id: lauxlib.h,v 1.1 2007-05-24 23:45:56 dirkpitt2050 Exp $
|
||||
** Auxiliary functions for building Lua libraries
|
||||
** See Copyright Notice in lua.h
|
||||
*/
|
||||
|
||||
|
||||
#ifndef lauxlib_h
|
||||
#define lauxlib_h
|
||||
|
||||
|
||||
#include <stddef.h>
|
||||
#include <stdio.h>
|
||||
|
||||
#include "lua.h"
|
||||
|
||||
|
||||
#if defined(LUA_COMPAT_GETN)
|
||||
LUALIB_API int (luaL_getn) (lua_State *L, int t);
|
||||
LUALIB_API void (luaL_setn) (lua_State *L, int t, int n);
|
||||
#else
|
||||
#define luaL_getn(L,i) ((int)lua_objlen(L, i))
|
||||
#define luaL_setn(L,i,j) ((void)0) /* no op! */
|
||||
#endif
|
||||
|
||||
#if defined(LUA_COMPAT_OPENLIB)
|
||||
#define luaI_openlib luaL_openlib
|
||||
#endif
|
||||
|
||||
|
||||
/* extra error code for `luaL_load' */
|
||||
#define LUA_ERRFILE (LUA_ERRERR+1)
|
||||
|
||||
|
||||
typedef struct luaL_Reg {
|
||||
const char *name;
|
||||
lua_CFunction func;
|
||||
} luaL_Reg;
|
||||
|
||||
|
||||
|
||||
LUALIB_API void (luaI_openlib) (lua_State *L, const char *libname,
|
||||
const luaL_Reg *l, int nup);
|
||||
LUALIB_API void (luaL_register) (lua_State *L, const char *libname,
|
||||
const luaL_Reg *l);
|
||||
LUALIB_API int (luaL_getmetafield) (lua_State *L, int obj, const char *e);
|
||||
LUALIB_API int (luaL_callmeta) (lua_State *L, int obj, const char *e);
|
||||
LUALIB_API int (luaL_typerror) (lua_State *L, int narg, const char *tname);
|
||||
LUALIB_API int (luaL_argerror) (lua_State *L, int numarg, const char *extramsg);
|
||||
LUALIB_API const char *(luaL_checklstring) (lua_State *L, int numArg,
|
||||
size_t *l);
|
||||
LUALIB_API const char *(luaL_optlstring) (lua_State *L, int numArg,
|
||||
const char *def, size_t *l);
|
||||
LUALIB_API lua_Number (luaL_checknumber) (lua_State *L, int numArg);
|
||||
LUALIB_API lua_Number (luaL_optnumber) (lua_State *L, int nArg, lua_Number def);
|
||||
|
||||
LUALIB_API lua_Integer (luaL_checkinteger) (lua_State *L, int numArg);
|
||||
LUALIB_API lua_Integer (luaL_optinteger) (lua_State *L, int nArg,
|
||||
lua_Integer def);
|
||||
|
||||
LUALIB_API void (luaL_checkstack) (lua_State *L, int sz, const char *msg);
|
||||
LUALIB_API void (luaL_checktype) (lua_State *L, int narg, int t);
|
||||
LUALIB_API void (luaL_checkany) (lua_State *L, int narg);
|
||||
|
||||
LUALIB_API int (luaL_newmetatable) (lua_State *L, const char *tname);
|
||||
LUALIB_API void *(luaL_checkudata) (lua_State *L, int ud, const char *tname);
|
||||
|
||||
LUALIB_API void (luaL_where) (lua_State *L, int lvl);
|
||||
LUALIB_API int (luaL_error) (lua_State *L, const char *fmt, ...);
|
||||
|
||||
LUALIB_API int (luaL_checkoption) (lua_State *L, int narg, const char *def,
|
||||
const char *const lst[]);
|
||||
|
||||
LUALIB_API int (luaL_ref) (lua_State *L, int t);
|
||||
LUALIB_API void (luaL_unref) (lua_State *L, int t, int ref);
|
||||
|
||||
LUALIB_API int (luaL_loadfile) (lua_State *L, const char *filename);
|
||||
LUALIB_API int (luaL_loadbuffer) (lua_State *L, const char *buff, size_t sz,
|
||||
const char *name);
|
||||
LUALIB_API int (luaL_loadstring) (lua_State *L, const char *s);
|
||||
|
||||
LUALIB_API lua_State *(luaL_newstate) (void);
|
||||
|
||||
|
||||
LUALIB_API const char *(luaL_gsub) (lua_State *L, const char *s, const char *p,
|
||||
const char *r);
|
||||
|
||||
LUALIB_API const char *(luaL_findtable) (lua_State *L, int idx,
|
||||
const char *fname, int szhint);
|
||||
|
||||
|
||||
|
||||
|
||||
/*
|
||||
** ===============================================================
|
||||
** some useful macros
|
||||
** ===============================================================
|
||||
*/
|
||||
|
||||
#define luaL_argcheck(L, cond,numarg,extramsg) \
|
||||
((void)((cond) || luaL_argerror(L, (numarg), (extramsg))))
|
||||
#define luaL_checkstring(L,n) (luaL_checklstring(L, (n), NULL))
|
||||
#define luaL_optstring(L,n,d) (luaL_optlstring(L, (n), (d), NULL))
|
||||
#define luaL_checkint(L,n) ((int)luaL_checkinteger(L, (n)))
|
||||
#define luaL_optint(L,n,d) ((int)luaL_optinteger(L, (n), (d)))
|
||||
#define luaL_checklong(L,n) ((long)luaL_checkinteger(L, (n)))
|
||||
#define luaL_optlong(L,n,d) ((long)luaL_optinteger(L, (n), (d)))
|
||||
|
||||
#define luaL_typename(L,i) lua_typename(L, lua_type(L,(i)))
|
||||
|
||||
#define luaL_dofile(L, fn) \
|
||||
(luaL_loadfile(L, fn) || lua_pcall(L, 0, LUA_MULTRET, 0))
|
||||
|
||||
#define luaL_dostring(L, s) \
|
||||
(luaL_loadstring(L, s) || lua_pcall(L, 0, LUA_MULTRET, 0))
|
||||
|
||||
#define luaL_getmetatable(L,n) (lua_getfield(L, LUA_REGISTRYINDEX, (n)))
|
||||
|
||||
#define luaL_opt(L,f,n,d) (lua_isnoneornil(L,(n)) ? (d) : f(L,(n)))
|
||||
|
||||
/*
|
||||
** {======================================================
|
||||
** Generic Buffer manipulation
|
||||
** =======================================================
|
||||
*/
|
||||
|
||||
|
||||
|
||||
typedef struct luaL_Buffer {
|
||||
char *p; /* current position in buffer */
|
||||
int lvl; /* number of strings in the stack (level) */
|
||||
lua_State *L;
|
||||
char buffer[LUAL_BUFFERSIZE];
|
||||
} luaL_Buffer;
|
||||
|
||||
#define luaL_addchar(B,c) \
|
||||
((void)((B)->p < ((B)->buffer+LUAL_BUFFERSIZE) || luaL_prepbuffer(B)), \
|
||||
(*(B)->p++ = (char)(c)))
|
||||
|
||||
/* compatibility only */
|
||||
#define luaL_putchar(B,c) luaL_addchar(B,c)
|
||||
|
||||
#define luaL_addsize(B,n) ((B)->p += (n))
|
||||
|
||||
LUALIB_API void (luaL_buffinit) (lua_State *L, luaL_Buffer *B);
|
||||
LUALIB_API char *(luaL_prepbuffer) (luaL_Buffer *B);
|
||||
LUALIB_API void (luaL_addlstring) (luaL_Buffer *B, const char *s, size_t l);
|
||||
LUALIB_API void (luaL_addstring) (luaL_Buffer *B, const char *s);
|
||||
LUALIB_API void (luaL_addvalue) (luaL_Buffer *B);
|
||||
LUALIB_API void (luaL_pushresult) (luaL_Buffer *B);
|
||||
|
||||
|
||||
/* }====================================================== */
|
||||
|
||||
|
||||
/* compatibility with ref system */
|
||||
|
||||
/* pre-defined references */
|
||||
#define LUA_NOREF (-2)
|
||||
#define LUA_REFNIL (-1)
|
||||
|
||||
#define lua_ref(L,lock) ((lock) ? luaL_ref(L, LUA_REGISTRYINDEX) : \
|
||||
(lua_pushstring(L, "unlocked references are obsolete"), lua_error(L), 0))
|
||||
|
||||
#define lua_unref(L,ref) luaL_unref(L, LUA_REGISTRYINDEX, (ref))
|
||||
|
||||
#define lua_getref(L,ref) lua_rawgeti(L, LUA_REGISTRYINDEX, (ref))
|
||||
|
||||
|
||||
#define luaL_reg luaL_Reg
|
||||
|
||||
#endif
|
||||
|
||||
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
385
macosx/lua.h
385
macosx/lua.h
|
@ -1,385 +0,0 @@
|
|||
/*
|
||||
** $Id: lua.h,v 1.3 2007-05-24 23:45:56 dirkpitt2050 Exp $
|
||||
** Lua - An Extensible Extension Language
|
||||
** Lua.org, PUC-Rio, Brazil (http://www.lua.org)
|
||||
** See Copyright Notice at the end of this file
|
||||
*/
|
||||
|
||||
|
||||
#ifndef lua_h
|
||||
#define lua_h
|
||||
|
||||
#include <stdarg.h>
|
||||
#include <stddef.h>
|
||||
|
||||
|
||||
#include "luaconf.h"
|
||||
|
||||
|
||||
#define LUA_VERSION "Lua 5.1"
|
||||
#define LUA_RELEASE "Lua 5.1.2"
|
||||
#define LUA_VERSION_NUM 501
|
||||
#define LUA_COPYRIGHT "Copyright (C) 1994-2007 Lua.org, PUC-Rio"
|
||||
#define LUA_AUTHORS "R. Ierusalimschy, L. H. de Figueiredo & W. Celes"
|
||||
|
||||
|
||||
/* mark for precompiled code (`<esc>Lua') */
|
||||
#define LUA_SIGNATURE "\033Lua"
|
||||
|
||||
/* option for multiple returns in `lua_pcall' and `lua_call' */
|
||||
#define LUA_MULTRET (-1)
|
||||
|
||||
|
||||
/*
|
||||
** pseudo-indices
|
||||
*/
|
||||
#define LUA_REGISTRYINDEX (-10000)
|
||||
#define LUA_ENVIRONINDEX (-10001)
|
||||
#define LUA_GLOBALSINDEX (-10002)
|
||||
#define lua_upvalueindex(i) (LUA_GLOBALSINDEX-(i))
|
||||
|
||||
|
||||
/* thread status; 0 is OK */
|
||||
#define LUA_YIELD 1
|
||||
#define LUA_ERRRUN 2
|
||||
#define LUA_ERRSYNTAX 3
|
||||
#define LUA_ERRMEM 4
|
||||
#define LUA_ERRERR 5
|
||||
|
||||
|
||||
typedef struct lua_State lua_State;
|
||||
|
||||
typedef int (*lua_CFunction) (lua_State *L);
|
||||
|
||||
|
||||
/*
|
||||
** functions that read/write blocks when loading/dumping Lua chunks
|
||||
*/
|
||||
typedef const char * (*lua_Reader) (lua_State *L, void *ud, size_t *sz);
|
||||
|
||||
typedef int (*lua_Writer) (lua_State *L, const void* p, size_t sz, void* ud);
|
||||
|
||||
|
||||
/*
|
||||
** prototype for memory-allocation functions
|
||||
*/
|
||||
typedef void * (*lua_Alloc) (void *ud, void *ptr, size_t osize, size_t nsize);
|
||||
|
||||
|
||||
/*
|
||||
** basic types
|
||||
*/
|
||||
#define LUA_TNONE (-1)
|
||||
|
||||
#define LUA_TNIL 0
|
||||
#define LUA_TBOOLEAN 1
|
||||
#define LUA_TLIGHTUSERDATA 2
|
||||
#define LUA_TNUMBER 3
|
||||
#define LUA_TSTRING 4
|
||||
#define LUA_TTABLE 5
|
||||
#define LUA_TFUNCTION 6
|
||||
#define LUA_TUSERDATA 7
|
||||
#define LUA_TTHREAD 8
|
||||
|
||||
|
||||
|
||||
/* minimum Lua stack available to a C function */
|
||||
#define LUA_MINSTACK 20
|
||||
|
||||
|
||||
/*
|
||||
** generic extra include file
|
||||
*/
|
||||
#if defined(LUA_USER_H)
|
||||
#include LUA_USER_H
|
||||
#endif
|
||||
|
||||
|
||||
/* type of numbers in Lua */
|
||||
typedef LUA_NUMBER lua_Number;
|
||||
|
||||
|
||||
/* type for integer functions */
|
||||
typedef LUA_INTEGER lua_Integer;
|
||||
|
||||
|
||||
|
||||
/*
|
||||
** state manipulation
|
||||
*/
|
||||
LUA_API lua_State *(lua_newstate) (lua_Alloc f, void *ud);
|
||||
LUA_API void (lua_close) (lua_State *L);
|
||||
LUA_API lua_State *(lua_newthread) (lua_State *L);
|
||||
|
||||
LUA_API lua_CFunction (lua_atpanic) (lua_State *L, lua_CFunction panicf);
|
||||
|
||||
|
||||
/*
|
||||
** basic stack manipulation
|
||||
*/
|
||||
LUA_API int (lua_gettop) (lua_State *L);
|
||||
LUA_API void (lua_settop) (lua_State *L, int idx);
|
||||
LUA_API void (lua_pushvalue) (lua_State *L, int idx);
|
||||
LUA_API void (lua_remove) (lua_State *L, int idx);
|
||||
LUA_API void (lua_insert) (lua_State *L, int idx);
|
||||
LUA_API void (lua_replace) (lua_State *L, int idx);
|
||||
LUA_API int (lua_checkstack) (lua_State *L, int sz);
|
||||
|
||||
LUA_API void (lua_xmove) (lua_State *from, lua_State *to, int n);
|
||||
|
||||
|
||||
/*
|
||||
** access functions (stack -> C)
|
||||
*/
|
||||
|
||||
LUA_API int (lua_isnumber) (lua_State *L, int idx);
|
||||
LUA_API int (lua_isstring) (lua_State *L, int idx);
|
||||
LUA_API int (lua_iscfunction) (lua_State *L, int idx);
|
||||
LUA_API int (lua_isuserdata) (lua_State *L, int idx);
|
||||
LUA_API int (lua_type) (lua_State *L, int idx);
|
||||
LUA_API const char *(lua_typename) (lua_State *L, int tp);
|
||||
|
||||
LUA_API int (lua_equal) (lua_State *L, int idx1, int idx2);
|
||||
LUA_API int (lua_rawequal) (lua_State *L, int idx1, int idx2);
|
||||
LUA_API int (lua_lessthan) (lua_State *L, int idx1, int idx2);
|
||||
|
||||
LUA_API lua_Number (lua_tonumber) (lua_State *L, int idx);
|
||||
LUA_API lua_Integer (lua_tointeger) (lua_State *L, int idx);
|
||||
LUA_API int (lua_toboolean) (lua_State *L, int idx);
|
||||
LUA_API const char *(lua_tolstring) (lua_State *L, int idx, size_t *len);
|
||||
LUA_API size_t (lua_objlen) (lua_State *L, int idx);
|
||||
LUA_API lua_CFunction (lua_tocfunction) (lua_State *L, int idx);
|
||||
LUA_API void *(lua_touserdata) (lua_State *L, int idx);
|
||||
LUA_API lua_State *(lua_tothread) (lua_State *L, int idx);
|
||||
LUA_API const void *(lua_topointer) (lua_State *L, int idx);
|
||||
|
||||
|
||||
/*
|
||||
** push functions (C -> stack)
|
||||
*/
|
||||
LUA_API void (lua_pushnil) (lua_State *L);
|
||||
LUA_API void (lua_pushnumber) (lua_State *L, lua_Number n);
|
||||
LUA_API void (lua_pushinteger) (lua_State *L, lua_Integer n);
|
||||
LUA_API void (lua_pushlstring) (lua_State *L, const char *s, size_t l);
|
||||
LUA_API void (lua_pushstring) (lua_State *L, const char *s);
|
||||
LUA_API const char *(lua_pushvfstring) (lua_State *L, const char *fmt,
|
||||
va_list argp);
|
||||
LUA_API const char *(lua_pushfstring) (lua_State *L, const char *fmt, ...);
|
||||
LUA_API void (lua_pushcclosure) (lua_State *L, lua_CFunction fn, int n);
|
||||
LUA_API void (lua_pushboolean) (lua_State *L, int b);
|
||||
LUA_API void (lua_pushlightuserdata) (lua_State *L, void *p);
|
||||
LUA_API int (lua_pushthread) (lua_State *L);
|
||||
|
||||
|
||||
/*
|
||||
** get functions (Lua -> stack)
|
||||
*/
|
||||
LUA_API void (lua_gettable) (lua_State *L, int idx);
|
||||
LUA_API void (lua_getfield) (lua_State *L, int idx, const char *k);
|
||||
LUA_API void (lua_rawget) (lua_State *L, int idx);
|
||||
LUA_API void (lua_rawgeti) (lua_State *L, int idx, int n);
|
||||
LUA_API void (lua_createtable) (lua_State *L, int narr, int nrec);
|
||||
LUA_API void *(lua_newuserdata) (lua_State *L, size_t sz);
|
||||
LUA_API int (lua_getmetatable) (lua_State *L, int objindex);
|
||||
LUA_API void (lua_getfenv) (lua_State *L, int idx);
|
||||
|
||||
|
||||
/*
|
||||
** set functions (stack -> Lua)
|
||||
*/
|
||||
LUA_API void (lua_settable) (lua_State *L, int idx);
|
||||
LUA_API void (lua_setfield) (lua_State *L, int idx, const char *k);
|
||||
LUA_API void (lua_rawset) (lua_State *L, int idx);
|
||||
LUA_API void (lua_rawseti) (lua_State *L, int idx, int n);
|
||||
LUA_API int (lua_setmetatable) (lua_State *L, int objindex);
|
||||
LUA_API int (lua_setfenv) (lua_State *L, int idx);
|
||||
|
||||
|
||||
/*
|
||||
** `load' and `call' functions (load and run Lua code)
|
||||
*/
|
||||
LUA_API void (lua_call) (lua_State *L, int nargs, int nresults);
|
||||
LUA_API int (lua_pcall) (lua_State *L, int nargs, int nresults, int errfunc);
|
||||
LUA_API int (lua_cpcall) (lua_State *L, lua_CFunction func, void *ud);
|
||||
LUA_API int (lua_load) (lua_State *L, lua_Reader reader, void *dt,
|
||||
const char *chunkname);
|
||||
|
||||
LUA_API int (lua_dump) (lua_State *L, lua_Writer writer, void *data);
|
||||
|
||||
|
||||
/*
|
||||
** coroutine functions
|
||||
*/
|
||||
LUA_API int (lua_yield) (lua_State *L, int nresults);
|
||||
LUA_API int (lua_resume) (lua_State *L, int narg);
|
||||
LUA_API int (lua_status) (lua_State *L);
|
||||
|
||||
/*
|
||||
** garbage-collection function and options
|
||||
*/
|
||||
|
||||
#define LUA_GCSTOP 0
|
||||
#define LUA_GCRESTART 1
|
||||
#define LUA_GCCOLLECT 2
|
||||
#define LUA_GCCOUNT 3
|
||||
#define LUA_GCCOUNTB 4
|
||||
#define LUA_GCSTEP 5
|
||||
#define LUA_GCSETPAUSE 6
|
||||
#define LUA_GCSETSTEPMUL 7
|
||||
|
||||
LUA_API int (lua_gc) (lua_State *L, int what, int data);
|
||||
|
||||
|
||||
/*
|
||||
** miscellaneous functions
|
||||
*/
|
||||
|
||||
LUA_API int (lua_error) (lua_State *L);
|
||||
|
||||
LUA_API int (lua_next) (lua_State *L, int idx);
|
||||
|
||||
LUA_API void (lua_concat) (lua_State *L, int n);
|
||||
|
||||
LUA_API lua_Alloc (lua_getallocf) (lua_State *L, void **ud);
|
||||
LUA_API void lua_setallocf (lua_State *L, lua_Alloc f, void *ud);
|
||||
|
||||
|
||||
|
||||
/*
|
||||
** ===============================================================
|
||||
** some useful macros
|
||||
** ===============================================================
|
||||
*/
|
||||
|
||||
#define lua_pop(L,n) lua_settop(L, -(n)-1)
|
||||
|
||||
#define lua_newtable(L) lua_createtable(L, 0, 0)
|
||||
|
||||
#define lua_register(L,n,f) (lua_pushcfunction(L, (f)), lua_setglobal(L, (n)))
|
||||
|
||||
#define lua_pushcfunction(L,f) lua_pushcclosure(L, (f), 0)
|
||||
|
||||
#define lua_strlen(L,i) lua_objlen(L, (i))
|
||||
|
||||
#define lua_isfunction(L,n) (lua_type(L, (n)) == LUA_TFUNCTION)
|
||||
#define lua_istable(L,n) (lua_type(L, (n)) == LUA_TTABLE)
|
||||
#define lua_islightuserdata(L,n) (lua_type(L, (n)) == LUA_TLIGHTUSERDATA)
|
||||
#define lua_isnil(L,n) (lua_type(L, (n)) == LUA_TNIL)
|
||||
#define lua_isboolean(L,n) (lua_type(L, (n)) == LUA_TBOOLEAN)
|
||||
#define lua_isthread(L,n) (lua_type(L, (n)) == LUA_TTHREAD)
|
||||
#define lua_isnone(L,n) (lua_type(L, (n)) == LUA_TNONE)
|
||||
#define lua_isnoneornil(L, n) (lua_type(L, (n)) <= 0)
|
||||
|
||||
#define lua_pushliteral(L, s) \
|
||||
lua_pushlstring(L, "" s, (sizeof(s)/sizeof(char))-1)
|
||||
|
||||
#define lua_setglobal(L,s) lua_setfield(L, LUA_GLOBALSINDEX, (s))
|
||||
#define lua_getglobal(L,s) lua_getfield(L, LUA_GLOBALSINDEX, (s))
|
||||
|
||||
#define lua_tostring(L,i) lua_tolstring(L, (i), NULL)
|
||||
|
||||
|
||||
|
||||
/*
|
||||
** compatibility macros and functions
|
||||
*/
|
||||
|
||||
#define lua_open() luaL_newstate()
|
||||
|
||||
#define lua_getregistry(L) lua_pushvalue(L, LUA_REGISTRYINDEX)
|
||||
|
||||
#define lua_getgccount(L) lua_gc(L, LUA_GCCOUNT, 0)
|
||||
|
||||
#define lua_Chunkreader lua_Reader
|
||||
#define lua_Chunkwriter lua_Writer
|
||||
|
||||
|
||||
|
||||
/*
|
||||
** {======================================================================
|
||||
** Debug API
|
||||
** =======================================================================
|
||||
*/
|
||||
|
||||
|
||||
/*
|
||||
** Event codes
|
||||
*/
|
||||
#define LUA_HOOKCALL 0
|
||||
#define LUA_HOOKRET 1
|
||||
#define LUA_HOOKLINE 2
|
||||
#define LUA_HOOKCOUNT 3
|
||||
#define LUA_HOOKTAILRET 4
|
||||
|
||||
|
||||
/*
|
||||
** Event masks
|
||||
*/
|
||||
#define LUA_MASKCALL (1 << LUA_HOOKCALL)
|
||||
#define LUA_MASKRET (1 << LUA_HOOKRET)
|
||||
#define LUA_MASKLINE (1 << LUA_HOOKLINE)
|
||||
#define LUA_MASKCOUNT (1 << LUA_HOOKCOUNT)
|
||||
|
||||
typedef struct lua_Debug lua_Debug; /* activation record */
|
||||
|
||||
|
||||
/* Functions to be called by the debuger in specific events */
|
||||
typedef void (*lua_Hook) (lua_State *L, lua_Debug *ar);
|
||||
|
||||
|
||||
LUA_API int lua_getstack (lua_State *L, int level, lua_Debug *ar);
|
||||
LUA_API int lua_getinfo (lua_State *L, const char *what, lua_Debug *ar);
|
||||
LUA_API const char *lua_getlocal (lua_State *L, const lua_Debug *ar, int n);
|
||||
LUA_API const char *lua_setlocal (lua_State *L, const lua_Debug *ar, int n);
|
||||
LUA_API const char *lua_getupvalue (lua_State *L, int funcindex, int n);
|
||||
LUA_API const char *lua_setupvalue (lua_State *L, int funcindex, int n);
|
||||
|
||||
LUA_API int lua_sethook (lua_State *L, lua_Hook func, int mask, int count);
|
||||
LUA_API lua_Hook lua_gethook (lua_State *L);
|
||||
LUA_API int lua_gethookmask (lua_State *L);
|
||||
LUA_API int lua_gethookcount (lua_State *L);
|
||||
|
||||
|
||||
struct lua_Debug {
|
||||
int event;
|
||||
const char *name; /* (n) */
|
||||
const char *namewhat; /* (n) `global', `local', `field', `method' */
|
||||
const char *what; /* (S) `Lua', `C', `main', `tail' */
|
||||
const char *source; /* (S) */
|
||||
int currentline; /* (l) */
|
||||
int nups; /* (u) number of upvalues */
|
||||
int linedefined; /* (S) */
|
||||
int lastlinedefined; /* (S) */
|
||||
char short_src[LUA_IDSIZE]; /* (S) */
|
||||
/* private part */
|
||||
int i_ci; /* active function */
|
||||
};
|
||||
|
||||
/* }====================================================================== */
|
||||
|
||||
|
||||
/******************************************************************************
|
||||
* Copyright (C) 1994-2007 Lua.org, PUC-Rio. All rights reserved.
|
||||
*
|
||||
* Permission is hereby granted, free of charge, to any person obtaining
|
||||
* a copy of this software and associated documentation files (the
|
||||
* "Software"), to deal in the Software without restriction, including
|
||||
* without limitation the rights to use, copy, modify, merge, publish,
|
||||
* distribute, sublicense, and/or sell copies of the Software, and to
|
||||
* permit persons to whom the Software is furnished to do so, subject to
|
||||
* the following conditions:
|
||||
*
|
||||
* The above copyright notice and this permission notice shall be
|
||||
* included in all copies or substantial portions of the Software.
|
||||
*
|
||||
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
||||
* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
||||
* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
|
||||
* IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
|
||||
* CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
|
||||
* TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
|
||||
* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
******************************************************************************/
|
||||
|
||||
|
||||
#endif
|
|
@ -1,9 +0,0 @@
|
|||
// lua.hpp
|
||||
// Lua header files for C++
|
||||
// <<extern "C">> not supplied automatically because Lua also compiles as C++
|
||||
|
||||
extern "C" {
|
||||
#include "lua.h"
|
||||
#include "lualib.h"
|
||||
#include "lauxlib.h"
|
||||
}
|
762
macosx/luaconf.h
762
macosx/luaconf.h
|
@ -1,762 +0,0 @@
|
|||
/*
|
||||
** $Id: luaconf.h,v 1.1 2007-05-24 23:45:56 dirkpitt2050 Exp $
|
||||
** Configuration file for Lua
|
||||
** See Copyright Notice in lua.h
|
||||
*/
|
||||
|
||||
|
||||
#ifndef lconfig_h
|
||||
#define lconfig_h
|
||||
|
||||
#include <limits.h>
|
||||
#include <stddef.h>
|
||||
|
||||
|
||||
/*
|
||||
** ==================================================================
|
||||
** Search for "@@" to find all configurable definitions.
|
||||
** ===================================================================
|
||||
*/
|
||||
|
||||
|
||||
/*
|
||||
@@ LUA_ANSI controls the use of non-ansi features.
|
||||
** CHANGE it (define it) if you want Lua to avoid the use of any
|
||||
** non-ansi feature or library.
|
||||
*/
|
||||
#if defined(__STRICT_ANSI__)
|
||||
#define LUA_ANSI
|
||||
#endif
|
||||
|
||||
|
||||
#if !defined(LUA_ANSI) && defined(_WIN32)
|
||||
#define LUA_WIN
|
||||
#endif
|
||||
|
||||
#if defined(LUA_USE_LINUX)
|
||||
#define LUA_USE_POSIX
|
||||
#define LUA_USE_DLOPEN /* needs an extra library: -ldl */
|
||||
#define LUA_USE_READLINE /* needs some extra libraries */
|
||||
#endif
|
||||
|
||||
#if defined(LUA_USE_MACOSX)
|
||||
#define LUA_USE_POSIX
|
||||
#define LUA_DL_DYLD /* does not need extra library */
|
||||
#endif
|
||||
|
||||
|
||||
|
||||
/*
|
||||
@@ LUA_USE_POSIX includes all functionallity listed as X/Open System
|
||||
@* Interfaces Extension (XSI).
|
||||
** CHANGE it (define it) if your system is XSI compatible.
|
||||
*/
|
||||
#if defined(LUA_USE_POSIX)
|
||||
#define LUA_USE_MKSTEMP
|
||||
#define LUA_USE_ISATTY
|
||||
#define LUA_USE_POPEN
|
||||
#define LUA_USE_ULONGJMP
|
||||
#endif
|
||||
|
||||
|
||||
/*
|
||||
@@ LUA_PATH and LUA_CPATH are the names of the environment variables that
|
||||
@* Lua check to set its paths.
|
||||
@@ LUA_INIT is the name of the environment variable that Lua
|
||||
@* checks for initialization code.
|
||||
** CHANGE them if you want different names.
|
||||
*/
|
||||
#define LUA_PATH "LUA_PATH"
|
||||
#define LUA_CPATH "LUA_CPATH"
|
||||
#define LUA_INIT "LUA_INIT"
|
||||
|
||||
|
||||
/*
|
||||
@@ LUA_PATH_DEFAULT is the default path that Lua uses to look for
|
||||
@* Lua libraries.
|
||||
@@ LUA_CPATH_DEFAULT is the default path that Lua uses to look for
|
||||
@* C libraries.
|
||||
** CHANGE them if your machine has a non-conventional directory
|
||||
** hierarchy or if you want to install your libraries in
|
||||
** non-conventional directories.
|
||||
*/
|
||||
#if defined(_WIN32)
|
||||
/*
|
||||
** In Windows, any exclamation mark ('!') in the path is replaced by the
|
||||
** path of the directory of the executable file of the current process.
|
||||
*/
|
||||
#define LUA_LDIR "!\\lua\\"
|
||||
#define LUA_CDIR "!\\"
|
||||
#define LUA_PATH_DEFAULT \
|
||||
".\\?.lua;" LUA_LDIR"?.lua;" LUA_LDIR"?\\init.lua;" \
|
||||
LUA_CDIR"?.lua;" LUA_CDIR"?\\init.lua"
|
||||
#define LUA_CPATH_DEFAULT \
|
||||
".\\?.dll;" LUA_CDIR"?.dll;" LUA_CDIR"loadall.dll"
|
||||
|
||||
#else
|
||||
#define LUA_ROOT "/usr/local/"
|
||||
#define LUA_LDIR LUA_ROOT "share/lua/5.1/"
|
||||
#define LUA_CDIR LUA_ROOT "lib/lua/5.1/"
|
||||
#define LUA_PATH_DEFAULT \
|
||||
"./?.lua;" LUA_LDIR"?.lua;" LUA_LDIR"?/init.lua;" \
|
||||
LUA_CDIR"?.lua;" LUA_CDIR"?/init.lua"
|
||||
#define LUA_CPATH_DEFAULT \
|
||||
"./?.so;" LUA_CDIR"?.so;" LUA_CDIR"loadall.so"
|
||||
#endif
|
||||
|
||||
|
||||
/*
|
||||
@@ LUA_DIRSEP is the directory separator (for submodules).
|
||||
** CHANGE it if your machine does not use "/" as the directory separator
|
||||
** and is not Windows. (On Windows Lua automatically uses "\".)
|
||||
*/
|
||||
#if defined(_WIN32)
|
||||
#define LUA_DIRSEP "\\"
|
||||
#else
|
||||
#define LUA_DIRSEP "/"
|
||||
#endif
|
||||
|
||||
|
||||
/*
|
||||
@@ LUA_PATHSEP is the character that separates templates in a path.
|
||||
@@ LUA_PATH_MARK is the string that marks the substitution points in a
|
||||
@* template.
|
||||
@@ LUA_EXECDIR in a Windows path is replaced by the executable's
|
||||
@* directory.
|
||||
@@ LUA_IGMARK is a mark to ignore all before it when bulding the
|
||||
@* luaopen_ function name.
|
||||
** CHANGE them if for some reason your system cannot use those
|
||||
** characters. (E.g., if one of those characters is a common character
|
||||
** in file/directory names.) Probably you do not need to change them.
|
||||
*/
|
||||
#define LUA_PATHSEP ";"
|
||||
#define LUA_PATH_MARK "?"
|
||||
#define LUA_EXECDIR "!"
|
||||
#define LUA_IGMARK "-"
|
||||
|
||||
|
||||
/*
|
||||
@@ LUA_INTEGER is the integral type used by lua_pushinteger/lua_tointeger.
|
||||
** CHANGE that if ptrdiff_t is not adequate on your machine. (On most
|
||||
** machines, ptrdiff_t gives a good choice between int or long.)
|
||||
*/
|
||||
#define LUA_INTEGER ptrdiff_t
|
||||
|
||||
|
||||
/*
|
||||
@@ LUA_API is a mark for all core API functions.
|
||||
@@ LUALIB_API is a mark for all standard library functions.
|
||||
** CHANGE them if you need to define those functions in some special way.
|
||||
** For instance, if you want to create one Windows DLL with the core and
|
||||
** the libraries, you may want to use the following definition (define
|
||||
** LUA_BUILD_AS_DLL to get it).
|
||||
*/
|
||||
#if defined(LUA_BUILD_AS_DLL)
|
||||
|
||||
#if defined(LUA_CORE) || defined(LUA_LIB)
|
||||
#define LUA_API __declspec(dllexport)
|
||||
#else
|
||||
#define LUA_API __declspec(dllimport)
|
||||
#endif
|
||||
|
||||
#else
|
||||
|
||||
#define LUA_API extern
|
||||
|
||||
#endif
|
||||
|
||||
/* more often than not the libs go together with the core */
|
||||
#define LUALIB_API LUA_API
|
||||
|
||||
|
||||
/*
|
||||
@@ LUAI_FUNC is a mark for all extern functions that are not to be
|
||||
@* exported to outside modules.
|
||||
@@ LUAI_DATA is a mark for all extern (const) variables that are not to
|
||||
@* be exported to outside modules.
|
||||
** CHANGE them if you need to mark them in some special way. Elf/gcc
|
||||
** (versions 3.2 and later) mark them as "hidden" to optimize access
|
||||
** when Lua is compiled as a shared library.
|
||||
*/
|
||||
#if defined(luaall_c)
|
||||
#define LUAI_FUNC static
|
||||
#define LUAI_DATA /* empty */
|
||||
|
||||
#elif defined(__GNUC__) && ((__GNUC__*100 + __GNUC_MINOR__) >= 302) && \
|
||||
defined(__ELF__)
|
||||
#define LUAI_FUNC __attribute__((visibility("hidden"))) extern
|
||||
#define LUAI_DATA LUAI_FUNC
|
||||
|
||||
#else
|
||||
#define LUAI_FUNC extern
|
||||
#define LUAI_DATA extern
|
||||
#endif
|
||||
|
||||
|
||||
|
||||
/*
|
||||
@@ LUA_QL describes how error messages quote program elements.
|
||||
** CHANGE it if you want a different appearance.
|
||||
*/
|
||||
#define LUA_QL(x) "'" x "'"
|
||||
#define LUA_QS LUA_QL("%s")
|
||||
|
||||
|
||||
/*
|
||||
@@ LUA_IDSIZE gives the maximum size for the description of the source
|
||||
@* of a function in debug information.
|
||||
** CHANGE it if you want a different size.
|
||||
*/
|
||||
#define LUA_IDSIZE 60
|
||||
|
||||
|
||||
/*
|
||||
** {==================================================================
|
||||
** Stand-alone configuration
|
||||
** ===================================================================
|
||||
*/
|
||||
|
||||
#if defined(lua_c) || defined(luaall_c)
|
||||
|
||||
/*
|
||||
@@ lua_stdin_is_tty detects whether the standard input is a 'tty' (that
|
||||
@* is, whether we're running lua interactively).
|
||||
** CHANGE it if you have a better definition for non-POSIX/non-Windows
|
||||
** systems.
|
||||
*/
|
||||
#if defined(LUA_USE_ISATTY)
|
||||
#include <unistd.h>
|
||||
#define lua_stdin_is_tty() isatty(0)
|
||||
#elif defined(LUA_WIN)
|
||||
#include <io.h>
|
||||
#include <stdio.h>
|
||||
#define lua_stdin_is_tty() _isatty(_fileno(stdin))
|
||||
#else
|
||||
#define lua_stdin_is_tty() 1 /* assume stdin is a tty */
|
||||
#endif
|
||||
|
||||
|
||||
/*
|
||||
@@ LUA_PROMPT is the default prompt used by stand-alone Lua.
|
||||
@@ LUA_PROMPT2 is the default continuation prompt used by stand-alone Lua.
|
||||
** CHANGE them if you want different prompts. (You can also change the
|
||||
** prompts dynamically, assigning to globals _PROMPT/_PROMPT2.)
|
||||
*/
|
||||
#define LUA_PROMPT "> "
|
||||
#define LUA_PROMPT2 ">> "
|
||||
|
||||
|
||||
/*
|
||||
@@ LUA_PROGNAME is the default name for the stand-alone Lua program.
|
||||
** CHANGE it if your stand-alone interpreter has a different name and
|
||||
** your system is not able to detect that name automatically.
|
||||
*/
|
||||
#define LUA_PROGNAME "lua"
|
||||
|
||||
|
||||
/*
|
||||
@@ LUA_MAXINPUT is the maximum length for an input line in the
|
||||
@* stand-alone interpreter.
|
||||
** CHANGE it if you need longer lines.
|
||||
*/
|
||||
#define LUA_MAXINPUT 512
|
||||
|
||||
|
||||
/*
|
||||
@@ lua_readline defines how to show a prompt and then read a line from
|
||||
@* the standard input.
|
||||
@@ lua_saveline defines how to "save" a read line in a "history".
|
||||
@@ lua_freeline defines how to free a line read by lua_readline.
|
||||
** CHANGE them if you want to improve this functionality (e.g., by using
|
||||
** GNU readline and history facilities).
|
||||
*/
|
||||
#if defined(LUA_USE_READLINE)
|
||||
#include <stdio.h>
|
||||
#include <readline/readline.h>
|
||||
#include <readline/history.h>
|
||||
#define lua_readline(L,b,p) ((void)L, ((b)=readline(p)) != NULL)
|
||||
#define lua_saveline(L,idx) \
|
||||
if (lua_strlen(L,idx) > 0) /* non-empty line? */ \
|
||||
add_history(lua_tostring(L, idx)); /* add it to history */
|
||||
#define lua_freeline(L,b) ((void)L, free(b))
|
||||
#else
|
||||
#define lua_readline(L,b,p) \
|
||||
((void)L, fputs(p, stdout), fflush(stdout), /* show prompt */ \
|
||||
fgets(b, LUA_MAXINPUT, stdin) != NULL) /* get line */
|
||||
#define lua_saveline(L,idx) { (void)L; (void)idx; }
|
||||
#define lua_freeline(L,b) { (void)L; (void)b; }
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
||||
/* }================================================================== */
|
||||
|
||||
|
||||
/*
|
||||
@@ LUAI_GCPAUSE defines the default pause between garbage-collector cycles
|
||||
@* as a percentage.
|
||||
** CHANGE it if you want the GC to run faster or slower (higher values
|
||||
** mean larger pauses which mean slower collection.) You can also change
|
||||
** this value dynamically.
|
||||
*/
|
||||
#define LUAI_GCPAUSE 200 /* 200% (wait memory to double before next GC) */
|
||||
|
||||
|
||||
/*
|
||||
@@ LUAI_GCMUL defines the default speed of garbage collection relative to
|
||||
@* memory allocation as a percentage.
|
||||
** CHANGE it if you want to change the granularity of the garbage
|
||||
** collection. (Higher values mean coarser collections. 0 represents
|
||||
** infinity, where each step performs a full collection.) You can also
|
||||
** change this value dynamically.
|
||||
*/
|
||||
#define LUAI_GCMUL 200 /* GC runs 'twice the speed' of memory allocation */
|
||||
|
||||
|
||||
|
||||
/*
|
||||
@@ LUA_COMPAT_GETN controls compatibility with old getn behavior.
|
||||
** CHANGE it (define it) if you want exact compatibility with the
|
||||
** behavior of setn/getn in Lua 5.0.
|
||||
*/
|
||||
#undef LUA_COMPAT_GETN
|
||||
|
||||
/*
|
||||
@@ LUA_COMPAT_LOADLIB controls compatibility about global loadlib.
|
||||
** CHANGE it to undefined as soon as you do not need a global 'loadlib'
|
||||
** function (the function is still available as 'package.loadlib').
|
||||
*/
|
||||
#undef LUA_COMPAT_LOADLIB
|
||||
|
||||
/*
|
||||
@@ LUA_COMPAT_VARARG controls compatibility with old vararg feature.
|
||||
** CHANGE it to undefined as soon as your programs use only '...' to
|
||||
** access vararg parameters (instead of the old 'arg' table).
|
||||
*/
|
||||
#define LUA_COMPAT_VARARG
|
||||
|
||||
/*
|
||||
@@ LUA_COMPAT_MOD controls compatibility with old math.mod function.
|
||||
** CHANGE it to undefined as soon as your programs use 'math.fmod' or
|
||||
** the new '%' operator instead of 'math.mod'.
|
||||
*/
|
||||
#define LUA_COMPAT_MOD
|
||||
|
||||
/*
|
||||
@@ LUA_COMPAT_LSTR controls compatibility with old long string nesting
|
||||
@* facility.
|
||||
** CHANGE it to 2 if you want the old behaviour, or undefine it to turn
|
||||
** off the advisory error when nesting [[...]].
|
||||
*/
|
||||
#define LUA_COMPAT_LSTR 1
|
||||
|
||||
/*
|
||||
@@ LUA_COMPAT_GFIND controls compatibility with old 'string.gfind' name.
|
||||
** CHANGE it to undefined as soon as you rename 'string.gfind' to
|
||||
** 'string.gmatch'.
|
||||
*/
|
||||
#define LUA_COMPAT_GFIND
|
||||
|
||||
/*
|
||||
@@ LUA_COMPAT_OPENLIB controls compatibility with old 'luaL_openlib'
|
||||
@* behavior.
|
||||
** CHANGE it to undefined as soon as you replace to 'luaL_register'
|
||||
** your uses of 'luaL_openlib'
|
||||
*/
|
||||
#define LUA_COMPAT_OPENLIB
|
||||
|
||||
|
||||
|
||||
/*
|
||||
@@ luai_apicheck is the assert macro used by the Lua-C API.
|
||||
** CHANGE luai_apicheck if you want Lua to perform some checks in the
|
||||
** parameters it gets from API calls. This may slow down the interpreter
|
||||
** a bit, but may be quite useful when debugging C code that interfaces
|
||||
** with Lua. A useful redefinition is to use assert.h.
|
||||
*/
|
||||
#if defined(LUA_USE_APICHECK)
|
||||
#include <assert.h>
|
||||
#define luai_apicheck(L,o) { (void)L; assert(o); }
|
||||
#else
|
||||
#define luai_apicheck(L,o) { (void)L; }
|
||||
#endif
|
||||
|
||||
|
||||
/*
|
||||
@@ LUAI_BITSINT defines the number of bits in an int.
|
||||
** CHANGE here if Lua cannot automatically detect the number of bits of
|
||||
** your machine. Probably you do not need to change this.
|
||||
*/
|
||||
/* avoid overflows in comparison */
|
||||
#if INT_MAX-20 < 32760
|
||||
#define LUAI_BITSINT 16
|
||||
#elif INT_MAX > 2147483640L
|
||||
/* int has at least 32 bits */
|
||||
#define LUAI_BITSINT 32
|
||||
#else
|
||||
#error "you must define LUA_BITSINT with number of bits in an integer"
|
||||
#endif
|
||||
|
||||
|
||||
/*
|
||||
@@ LUAI_UINT32 is an unsigned integer with at least 32 bits.
|
||||
@@ LUAI_INT32 is an signed integer with at least 32 bits.
|
||||
@@ LUAI_UMEM is an unsigned integer big enough to count the total
|
||||
@* memory used by Lua.
|
||||
@@ LUAI_MEM is a signed integer big enough to count the total memory
|
||||
@* used by Lua.
|
||||
** CHANGE here if for some weird reason the default definitions are not
|
||||
** good enough for your machine. (The definitions in the 'else'
|
||||
** part always works, but may waste space on machines with 64-bit
|
||||
** longs.) Probably you do not need to change this.
|
||||
*/
|
||||
#if LUAI_BITSINT >= 32
|
||||
#define LUAI_UINT32 unsigned int
|
||||
#define LUAI_INT32 int
|
||||
#define LUAI_MAXINT32 INT_MAX
|
||||
#define LUAI_UMEM size_t
|
||||
#define LUAI_MEM ptrdiff_t
|
||||
#else
|
||||
/* 16-bit ints */
|
||||
#define LUAI_UINT32 unsigned long
|
||||
#define LUAI_INT32 long
|
||||
#define LUAI_MAXINT32 LONG_MAX
|
||||
#define LUAI_UMEM unsigned long
|
||||
#define LUAI_MEM long
|
||||
#endif
|
||||
|
||||
|
||||
/*
|
||||
@@ LUAI_MAXCALLS limits the number of nested calls.
|
||||
** CHANGE it if you need really deep recursive calls. This limit is
|
||||
** arbitrary; its only purpose is to stop infinite recursion before
|
||||
** exhausting memory.
|
||||
*/
|
||||
#define LUAI_MAXCALLS 20000
|
||||
|
||||
|
||||
/*
|
||||
@@ LUAI_MAXCSTACK limits the number of Lua stack slots that a C function
|
||||
@* can use.
|
||||
** CHANGE it if you need lots of (Lua) stack space for your C
|
||||
** functions. This limit is arbitrary; its only purpose is to stop C
|
||||
** functions to consume unlimited stack space.
|
||||
*/
|
||||
#define LUAI_MAXCSTACK 2048
|
||||
|
||||
|
||||
|
||||
/*
|
||||
** {==================================================================
|
||||
** CHANGE (to smaller values) the following definitions if your system
|
||||
** has a small C stack. (Or you may want to change them to larger
|
||||
** values if your system has a large C stack and these limits are
|
||||
** too rigid for you.) Some of these constants control the size of
|
||||
** stack-allocated arrays used by the compiler or the interpreter, while
|
||||
** others limit the maximum number of recursive calls that the compiler
|
||||
** or the interpreter can perform. Values too large may cause a C stack
|
||||
** overflow for some forms of deep constructs.
|
||||
** ===================================================================
|
||||
*/
|
||||
|
||||
|
||||
/*
|
||||
@@ LUAI_MAXCCALLS is the maximum depth for nested C calls (short) and
|
||||
@* syntactical nested non-terminals in a program.
|
||||
*/
|
||||
#define LUAI_MAXCCALLS 200
|
||||
|
||||
|
||||
/*
|
||||
@@ LUAI_MAXVARS is the maximum number of local variables per function
|
||||
@* (must be smaller than 250).
|
||||
*/
|
||||
#define LUAI_MAXVARS 200
|
||||
|
||||
|
||||
/*
|
||||
@@ LUAI_MAXUPVALUES is the maximum number of upvalues per function
|
||||
@* (must be smaller than 250).
|
||||
*/
|
||||
#define LUAI_MAXUPVALUES 60
|
||||
|
||||
|
||||
/*
|
||||
@@ LUAL_BUFFERSIZE is the buffer size used by the lauxlib buffer system.
|
||||
*/
|
||||
#define LUAL_BUFFERSIZE BUFSIZ
|
||||
|
||||
/* }================================================================== */
|
||||
|
||||
|
||||
|
||||
|
||||
/*
|
||||
** {==================================================================
|
||||
@@ LUA_NUMBER is the type of numbers in Lua.
|
||||
** CHANGE the following definitions only if you want to build Lua
|
||||
** with a number type different from double. You may also need to
|
||||
** change lua_number2int & lua_number2integer.
|
||||
** ===================================================================
|
||||
*/
|
||||
|
||||
#define LUA_NUMBER_DOUBLE
|
||||
#define LUA_NUMBER double
|
||||
|
||||
/*
|
||||
@@ LUAI_UACNUMBER is the result of an 'usual argument conversion'
|
||||
@* over a number.
|
||||
*/
|
||||
#define LUAI_UACNUMBER double
|
||||
|
||||
|
||||
/*
|
||||
@@ LUA_NUMBER_SCAN is the format for reading numbers.
|
||||
@@ LUA_NUMBER_FMT is the format for writing numbers.
|
||||
@@ lua_number2str converts a number to a string.
|
||||
@@ LUAI_MAXNUMBER2STR is maximum size of previous conversion.
|
||||
@@ lua_str2number converts a string to a number.
|
||||
*/
|
||||
#define LUA_NUMBER_SCAN "%lf"
|
||||
#define LUA_NUMBER_FMT "%.14g"
|
||||
#define lua_number2str(s,n) sprintf((s), LUA_NUMBER_FMT, (n))
|
||||
#define LUAI_MAXNUMBER2STR 32 /* 16 digits, sign, point, and \0 */
|
||||
#define lua_str2number(s,p) strtod((s), (p))
|
||||
|
||||
|
||||
/*
|
||||
@@ The luai_num* macros define the primitive operations over numbers.
|
||||
*/
|
||||
#if defined(LUA_CORE)
|
||||
#include <math.h>
|
||||
#define luai_numadd(a,b) ((a)+(b))
|
||||
#define luai_numsub(a,b) ((a)-(b))
|
||||
#define luai_nummul(a,b) ((a)*(b))
|
||||
#define luai_numdiv(a,b) ((a)/(b))
|
||||
#define luai_nummod(a,b) ((a) - floor((a)/(b))*(b))
|
||||
#define luai_numpow(a,b) (pow(a,b))
|
||||
#define luai_numunm(a) (-(a))
|
||||
#define luai_numeq(a,b) ((a)==(b))
|
||||
#define luai_numlt(a,b) ((a)<(b))
|
||||
#define luai_numle(a,b) ((a)<=(b))
|
||||
#define luai_numisnan(a) (!luai_numeq((a), (a)))
|
||||
#endif
|
||||
|
||||
|
||||
/*
|
||||
@@ lua_number2int is a macro to convert lua_Number to int.
|
||||
@@ lua_number2integer is a macro to convert lua_Number to lua_Integer.
|
||||
** CHANGE them if you know a faster way to convert a lua_Number to
|
||||
** int (with any rounding method and without throwing errors) in your
|
||||
** system. In Pentium machines, a naive typecast from double to int
|
||||
** in C is extremely slow, so any alternative is worth trying.
|
||||
*/
|
||||
|
||||
/* On a Pentium, resort to a trick */
|
||||
#if defined(LUA_NUMBER_DOUBLE) && !defined(LUA_ANSI) && !defined(__SSE2__) && \
|
||||
(defined(__i386) || defined (_M_IX86) || defined(__i386__))
|
||||
|
||||
/* On a Microsoft compiler, use assembler */
|
||||
#if defined(_MSC_VER)
|
||||
|
||||
#define lua_number2int(i,d) __asm fld d __asm fistp i
|
||||
#define lua_number2integer(i,n) lua_number2int(i, n)
|
||||
|
||||
/* the next trick should work on any Pentium, but sometimes clashes
|
||||
with a DirectX idiosyncrasy */
|
||||
#else
|
||||
|
||||
union luai_Cast { double l_d; long l_l; };
|
||||
#define lua_number2int(i,d) \
|
||||
{ volatile union luai_Cast u; u.l_d = (d) + 6755399441055744.0; (i) = u.l_l; }
|
||||
#define lua_number2integer(i,n) lua_number2int(i, n)
|
||||
|
||||
#endif
|
||||
|
||||
|
||||
/* this option always works, but may be slow */
|
||||
#else
|
||||
#define lua_number2int(i,d) ((i)=(int)(d))
|
||||
#define lua_number2integer(i,d) ((i)=(lua_Integer)(d))
|
||||
|
||||
#endif
|
||||
|
||||
/* }================================================================== */
|
||||
|
||||
|
||||
/*
|
||||
@@ LUAI_USER_ALIGNMENT_T is a type that requires maximum alignment.
|
||||
** CHANGE it if your system requires alignments larger than double. (For
|
||||
** instance, if your system supports long doubles and they must be
|
||||
** aligned in 16-byte boundaries, then you should add long double in the
|
||||
** union.) Probably you do not need to change this.
|
||||
*/
|
||||
#define LUAI_USER_ALIGNMENT_T union { double u; void *s; long l; }
|
||||
|
||||
|
||||
/*
|
||||
@@ LUAI_THROW/LUAI_TRY define how Lua does exception handling.
|
||||
** CHANGE them if you prefer to use longjmp/setjmp even with C++
|
||||
** or if want/don't to use _longjmp/_setjmp instead of regular
|
||||
** longjmp/setjmp. By default, Lua handles errors with exceptions when
|
||||
** compiling as C++ code, with _longjmp/_setjmp when asked to use them,
|
||||
** and with longjmp/setjmp otherwise.
|
||||
*/
|
||||
#if defined(__cplusplus)
|
||||
/* C++ exceptions */
|
||||
#define LUAI_THROW(L,c) throw(c)
|
||||
#define LUAI_TRY(L,c,a) try { a } catch(...) \
|
||||
{ if ((c)->status == 0) (c)->status = -1; }
|
||||
#define luai_jmpbuf int /* dummy variable */
|
||||
|
||||
#elif defined(LUA_USE_ULONGJMP)
|
||||
/* in Unix, try _longjmp/_setjmp (more efficient) */
|
||||
#define LUAI_THROW(L,c) _longjmp((c)->b, 1)
|
||||
#define LUAI_TRY(L,c,a) if (_setjmp((c)->b) == 0) { a }
|
||||
#define luai_jmpbuf jmp_buf
|
||||
|
||||
#else
|
||||
/* default handling with long jumps */
|
||||
#define LUAI_THROW(L,c) longjmp((c)->b, 1)
|
||||
#define LUAI_TRY(L,c,a) if (setjmp((c)->b) == 0) { a }
|
||||
#define luai_jmpbuf jmp_buf
|
||||
|
||||
#endif
|
||||
|
||||
|
||||
/*
|
||||
@@ LUA_MAXCAPTURES is the maximum number of captures that a pattern
|
||||
@* can do during pattern-matching.
|
||||
** CHANGE it if you need more captures. This limit is arbitrary.
|
||||
*/
|
||||
#define LUA_MAXCAPTURES 32
|
||||
|
||||
|
||||
/*
|
||||
@@ lua_tmpnam is the function that the OS library uses to create a
|
||||
@* temporary name.
|
||||
@@ LUA_TMPNAMBUFSIZE is the maximum size of a name created by lua_tmpnam.
|
||||
** CHANGE them if you have an alternative to tmpnam (which is considered
|
||||
** insecure) or if you want the original tmpnam anyway. By default, Lua
|
||||
** uses tmpnam except when POSIX is available, where it uses mkstemp.
|
||||
*/
|
||||
#if defined(loslib_c) || defined(luaall_c)
|
||||
|
||||
#if defined(LUA_USE_MKSTEMP)
|
||||
#include <unistd.h>
|
||||
#define LUA_TMPNAMBUFSIZE 32
|
||||
#define lua_tmpnam(b,e) { \
|
||||
strcpy(b, "/tmp/lua_XXXXXX"); \
|
||||
e = mkstemp(b); \
|
||||
if (e != -1) close(e); \
|
||||
e = (e == -1); }
|
||||
|
||||
#else
|
||||
#define LUA_TMPNAMBUFSIZE L_tmpnam
|
||||
#define lua_tmpnam(b,e) { e = (tmpnam(b) == NULL); }
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
||||
|
||||
/*
|
||||
@@ lua_popen spawns a new process connected to the current one through
|
||||
@* the file streams.
|
||||
** CHANGE it if you have a way to implement it in your system.
|
||||
*/
|
||||
#if defined(LUA_USE_POPEN)
|
||||
|
||||
#define lua_popen(L,c,m) ((void)L, popen(c,m))
|
||||
#define lua_pclose(L,file) ((void)L, (pclose(file) != -1))
|
||||
|
||||
#elif defined(LUA_WIN)
|
||||
|
||||
#define lua_popen(L,c,m) ((void)L, _popen(c,m))
|
||||
#define lua_pclose(L,file) ((void)L, (_pclose(file) != -1))
|
||||
|
||||
#else
|
||||
|
||||
#define lua_popen(L,c,m) ((void)((void)c, m), \
|
||||
luaL_error(L, LUA_QL("popen") " not supported"), (FILE*)0)
|
||||
#define lua_pclose(L,file) ((void)((void)L, file), 0)
|
||||
|
||||
#endif
|
||||
|
||||
/*
|
||||
@@ LUA_DL_* define which dynamic-library system Lua should use.
|
||||
** CHANGE here if Lua has problems choosing the appropriate
|
||||
** dynamic-library system for your platform (either Windows' DLL, Mac's
|
||||
** dyld, or Unix's dlopen). If your system is some kind of Unix, there
|
||||
** is a good chance that it has dlopen, so LUA_DL_DLOPEN will work for
|
||||
** it. To use dlopen you also need to adapt the src/Makefile (probably
|
||||
** adding -ldl to the linker options), so Lua does not select it
|
||||
** automatically. (When you change the makefile to add -ldl, you must
|
||||
** also add -DLUA_USE_DLOPEN.)
|
||||
** If you do not want any kind of dynamic library, undefine all these
|
||||
** options.
|
||||
** By default, _WIN32 gets LUA_DL_DLL and MAC OS X gets LUA_DL_DYLD.
|
||||
*/
|
||||
#if defined(LUA_USE_DLOPEN)
|
||||
#define LUA_DL_DLOPEN
|
||||
#endif
|
||||
|
||||
#if defined(LUA_WIN)
|
||||
#define LUA_DL_DLL
|
||||
#endif
|
||||
|
||||
|
||||
/*
|
||||
@@ LUAI_EXTRASPACE allows you to add user-specific data in a lua_State
|
||||
@* (the data goes just *before* the lua_State pointer).
|
||||
** CHANGE (define) this if you really need that. This value must be
|
||||
** a multiple of the maximum alignment required for your machine.
|
||||
*/
|
||||
#define LUAI_EXTRASPACE 0
|
||||
|
||||
|
||||
/*
|
||||
@@ luai_userstate* allow user-specific actions on threads.
|
||||
** CHANGE them if you defined LUAI_EXTRASPACE and need to do something
|
||||
** extra when a thread is created/deleted/resumed/yielded.
|
||||
*/
|
||||
#define luai_userstateopen(L) ((void)L)
|
||||
#define luai_userstateclose(L) ((void)L)
|
||||
#define luai_userstatethread(L,L1) ((void)L)
|
||||
#define luai_userstatefree(L) ((void)L)
|
||||
#define luai_userstateresume(L,n) ((void)L)
|
||||
#define luai_userstateyield(L,n) ((void)L)
|
||||
|
||||
|
||||
/*
|
||||
@@ LUA_INTFRMLEN is the length modifier for integer conversions
|
||||
@* in 'string.format'.
|
||||
@@ LUA_INTFRM_T is the integer type correspoding to the previous length
|
||||
@* modifier.
|
||||
** CHANGE them if your system supports long long or does not support long.
|
||||
*/
|
||||
|
||||
#if defined(LUA_USELONGLONG)
|
||||
|
||||
#define LUA_INTFRMLEN "ll"
|
||||
#define LUA_INTFRM_T long long
|
||||
|
||||
#else
|
||||
|
||||
#define LUA_INTFRMLEN "l"
|
||||
#define LUA_INTFRM_T long
|
||||
|
||||
#endif
|
||||
|
||||
|
||||
|
||||
/* =================================================================== */
|
||||
|
||||
/*
|
||||
** Local configuration. You can use this space to add your redefinitions
|
||||
** without modifying the main part of the file.
|
||||
*/
|
||||
|
||||
|
||||
|
||||
#endif
|
||||
|
|
@ -1,53 +0,0 @@
|
|||
/*
|
||||
** $Id: lualib.h,v 1.3 2007-05-24 23:45:56 dirkpitt2050 Exp $
|
||||
** Lua standard libraries
|
||||
** See Copyright Notice in lua.h
|
||||
*/
|
||||
|
||||
|
||||
#ifndef lualib_h
|
||||
#define lualib_h
|
||||
|
||||
#include "lua.h"
|
||||
|
||||
|
||||
/* Key to file-handle type */
|
||||
#define LUA_FILEHANDLE "FILE*"
|
||||
|
||||
|
||||
#define LUA_COLIBNAME "coroutine"
|
||||
LUALIB_API int (luaopen_base) (lua_State *L);
|
||||
|
||||
#define LUA_TABLIBNAME "table"
|
||||
LUALIB_API int (luaopen_table) (lua_State *L);
|
||||
|
||||
#define LUA_IOLIBNAME "io"
|
||||
LUALIB_API int (luaopen_io) (lua_State *L);
|
||||
|
||||
#define LUA_OSLIBNAME "os"
|
||||
LUALIB_API int (luaopen_os) (lua_State *L);
|
||||
|
||||
#define LUA_STRLIBNAME "string"
|
||||
LUALIB_API int (luaopen_string) (lua_State *L);
|
||||
|
||||
#define LUA_MATHLIBNAME "math"
|
||||
LUALIB_API int (luaopen_math) (lua_State *L);
|
||||
|
||||
#define LUA_DBLIBNAME "debug"
|
||||
LUALIB_API int (luaopen_debug) (lua_State *L);
|
||||
|
||||
#define LUA_LOADLIBNAME "package"
|
||||
LUALIB_API int (luaopen_package) (lua_State *L);
|
||||
|
||||
|
||||
/* open all previous libraries */
|
||||
LUALIB_API void (luaL_openlibs) (lua_State *L);
|
||||
|
||||
|
||||
|
||||
#ifndef lua_assert
|
||||
#define lua_assert(x) ((void)0)
|
||||
#endif
|
||||
|
||||
|
||||
#endif
|
3666
macosx/png.h
3666
macosx/png.h
File diff suppressed because it is too large
Load Diff
1489
macosx/pngconf.h
1489
macosx/pngconf.h
File diff suppressed because it is too large
Load Diff
|
@ -49,11 +49,7 @@ extern "C" {
|
|||
#endif // JPEG_SUPPORT
|
||||
|
||||
#ifdef PNG_SUPPORT // PNG_SUPPORT
|
||||
#ifdef TARGET_OS_MAC
|
||||
#include "../../macosx/png.h"
|
||||
#else
|
||||
#include "png.h"
|
||||
#endif // TARGET_OS_MAC
|
||||
|
||||
#include <celutil/debug.h>
|
||||
#include <celutil/util.h>
|
||||
|
|
|
@ -66,12 +66,8 @@ extern "C" {
|
|||
|
||||
#endif // JPEG_SUPPORT
|
||||
|
||||
#ifdef PNG_SUPPORT // PNG_SUPPORT
|
||||
#ifdef TARGET_OS_MAC
|
||||
#include "../../macosx/png.h"
|
||||
#else
|
||||
#ifdef PNG_SUPPORT
|
||||
#include "png.h"
|
||||
#endif // TARGET_OS_MAC
|
||||
|
||||
// Define png_jmpbuf() in case we are using a pre-1.0.6 version of libpng
|
||||
#ifndef png_jmpbuf
|
||||
|
|
|
@ -15,6 +15,7 @@
|
|||
#include "ray.h"
|
||||
#include "sphere.h"
|
||||
#include "ellipsoid.h"
|
||||
#include "mathlib.h"
|
||||
|
||||
|
||||
template<class T> bool testIntersection(const Ray3<T>& ray,
|
||||
|
|
Loading…
Reference in New Issue