summaryrefslogtreecommitdiff
path: root/lib/ft8var/ft8apsetvar.f90
diff options
context:
space:
mode:
Diffstat (limited to 'lib/ft8var/ft8apsetvar.f90')
-rw-r--r--lib/ft8var/ft8apsetvar.f9077
1 files changed, 45 insertions, 32 deletions
diff --git a/lib/ft8var/ft8apsetvar.f90 b/lib/ft8var/ft8apsetvar.f90
index 6a247a38..f23d604e 100644
--- a/lib/ft8var/ft8apsetvar.f90
+++ b/lib/ft8var/ft8apsetvar.f90
@@ -7,15 +7,28 @@ subroutine ft8apsetvar(lmycallstd,lhiscallstd,numthreads)
character*77 c77
character*37 msg,msgchk
character*12 hiscallt,mycallprev,hiscallprev
+ integer :: i1,i3,n3,nlenmyc
logical lnohiscall,unpk77_successvar,first
logical(1) lhoundprev
logical(1), intent(in) :: lmycallstd,lhiscallstd
+ type(unpack77_options) :: no_record_options
+ type(pack77_options) :: no_tx_hash_options
data mycallprev/'QQ2QQ'/
data hiscallprev/'QQ1QQ'/
data lhoundprev/.false./
data first/.true./
save hiscallprev,mycallprev,lhoundprev,first
+ i1=0
+ i3=-1
+ n3=-1
+ nlenmyc=0
+! AP mask generation packs and unpacks synthetic messages only to derive symbol
+! masks; it must not teach those calls to the shared hash or recent-call state.
+ no_record_options=unpack77_options(record_hashes=.false., &
+ record_recent_calls=.false.)
+ no_tx_hash_options=pack77_options(record_tx_hashes=.false.)
+
if(hiscall.ne.hiscallprev .or. mycall.ne.mycallprev .or. (lhound.neqv.lhoundprev) .or. first) then ! first for lhound triggered
first=.false.; mycallprev=mycall; lhoundprev=lhound
@@ -38,8 +51,8 @@ subroutine ft8apsetvar(lmycallstd,lhiscallstd,numthreads)
else; msg='CQ '//trim(hiscall)
endif
- call pack77var(msg,i3,n3,c77,0)
- call unpack77var(c77,1,msgchk,unpk77_successvar,25)
+ call pack77(msg,i3,n3,c77,no_tx_hash_options)
+ call unpack77_configured(c77,1,msgchk,unpk77_successvar,no_record_options)
!read(c77(75:77),'(b3)') k3; print *,'i3 =',k3; print *,msgchk
if(lhiscallstd .and. i3.ne.1 .or. .not.lhiscallstd .and. i3.ne.4 .or. (msg.ne.msgchk) .or. .not.unpk77_successvar) go to 1
read(c77,'(77i1)',err=1) apcqsym(1:77)
@@ -49,8 +62,8 @@ subroutine ft8apsetvar(lmycallstd,lhiscallstd,numthreads)
if(lhiscallstd .and. .not.lmycallstd) then
msg=trim(hiscall)//' '//trim(hiscall)//' RRR'
i3=0; n3=0
- call pack77var(msg,i3,n3,c77,0)
- call unpack77var(c77,1,msgchk,unpk77_successvar,25)
+ call pack77(msg,i3,n3,c77,no_tx_hash_options)
+ call unpack77_configured(c77,1,msgchk,unpk77_successvar,no_record_options)
!read(c77(75:77),'(b3)') k3; print *,'i3 =',k3; print *,msgchk
if(i3.ne.1 .or. (msg.ne.msgchk) .or. .not.unpk77_successvar) go to 2
read(c77,'(58i1)',err=2) apsymdxstd(1:58)
@@ -60,16 +73,16 @@ subroutine ft8apsetvar(lmycallstd,lhiscallstd,numthreads)
if(.not.lhound .and. .not.lhiscallstd .and. len_trim(hiscall).gt.2) then
! nonstandard DXCall searching
msg='<W9XYZ> '//trim(hiscall)//' RR73'
- call pack77var(msg,i3,n3,c77,0)
- call unpack77var(c77,1,msgchk,unpk77_successvar,25)
+ call pack77(msg,i3,n3,c77,no_tx_hash_options)
+ call unpack77_configured(c77,1,msgchk,unpk77_successvar,no_record_options)
!read(c77(75:77),'(b3)') k3; print *,'i3 =',k3; print *,msgchk
if(i3.ne.4 .or. .not.unpk77_successvar) go to 3
read(c77,'(77i1)',err=3) apsymdxnsrr73(1:77)
apsymdxnsrr73=2*apsymdxnsrr73-1
msg='<W9XYZ> '//trim(hiscall)//' 73'
- call pack77var(msg,i3,n3,c77,0)
- call unpack77var(c77,1,msgchk,unpk77_successvar,25)
+ call pack77(msg,i3,n3,c77,no_tx_hash_options)
+ call unpack77_configured(c77,1,msgchk,unpk77_successvar,no_record_options)
!read(c77(75:77),'(b3)') k3; print *,'i3 =',k3; print *,msgchk
if(i3.ne.4 .or. .not.unpk77_successvar) go to 4
read(c77,'(77i1)',err=4) apsymdxns73(1:77)
@@ -80,28 +93,28 @@ subroutine ft8apsetvar(lmycallstd,lhiscallstd,numthreads)
if(.not.lhound .and. .not.lmycallstd .and. len_trim(mycall).gt.2) then
if(lhiscallstd) then
msg='<'//trim(mycall)//'> '//trim(hiscall)//' -15'
- call pack77var(msg,i3,n3,c77,0)
- call unpack77var(c77,1,msgchk,unpk77_successvar,25)
+ call pack77(msg,i3,n3,c77,no_tx_hash_options)
+ call unpack77_configured(c77,1,msgchk,unpk77_successvar,no_record_options)
if(i3.ne.1 .or. msg.ne.msgchk .or. .not.unpk77_successvar) go to 5
read(c77,'(58i1)',err=5) apsymmyns2(1:58)
apsymmyns2=2*apsymmyns2-1
nlenmyc=len_trim(mycall)
msg=trim(mycall)//' <'//trim(hiscall)//'> RR73'
- call pack77var(msg,i3,n3,c77,0)
- call unpack77var(c77,1,msgchk,unpk77_successvar,25)
+ call pack77(msg,i3,n3,c77,no_tx_hash_options)
+ call unpack77_configured(c77,1,msgchk,unpk77_successvar,no_record_options)
if(i3.ne.4 .or. msg.ne.msgchk .or. .not.unpk77_successvar) go to 6
read(c77,'(77i1)',err=6) apsymmynsrr73(1:77)
apsymmynsrr73=2*apsymmynsrr73-1
msg=trim(mycall)//' <'//trim(hiscall)//'> 73'
- call pack77var(msg,i3,n3,c77,0)
- call unpack77var(c77,1,msgchk,unpk77_successvar,25)
+ call pack77(msg,i3,n3,c77,no_tx_hash_options)
+ call unpack77_configured(c77,1,msgchk,unpk77_successvar,no_record_options)
if(i3.ne.4 .or. msg.ne.msgchk .or. .not.unpk77_successvar) go to 7
read(c77,'(77i1)',err=7) apsymmyns73(1:77)
apsymmyns73=2*apsymmyns73-1
msg=trim(mycall)//' <'//trim(hiscall)//'> RRR'
- call pack77var(msg,i3,n3,c77,0)
- call unpack77var(c77,1,msgchk,unpk77_successvar,25)
+ call pack77(msg,i3,n3,c77,no_tx_hash_options)
+ call unpack77_configured(c77,1,msgchk,unpk77_successvar,no_record_options)
if(i3.ne.4 .or. msg.ne.msgchk .or. .not.unpk77_successvar) go to 15
read(c77,'(77i1)',err=15) apsymmynsrrr(1:77)
apsymmynsrrr=2*apsymmynsrrr-1
@@ -109,8 +122,8 @@ subroutine ft8apsetvar(lmycallstd,lhiscallstd,numthreads)
else if(lnohiscall) then
msg='<'//trim(mycall)//'> ZZ1ZZZ -15'
- call pack77var(msg,i3,n3,c77,0)
- call unpack77var(c77,1,msgchk,unpk77_successvar,25)
+ call pack77(msg,i3,n3,c77,no_tx_hash_options)
+ call unpack77_configured(c77,1,msgchk,unpk77_successvar,no_record_options)
if(i3.ne.1 .or. msgchk.ne.msg .or. .not.unpk77_successvar) go to 8
read(c77,'(29i1)',err=8) apsymmyns1(1:29)
apsymmyns1=2*apsymmyns1-1
@@ -122,8 +135,8 @@ subroutine ft8apsetvar(lmycallstd,lhiscallstd,numthreads)
if(.not.lhound .and. lmycallstd .and. (lhiscallstd .or. lnohiscall)) then
msg=trim(mycall)//' '//trim(hiscallt)//' RRR'
i3=0; n3=0
- call pack77var(msg,i3,n3,c77,0)
- call unpack77var(c77,1,msgchk,unpk77_successvar,25)
+ call pack77(msg,i3,n3,c77,no_tx_hash_options)
+ call unpack77_configured(c77,1,msgchk,unpk77_successvar,no_record_options)
!read(c77(75:77),'(b3)') k3; print *,'i3 =',k3; print *,msgchk
if(i3.ne.1 .or. (msg.ne.msgchk) .or. .not.unpk77_successvar) go to 9
read(c77,'(58i1)',err=9) apsym(1:58)
@@ -134,8 +147,8 @@ subroutine ft8apsetvar(lmycallstd,lhiscallstd,numthreads)
! standard messages from Fox, always base callsigns
if(len_trim(hisbcall).gt.2 .and. len_trim(mybcall).gt.2) then
msg=trim(mybcall)//' '//trim(hisbcall)//' -15'
- call pack77var(msg,i3,n3,c77,0)
- call unpack77var(c77,1,msgchk,unpk77_successvar,25)
+ call pack77(msg,i3,n3,c77,no_tx_hash_options)
+ call unpack77_configured(c77,1,msgchk,unpk77_successvar,no_record_options)
!read(c77(75:77),'(b3)') k3; print *,'i3 =',k3; print *,msgchk
if(i3.ne.1 .or. (msg.ne.msgchk) .or. .not.unpk77_successvar) go to 9
read(c77,'(58i1)',err=9) apsym(1:58)
@@ -147,8 +160,8 @@ subroutine ft8apsetvar(lmycallstd,lhiscallstd,numthreads)
! special messages
msg=trim(mycall)//' RR73; '//trim(mycall)//' <'//trim(hiscallt)//'> -16'
i3=0; n3=1
- call pack77var(msg,i3,n3,c77,0)
- call unpack77var(c77,1,msgchk,unpk77_successvar,25)
+ call pack77(msg,i3,n3,c77,no_tx_hash_options)
+ call unpack77_configured(c77,1,msgchk,unpk77_successvar,no_record_options)
!read(c77(75:77),'(b3)') k3; print *,'i3 =',k3; print *,msgchk
i1=0; i1=index(msgchk,'<'); if(i1.lt.15) return
if(i3.ne.0 .or. msg(1:i1).ne.msgchk(1:i1) .or. .not.unpk77_successvar) go to 10
@@ -158,32 +171,32 @@ subroutine ft8apsetvar(lmycallstd,lhiscallstd,numthreads)
if(.not.lhound .and. lmycallstd .and. .not.lhiscallstd .and. len_trim(hiscall).gt.2) then
msg=trim(mycall)//' <'//trim(hiscall)//'> -16' ! report, rreport
- call pack77var(msg,i3,n3,c77,0)
- call unpack77var(c77,1,msgchk,unpk77_successvar,25)
+ call pack77(msg,i3,n3,c77,no_tx_hash_options)
+ call unpack77_configured(c77,1,msgchk,unpk77_successvar,no_record_options)
!read(c77(75:77),'(b3)') k3; print *,'i3 =',k3; print *,msgchk
if(i3.ne.1 .or. msg.ne.msgchk .or. .not.unpk77_successvar) go to 11
read(c77,'(58i1)',err=11) apsymdxns1(1:58)
apsymdxns1=2*apsymdxns1-1
msg='<'//trim(mycall)//'> '//trim(hiscall)//' RRR'
- call pack77var(msg,i3,n3,c77,0)
- call unpack77var(c77,1,msgchk,unpk77_successvar,25)
+ call pack77(msg,i3,n3,c77,no_tx_hash_options)
+ call unpack77_configured(c77,1,msgchk,unpk77_successvar,no_record_options)
!read(c77(75:77),'(b3)') k3; print *,'i3 =',k3; print *,msgchk
if(i3.ne.4 .or. msg.ne.msgchk .or. .not.unpk77_successvar) go to 12
read(c77,'(77i1)',err=12) apsymdxnsrrr(1:77)
apsymdxnsrrr=2*apsymdxnsrrr-1
msg='<'//trim(mycall)//'> '//trim(hiscall)//' RR73'
- call pack77var(msg,i3,n3,c77,0)
- call unpack77var(c77,1,msgchk,unpk77_successvar,25)
+ call pack77(msg,i3,n3,c77,no_tx_hash_options)
+ call unpack77_configured(c77,1,msgchk,unpk77_successvar,no_record_options)
!read(c77(75:77),'(b3)') k3; print *,'i3 =',k3; print *,msgchk
if(i3.ne.4 .or. msg.ne.msgchk .or. .not.unpk77_successvar) go to 13
read(c77,'(77i1)',err=13) apsymdxnsr73(1:77)
apsymdxnsr73=2*apsymdxnsr73-1
msg='<'//trim(mycall)//'> '//trim(hiscall)//' 73'
- call pack77var(msg,i3,n3,c77,0)
- call unpack77var(c77,1,msgchk,unpk77_successvar,25)
+ call pack77(msg,i3,n3,c77,no_tx_hash_options)
+ call unpack77_configured(c77,1,msgchk,unpk77_successvar,no_record_options)
!read(c77(75:77),'(b3)') k3; print *,'i3 =',k3; print *,msgchk
if(i3.ne.4 .or. msg.ne.msgchk .or. .not.unpk77_successvar) go to 14
read(c77,'(77i1)',err=14) apsymdxns732(1:77)