www.digitalmars.com         C & C++   DMDScript  

digitalmars.D - htod, no version for Linux?

reply Paul Dufresne <dufresnep gmail.com> writes:
I downloaded htod.zip and found there is only htod.exe inside.
Any version for Linux?
Aug 17 2010
next sibling parent reply Walter Bright <newshound2 digitalmars.com> writes:
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.
Aug 17 2010
next sibling parent reply dsimcha <dsimcha yahoo.com> writes:
== 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?

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?
Aug 17 2010
next sibling parent Paul Dufresne <dufresnep gmail.com> writes:
 Shouldn't a command line utility like this that doesn't have a lot

 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.
Aug 17 2010
prev sibling parent Walter Bright <newshound2 digitalmars.com> writes:
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?

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.
Aug 17 2010
prev sibling next sibling parent reply Jacob Carlborg <doob me.com> writes:
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
Aug 18 2010
parent reply Walter Bright <newshound2 digitalmars.com> writes:
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.
Aug 18 2010
parent reply Stewart Gordon <smjg_1998 yahoo.com> writes:
Walter Bright wrote:
 Jacob Carlborg wrote:
 On 2010-08-17 21:54, Walter Bright wrote:


 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.
Aug 18 2010
parent reply dsimcha <dsimcha yahoo.com> writes:
== Quote from Stewart Gordon (smjg_1998 yahoo.com)'s article
 Walter Bright wrote:
 Jacob Carlborg wrote:
 On 2010-08-17 21:54, Walter Bright wrote:


 No. The problem is it is built out of the DM C compiler, which does not
 parse gcc extensions found in Linux.



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.

Stewart.

Well, if we don't care about GNU extensions, then I'll ask again, what's wrong with Wine? I'm not saying it wouldn't be nice to have a Linux port of htod, but if Wine provides an easy workaround, I think it should be a very low priority.
Aug 18 2010
parent Stewart Gordon <smjg_1998 yahoo.com> writes:
dsimcha wrote:
<snip>
 Well, if we don't care about GNU extensions, then I'll ask again, what's wrong
 with Wine?  I'm not saying it wouldn't be nice to have a Linux port of htod,
but
 if Wine provides an easy workaround, I think it should be a very low priority.

Some users may object to installing Wine just to run one program, especially one that should have a Linux port anyway. But having some clue of what would need changing in the source code before it can be built to run natively under Linux might help to put it in better perspective. Stewart.
Aug 18 2010
prev sibling parent reply Stewart Gordon <smjg_1998 yahoo.com> writes:
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.
Aug 18 2010
parent Michael Strashun <m.strashun gmail.com> writes:
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.
Aug 18 2010
prev sibling next sibling parent Matthias Pleh <gonzo web.at> writes:
Am 17.08.2010 21:47, schrieb Paul Dufresne:
 I downloaded htod.zip and found there is only htod.exe inside.
 Any version for Linux?

Maybe it's to late for you, but I've discovered a small ruby-script (GPL'ed) in the dotmars-project, which use the gcc-xml tool. So it should also work on linux. But like htod, only c-code is supported. http://dotmars.googlecode.com/svn/trunk/tools/htd/ greets Matthias
Sep 14 2010
prev sibling parent Stewart Gordon <smjg_1998 yahoo.com> writes:
On 17/08/2010 20:47, Paul Dufresne wrote:
 I downloaded htod.zip and found there is only htod.exe inside.
 Any version for Linux?

Just as to the point, why is htod closed source? Stewart.
Sep 16 2010