lib/Astro/Nova.xs

filter: Statementstmt 0.0% 0 / 3 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub n/a Podpod n/a totaltotal 0.0% 0 / 3 CC 0 SCAR 0
CC
0
Cov
0%
CRAP 0
« XS/Venus.xs ↑ Summary XS/Structs.xs »
1 #include "EXTERN.h"
2 #include "perl.h"
3 #include "XSUB.h"
4  
5 #include "ppport.h"
6 /* cargo-cult fix for clashes */
7 #undef do_open
8 #undef do_close
9  
10  
11 #include <libnova/aberration.h>
12 #include <libnova/airmass.h>
13 #include <libnova/angular_separation.h>
14 #include <libnova/apparent_position.h>
15 #include <libnova/asteroid.h>
16 #include <libnova/comet.h>
17 #include <libnova/dynamical_time.h>
18 #include <libnova/earth.h>
19 #include <libnova/elliptic_motion.h>
20 #include <libnova/heliocentric_time.h>
21 #include <libnova/hyperbolic_motion.h>
22 #include <libnova/julian_day.h>
23 #include <libnova/jupiter.h>
24 #include <libnova/libnova.h>
25 #include <libnova/ln_types.h>
26 #include <libnova/lunar.h>
27 #include <libnova/mars.h>
28 #include <libnova/mercury.h>
29 #include <libnova/neptune.h>
30 #include <libnova/nutation.h>
31 #include <libnova/parabolic_motion.h>
32 #include <libnova/parallax.h>
33 #include <libnova/pluto.h>
34 #include <libnova/precession.h>
35 #include <libnova/proper_motion.h>
36 #include <libnova/refraction.h>
37 #include <libnova/rise_set.h>
38 #include <libnova/saturn.h>
39 #include <libnova/sidereal_time.h>
40 #include <libnova/solar.h>
41 #include <libnova/transform.h>
42 #include <libnova/uranus.h>
43 #include <libnova/utility.h>
44 #include <libnova/venus.h>
45 #include <libnova/vsop87.h>
46  
47 #include <time.h>
48  
49 MODULE = Astro::Nova PACKAGE = Astro::Nova PREFIX=ln_
50  
51 TYPEMAP: <<HERE
52 struct ln_date* O_OBJECT
53 struct ln_dms* O_OBJECT
54 struct ln_ell_orbit* O_OBJECT
55 struct ln_equ_posn* O_OBJECT
56 struct ln_gal_posn* O_OBJECT
57 struct ln_helio_posn* O_OBJECT
58 struct ln_hms* O_OBJECT
59 struct ln_hrz_posn* O_OBJECT
60 struct ln_hyp_orbit* O_OBJECT
61 struct ln_lnlat_posn* O_OBJECT
62 struct ln_nutation* O_OBJECT
63 struct ln_par_orbit* O_OBJECT
64 struct ln_rect_posn* O_OBJECT
65 struct ln_rst_time* O_OBJECT
66 struct ln_zonedate* O_OBJECT
67 struct lnh_equ_posn* O_OBJECT
68 struct lnh_hrz_posn* O_OBJECT
69 struct lnh_lnlat_posn* O_OBJECT
70  
71 time_t T_IV
72  
73 OUTPUT
74  
75 # The Perl object is blessed into 'CLASS', which should be a
76 # char* having the name of the package for the blessing.
77 O_OBJECT
78 sv_setref_pv( $arg, CLASS, (void*)$var );
79  
80 INPUT
81  
82 O_OBJECT
83 if( sv_isobject($arg) && (SvTYPE(SvRV($arg)) == SVt_PVMG) )
84 $var = ($type)SvIV((SV*)SvRV( $arg ));
85 else{
86 warn( \"${Package}::$func_name() -- $var is not a blessed SV reference\" );
87 XSRETURN_UNDEF;
88 }
89 HERE
90  
91  
92 INCLUDE: ../../XS/Structs.xs
93  
94 INCLUDE: ../../XS/Abberation.xs
95  
96 #### airmass.h
97 double
98 ln_get_airmass(alt, airmass_scale)
99 double alt
100 double airmass_scale
101  
102 double ln_get_alt_from_airmass(double X, double airmass_scale)
103  
104  
105 INCLUDE: ../../XS/AngularSeparation.xs
106  
107 INCLUDE: ../../XS/ApparentPosition.xs
108  
109 INCLUDE: ../../XS/Asteroid.xs
110  
111 INCLUDE: ../../XS/Comet.xs
112  
113 INCLUDE: ../../XS/DynamicalTime.xs
114  
115 INCLUDE: ../../XS/Earth.xs
116  
117 INCLUDE: ../../XS/EllipticMotion.xs
118  
119 #### heliocentric_time.h
120 double
121 ln_get_heliocentric_time_diff(double JD, struct ln_equ_posn* object)
122  
123 INCLUDE: ../../XS/HyperbolicMotion.xs
124  
125 INCLUDE: ../../XS/JulianDay.xs
126  
127 INCLUDE: ../../XS/Jupiter.xs
128  
129 INCLUDE: ../../XS/Lunar.xs
130  
131 #### Note: Mars, Mercury, Neptune, Pluto are really the same (apart from s/mars/mercury/g). Jupiter is only slightly different
132  
133 INCLUDE: ../../XS/Mars.xs
134  
135 INCLUDE: ../../XS/Mercury.xs
136  
137 INCLUDE: ../../XS/Neptune.xs
138  
139 #### nutation.h
140 struct ln_nutation*
141 ln_get_nutation(double JD)
142 INIT:
143 0 const char* CLASS = "Astro::Nova::Nutation";
144 CODE:
145 0 Newx(RETVAL, 1, struct ln_nutation);
146 0 ln_get_nutation(JD, RETVAL);
147 OUTPUT:
148 RETVAL
149  
150 INCLUDE: ../../XS/ParabolicMotion.xs
151  
152 INCLUDE: ../../XS/Parallax.xs
153  
154 INCLUDE: ../../XS/Pluto.xs
155  
156 INCLUDE: ../../XS/Precession.xs
157  
158 INCLUDE: ../../XS/ProperMotion.xs
159  
160 #### refraction.h
161 double
162 ln_get_refraction_adj(double altitude, double atm_pres, double temp)
163  
164 INCLUDE: ../../XS/RiseSet.xs
165  
166 INCLUDE: ../../XS/Saturn.xs
167  
168 INCLUDE: ../../XS/Sidereal.xs
169  
170 INCLUDE: ../../XS/Solar.xs
171  
172 INCLUDE: ../../XS/Transform.xs
173  
174 INCLUDE: ../../XS/Uranus.xs
175  
176 INCLUDE: ../../XS/Utility.xs
177  
178 INCLUDE: ../../XS/Venus.xs
179  
180  
« XS/Venus.xs ↑ Summary XS/Structs.xs »