1 #if !defined( PAL2AST_INCLUDED ) /* Include this file only once */ 2 #define PAL2AST_INCLUDED 3 /* 4 * Name: 5 * pal2ast.h 6 7 * Type: 8 * C include file. 9 10 * Purpose: 11 * Defines new names for symbols exported by the PAL library. 12 13 * Invocation: 14 * #include "pal2ast.h" 15 16 * Description: 17 * This include file defines a new name for each public function 18 * defined by the pal library. The names defined by PAL itself are 19 * of the form "palXxx" (e.g. palPvobs) - this include file defines 20 * a macro that translates each such name to the form "astPalXxx" 21 * (e.g. astPalPvobs). This is done so that the names do not clash 22 * with any external PAL library with which the application is linked. 23 * 24 * It should be included at the start of any AST source file that refers 25 * to PAL functions using the standard names (e.g. palPvobs). 26 27 * Copyright: 28 * Copyright (C) 2012 Science & Technology Facilities Council. 29 * All Rights Reserved. 30 31 * Licence: 32 * This program is free software: you can redistribute it and/or 33 * modify it under the terms of the GNU Lesser General Public 34 * License as published by the Free Software Foundation, either 35 * version 3 of the License, or (at your option) any later 36 * version. 37 * 38 * This program is distributed in the hope that it will be useful, 39 * but WITHOUT ANY WARRANTY; without even the implied warranty of 40 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 41 * GNU Lesser General Public License for more details. 42 * 43 * You should have received a copy of the GNU Lesser General 44 * License along with this program. If not, see 45 * <http://www.gnu.org/licenses/>. 46 47 * Authors: 48 * DSB: D.S. Berry (Starlink) 49 50 * History: 51 * 16-FEB-2012 (DSB): 52 * Original version. 53 */ 54 55 /* Rename all PAL functions */ 56 #define palAddet astPalAddet 57 #define palAmpqk astPalAmpqk 58 #define palCaldj astPalCaldj 59 #define palDat astPalDat 60 #define palDe2h astPalDe2h 61 #define palDeuler astPalDeuler 62 #define palDh2e astPalDh2e 63 #define palDjcal astPalDjcal 64 #define palDmat astPalDmat 65 #define palDs2tp astPalDs2tp 66 #define palDtp2s astPalDtp2s 67 #define palDtps2c astPalDtps2c 68 #define palDtt astPalDtt 69 #define palEcmat astPalEcmat 70 #define palEqgal astPalEqgal 71 #define palEtrms astPalEtrms 72 #define palEvp astPalEvp 73 #define palFk45z astPalFk45z 74 #define palFk524 astPalFk524 75 #define palFk54z astPalFk54z 76 #define palGaleq astPalGaleq 77 #define palGalsup astPalGalsup 78 #define palMappa astPalMappa 79 #define palMapqkz astPalMapqkz 80 #define palPrebn astPalPrebn 81 #define palPrec astPalPrec 82 #define palPrenut astPalPrenut 83 #define palPvobs astPalPvobs 84 #define palRvgalc astPalRvgalc 85 #define palRvlg astPalRvlg 86 #define palRvlsrd astPalRvlsrd 87 #define palRvlsrk astPalRvlsrk 88 #define palSubet astPalSubet 89 #define palSupgal astPalSupgal 90 #define palCldj astPalCldj 91 #define palDaf2r astPalDaf2r 92 #define palDav2m astPalDav2m 93 #define palDbear astPalDbear 94 #define palDcc2s astPalDcc2s 95 #define palDcs2c astPalDcs2c 96 #define palDd2tf astPalDd2tf 97 #define palDimxv astPalDimxv 98 #define palDjcl astPalDjcl 99 #define palDm2av astPalDm2av 100 #define palDmxm astPalDmxm 101 #define palDmxv astPalDmxv 102 #define palDpav astPalDpav 103 #define palDrange astPalDrange 104 #define palDranrm astPalDranrm 105 #define palDsep astPalDsep 106 #define palDsepv astPalDsepv 107 #define palDtf2d astPalDtf2d 108 #define palDtf2r astPalDtf2r 109 #define palDvdv astPalDvdv 110 #define palDvn astPalDvn 111 #define palDvxv astPalDvxv 112 #define palEpb astPalEpb 113 #define palEpb2d astPalEpb2d 114 #define palEpj astPalEpj 115 #define palEpj2d astPalEpj2d 116 #define palEqeqx astPalEqeqx 117 #define palFk5hz astPalFk5hz 118 #define palGeoc astPalGeoc 119 #define palGmst astPalGmst 120 #define palHfk5z astPalHfk5z 121 122 /* Rename all PAL global variables */ 123 #define PAL__DPI AST__PALDPI 124 #define PAL__D2PI AST__PALD2PI 125 #define PAL__DD2R AST__PALDD2R 126 #define PAL__DR2AS AST__PALDR2AS 127 #define PAL__DAS2R AST__PALDAS2R 128 #define PAL__MJD0 AST__PALMJD0 129 #define PAL__CR AST__PALCR 130 #define PAL__VF AST__PALVF 131 #define PAL__SR AST__PALSR 132 133 134 #endif 135