🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.ibm.pc.rt
Article #770

HC problems

#770
From: Michael Pak
Date: Thu, 28 Jun 1990 09:12
27 lines
1266 bytes
I have posted already this problem, but for some mysterious reason it didn't
show up. So here it is again:

I have the following piece of code:
----------------------------------
static  Arg     arg_wh[] = {
        {XtNwidth,      (XtArgVal) &window_w},
        {XtNheight,     (XtArgVal) &window_h},
};
----------------------------------
and the 'hc' compiler shouts:

(We use 'hc' version 1.4)

L602/C12:     Must be a compile- or load-time computable expression.

With 'pcc' though there are absolutely no problems.
Is there any way to make 'hc' accept this kind of expressions?

Thanks.

*********************************************
Michael Pak
Department of CS, Hebrew University of Jerusalem, Israel.
E-Mail: misha@boojum.huji.ac.il
*********************************************
Technical Details
Message-ID: <misha.646564355@mush>
Path: arc1-ca.pugleaf.net!utzoo!attcan!uunet!fernwood!decwrl!bacchus.pa.dec.com!shlump.nac.dec.com!e2big.dec.com!decuac!haven!aplcen!uakari.primate.wisc.edu!zaphod.mps.ohio-state.edu!uwm.edu!bionet!agate!ucbvax!huji.ac.il!misha

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!attcan!uunet!fernwood!decwrl!bacchus.pa.dec.com!shlump.nac.dec.com!e2big.dec.com!decuac!haven!aplcen!uakari.primate.wisc.edu!zaphod.mps.ohio-state.edu!uwm.edu!bionet!agate!ucbvax!huji.ac.il!misha
From: misha@huji.ac.il (Michael Pak)
Newsgroups: comp.sys.ibm.pc.rt
Subject: HC problems
Message-ID: <misha.646564355@mush>
Date: 28 Jun 90 09:12:35 GMT
Sender: daemon@ucbvax.BERKELEY.EDU
Reply-To: misha@boojum.huji.ac.il
Lines: 27