summaryrefslogtreecommitdiff
path: root/lib/stdmsg.f90
diff options
context:
space:
mode:
authorChristoph Berg <myon@debian.org>2026-09-26 23:24:28 +0200
committerChristoph Berg <myon@debian.org>2026-09-26 23:24:28 +0200
commit69344560ea394c06ca94acac46a2e4c3e8b7b229 (patch)
treeebc98370a697a9bbd6b973a14fa5113c475c6db7 /lib/stdmsg.f90
parent3e9d10a67671d0bd5c7b8c3ca8088f1818322eff (diff)
parent059831534c7e884f0a607ed86b582fd00d821731 (diff)
Update upstream source from tag 'upstream/3.2.0_rc1+dfsg'
Update to upstream version '3.2.0~rc1+dfsg' with Debian dir dbff457fd2c3616d5c77b863c7bfb2186ed86047
Diffstat (limited to 'lib/stdmsg.f90')
-rw-r--r--lib/stdmsg.f9034
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