Removed unneeded structs from executable code

This commit is contained in:
Gergely Polonkai 2013-09-03 11:35:37 +02:00
parent a7368d92c5
commit 1966d1f503
2 changed files with 0 additions and 64 deletions

View File

@ -7,12 +7,6 @@
#define EPHEDIR "/home/polesz/Projektek/c/astrognome/swe/data" #define EPHEDIR "/home/polesz/Projektek/c/astrognome/swe/data"
typedef struct {
int signId;
signElement_t element;
signType_t type;
} signData_t;
typedef struct { typedef struct {
int planetId; int planetId;
gchar *name; gchar *name;
@ -25,21 +19,6 @@ typedef struct {
fall; fall;
} planetData_t; } planetData_t;
const char *signTypeName[] = {
NULL,
"Cardinal",
"Fix",
"Mutable"
};
const char *signElementName[] = {
NULL,
"Fire",
"Earth",
"Air",
"Water"
};
const char *moonStateName[] = { const char *moonStateName[] = {
"New Moon", "New Moon",
"Waxing Crescent Moon", "Waxing Crescent Moon",
@ -52,22 +31,6 @@ const char *moonStateName[] = {
"Dark Moon" "Dark Moon"
}; };
const char *signName[] = {
NULL,
"Aries",
"Taurus",
"Gemini",
"Cancer",
"Leo",
"Virgo",
"Libra",
"Scorpio",
"Sagittarius",
"Capricorn",
"Aquarius",
"Pisces"
};
typedef struct { typedef struct {
gchar *name; gchar *name;
guint size; guint size;
@ -104,12 +67,6 @@ const mirrorpointData_t mirrorpointData[] = {
{ "mid Leo/Aquarius", SIGN_LEO, TRUE }, { "mid Leo/Aquarius", SIGN_LEO, TRUE },
}; };
#define ADD_SIGN(ht, v, s, e, t) (v) = g_new0(signData_t, 1); \
(v)->signId = (s); \
(v)->element = (e); \
(v)->type = (t); \
g_hash_table_replace((ht), GINT_TO_POINTER(s), (v));
#define ADD_PLANET(ht, v, i, n, o, dom1, dom2, exi1, exi2, exa, fal) (v) = g_new0(planetData_t, 1); \ #define ADD_PLANET(ht, v, i, n, o, dom1, dom2, exi1, exi2, exa, fal) (v) = g_new0(planetData_t, 1); \
(v)->planetId = (i); \ (v)->planetId = (i); \
(v)->name = g_strdup(n); \ (v)->name = g_strdup(n); \
@ -364,7 +321,6 @@ main(int argc, char *argv[])
ADD_PLANET(planetDataTable, planetData, SE_NPLANETS + SE_MC, "Midheaven", 5.0, SIGN_NONE, SIGN_NONE, SIGN_NONE, SIGN_NONE, SIGN_NONE, SIGN_NONE); ADD_PLANET(planetDataTable, planetData, SE_NPLANETS + SE_MC, "Midheaven", 5.0, SIGN_NONE, SIGN_NONE, SIGN_NONE, SIGN_NONE, SIGN_NONE, SIGN_NONE);
ADD_PLANET(planetDataTable, planetData, SE_NPLANETS + SE_VERTEX, "Vertex", 2.0, SIGN_NONE, SIGN_NONE, SIGN_NONE, SIGN_NONE, SIGN_NONE, SIGN_NONE); ADD_PLANET(planetDataTable, planetData, SE_NPLANETS + SE_VERTEX, "Vertex", 2.0, SIGN_NONE, SIGN_NONE, SIGN_NONE, SIGN_NONE, SIGN_NONE, SIGN_NONE);
swe_set_ephe_path(EPHEDIR);
gswe_init(EPHEDIR); gswe_init(EPHEDIR);
timestamp = gswe_timestamp_new_from_gregorian_full(year, month, day, hour, min, sec, 0, 1.0); timestamp = gswe_timestamp_new_from_gregorian_full(year, month, day, hour, min, sec, 0, 1.0);

View File

@ -1,8 +1,5 @@
#include "../swe/src/swephexp.h" #include "../swe/src/swephexp.h"
#define SYNODIC 29.53058867
#define MSPERDAY 86400000
typedef enum { typedef enum {
SIGN_NONE, SIGN_NONE,
SIGN_ARIES, SIGN_ARIES,
@ -42,23 +39,6 @@ typedef struct {
int fallingPlanet; int fallingPlanet;
} signTypePair_t; } signTypePair_t;
typedef enum {
MOON_STATE_NEW,
MOON_STATE_WAXING_CRESCENT,
MOON_STATE_WAXING_HALF,
MOON_STATE_WAXING_GIBBOUS,
MOON_STATE_FULL,
MOON_STATE_WANING_GIBBOUS,
MOON_STATE_WANING_HALF,
MOON_STATE_WANING_CRESCENT,
MOON_STATE_DARK
} moonState;
typedef struct {
moonState phase;
double visiblePercentage;
} moonPhase;
typedef struct { typedef struct {
double position; double position;
zodiacSign sign; zodiacSign sign;