mirror of
https://github.com/saitohirga/WSJT-X.git
synced 2024-11-16 09:01:59 -05:00
Make encode77 default to reading from "messages.txt".
This commit is contained in:
parent
4946d01edb
commit
5465abaa72
@ -1,19 +1,20 @@
|
||||
program encode77
|
||||
|
||||
character msg*37,msg0*37,msg1*37,cerr*1
|
||||
character msg*37,msg0*37,cerr*1
|
||||
character*77 c77
|
||||
|
||||
nargs=iargc()
|
||||
open(10,file='messages.txt',status='old')
|
||||
|
||||
do iline=1,999
|
||||
if(nargs.eq.1) then
|
||||
call getarg(1,msg0)
|
||||
else
|
||||
read(*,1002,end=999) msg0
|
||||
read(10,1002,end=999) msg0
|
||||
1002 format(a37)
|
||||
endif
|
||||
if(msg0.eq.' ') exit
|
||||
msg1=msg0
|
||||
call pack77(msg1,i3,n3,c77)
|
||||
call pack77(msg0,i3,n3,c77)
|
||||
call unpack77(c77,msg)
|
||||
cerr=' '
|
||||
if(msg.ne.msg0) cerr='*'
|
||||
|
@ -1,13 +1,14 @@
|
||||
subroutine pack77(msg,i3,n3,c77)
|
||||
subroutine pack77(msg0,i3,n3,c77)
|
||||
|
||||
use packjt
|
||||
character*37 msg
|
||||
character*37 msg,msg0
|
||||
character*18 c18
|
||||
character*13 w(19)
|
||||
character*77 c77
|
||||
integer nw(19)
|
||||
integer ntel(3)
|
||||
|
||||
msg=msg0
|
||||
if(i3.eq.0 .and. n3.eq.5) go to 5
|
||||
|
||||
! Convert msg to upper case; collapse multiple blanks; parse into words.
|
||||
|
Loading…
Reference in New Issue
Block a user