From owner-freebsd-ports@FreeBSD.ORG Thu Dec 27 19:26:04 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 EEEB116A417 for ; Thu, 27 Dec 2007 19:26:04 +0000 (UTC) (envelope-from rob_belics@charter.net) Received: from mtai02.charter.net (mtai02.charter.net [209.225.8.182]) by mx1.freebsd.org (Postfix) with ESMTP id 90A4313C4DD for ; Thu, 27 Dec 2007 19:26:04 +0000 (UTC) (envelope-from rob_belics@charter.net) Received: from aarprv04.charter.net ([10.20.200.74]) by mtai02.charter.net (InterMail vM.7.08.03.00 201-2186-126-20070710) with ESMTP id <20071227192603.LYMO28.mtai02.charter.net@aarprv04.charter.net> for ; Thu, 27 Dec 2007 14:26:03 -0500 Received: from robs-laptop.com ([71.85.241.27]) by aarprv04.charter.net with ESMTP id <20071227192603.GVVP17353.aarprv04.charter.net@robs-laptop.com> for ; Thu, 27 Dec 2007 14:26:03 -0500 Message-ID: <4773FC4B.3090806@charter.net> Date: Thu, 27 Dec 2007 13:26:03 -0600 From: Rob Belics User-Agent: Thunderbird 2.0.0.6 (X11/20070914) MIME-Version: 1.0 CC: freebsd-ports@freebsd.org References: <4773E79B.1090904@charter.net> <4773F1B3.8000007@gmail.com> In-Reply-To: <4773F1B3.8000007@gmail.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Chzlrs: 0 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: Thu, 27 Dec 2007 19:26:05 -0000 Aryeh M. Friedman wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > Rob Belics wrote: > >> There is a Windows open source program I would like to port to >> FreeBSD. It seems to compile OK, using gcc, but chokes on >> MS/Windows only type data types like 'ulong'. What would be the >> easiest way to fix/convert these, or must it be done manually? >> >> > > Sed is your friend. > > - -- > Aryeh M. Friedman > FloSoft Systems > http://www.flosoft-systems.com > Developer, not business, friendly > -----BEGIN PGP SIGNATURE----- > Version: GnuPG v2.0.4 (FreeBSD) > Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org > > iD8DBQFHc/GzzIOMjAek4JIRAq8ZAJ9lITgrz3Ph9Re8B/gg7ZaCnB09ugCdEXTK > Mnlgui37P84botGFyNL4STg= > =PCp7 > -----END PGP SIGNATURE----- > > > That's fine when I know the type but I'm wanting to know what the best strategy to avoid having to look up everything. Kind of like a Windows programmer having to look up 'size_t' and similar when you have 30 or more different ones to edit.