home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.fortran
- Path: sparky!uunet!pmafire!news.dell.com!natinst.com!cs.utexas.edu!usc!rpi!think.com!ames!agate!stanford.edu!rock!taco!garfield.catt.ncsu.edu!jumper
- From: jumper@garfield.catt.ncsu.edu (Michael Lanham)
- Subject: Help With Named common blocks...again
- Message-ID: <jumper.724475994@garfield.catt.ncsu.edu>
- Sender: news@ncsu.edu (USENET News System)
- Organization: North Carolina State University
- Distribution: comp
- Date: Wed, 16 Dec 1992 03:19:54 GMT
- Lines: 46
-
- It has been pointed out to me that the original post I created for this group
- was ambiguous.
-
- Let me start over. I have a program that has several source files. The data
- module consists entirely of a BLOCK DATA segment.
-
- In that data module there is a COMMON block that looks like the following.
-
- BLOCK DATA
- IMPLICIT INTEGER(A-Z)
- COMMON/SHARE1/TABLE(1770),NOPU(54),FLHS(54),UNUSE0(122),
- - XLATE(127),KWT1(50),KWT2(50),STACK1(50),STACK2(50),
- - SYMBOL(8),VALUE(8),UNUSE5(16),CHAR(80),VALUXY(12),
- - LISTX(61),INTERX(70),SYNTAB(2,26),CHARX(26),TAG(50),
- - NEWSPT(58),ROWSYM(131),COLSYM(50)
-
-
- In most of the other files the subroutines that access this common block are
- declared the same way.
-
- Now I find in a file separate from the data file (the first one to declare what
- SHARE1 is like) a use of SHARE1 entirely different. This is in the first
- SUBROUTINE in this src file that uses SHARE1 and every other routine that uses
- SHARE1 in this file also follows the convention below.
-
- IMPLICIT INTEGER(A-Z)
- COMMON/SHARE1/NSVT(1000),OSVT(1000),
- - OPND(3),LINE(133),UNUSE3(574),
- - OUTTAB(50,4),SUPP(100,2),SYMBL(2),UNUSE2(18)
-
-
- My original question still stands. Since these declarations are not the same
- length nor (obviously) the same size arrays, is the second set of definitions
- concatenated to the first? Or, because they are in separate files, and
- because in the second file(the odd man out file) the first declaration of
- SHARE1 is _not_ like the datafile definition, they are pointing to the same
- address space(ie TABLE(1) = NSVT(1) and OSVT(1) = TABLE(1001)
-
- BTW, I am using a DECstation with Ultrix 4.3 and I am trying to stay as
- portable as possible.
-
-
- He who will not reason, is a bigot; he who cannot is a fool;
- and he who dares not is a slave. --- Sir William Drummond
-
- Michael Lanham mjlanham@eos.ncsu.edu & jumper@catt.ncsu.edu
-