August 17, 2010
I downloaded htod.zip and found there is only htod.exe inside. Any version for Linux?
August 17, 2010
Paul Dufresne wrote:
> I downloaded htod.zip and found there is only htod.exe inside.
> Any version for Linux?

No. The problem is it is built out of the DM C compiler, which does not parse gcc extensions found in Linux.
August 17, 2010
== Quote from Walter Bright (newshound2@digitalmars.com)'s article
> Paul Dufresne wrote:
> > I downloaded htod.zip and found there is only htod.exe inside. Any version for Linux?
> No. The problem is it is built out of the DM C compiler, which does not parse gcc extensions found in Linux.

Shouldn't a command line utility like this that doesn't have a lot of external dependencies be trivial to run on Wine?
August 17, 2010
> Shouldn't a command line utility like this that doesn't have a lot
of external
> dependencies be trivial to run on Wine?

Well, yes, it is just that I have a very slow connection and wine is not already installed.
August 17, 2010
dsimcha wrote:
> == Quote from Walter Bright (newshound2@digitalmars.com)'s article
>> Paul Dufresne wrote:
>>> I downloaded htod.zip and found there is only htod.exe inside.
>>> Any version for Linux?
>> No. The problem is it is built out of the DM C compiler, which does not parse
>> gcc extensions found in Linux.
> 
> Shouldn't a command line utility like this that doesn't have a lot of external
> dependencies be trivial to run on Wine?

That won't help you in dealing with linux's #include files.
August 18, 2010
On 2010-08-17 21:54, Walter Bright wrote:
> Paul Dufresne wrote:
>> I downloaded htod.zip and found there is only htod.exe inside.
>> Any version for Linux?
>
> No. The problem is it is built out of the DM C compiler, which does not
> parse gcc extensions found in Linux.

How about the rest of the language or is the gcc extensions used in too many headers for htod to be useful ?

-- 
/Jacob Carlborg
August 18, 2010
Walter Bright wrote:
> Paul Dufresne wrote:
>> I downloaded htod.zip and found there is only htod.exe inside.
>> Any version for Linux?
> 
> No. The problem is it is built out of the DM C compiler, which does not parse gcc extensions found in Linux.

But if the headers the user wants to convert are written in standard C rather than GNU-extended C (especially likely if whoever wrote the code wants it to be portable), then that shouldn't be a problem.  So denying Linux users the utility on this basis doesn't really make sense.

Stewart.
August 18, 2010
On 08/18/2010 05:44 PM, Stewart Gordon wrote:
> Walter Bright wrote:
>> Paul Dufresne wrote:
>>> I downloaded htod.zip and found there is only htod.exe inside.
>>> Any version for Linux?
>>
>> No. The problem is it is built out of the DM C compiler, which does
>> not parse gcc extensions found in Linux.
>
> But if the headers the user wants to convert are written in standard C
> rather than GNU-extended C (especially likely if whoever wrote the code
> wants it to be portable), then that shouldn't be a problem. So denying
> Linux users the utility on this basis doesn't really make sense.
>
> Stewart.

Is there DMC for Linux? I am currently working on tool named h2d2 for Linux ( guess what it means ;) ) and found a lot of good stuff like gcc pre-processor putting non-standard gcc-only tokens in result code, some gcc-oriented code in standard library headers ( by standard any ID starting with __ can be treated as reserved ID, so it is perfectly valid C99 ). So it is not only front-end adaptation, but also pre-processor adaptation at least.
August 18, 2010
Jacob Carlborg wrote:
> On 2010-08-17 21:54, Walter Bright wrote:
>> Paul Dufresne wrote:
>>> I downloaded htod.zip and found there is only htod.exe inside.
>>> Any version for Linux?
>>
>> No. The problem is it is built out of the DM C compiler, which does not
>> parse gcc extensions found in Linux.
> 
> How about the rest of the language or is the gcc extensions used in too many headers for htod to be useful ?

I don't know how hard the problem is. I haven't spent any time attempting to make it work on linux.
August 18, 2010
Walter Bright wrote:
> Jacob Carlborg wrote:
>> On 2010-08-17 21:54, Walter Bright wrote:
<snip>
>>> No. The problem is it is built out of the DM C compiler, which does not
>>> parse gcc extensions found in Linux.

Cross-platform compatibility is a separate issue from compatibility with vendor-specific extensions to the language.  Besides, there's a version of GCC (MinGW) for Windows as well.

>> How about the rest of the language or is the gcc extensions used in too many headers for htod to be useful ?
> 
> I don't know how hard the problem is. I haven't spent any time attempting to make it work on linux.

I'd expect a program like this to be platform agnostic.

Stewart.
« First   ‹ Prev
1 2
Top | Discussion index | About this forum | D home