[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [coldsync-hackers] Fwd: potential method for automating conduit generation
- To: coldsync-hackers at lusars dot net
- Subject: Re: [coldsync-hackers] Fwd: potential method for automating conduit generation
- From: Adam Wainwright <Adam dot Wainwright at dsl.pipex.com>
- Date: Sun, 14 Jul 2002 09:38:32 +0100
- In-Reply-To: <20020714023441.C14541@baa.ooblick.com>
- References: <20020714023441.C14541@baa.ooblick.com>
- Reply-To: coldsync-hackers at lusars dot net
- Sender: owner-coldsync-hackers at lusars dot net
This area is one which is driving me nuts as I would like to start writing
conduits for some of my palm apps for LInux but I cannot get the data
formats!
The only way I can think of is to have multiple databases with a single record
in and modify the record and then compare the records. Very long-winded!
Just my tuppence-worth.
Adam
On Sunday 14 July 2002 7:34 am, Andrew Arensburger wrote:
> This was sent to me personally, but it seems like a good idea,
> so I thought I'd share (forwarded with permission):
>
> ----- Forwarded message from Charles Lepple <clepple@ghz.cc> -----
>
> Date: Sat, 13 Jul 2002 08:20:46 -0400
> Subject: potential method for automating conduit generation
> From: Charles Lepple <clepple@ghz.cc>
>
> A little while back, I ran across a nice open-source gas mileage tracker
> that supports multiple cars (palmfuellog on SourceForge). Like most
> open-source Palm apps, it doesn't have a conduit. Although the data is
> stored in a relatively simple format, I was looking for a way to automate
> the conduit generation process.
>
> Since most Palm apps use a struct for formatting records, I ran c2ph on
> the source code to try and extract the record stucture into a Perl object.
> The way I understand it, c2ph just parses the debugging info placed in
> the assembly code from the compiler (in order to generate the object
> definition), but it also appears to be choking on the link stage (which I
> didn't figure would be necessary).
>
> Now, in this case, I could probably write the object myself with a little
> review of Perl OOP... however, I thought this would be a neat trick, if
> only it worked...
>
> Anyway, I'm passing this along in case you want to try making it work. The
> full command line that got me the closest:
>
> c2ph -d -t CC=m68k-palmos-gcc DEFINES="-I `pwd`" FuelLog.c
>
> This is on Mac OS X, so I don't know if that's a potential source of
> weirdness. (Confession: I don't actually use coldsync anymore-- I only
> have USB on the G4, and Palm came out with a native OS X version of the
> desktop software, so I just use the p5 modules to yank data out of
> backed-up PDB files.)
--
No animal should ever jump on the dining room furniture unless
absolutely certain he can hold his own in conversation.
-- Fran Lebowitz
--
This message was sent through the coldsync-hackers mailing list. To remove
yourself from this mailing list, send a message to majordomo@thedotin.net
with the words "unsubscribe coldsync-hackers" in the message body. For more
information on Coldsync, send mail to coldsync-hackers-owner@thedotin.net.