Re: [BLACKBOX] Seasoned Linux.

From: [at]} <Norayr>
Date: Thu, 13 Jan 2011 04:44:51 +0400

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

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

> What about Helmut Zinn's C2cp translator that you recently
>recommended here?
> Is there a reason why that is not suitable?
Is it able to prepare bindings, i. e. translate headers, and prepare
binding or wrapper modules, by making possible to call exported C
functions described in a header files?
As far as I remember, c2cp is best for translating algorithms. And it
cannot deal with external calls, recursively search definitions in a
number of header files, etc. For that task, AFAIK, the best is Stewart
Greenhill's H2O translator. It has configuration files, can behave
differently in a number of situations, and is not able to deal only with
very complicated macroses. And even in that case, I was able to generate
header translations just by using stripped copies of header files. For
example, stdio.h contains a lot of macroses, but if I need to use
popen() described there, I paste it and a number of useful functions in
a separate file, mentions several paths in H2O config and fire up it.

Sincerely,
Norayr

On 01/13/11 04:20, Chris Burrows wrote:
>> -----Original Message-----
>> From: BlackBox [mailto:BLACKBOX{([at]})nowhere.xy
>> Norayr Chilingarian
>> Sent: Thursday, 13 January 2011 10:09 AM
>> To: BLACKBOX{([at]})nowhere.xy
>> Subject: Re: [BLACKBOX] Seasoned Linux.
>>
>> I think you will agree, that we need
> ...
>> b) tool to convert C headers
> ...
>
> What about Helmut Zinn's C2cp translator that you recently recommended here?
> I've even found it useful as a 70% solution to translating C programs (which
> is a much more complex task):
>
> http://www.zinnamturm.eu/downloadsAC.htm#C2cp
>
> Is there a reason why that is not suitable? The main problem I have had with
> it is that I do not understand German :(
>
> Otherwise I can dig up some links to 'C header' to Pascal translators if you
> are interested.
>
> Chris.
>
>
> ----
> To unsubscribe, send a message with body "SIGNOFF BLACKBOX" to LISTSERV{([at]})nowhere.xy
>

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.16 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iQEcBAEBAgAGBQJNLksDAAoJEDbv/aplkZ1F+9IH/3EatXVu5GFVWRIkfa3vlpCF
d8dlsEaSCP4zdu6GdL7hjQ4qgwBhHt0DBPusLN1jYgvVrzae8sv7KVjQcLFVPxm2
ncqHjySFdeOgJ1FjrBIT3ySMhZHBFhLQqEe1Ru5rxxJghynyPOtPQiMSQ7HXpq+M
bDnhx+Cugtxyd97V/2+ErF1fJv0OlQeI2/wx7vW4olwqMDKY6F0Q7r7Eu/BSnAVH
8q2lp30oXeERZicrg1QgvGRBMk1/8aj+zniq9uJ2BZAqqO1GV93okRyXCwOSgZWu
wUpOgMfoxDTwJcuViVOepCugDsy/pqP2VK1L67Lj7chWhUEtDFBDo6EB/ijJcXw=
=MAmK
-----END PGP SIGNATURE-----


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