diff options
| author | Christoph Berg <myon@debian.org> | 2026-09-26 23:24:03 +0200 |
|---|---|---|
| committer | Christoph Berg <myon@debian.org> | 2026-09-26 23:24:03 +0200 |
| commit | 059831534c7e884f0a607ed86b582fd00d821731 (patch) | |
| tree | 76bcb67a78f8aa2654fd34c2ad801a62136b0170 /lib/stdmsg.f90 | |
| parent | d83a420f0517d7fc47aeb288a6a0cf4891784fcc (diff) | |
New upstream version 3.2.0~rc1+dfsgupstream/3.2.0_rc1+dfsg
Diffstat (limited to 'lib/stdmsg.f90')
| -rw-r--r-- | lib/stdmsg.f90 | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/lib/stdmsg.f90 b/lib/stdmsg.f90 index b4f41040..323b3c47 100644 --- a/lib/stdmsg.f90 +++ b/lib/stdmsg.f90 @@ -41,3 +41,37 @@ function stdmsg(msg0) return end function stdmsg + +function stdmsg72(msg0,is_jt65) + + use iso_c_binding, only: c_bool + use packjt, only: packmsg, unpackmsg + + implicit none + + character(len=37), intent(in) :: msg0 + logical(c_bool), intent(in) :: is_jt65 + logical(c_bool) :: stdmsg72 + character(len=22) :: msg72,decoded72 + integer :: dat(12),itype,n + + stdmsg72=.false. + msg72=msg0(1:22) + + if(msg0(23:24).eq.' d' .and. msg72(22:22).eq.'?') msg72(22:22)=' ' + + if(is_jt65) then + n=len_trim(msg72) + if(n.ge.4) then + if(msg72(n-3:n).eq.' OOO') msg72(n-3:)=' ' + endif + endif + + call packmsg(msg72,dat,itype) + if(itype.lt.1 .or. itype.gt.5) return + + call unpackmsg(dat,decoded72) + stdmsg72=(decoded72.eq.msg72) + + return +end function stdmsg72 |
