home *** CD-ROM | disk | FTP | other *** search
/ Shareware Grab Bag / Shareware Grab Bag.iso / 007 / crossref.arc / CROSSREF.DOC < prev    next >
Encoding:
Text File  |  1984-06-16  |  22.7 KB  |  722 lines

  1.  
  2.  
  3.  
  4.  
  5.  
  6.  
  7.  
  8.                               Computerenergy's CROSSREF
  9.  
  10.                                Cross Reference Utility
  11.  
  12.  
  13.  
  14.  
  15.  
  16.  
  17.                                     Version 1.02
  18.  
  19.  
  20.  
  21.  
  22.  
  23.  
  24.  
  25.  
  26.  
  27.  
  28.  
  29.  
  30.  
  31.  
  32.  
  33.  
  34.  
  35.  
  36.  
  37.  
  38.  
  39.  
  40.  
  41.  
  42.  
  43.  
  44.                                  Proprietary Notice
  45.  
  46.      CROSSREF is a proprietary product developed by Richard C.  Bemis and
  47.      distributed by Computerenergy Corporation, Denver, Colorado.  
  48.  
  49.      Copyright 1982 by Richard C.  Bemis and Computerenergy Corporation.  All
  50.      rights reserved except those expressly granted to the user within this
  51.      document.  
  52.  
  53.      Computerenergy Corporation, PO Box 6267, Denver, CO 80206 (303) 233-9118
  54.      Source: ST6070 
  55.  
  56.  
  57.  
  58.  
  59.  
  60.  
  61.                                         - i -
  62.  
  63.  
  64.                                   TABLE OF CONTENTS
  65.  
  66.      Section                                                              Page
  67.  
  68.  
  69.  
  70.      CHAPTER 1  CROSSREF DISTRIBUTION NOTICE .............................   1
  71.  
  72.      CHAPTER 2  INTRODUCTION .............................................   2
  73.  
  74.      CHAPTER 3  SYSTEM SETUP .............................................   3
  75.         3.1  Copying CROSSREF ............................................   3
  76.         3.2  Program Setup - Final Installation ..........................   3
  77.  
  78.      CHAPTER 4  OPERATION ................................................   4
  79.         4.1  Execution ...................................................   4
  80.         4.2  Entering Responses ..........................................   4
  81.         4.3  Maillist/Donation Assistance ................................   4
  82.         4.4  Program Entry ...............................................   4
  83.         4.5  Statistics and Limitations ..................................   5
  84.            4.5.1  Limitations ............................................   5
  85.         4.6  Programming Tip .............................................   6
  86.  
  87.      CHAPTER 5  OPTION DEFAULTS ..........................................   7
  88.         5.1  Program Name Extension ......................................   7
  89.         5.2  Beginning Program Line Number ...............................   7
  90.         5.3  Ending Program Line Number ..................................   7
  91.         5.4  Changing Default Options ....................................   7
  92.  
  93.      CHAPTER 6  OTHER INFORMATION ........................................   9
  94.         6.1  Distribution Disk Contents ..................................   9
  95.         6.2  System Requirements .........................................   9
  96.         6.3  Disclaimer ..................................................   9
  97.  
  98.      CHAPTER 7  SUGGESTIONS, FEEDBACK, AND BUG REPORTS ...................  10
  99.  
  100.  
  101.  
  102.  
  103.  
  104.  
  105.  
  106.  
  107.  
  108.  
  109.  
  110.  
  111.  
  112.  
  113.  
  114.  
  115.  
  116.  
  117.  
  118.  
  119.  
  120.  
  121.  
  122.  
  123.      CROSSREF                          - ii -       Computerenergy Corporation
  124.  
  125.  
  126.                                       CHAPTER 1
  127.  
  128.                             CROSSREF DISTRIBUTION NOTICE
  129.  
  130.      CROSSREF is  being distributed  using the "Freeware"* approach.  To those
  131.      of you unfamiliar  with this approach, it works  like this.  You may send
  132.      either a  preformatted single-sided  disk (or a prepaid contribution  for
  133.      our disk  and mailer) to us with a prepaid return mailer and we will send
  134.      a complete copy of the product.  If the product does not meet your needs,
  135.      please pay nothing.  If the product does meet your needs, and you can use
  136.      it,  then  we  would appreciate  a contribution  of  whatever you feel is
  137.      appropriate.   Naturally, we  have probably  given you a clue in  several
  138.      places  as  to  what  is  our  "completely  unprejudiced  opinion" of  an
  139.      appropriate contribution  amount.  Contributions are completely voluntary
  140.      and much encouraged.  
  141.  
  142.      Even if you  do not contribute, you are encouraged to copy and distribute
  143.      the product freely subject to the following restrictions: 
  144.  
  145.           1. Do  not distribute  altered copies.   Note:  You may distribute a
  146.              separate set  of modifications  to merge in if you  wish but they
  147.              must   be    clearly   identified   as   not   originating   from
  148.              Computerenergy.  If you  do make modifications, we would  like to
  149.              see what you've done, if possible, for future versions.  
  150.  
  151.           2. The  product  is to  be distributed  as  a complete "distribution
  152.              copy" produced  by the copy utility provided with the product for
  153.              this purpose.  
  154.  
  155.           3. No fee is  to be charged for copying  or distributing the program
  156.              without   an   express  written   agreement  with  Computerenergy
  157.              Corporation.  
  158.  
  159.           4. Commercial  sale  of  this product  in any  manner  is prohibited
  160.              without Computerenergy's  written permission.  Some products will
  161.              be   released  with   this  permission  automatically  given  and
  162.              expressly stated.  
  163.  
  164.      User Groups/Clubs: Computerenergy's  freeware products may be distributed
  165.      by Clubs  and User Groups subject to the same restrictions.  We would ask
  166.      only that  contributions to our continuing efforts be encouraged by those
  167.      performing such distribution.  
  168.  
  169.      Computer Bulletin  Boards:  Computerenergy's  freeware  products  may  be
  170.      distributed by  BBS's subject  to the same restrictions and  contribution
  171.      encouragement.  However,  as the products tend to be large and consist of
  172.      several  files,   we  have   some  concern  as  to  the   reliability  of
  173.      transmissions and  length of connect time.  Perhaps disks could be mailed
  174.      or just the documentation placed on the board for browsers.  
  175.  
  176.  
  177.      * The Freeware concept  was initially developed by Andrew  Fluegelman and
  178.      the  term  "FREEWARE" is  a trademark  of The Headlands Press, Inc.   The
  179.      Headlands Press provides a catalog of information about Freeware products
  180.      available from  multiple sources.   They may be contacted at  PO Box 862,
  181.      Tiburon, CA 94920 or Source: TCP204 or Compuserve: 71435,1235.  
  182.  
  183.  
  184.  
  185.      CROSSREF                          - 1 -        Computerenergy Corporation
  186.  
  187.  
  188.                                       CHAPTER 2
  189.  
  190.                                     INTRODUCTION
  191.  
  192.  
  193.      Computerenergy's Cross  Reference  was  created  to make  programming and
  194.      maintenance jobs  easier.  We feel that a computer should help as much as
  195.      possible  in its  own  development  efforts.   CROSSREF  is a  tool  that
  196.      produces  a cross-reference  for each  reference to a variable or  a line
  197.      number  within a  program.  Multiple  occurances of a variable or  a line
  198.      number on a single line will be referenced for each occurance.  
  199.  
  200.  
  201.  
  202.      After you have  setup  the  system  and  read the  Operation  chapter, we
  203.      recommend that you try CROSSREF on some of your own programs.  If you are
  204.      going to "wing-it"  without reading further, then SAVE  the Basic program
  205.      to  be  cross-referenced in  ASCII (true  wingers  understand this), type
  206.      CROSSREF, and good luck!  
  207.  
  208.  
  209.  
  210.  
  211.  
  212.  
  213.  
  214.  
  215.  
  216.  
  217.  
  218.  
  219.  
  220.  
  221.  
  222.  
  223.  
  224.  
  225.  
  226.  
  227.  
  228.  
  229.  
  230.  
  231.  
  232.  
  233.  
  234.  
  235.  
  236.  
  237.  
  238.  
  239.  
  240.  
  241.  
  242.  
  243.  
  244.  
  245.  
  246.  
  247.      CROSSREF                          - 2 -        Computerenergy Corporation
  248.  
  249.  
  250.                                       CHAPTER 3
  251.  
  252.                                     SYSTEM SETUP
  253.  
  254.  
  255.      The Cross Reference distribution  disk contains a version of  the program
  256.      in compiled format along with its Syntax file and Options file.  Compiled
  257.      versions are being distributed as they execute much faster.  
  258.  
  259.      3.1  Copying CROSSREF
  260.  
  261.           There is a  batch file which copies the entire distribution disk for
  262.           backup  or  distribution  purposes.   We  highly recommend  making a
  263.           backup copy  before proceeding  as it is safer and  the mails can be
  264.           slow.  
  265.  
  266.           Place the Cross  Reference  distribution  disk  in  Drive A:  and  a
  267.           formatted disk  without DOS  on it in Drive B:.   While in DOS, type
  268.           CRCOPY and follow any instructions.  
  269.  
  270.      3.2  Program Setup - Final Installation
  271.  
  272.           We recommend that  a copy of CROSSREF, its control file CROSSWDS.DAT
  273.           and  its  options file  CROSSOPT, all  be placed on a Basic  Program
  274.           Development  DOS  System disk  if possible.   If  this is your first
  275.           run-through,  do not  perform this  step yet - use your  copy of the
  276.           distribution disk and proceed to the Operation Chapter.  
  277.  
  278.           1. Copy CROSSREF.EXE to the System disk.  
  279.  
  280.                   A Sample COPY command might be:
  281.  
  282.                                  COPY B:CROSSREF.EXE A:
  283.  
  284.           2. Copy the CROSSWDS.DAT  file to the same disk.   This file must be
  285.           available any time CROSSREF is used.  
  286.  
  287.                   A sample COPY command might be:
  288.  
  289.                                  COPY B:CROSSWDS.DAT A:
  290.  
  291.           3. Copy the  CROSSOPT file to the same disk.  This file must also be
  292.           available any time CROSSREF is used.  
  293.  
  294.                   A sample COPY command might be:
  295.  
  296.                                  COPY B:CROSSOPT A:
  297.  
  298.  
  299.  
  300.  
  301.  
  302.  
  303.  
  304.  
  305.  
  306.  
  307.  
  308.  
  309.      CROSSREF                          - 3 -        Computerenergy Corporation
  310.  
  311.  
  312.                                       CHAPTER 4
  313.  
  314.                                       OPERATION
  315.  
  316.      4.1  Execution
  317.  
  318.           Starting Cross  Reference  is simply  a matter  of  entering DOS and
  319.           typing CROSSREF followed by the Enter key.  
  320.  
  321.      4.2  Entering Responses
  322.  
  323.           You will quickly  notice that all input requested by Cross Reference
  324.           is at  the bottom  of the screen, following a  prompt, and contained
  325.           within a  "target".  We  have found that a relatively  constant area
  326.           for  data  entry   is  superior  to  the  more   typical  design  of
  327.           "fill-in-the-blanks"  as  it minimizes  eye travel and usually makes
  328.           for a more consistant entry process.  All responses are completed by
  329.           pressing the  Enter key.   In several prompts, and on  the keyboard,
  330.           the Enter  key is  represented by a symbol roughly  similar to this:
  331.           (<-').  
  332.  
  333.           In addition to the normal editing functions provided for inner-field
  334.           editing there are a couple of special functions available: 
  335.  
  336.                Field Erase:  Press the ESC key to erase an entry and start
  337.                              over or to change a field that has a pre-loaded
  338.                              value.
  339.  
  340.                Field Backup: Press the Up-Arrow to "backup" to the previous
  341.                              entry.  The current entry will be erased as you
  342.                              "backup".
  343.                              Note: You can "backup" as far as you like until
  344.                              the very beginning of the program.
  345.  
  346.      4.3  Maillist/Donation Assistance
  347.  
  348.           The first  screen  you see  is a  title,  information, and copyright
  349.           screen   with   a   "Press   Enter   to   continue   or  space   for
  350.           Maillist/Donation assistance"  prompt.  Normally, you will press the
  351.           Enter key  to start CROSSREF.  If you press the space bar, a program
  352.           will run  which will help you print a letter that you can send to us
  353.           to be sure  you are placed on our  maillist - particularly important
  354.           if you  did  not  receive  your  copy directly  from  us.  Amazingly
  355.           enough, the letter will even assist you in making a contribution but
  356.           that is not required (nice though).  
  357.  
  358.           Note: The  assistance  program  -  CRMAIL  -  is  contained  on  the
  359.           distribution disk  and its  copies but should not be  copied to your
  360.           DOS development  disk as  it is large, not required,  and a waste of
  361.           disk space.   CRMAIL is  chained from CROSSREF as it  resides on the
  362.           distribution disk  or may be executed directly from the distribution
  363.           disk by typing CRMAIL.  
  364.  
  365.      4.4  Program Entry
  366.  
  367.           The next question  you will be asked is to specify the Drive address
  368.           that contains  the program(s) to be referenced.  This is followed by
  369.           the Program  Entry screen.  Up to 25 programs may be specified to be
  370.  
  371.      CROSSREF                          - 4 -        Computerenergy Corporation
  372.  
  373.  
  374.                                                           CHAPTER 4: OPERATION
  375.  
  376.  
  377.           listed  in  sequence  at  one  time.   NOTE:  Each  program must  be
  378.           previously saved in  ASCII format using the ",A"  option of the Save
  379.           command in Basic.  Example: 
  380.  
  381.                          SAVE "B:progname.S",A
  382.  
  383.           We use the  .S extension for "Source" to differentiate between Basic
  384.           encoded  programs  and  those saved  in ASCII.   This  approach also
  385.           provides  2 copies  of each  program as it is developed  - a sort of
  386.           automatic backup.  Any program extension may be used.  
  387.  
  388.           If a  program  is read  by CROSSREF  that  has accidentally not been
  389.           saved in ASCII,  CROSSREF will display an ERR=62  message and return
  390.           to DOS.  
  391.  
  392.           For each  program to  be  listed,  CROSSREF  asks  for 3  pieces  of
  393.           information -  program name, beginning line number to start listing,
  394.           ending line number to end listing.  Each program name may be entered
  395.           without an  extension and  CROSSREF will append the default  Program
  396.           Name Extension  from the  options file (originally = ".S").   If the
  397.           program  is entered  with an  extension,  then the entered extension
  398.           will be used.  
  399.  
  400.           Each line number field  is pre-loaded with a default  value from the
  401.           options file  which may  be changed most easily by  pressing the ESC
  402.           key and keying a new number or backspacing and re-keying the number.
  403.           The default  value  is  selected  by  pressing the  Enter  key.  The
  404.           beginning and  ending lines  specified will limit the lines  checked
  405.           for references but  will still list all references  found within the
  406.           range even if they refer to lines beyond the range.  
  407.  
  408.      4.5  Statistics and Limitations
  409.  
  410.           After each   program's   references   have  been   listed,  a  short
  411.           statistical summary  is printed.  The summary includes the number of
  412.           lines  read/processed,  symbols  referenced,  references,  beginning
  413.           line, and  ending line.   Both variable names and line  numbers that
  414.           are referenced are defined as symbols.  
  415.  
  416.      4.5.1  Limitations
  417.  
  418.           The critical number from  CROSSREF's point of view is  the number of
  419.           symbols.   CROSSREF's current  architecture will handle 500 symbols.
  420.           If a  program contains more symbols than that, we recommend that the
  421.           reference be done in 2 or more parts.  
  422.  
  423.           If you are using  a 64K system, the maximum  number of references is
  424.           around  1000.  If  you have  a 96K or larger system,  the maximum is
  425.           much larger.  
  426.  
  427.           It should also  be mentioned that CROSSREF will only print the first
  428.           12 characters of  a variable name.  Each variable  name's references
  429.           are kept  correctly by their full name though not fully reflected on
  430.           the table.  
  431.  
  432.  
  433.      CROSSREF                          - 5 -        Computerenergy Corporation
  434.  
  435.  
  436.                                                           CHAPTER 4: OPERATION
  437.  
  438.  
  439.      4.6  Programming Tip
  440.  
  441.           CROSSREF can  be used  to help  compact  programs by locating unused
  442.           variables that  may no  longer be required for a  program.  Look for
  443.           any  variable  names  that are  referenced only  once  - they may be
  444.           candidates for deletion.  
  445.  
  446.  
  447.  
  448.  
  449.  
  450.  
  451.  
  452.  
  453.  
  454.  
  455.  
  456.  
  457.  
  458.  
  459.  
  460.  
  461.  
  462.  
  463.  
  464.  
  465.  
  466.  
  467.  
  468.  
  469.  
  470.  
  471.  
  472.  
  473.  
  474.  
  475.  
  476.  
  477.  
  478.  
  479.  
  480.  
  481.  
  482.  
  483.  
  484.  
  485.  
  486.  
  487.  
  488.  
  489.  
  490.  
  491.  
  492.  
  493.  
  494.  
  495.      CROSSREF                          - 6 -        Computerenergy Corporation
  496.  
  497.  
  498.                                       CHAPTER 5
  499.  
  500.                                    OPTION DEFAULTS
  501.  
  502.           The CROSSREF  Options file  - CROSSOPT  -  contains three data items
  503.           that  are  used by  CROSSREF to  preload entries for you.  They  are
  504.           referred to as default options or defaults.  
  505.  
  506.      5.1  Program Name Extension
  507.  
  508.           The Program Name Extension option is used by CROSSREF to concatenate
  509.           to any program name that is entered without an extension.  We use .S
  510.           for "Source" to differentiate from Basic encoded programs (.BAS) but
  511.           any extension is acceptable.  
  512.  
  513.           If a  program  name  is entered  with an  extension,  this option is
  514.           ignored.  
  515.  
  516.      5.2  Beginning Program Line Number
  517.  
  518.           The Beginning  Program Line  Number default establishes a value that
  519.           will be  preloaded into the Beginning Line Number prompt request for
  520.           each program  to be  referenced.  The value may be  changed at entry
  521.           time if desired.  
  522.  
  523.           We tend to place  a significant number of routines  (the MONITOR) at
  524.           lines  10 -  9999 and  therefore do not wish to  list these routines
  525.           over and  over.  The  beginning value we use is  10000 but any valid
  526.           line number is acceptable.  
  527.  
  528.      5.3  Ending Program Line Number
  529.  
  530.           The Ending Program Line Number default establishes a value that will
  531.           be  preloaded into  the Ending  Line Number prompt request for  each
  532.           program to be referenced.  The value may be changed at entry time if
  533.           desired.  
  534.  
  535.           The value we  use is  65529, which is the highest  valid line number
  536.           for a  Basic  program  and  therefore  will list  to  the end of the
  537.           program.  Any valid line number is acceptable.  
  538.  
  539.      5.4  Changing Default Options
  540.  
  541.           The Option file  - CROSSOPT  - is a sequential file  that contains a
  542.           single record with  3 fields.  The record, as  distributed, contains
  543.           the 3  default values in sequence: Program Name Extension, Beginning
  544.           Program Line Number, Ending Program Line Number separated by commas.
  545.           The record looks like: .S,10000,65529 
  546.  
  547.           The file may be  accessed and modified with EDLIN  or any other text
  548.           editor   or  word   processor  that  works  with  PC-DOS  compatible
  549.           sequential ASCII files.  
  550.  
  551.           If you are using EDLIN, the easiest way to change the defaults is as
  552.           follows: 
  553.  
  554.                1. Assuming that the CROSSOPT file is on the default drive, and
  555.                while in DOS, enter "EDLIN CROSSOPT" (without quotes).  
  556.  
  557.      CROSSREF                          - 7 -        Computerenergy Corporation
  558.  
  559.  
  560.                                                     CHAPTER 5: OPTION DEFAULTS
  561.  
  562.  
  563.                2. When EDLIN  prints "End of input file", key a 1.  EDLIN will
  564.                respond with a "1*".  
  565.  
  566.                3. Rekey the entire  line with the defaults changed  to the way
  567.                you want them, separated by commas, and press Enter.  
  568.  
  569.                4. After EDLIN displays "2*", press CTRL-BREAK.  
  570.  
  571.                5. After EDLIN displays the "*", key "E" (w/o quotes) and press
  572.                Enter.  The new file will be saved.  
  573.  
  574.  
  575.  
  576.  
  577.  
  578.  
  579.  
  580.  
  581.  
  582.  
  583.  
  584.  
  585.  
  586.  
  587.  
  588.  
  589.  
  590.  
  591.  
  592.  
  593.  
  594.  
  595.  
  596.  
  597.  
  598.  
  599.  
  600.  
  601.  
  602.  
  603.  
  604.  
  605.  
  606.  
  607.  
  608.  
  609.  
  610.  
  611.  
  612.  
  613.  
  614.  
  615.  
  616.  
  617.  
  618.  
  619.      CROSSREF                          - 8 -        Computerenergy Corporation
  620.  
  621.  
  622.                                       CHAPTER 6
  623.  
  624.                                   OTHER INFORMATION
  625.  
  626.      6.1  Distribution Disk Contents
  627.  
  628.  
  629.                File Name       Description
  630.                ------------    --------------------------------------
  631.  
  632.                CROSSREF.EXE    Compiled CROSSREF
  633.                CROSSREF.DOC    Documentation
  634.                CROSSWDS.DAT    Basic Syntax File
  635.                CROSSOPT        Cross Reference Options File
  636.                CRMAIL.EXE      Maillist/Donation Assistance
  637.                CRCOPY.BAT      Copies Distribution Disk - both CROSSREF and
  638.                                    MONITOR
  639.  
  640.  
  641.      6.2  System Requirements
  642.  
  643.           CROSSREF requires an IBM  PC with 64K, DOS 1.1,  and at least 1 disk
  644.           drive (2 disks highly recommended for development machines).  
  645.  
  646.  
  647.      6.3  Disclaimer
  648.  
  649.           All Computerenergy  computer programs  are distributed on an "as is"
  650.           basis without warranty.  
  651.  
  652.           Computerenergy Corporation  and/or any  of its program authors shall
  653.           have no  liability or responsibility to customer or any other person
  654.           or entity  with respect  to any liability, loss or  damage caused or
  655.           alleged to  be caused directly or indirectly by programs distributed
  656.           in  any  manner  by  Computerenergy  Corporation, including  but not
  657.           limited  to  any  interruption  of  service,  loss  of  business  or
  658.           anticipatory profits or consequential damages resulting from the use
  659.           or operation of such computer programs.  
  660.  
  661.           Note: Good data processing procedure dictates that the user test the
  662.           program,  run and  test sample  sets of data, and run  the system in
  663.           parallel  with  the system  previously in  use for a period of  time
  664.           adequate to insure that results of operation of the computer program
  665.           are satisfactory.  
  666.  
  667.  
  668.  
  669.  
  670.  
  671.  
  672.  
  673.  
  674.  
  675.  
  676.  
  677.  
  678.  
  679.  
  680.  
  681.      CROSSREF                          - 9 -        Computerenergy Corporation
  682.  
  683.  
  684.                                       CHAPTER 7
  685.  
  686.                        SUGGESTIONS, FEEDBACK, AND BUG REPORTS
  687.  
  688.           If you  can spare  the time,  we would appreciate your feedback  and
  689.           suggestions to help us to improve CROSSREF.  As an added inducement,
  690.           we will  also send  a free CROSSREF (corrected) to  the first person
  691.           reporting  each  bug.   Immediate  family members  of Computerenergy
  692.           employees are NOT  eligible.  If possible, each bug  reported should
  693.           include a short-as-possible printout of the reference situation with
  694.           explanatory  notes.   Our unprejudiced  judging panel will make "Bug
  695.           Awards" when the  spirit moves them and, of  course, their decisions
  696.           are final.  
  697.  
  698.           We are also  aware of  some esthetic errors when operating  with the
  699.           color  video  interface.  Those  still remaining should be corrected
  700.           soon, but we'd still like to hear about any you find.  
  701.  
  702.           Please address correspondence to the address on the title page.  (If
  703.           you've lost  your title page, just send us a note and we'll send you
  704.           a new one.) 
  705.  
  706.  
  707.  
  708.  
  709.  
  710.  
  711.  
  712.  
  713.  
  714.  
  715.  
  716.  
  717.  
  718.  
  719.  
  720.  
  721.  
  722.  
  723.  
  724.  
  725.  
  726.  
  727.  
  728.  
  729.  
  730.  
  731.  
  732.  
  733.  
  734.  
  735.  
  736.  
  737.  
  738.  
  739.  
  740.  
  741.  
  742.  
  743.      CROSSREF                          - 10 -       Computerenergy Corporation
  744.  
  745.