From owner-freebsd-ports@FreeBSD.ORG Fri Dec 28 05:07:17 2007 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 22BEC16A417 for ; Fri, 28 Dec 2007 05:07:17 +0000 (UTC) (envelope-from peterjeremy@optushome.com.au) Received: from mail35.syd.optusnet.com.au (mail35.syd.optusnet.com.au [211.29.133.51]) by mx1.freebsd.org (Postfix) with ESMTP id ADC5213C469 for ; Fri, 28 Dec 2007 05:07:16 +0000 (UTC) (envelope-from peterjeremy@optushome.com.au) Received: from server.vk2pj.dyndns.org (c220-239-20-82.belrs4.nsw.optusnet.com.au [220.239.20.82]) by mail35.syd.optusnet.com.au (8.13.1/8.13.1) with ESMTP id lBS57BDu016166 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Fri, 28 Dec 2007 16:07:12 +1100 Received: from server.vk2pj.dyndns.org (localhost.vk2pj.dyndns.org [127.0.0.1]) by server.vk2pj.dyndns.org (8.14.2/8.14.1) with ESMTP id lBS57B2H049314; Fri, 28 Dec 2007 16:07:11 +1100 (EST) (envelope-from peter@server.vk2pj.dyndns.org) Received: (from peter@localhost) by server.vk2pj.dyndns.org (8.14.2/8.14.2/Submit) id lBS57Bue049313; Fri, 28 Dec 2007 16:07:11 +1100 (EST) (envelope-from peter) Date: Fri, 28 Dec 2007 16:07:11 +1100 From: Peter Jeremy To: Rob Belics Message-ID: <20071228050711.GV40785@server.vk2pj.dyndns.org> References: <4773E79B.1090904@charter.net> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="vni90+aGYgRvsTuO" Content-Disposition: inline In-Reply-To: <4773E79B.1090904@charter.net> X-PGP-Key: http://members.optusnet.com.au/peterjeremy/pubkey.asc User-Agent: Mutt/1.5.17 (2007-11-01) Cc: freebsd-ports@freebsd.org Subject: Re: Porting Windows program datatype problem X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 28 Dec 2007 05:07:17 -0000 --vni90+aGYgRvsTuO Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Dec 27, 2007 at 11:57:47AM -0600, Rob Belics wrote: >There is a Windows open source program I would like to port to FreeBSD. I= t=20 >seems to compile OK, using gcc, but chokes on MS/Windows only type data=20 >types like 'ulong'. What would be the easiest way to fix/convert these, o= r=20 >must it be done manually? I suspect your only option is "manually". Your best approach might be a set of Windows headers and something like ctags or id-utils to let you quickly search for the type you want to see how it's defined. Note that I also agree that Dmitry's approach is likely to be the best/easiest. Since 'sed' can't easily match C tokens, automated attempts to use sed are highly likely to unintentionally mangle innocent character strings that just look like data types. --=20 Peter Jeremy Please excuse any delays as the result of my ISP's inability to implement an MTA that is either RFC2821-compliant or matches their claimed behaviour. --vni90+aGYgRvsTuO Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.4 (FreeBSD) iD8DBQFHdIR//opHv/APuIcRAkIDAKCVyZpZ9XYIWjD++6Y2Jx2Z3/FergCeN+UO GwMQRfTbtMKgJUgLBMWQeIQ= =tK4r -----END PGP SIGNATURE----- --vni90+aGYgRvsTuO--