🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.atari.st
Article #38098

Re: RSC2C ob_spec cast (was OBDEFS.H)

#38098
From: Robert J Silliker
Date: Thu, 13 Apr 1989 15:23
47 lines
2623 bytes
In article <780@stag.UUCP> to_stdnet@stag.UUCP writes:

  >From: stag!thelake!steve@bungia.mn.org (Steve Yelvington)
  >
  >A problem, and some questions, on resource files:
  >
  >I've been using Bob Silliker's RSC2C.TTP program to decompose (is that the
  >right word?) GEM resource files into C sources. I ran into a small
  >incompatibility with the OBDEFS.H file I've been using.

Stuff deleted.

  >RSC2C program produces code in which that field is either a long
  >hexadecimal number, a string, or the address of any of several other types
  >of array. If it is the former, Sozobon C refuses to compile the code,
  >since it is expecting a pointer. If it is the address of a non-char array,
  >it merely complains.

  >I recently acquired Mark Williams C, so I took a look at the OBDEFS.H file
  >that came with it. In that file, the declaration is changed to unsigned
  >long. 

  >Now (finally) to my questions:
  >
  >* Is the MWC alteration of ob_spec from char * to unsigned long in
  >  OSBIND.H appropriate? Should I alter my OSBIND.H file to unsigned long?

I don't think this is a good idea unless it comes straight from MW.  You
will lose compatibility with MWC sources otherwise.

  >* Should I fix RSC2C so that it casts the field to a char pointer? I'm
  >  leaning toward the this alternative.

Yes.  Please do not post the complete sources or the binary.  Posting a
patch is acceptable.  I will be creating a new version that will allow
you to change the type of cast made into ob_spec.  This will probably
take the form of a command line argument.

Are there any casts other than (char *) and (unsigned long) that
should be included?  Anybody?

+--------------------------------------------------------------------------+
| Disclaimer:  The above opinions are my own and not those of Moli Energy. |
+--------+----------------------------------------------------+------------+
	 | Bob Silliker | bobs@moliman.molienergy.bc.ca       |
	 |              | ...uunet!van-bc!resrch!moliman!bobs |
	 +----------------------------------------------------+
Technical Details
Message-ID: <469@moliman.MoliEnergy.BC.CA>
Path: arc1-ca.pugleaf.net!utzoo!dptcdc!jarvis.csri.toronto.edu!mailrus!csd4.milw.wisc.edu!leah!bingvaxu!sunybcs!rutgers!att!alberta!ubc-cs!van-bc!resrch!moliman!bobs
References: <780@stag.UUCP>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!dptcdc!jarvis.csri.toronto.edu!mailrus!csd4.milw.wisc.edu!leah!bingvaxu!sunybcs!rutgers!att!alberta!ubc-cs!van-bc!resrch!moliman!bobs
From: bobs@moliman.MoliEnergy.BC.CA (Robert J Silliker)
Newsgroups: comp.sys.atari.st
Subject: Re: RSC2C ob_spec cast (was OBDEFS.H)
Message-ID: <469@moliman.MoliEnergy.BC.CA>
Date: 13 Apr 89 15:23:10 GMT
References: <780@stag.UUCP>
Reply-To: bobs@moliman.UUCP (Robert J Silliker)
Organization: Moli Energy Ltd., Maple Ridge, BC, CANADA
Lines: 47