Sign in Join

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

Mailing lists / fpc-devel / 2006-09

h2pas patch for using the ctypes unit

8 messages · 4 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 recently made some modifications to the h2pas utility program. The patch is an attempt to make h2pas use types defined in the ctypes unit. The advantage is that the headers might more portable on various architectures. I consider this an early version because there may be some things that I'm missing and I'm not completely satisfied with it. I still refers to pointer types with either a capital P or ^ instead of a lowercase p.

If you merge this, there is a new parameter -C which specifies that you wish to use types from the ctypes unit. As always; flames, comments, and criticism are welcome.

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

Reply by email

Micha Nelissen
to J. Peter Mugaas
J. Peter Mugaas wrote
If you merge this, there is a new parameter -C which specifies that you wish to use types from the ctypes unit. As always; flames, comments, and criticism are welcome.

On a related note, why does h2pas have so many parameters ? Just convert that header file, I'd say ;-).

Micha

Reply by email

Ivo Steinmann
to Micha Nelissen

Hello all

since revision 4648, the cycle build fails on i386-linux (as it did on amd64, but that's fixed)

regards
Ivo Steinmann (Aison/ivost)

make -C ../rtl 'OPT=' all
make[4]: Entering directory `/usr/src/fpc/rtl'
make -C linux all
make[5]: Entering directory `/usr/src/fpc/rtl/linux' as --32 -o ../../rtl/units/i386-linux/prt0.o i386/prt0.as as --32 -o ../../rtl/units/i386-linux/dllprt0.o i386/dllprt0.as as --32 -o ../../rtl/units/i386-linux/cprt0.o i386/cprt0.as as --32 -o ../../rtl/units/i386-linux/gprt0.o i386/gprt0.as as --32 -o ../../rtl/units/i386-linux/cprt21.o i386/cprt21.as as --32 -o ../../rtl/units/i386-linux/gprt21.o i386/gprt21.as /usr/src/fpc/compiler/ppc1 -Fi../inc -Fi../i386 -Fi../unix -Fii386 -FE. -FU../../rtl/units/i386-linux -di386 -Us -Sg system.pp Free Pascal Compiler version 2.1.1 [2006/09/21] for i386 Copyright (c) 1993-2006 by Florian Klaempfl
Target OS: Linux for i386
Compiling system.pp
elfres32.inc(123,26) Warning: Mixing signed expressions and longwords gives a 64bit result genmath.inc(496,16) Fatal: Internal error 200204041 Fatal: Compilation aborted
make[5]: *** [system.ppu] Fehler 1
make[5]: Leaving directory `/usr/src/fpc/rtl/linux' make[4]: *** [linux_all] Fehler 2
make[4]: Leaving directory `/usr/src/fpc/rtl'
make[3]: *** [rtl] Fehler 2
make[3]: Leaving directory `/usr/src/fpc/compiler' make[2]: *** [next] Fehler 2
make[2]: Leaving directory `/usr/src/fpc/compiler' make[1]: *** [ppc2] Fehler 2
make[1]: Leaving directory `/usr/src/fpc/compiler' make: *** [cycle] Fehler 2

Reply by email

Jonas Maebe
to Ivo Steinmann
Ivo Steinmann wrote
since revision 4648, the cycle build fails on i386-linux (as it did on amd64, but that's fixed)

This is revision 4648, so I doubt you meant this one:

r4648 | ivost | 2006-09-18 23:55:23 +0200 (Mon, 18 Sep 2006) | 2 lines Changed paths:
M /trunk/packages/extra/Makefile
M /trunk/packages/extra/Makefile.fpc
A /trunk/packages/extra/mad
A /trunk/packages/extra/mad/Makefile
A /trunk/packages/extra/mad/Makefile.fpc
A /trunk/packages/extra/mad/mad.pas

-Added mad (libmad mp3 decoder) headers

Jonas

PS regarding prefixes in log files: please use "+" for additions, "-" for removals and "*" for changes/fixes

Reply by email