home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.fortran
- Path: sparky!uunet!newsgate.watson.ibm.com!yktnews!admin!yktnews!prener
- From: prener@watson.ibm.com (Dan Prener)
- Subject: Re: Help With Named common blocks...again
- Sender: news@watson.ibm.com (NNTP News Poster)
- Message-ID: <PRENER.92Dec15234358@prener.watson.ibm.com>
- In-Reply-To: jumper@garfield.catt.ncsu.edu's message of Wed, 16 Dec 1992 03:19:54 GMT
- Date: Wed, 16 Dec 1992 04:43:58 GMT
- Distribution: comp
- Disclaimer: This posting represents the poster's views, not necessarily those of IBM
- References: <jumper.724475994@garfield.catt.ncsu.edu>
- Nntp-Posting-Host: prener.watson.ibm.com
- Organization: IBM T.J. Watson Research Center, Hawthorne, New York
- Lines: 44
-
- In article <jumper.724475994@garfield.catt.ncsu.edu> jumper@garfield.catt.ncsu.edu (Michael Lanham) writes:
-
- > 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)
-
- It is the latter. Because they are in separate files, they are pointing
- to the same memory.
- --
- Dan Prener (prener@watson.ibm.com)
-