home *** CD-ROM | disk | FTP | other *** search
-
-
- Comments on Porting
- Body Stubber
- by WIS JPMO
- to DEC Ada
- Tool 31
- August 12, 1985
-
- COMPILATION
- -----------
- A VMS command file was created from the ordered list of compilation
- units provided in STUBBERSR.DIS.
-
- We were able to recompile the Body Stubber with only minor changes
- in three files. Errors occurred due to incorrect usage of "in"
- mode parameter between subprogram specifications and bodies and in
- one instance, lack of a generic instantiation in the body of a
- procedure.
-
-
- 1. In file ROSDEP.TXT:
- line 39 inserted "in" into specification
- line 260 inserted "in" to match specification
- line 63 inserted "in" into specification
- line 108 inserted "in" to match specification
-
- 2. In file GETOKEN.TXT
- line 65 was added: a generic instantiation for INT_IO
- line 66 was changed from "use integer_io" to "use INT_IO"
-
- 3. In file STUBSUP.TXT
- line 69 inserted "in" into specification
- line 113 inserted "in" to match specification
-
-
-
- EXECUTION
- ---------
- We were able to execute the Body Stubber and it appeared to be in workable
- condition. A test file called TEST.TXT was made containing only the
- specification of ROSDEP.TXT. The Body Stubber prompted the user for the
- file name (assuming a ".TXT" file extension) and after getting the filename,
- the Body Stubber 'stubbed' the file TEST.TXT and output the results into
- a file named TEST2.TXT.
-
- ====================
- 30-Aug-86 19:18:41-MDT,1991;000000000001
- Return-Path: <MHJohnson.F15@HI-MULTICS.ARPA>
- Received: from HI-MULTICS.ARPA by SIMTEL20.ARPA with TCP; Sat 30 Aug 86 19:18:28-MDT
- Date: Sat, 30 Aug 86 20:12 CDT
- From: Mark Johnson <MHJohnson@HI-MULTICS.ARPA>
- Subject: Comments about PAGER and STUBBER
- To: RCONN@SIMTEL20.ARPA
- Message-ID: <860831011209.244072@HI-MULTICS.ARPA>
-
- I recently received a copy of the Ada Repository and am running it
- through the VERDIX Ada compiler for VMS. I have noticed a few problems
- with these programs that you might be interested in. I can submit a
- full `comments' file if you are interested.
-
- For PAGER (and I believe a number of other tools), there is a defined
- exception handler for NAME_ERROR, but not for USE_ERROR. This causes
- problems on VMS 4.3 for filenames that have a dash (-) in them.
- Apparently, VMS does not consider a dash to be an illegal character, but
- won't allow a filename with a dash to be created (perhaps it can read a
- file w/ a dash in it...). Adding USE_ERROR to the exception handler
- along with NAME_ERROR fixes this problem.
-
- For STUBBER there is a much more insidious problem with the handling of
- the end of file. Lines 277 through 281 of ROSDEP.TXT (procedure GETC)
- should have the if statements exchanged. According to the Ada LRM,
- 14.3.4, para 24, the function END_OF_FILE returns TRUE if a file
- terminator is next or if a combination of line, page, and file
- terminator are next. The VERDIX Ada runtime returns TRUE for
- END_OF_FILE at the end-of-line, end-of-file pair of the input file.
- This causes GET_NEXT_TOKEN to blow up since it keeps reading past the
- end of file.
-
- Other than that, I haven't had too many problems with the conversions.
- Progress is somewhat slow due to the availability of time for this task,
- but I should have some more comments to send in over the next few weeks.
- Thanks for all the good work in maintaining the repository. I hope to
- use it again in the future.
-
- --Mark <MHJohnson @ HI-MULTICS.ARPA>
-