Skip to content

Commit

Permalink
Upload all version 7.30 files
Browse files Browse the repository at this point in the history
  • Loading branch information
CruiserOne authored Sep 11, 2021
1 parent 7428570 commit 66fa543
Show file tree
Hide file tree
Showing 56 changed files with 7,632 additions and 5,063 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Astrolog (Version 7.20) File: Makefile (Unix version)
# Astrolog (Version 7.30) File: Makefile (Unix version)
#
# IMPORTANT NOTICE: Astrolog and all chart display routines and anything
# not enumerated elsewhere in this program are Copyright (C) 1991-2020 by
Expand Down
20 changes: 13 additions & 7 deletions astrolog.as
Original file line number Diff line number Diff line change
@@ -1,16 +1,17 @@
@AD720 ; Astrolog 7.20 default settings file astrolog.as
@AD730 ; Astrolog 7.30 default settings file astrolog.as

-z 8:00W ; Default time zone [hours W or E of UTC ]
-z0 Autodetect ; Default Daylight time [0 standard, 1 daylight]
-zl 122W19:59 47N36:35 ; Default location [longitude and latitude]
-zv 167ft ; Default elevation [in feet or meters ]
-zj "Current moment now" "Seattle, WA, USA" ; Default name and location

;-n ; Comment out this line to not start with chart for "now".
-Yz 0 ; Time minute addition to be used if "now" charts are offset.
;-n ; Comment out this line to not start with chart for "now".

_s ; Zodiac selection ["_s" is tropical, "=s" is sidereal]
:s 0.0 ; Zodiac offset value [Change "0.0" to desired ayanamsa ]
:sz ; Zodiac display format ["z" is sign, "d" is 0-360 deg, etc]
-A 5 ; Number of aspects [Change "5" to desired number ]
-c Plac ; House system [Change "Plac" to desired system ]
_c3 ; 3D house boundaries ["=c3" is 3D houses, "_c3" is 2D ]
Expand All @@ -21,21 +22,24 @@ _b0 ; Print zodiac seconds ["_b0" to minute, "=b0" to second ]
:w 0 ; Wheel chart text rows [Change "0" to desired wheel rows ]
:I 80 ; Text screen columns [Change "80" to desired columns ]
-YQ 0 ; Text screen scroll limit [Change "24" or set to "0" for none]
_Yn ; Which Nodes and Lilith ["_Yn" shows mean, "=Yn" shows true]
_Yd ; European date format ["_Yd" is MDY, "=Yd" is DMY ]
_Yt ; European time format ["_Yt" is AM/PM, "=Yt" is 24 hour ]
_Yv ; European length units ["_Yv" is imperial, "=Yv" is metric]
_Yr ; Show rounded positions ["=Yr" rounds, "_Yr" doesn't ]
=YC ; Smart cusp displays ["=YC" is smart, "_YC" is normal ]
=YO ; Smart copy and printing ["=YO" does it smart, "_YO" doesn't]
=Y8 ; Clip text to end of line ["=Y8" clips, "_Y8" doesn't clip ]
-YP 0 ; Arabic part formula ["1" is fixed, "0" checks if night ]
=Yu0 ; Show eclipse information ["=Yu0" shows, "_Yu0" doesn't show ]
=0n ; Internet Web queries ["=0n" disables them, "_0n" allows ]
; FILE PATHS (-Yi1 through -Yi9):
; For example, point -Yi1 to ephemeris dir, -Yi2 to chart files dir, etc.
-Yi1 "C:\AST\EPH"
-Yi2 "C:\AST\DAT"
-Yi1 "C:\ASTROLOG\EPH"
-Yi2 "C:\ASTROLOG\DAT"
; DEFAULT RESTRICTIONS:
Expand All @@ -61,8 +65,8 @@ _Yr ; Show rounded positions ["=Yr" rounds, "_Yr" doesn't ]
-YRT 34 42 1 1 1 1 1 1 1 1 1 ; Uranians
-YRT 43 51 1 1 1 1 1 1 1 1 1 ; Dwarfs
-YR0 0 0 ; Restrict sign, direction changes
-YR1 1 1 ; Restrict latitude, distance events
-YR0 0 0 ; Restrict sign changes, direction changes
-YR1 1 1 ; Restrict latitude direction changes, distance direction changes
-YR7 0 1 1 0 1 ; Restrict rulerships: std, esoteric, hierarch, exalt, ray
Expand Down Expand Up @@ -163,13 +167,15 @@ _Xr ; Reverse background ["_Xr" is black, "=Xr" is white ]
:XS 100 ; Graphics text scale [100-400]
=XQ ; Square charts ["=XQ" forces square, "_XQ" allows rectangle]
=Xu ; Chart border ["=Xu" shows border, "_Xu" doesn't show ]
:Xv 1 ; Wheel fill ["0" for none, "1" for standard, "2" rainbow]
_Xx ; Thicker lines ["=Xx" is thicker, "_Xx" is thinner ]
:Xbw ; Bitmap file type ["Xbw" is Windows .bmp, "Xbn" is X11 ]
:YXG 1111 ; Glyph selections [Capricorn, Uranus, Pluto, Lilith]
:YXg 0 ; Aspect grid cells ["0" for autodetect ]
:YXS 0.0 ; Orbit radius in AU ["0.0" for autodetect]
:YXj 0 ; Orbit trail count
:YX7 600 ; Esoteric ray column influence width
:YXf 0000 ; Use system fonts [signs, houses, planets, aspects]
:YXf 00000 ; System fonts to use [text, signs, houses, planets, aspects]
:YXp 0 ; PostScript paper orientation ["-1" portrait, "1" landscape]
:YXp0 8.5in 11in ; PostScript paper X and Y sizes

Expand Down
92 changes: 72 additions & 20 deletions astrolog.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
** Astrolog (Version 7.20) File: astrolog.cpp
** Astrolog (Version 7.30) File: astrolog.cpp
**
** IMPORTANT NOTICE: Astrolog and all chart display routines and anything
** not enumerated below used in this program are Copyright (C) 1991-2021 by
Expand Down Expand Up @@ -48,7 +48,7 @@
** Initial programming 8/28-30/1991.
** X Window graphics initially programmed 10/23-29/1991.
** PostScript graphics initially programmed 11/29-30/1992.
** Last code change made 4/11/2021.
** Last code change made 9/10/2021.
*/

#include "astrolog.h"
Expand Down Expand Up @@ -547,15 +547,19 @@ int NProcessSwitchesRare(int argc, char **argv, int pos,

case 'z':
if (ch1 == '0' && fAnd) {
us.rDeltaT = rSmall;
us.rDeltaT = rInvalid;
break;
}
if (FErrorArgc("Yz", argc, 1))
return tcError;
if (ch1 != '0')
us.lTimeAddition = NFromSz(argv[1]);
else
if (ch1 == '0')
us.rDeltaT = RFromSz(argv[1]);
else if (ch1 == 'O')
us.rObjAddition = RFromSz(argv[1]);
else if (ch1 == 'C')
us.rCuspAddition = RFromSz(argv[1]);
else
us.lTimeAddition = NFromSz(argv[1]);
darg++;
break;

Expand Down Expand Up @@ -614,11 +618,11 @@ int NProcessSwitchesRare(int argc, char **argv, int pos,
if (FErrorValN("Ye", !FCust(i), i, 1))
return tcError;
i -= custLo;
j = (ch1 == 'b') + (ch1 == 'O')*2 + (ch1 == 'm')*3;
j = (ch1 == 'b') + (ch1 == 'O')*2 + (ch1 == 'm')*3 + (ch1 == 'j')*4;
if (j > 0)
ch1 = ch2;
k = (j == 2 ? NParseSz(argv[2], pmObject) : NFromSz(argv[2]));
if (FErrorValN("Ye", k < 0, k, 2))
if (FErrorValN("Ye", k <= 0 && j < 4, k, 2))
return tcError;
rgObjSwiss[i] = k;
rgTypSwiss[i] = j;
Expand All @@ -630,7 +634,7 @@ int NProcessSwitchesRare(int argc, char **argv, int pos,
else {
if (j == 3)
k = ObjMoons(k);
sprintf(szName, FItem(k) ? szObjName[k] : szObjUnknown);
sprintf(szName, "%s", FItem(k) ? szObjName[k] : szObjUnknown);
}
k = rgPntSwiss[i];
for (pch = szName; *pch; pch++)
Expand Down Expand Up @@ -779,7 +783,7 @@ int NProcessSwitchesRare(int argc, char **argv, int pos,
szAspectDisp[i] = SzPersist(argv[2]);
else
szAspectDisp[i] = szAspectName[i];
if (CchSz(argv[3]) != 3)
if (CchSz(argv[3]) == 3)
szAspectAbbrevDisp[i] = SzPersist(argv[3]);
else
szAspectAbbrevDisp[i] = szAspectAbbrev[i];
Expand Down Expand Up @@ -1154,7 +1158,7 @@ flag FProcessSwitches(int argc, char **argv)
break;

case 'M':
if (FBetween(ch1, '1', '4')) {
if (FBetween(ch1, '1', '0' + cRing)) {
i = (ch1 - '0') + (ch2 == '0');
if (FErrorArgc("M", argc, i))
return fFalse;
Expand Down Expand Up @@ -1189,6 +1193,8 @@ flag FProcessSwitches(int argc, char **argv)
case 'v':
if (ch1 == '0')
SwitchF(us.fVelocity);
else if (ch1 == '3')
SwitchF(us.fListDecan);
SwitchF(us.fListing);
break;

Expand Down Expand Up @@ -1222,9 +1228,9 @@ flag FProcessSwitches(int argc, char **argv)
argc--; argv++;
} else
gs.yWin = gs.xWin;
if (FErrorValN("geometry", !FValidGraphx(gs.xWin), gs.xWin, 1))
if (FErrorValN("geometry", !FValidGraphX(gs.xWin), gs.xWin, 1))
return fFalse;
if (FErrorValN("geometry", !FValidGraphy(gs.yWin), gs.yWin, 2))
if (FErrorValN("geometry", !FValidGraphY(gs.yWin), gs.yWin, 2))
return fFalse;
argc--; argv++;
break;
Expand Down Expand Up @@ -1317,9 +1323,15 @@ flag FProcessSwitches(int argc, char **argv)
SwitchF(us.fLatitudeCross);
if (argc > 1 && (i = NFromSz(argv[1]))) {
argc--; argv++;
if (FErrorValN("L", !FValidAstrograph(i), i, 0))
if (FErrorValN("L", !FValidAstrograph(i), i, 1))
return fFalse;
us.nAstroGraphStep = i;
if (argc > 1 && ((i = NFromSz(argv[1])) != 0 || FNumCh(argv[1][0]))) {
argc--; argv++;
if (FErrorValN("L0", !FValidAstrograph2(i), i, 2))
return fFalse;
us.nAstroGraphDist = i;
}
}
SwitchF(us.fAstroGraph);
break;
Expand Down Expand Up @@ -1443,7 +1455,7 @@ flag FProcessSwitches(int argc, char **argv)
SwitchF(us.fInfluence); SwitchF(us.fEsoteric); SwitchF(us.fAstroGraph);
SwitchF(us.fCalendar); SwitchF(us.fHorizonSearch);
SwitchF(us.fInDay); SwitchF(us.fInDayInf); SwitchF(us.fInDayGra);
SwitchF(us.fEphemeris); SwitchF(us.fMoonChart);
SwitchF(us.fEphemeris); SwitchF(us.nArabic); SwitchF(us.fMoonChart);
break;

case 't':
Expand Down Expand Up @@ -1843,6 +1855,12 @@ flag FProcessSwitches(int argc, char **argv)
} else if (ch2 == '4') {
ciFour = ciCore;
ciCore = ci;
} else if (ch2 == '5') {
ciFive = ciCore;
ciCore = ci;
} else if (ch2 == '6') {
ciHexa = ciCore;
ciCore = ci;
} else if (ch2 == 's') {
ciSave = ciCore;
ciCore = ci;
Expand Down Expand Up @@ -1878,12 +1896,19 @@ flag FProcessSwitches(int argc, char **argv)
} else if (ch1 == '4') {
ciFour = ciCore;
ciCore = ci;
} else if (ch1 == '5') {
ciFive = ciCore;
ciCore = ci;
} else if (ch1 == '6') {
ciHexa = ciCore;
ciCore = ci;
} else if (ch1 == 's') {
ciSave = ciCore;
ciCore = ci;
} else if (ch1 == 't') {
ciTran = ciCore;
ciCore = ci;
is.JDp = MdytszToJulian(MonT, DayT, YeaT, TimT, us.dstDef, us.zonDef);
} else if (ch1 == 'g') {
ciGreg = ciCore;
ciCore = ci;
Expand Down Expand Up @@ -2148,11 +2173,24 @@ flag FProcessSwitches(int argc, char **argv)
SwitchF(us.fPlacalcAst);
else if (ch1 == 'U')
SwitchF(us.fMatrixStar);
else if (ch1 == 'J')
us.nSwissEph = 3 * FSwitchF(us.nSwissEph == 3);
SwitchF(us.fEphemFiles);
break;

case 'c':
if (ch1 == '3') {
if (argc > 1 && ((i = NFromSz(argv[1])) != 0 || FNumCh(argv[1][0]))) {
if (FErrorValN("c3", !FValidMethod(i), i, 0))
return fFalse;
argc--; argv++;
if (i > 0)
us.nHouse3D = i;
else {
us.fHouse3D = fFalse;
break;
}
}
SwitchF(us.fHouse3D);
break;
}
Expand Down Expand Up @@ -2323,11 +2361,16 @@ flag FProcessSwitches(int argc, char **argv)
break;

case 'F':
if (FErrorArgc("F", argc, 3))
if (FErrorArgc("F", argc, !fAnd ? 3 : 1))
return fFalse;
i = NParseSz(argv[1], pmObject);
if (FErrorValN("F", !FItem(i), i, 1))
return fFalse;
if (fAnd) {
force[i] = 0.0;
argc--; argv++;
break;
}
if (ch1 != 'm') {
force[i] = ZD(NParseSz(argv[2], pmSign), RFromSz(argv[3]));
if (FErrorValR("F", force[i] < 0.0 || force[i] >= rDegMax,
Expand Down Expand Up @@ -2373,7 +2416,7 @@ flag FProcessSwitches(int argc, char **argv)
if (fAnd) {
us.nRel = rcNone;
break;
} else if (FBetween(ch1, '1', '4')) {
} else if (FBetween(ch1, '1', '0' + cRing)) {
us.nRel = -(int)(ch1-'1');
break;
}
Expand Down Expand Up @@ -2483,12 +2526,15 @@ flag FProcessSwitches(int argc, char **argv)
#endif // GRAPH

case '0':
if (fAnd) // _0 should do nothing.
break;
while (ch1 != chNull) {
switch (ch1) {
case 'o': us.fNoWrite = fTrue; break;
case 'i': us.fNoRead = fTrue; break;
case 'q': us.fNoQuit = fTrue; break;
case 'X': us.fNoGraphics = fTrue; break;
case 'n': us.fNoNetwork = fTrue; break;
case '~': us.fNoExp = fTrue; break;
}
ch1 = argv[0][++ich];
Expand Down Expand Up @@ -2548,6 +2594,8 @@ flag FProcessSwitches(int argc, char **argv)
ppch = &us.szExpColObj;
else if (ch1 == 'k' && ch2 == 'A')
ppch = &us.szExpColAsp;
else if (ch1 == 'k' && ch2 == 'v')
ppch = &us.szExpColFill;
else if (ch1 == 'F' && ch2 == chNull)
ppch = &us.szExpFontSig;
else if (ch1 == 'F' && ch2 == 'C')
Expand All @@ -2557,9 +2605,11 @@ flag FProcessSwitches(int argc, char **argv)
else if (ch1 == 'F' && ch2 == 'A')
ppch = &us.szExpFontAsp;
else if (ch1 == 'v')
ppch = &us.szExpSort;
ppch = (ch2 != '3' ? &us.szExpSort : &us.szExpDecan);
else if (ch1 == 'U')
ppch = (ch2 != '0' ? &us.szExpStar : &us.szExpAst);
else if (ch1 == 'X' && ch2 == 't')
ppch = &us.szExpSidebar;
else if (ch1 == 'q' && ch2 == '1')
ppch = &us.szExpCast1;
else if (ch1 == 'q' && ch2 == '2')
Expand Down Expand Up @@ -2651,7 +2701,7 @@ void InitProgram()

// Program is about to exit, so free memory that was allocated.

void FinalizeProgram()
void FinalizeProgram(flag fSkip)
{
char sz[cchSzDef];

Expand Down Expand Up @@ -2684,6 +2734,8 @@ void FinalizeProgram()
DeallocateP(gi.bmpBack2.rgb);
if (gi.bmpWorld.rgb != NULL)
DeallocateP(gi.bmpWorld.rgb);
if (gi.bmpRising.rgb != NULL)
DeallocateP(gi.bmpRising.rgb);
if (gi.rgspace != NULL)
DeallocateP(gi.rgspace);
#ifdef SWISS
Expand All @@ -2703,7 +2755,7 @@ void FinalizeProgram()
if (ofn.lpstrFile != NULL && ofn.lpstrFile != szFileName)
DeallocateP(ofn.lpstrFile);
#endif
if (is.cAlloc != 0) {
if (!fSkip && is.cAlloc != 0) {
sprintf(sz, "Number of memory allocations not freed before exiting: %d",
is.cAlloc);
PrintWarning(sz);
Expand Down
6 changes: 3 additions & 3 deletions astrolog.def
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
; Astrolog (Version 7.20) File: astrolog.def
; Astrolog (Version 7.30) File: astrolog.def
;
; IMPORTANT NOTICE: Astrolog and all chart display routines and anything
; not enumerated below used in this program are Copyright (C) 1991-2021 by
Expand Down Expand Up @@ -47,10 +47,10 @@
; Initial programming 8/28-30/1991.
; X Window graphics initially programmed 10/23-29/1991.
; PostScript graphics initially programmed 11/29-30/1992.
; Last code change made 4/11/2021.
; Last code change made 9/10/2021.

NAME ASTROLOG
DESCRIPTION "Astrolog 7.20 for MS Windows - By Walter D. Pullen"
DESCRIPTION "Astrolog 7.30 for MS Windows - By Walter D. Pullen"
EXETYPE WINDOWS
STUB 'WINSTUB.EXE'
CODE PRELOAD MOVEABLE DISCARDABLE
Expand Down
Binary file modified astrolog.doc
Binary file not shown.
Loading

0 comments on commit 66fa543

Please sign in to comment.