Indentation fix in main()

This commit is contained in:
Gergely Polonkai 2013-07-26 17:06:43 +02:00
parent 8a211282b0
commit b4440ab70f

View File

@ -345,45 +345,64 @@ main(int argc, char *argv[])
printf("House %2d..: %2.0f (%f)\n", p, ceilf(cusps[p] / 30.0), cusps[p]); printf("House %2d..: %2.0f (%f)\n", p, ceilf(cusps[p] / 30.0), cusps[p]);
} }
get_moon_phase(year, month, day, hour, min, sec); sign = get_sign(ascmc[0]);
printf("Asc.......: %.0f\n", ceilf(ascmc[0] / 30.0)); ascTypePair = signType[sign];
printf("MC........: %.0f\n", ceilf(ascmc[1] / 30.0));
pos = get_planet_position(SE_SUN, te); printf("Asc.......: %s\n", signName[sign]);
printf("Sun.......: %2.0f (%f)\n", ceilf(pos / 30.0), pos);
pos = get_planet_position(SE_MOON, te); sign = get_sign(ascmc[1]);
printf("Moon......: %2.0f (%f)\n", ceilf(pos / 30.0), pos); printf("MC........: %s\n", signName[sign]);
pos = get_planet_position(SE_MERCURY, te); planetInfo = get_planet_info(SE_SUN, te, cusps);
printf("Mercury...: %2.0f (%f)\n", ceilf(pos / 30.0), pos); printf("Sun.......: %s, House: %d (%f)\n", signName[planetInfo->sign], planetInfo->house, planetInfo->position);
g_free(planetInfo);
pos = get_planet_position(SE_VENUS, te); planetInfo = get_planet_info(SE_MOON, te, cusps);
printf("Venus.....: %2.0f (%f)\n", ceilf(pos / 30.0), pos); phase = get_moon_phase(year, month, day, hour, min, sec);
printf("Moon......: %s (%.2f%% visibility), %s, House: %d (%f)\n", moonStateName[phase->phase], phase->visiblePercentage, signName[planetInfo->sign], planetInfo->house, planetInfo->position);
g_free(phase);
g_free(planetInfo);
pos = get_planet_position(SE_MARS, te); planetInfo = get_planet_info(SE_MERCURY, te, cusps);
printf("Mars......: %2.0f (%f)\n", ceilf(pos / 30.0), pos); printf("Mercury...: %s, House: %d (%f)\n", signName[planetInfo->sign], planetInfo->house, planetInfo->position);
g_free (planetInfo);
pos = get_planet_position(SE_JUPITER, te); planetInfo = get_planet_info (SE_VENUS, te, cusps);
printf("Jupiter...: %2.0f (%f)\n", ceilf(pos / 30.0), pos); printf("Venus.....: %s, House: %d (%f)\n", signName[planetInfo->sign], planetInfo->house, planetInfo->position);
g_free (planetInfo);
pos = get_planet_position(SE_SATURN, te); planetInfo = get_planet_info(SE_MARS, te, cusps);
printf("Saturn....: %2.0f (%f)\n", ceilf(pos / 30.0), pos); printf("Mars......: %s, House: %d (%f)\n", signName[planetInfo->sign], planetInfo->house, planetInfo->position);
g_free (planetInfo);
pos = get_planet_position(SE_URANUS, te); planetInfo = get_planet_info(SE_JUPITER, te, cusps);
printf("Uranus....: %2.0f (%f)\n", ceilf(pos / 30.0), pos); printf("Jupiter...: %s, House: %d (%f)\n", signName[planetInfo->sign], planetInfo->house, planetInfo->position);
g_free (planetInfo);
pos = get_planet_position(SE_NEPTUNE, te); planetInfo = get_planet_info(SE_SATURN, te, cusps);
printf("Neptune...: %2.0f (%f)\n", ceilf(pos / 30.0), pos); printf("Saturn....: %s, House: %d (%f)\n", signName[planetInfo->sign], planetInfo->house, planetInfo->position);
g_free (planetInfo);
pos = get_planet_position(SE_PLUTO, te); planetInfo = get_planet_info(SE_URANUS, te, cusps);
printf("Pluto.....: %2.0f (%f)\n", ceilf(pos / 30.0), pos); printf("Uranus....: %s, House: %d (%f)\n", signName[planetInfo->sign], planetInfo->house, planetInfo->position);
g_free (planetInfo);
pos = get_planet_position(SE_CHIRON, te); planetInfo = get_planet_info(SE_NEPTUNE, te, cusps);
printf("Chiron....: %2.0f (%f)\n", ceilf(pos / 30.0), pos); printf("Neptune...: %s, House: %d (%f)\n", signName[planetInfo->sign], planetInfo->house, planetInfo->position);
g_free (planetInfo);
planetInfo = get_planet_info(SE_PLUTO, te, cusps);
printf("Pluto.....: %s, House: %d (%f)\n", signName[planetInfo->sign], planetInfo->house, planetInfo->position);
g_free (planetInfo);
planetInfo = get_planet_info(SE_CHIRON, te, cusps);
printf("Chiron....: %s, House: %d (%f)\n", signName[planetInfo->sign], planetInfo->house, planetInfo->position);
g_free (planetInfo);
planetInfo = get_planet_info(SE_MEAN_NODE, te, cusps);
printf("North Node: %s, House: %d (%f)\n", signName[planetInfo->sign], planetInfo->house, planetInfo->position);
g_free (planetInfo);
pos = get_planet_position(SE_MEAN_NODE, te);
printf("North Node: %2.0f (%f)\n", ceilf(pos / 30.0), pos);
return OK; return OK;
} }