Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-devel / 2006-10

ANN: Further patch for h2pas to use the ctypes unit

4 messages · 3 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

J. Peter Mugaas

I have posted a patch that supplements my original patch to the h2pas utility. This removes some WriteLn debug statements that I made. I also removed some pointer type redefinitions from the translated header. Those pointer types are in ctypes. The patch works works better when you are not using the "-p" parameter.

The patch is available in the bug report:
0007437

The patch file is h2pas-ctypes2.patch.

I am hoping that this gets mered into SVN.

Support the anti-Spam amendment - Join at http://www.cauce.org/ J. Peter Mugaas, on 10/2/2006 http://wvnvm.wvnet.edu/~oma00215/ ICQ Number: 14297043 Finger for PGP Key

Reply by email

Michael Van Canneyt
to J. Peter Mugaas
J. Peter Mugaas wrote 8 lines
I have posted a patch that supplements my original patch to the h2pas utility. This removes some WriteLn debug statements that I made. I also removed some pointer type redefinitions from the translated header. Those pointer types are in ctypes. The patch works works better when you are not using the "-p" parameter. The patch is available in the bug report: 0007437 The patch file is h2pas-ctypes2.patch. I am hoping that this gets mered into SVN.

I tried, but your patch fails.

First of all, the EOL structure is different between your file and the original, which makes the patch HUGE and secondly, some chunks are rejected.

Both the .pas and .y file are in svn, please try again to create a patch... Send them to me, and include your complete files as well. In case the patch fails, I'll try to see why from your original files.

Michael.

Reply by email

Michael Van Canneyt
J. Peter Mugaas wrote 25 lines
On Mon, 2 Oct 2006 20:41:49 +0200 (CEST), Michael Van Canneyt wrote: > > > On Mon, 2 Oct 2006, J. Peter Mugaas wrote: > >> I have posted a patch that supplements my original patch to the >> h2pas utility. This removes some WriteLn debug statements that I >> made. I also removed some pointer type redefinitions from the >> translated header. Those pointer types are in ctypes. The patch >> works works better when you are not using the "-p" parameter. >> >> The patch is available in the bug report: >> 0007437 >> >> The patch file is h2pas-ctypes2.patch. >> >> I am hoping that this gets mered into SVN. >> > I tried, but your patch fails. > > First of all, the EOL structure is different between your file and > the original, which makes the patch HUGE and secondly, some chunks > are rejected. > Okay. I am attaching a new patch attempt. I just changed the EOL. I am also sending the original h2pas.y in case this doesn't work.

Excellent, the patch worked flawlessly. I'm closing the bug report.

Many thanks, I think this is a really useful addition !

Michael.

Reply by email

Marco van de Voort
to J. Peter Mugaas: I have posted a patch that supplements my original patch to the h2pas utility. This…
Show quoted text 5 lines
I have posted a patch that supplements my original patch to the h2pas utility. This removes some WriteLn debug statements that I made. I also removed some pointer type redefinitions from the translated header. Those pointer types are in ctypes. The patch works works better when you are not using the "-p" parameter.

FWIW I've converted a rather large set of headers last week, and I summarize my experiences in a bug#:

http://www.freepascal.org/mantis/view.php?id=7561

Note that it was inbetween the two ctypes patches. I do like the ctypes functionality a lot btw, thanks!

Reply by email