(unknown charset) Re: [BLACKBOX] Zlib under BlackBox?

From: (unknown charset) Douglas G. Danforth <"Douglas>
Date: Sat, 4 Oct 2008 15:22:56 -0700

----boundary-LibPST-iamunique-922733587_-_-
Content-type: text/plain

In the platform dependent documentation of Blackbox one finds for SYSTEM

    LSH(x, n) x, n: integer type* type of x logical shift (n >
0: left, n < 0: right)
    * integer types without LONGINT

hence

  SYSTEM.LSH(c, -1)

is invalid (it is also meaningless since c has not been initialized).
Note that one can use BITS to obtain a set

    set := BITS(poly)

-Doug Danforth


Oleg N. Cher wrote:
> Hello All,
>
> I'm trying to port Stefan Walthert's Oberon Zlib to BlackBox.
> The port makes many of errors, and I not sure in its stable working.
> Are there any good ideas? (Using of zlib.dll is undesirable)
>
> In progress of work I have some problems.
> BlackBox 1.6-rc5 makes trap 0 while compiling this module:
>
> MODULE Trap0;
> IMPORT SYSTEM;
>
> PROCEDURE InitCRCTable*();
> CONST
> poly = 0EDB88320H;
> VAR
> c: LONGINT;
> BEGIN
> c := SYSTEM.VAL(LONGINT, SYSTEM.VAL(SET, poly)/SYSTEM.VAL(SET, SYSTEM.LSH(c, -1)))
> END InitCRCTable;
>
> END Trap0.
>
> And, too, it traps while compiling this module:
> http://stefcr.mgslab.com/files/Buffers.odc
>
> Thank you.
>
> --
> Oleg N. Cher.
>
>
> ----
> To unsubscribe, send a message with body "SIGNOFF BLACKBOX" to LISTSERV{([at]})nowhere.xy
>
>
>


----
To unsubscribe, send a message with body "SIGNOFF BLACKBOX" to LISTSERV{([at]})nowhere.xy----boundary-LibPST-iamunique-922733587_-_-
Content-type: application/rtf
Content-transfer-encoding: base64
Content-Disposition: attachment; filename="rtf-body.rtf"
e1xydGYxXGFuc2lcYW5zaWNwZzEyNTFcZnJvbXRleHQgXGRlZmYwe1xmb250dGJsDQp7XGYwXGZz
d2lzcyBBcmlhbDt9DQp7XGYxXGZtb2Rlcm4gQ291cmllciBOZXc7fQ0Ke1xmMlxmbmlsXGZjaGFy
c2V0MiBTeW1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