Fwd: xwisp2 1.7.01 on Mac OS 10.4

Easy B <[email protected]>
Newsgroups gmane.comp.hardware.microcontrollers.gnupic
Message-ID <[email protected]>
Rob, hi again (sorry about the name)

I did some more hacking and now only get this warning, that doesn't  
seem that critical, but don't know how to correct it:

xwisp2com.c: In function 'SendReceiveFast':
xwisp2com.c:363: warning: format '%d' expects type 'int', but  
argument 3 has type 'size_t'

For min and max I now use the following macros and think they'll do  
fine:

#define max(a,b)  (((a) > (b)) ? (a) : (b))
#define min(a,b)  (((a) < (b)) ? (a) : (b))

What I forgot to tell you is the problem with CBAUD. I understand  
that this mask is not in POSIX and that's why it's not on FreeBSD  
like systems. I now use #define CBAUD   0010017 like it's defined on  
Linux but there's got to be a nicer solution. I haven't had the time  
to do more research on that. Any Ideas?

Further I need the possibility to use serial ports like /dev/ 
tty.usbserial0 or /dev/tty.USA19912P1.1. Is that already possible?  
Can you give me any hints?

Hope this time the list receives this email too.

Cheers,
Ezra.


Anfang der weitergeleiteten E-Mail:

> Von: Easy B <[email protected]>
> Datum: 17. September 2005 14:25:54 GMT+02:00
> An: Rob Hamerling <[email protected]>
> Kopie: List GNUPIC <[email protected]>
> Betreff: xwisp2 1.7.01 on Mac OS 10.4
>
>
> Hi Bob
>
> First of all I want to thank you for your effort on making your app  
> compile with gcc. I successfully compiled it on my debian box  
> without an error or waring. But of course I also tried to compile  
> xwisp2 on my Mac and kinda managed. Some functions you used don't  
> exist on my system so tried to replace them with the equivalent. To  
> be exact following functions are a problem: stricmp, strnicmp, min,  
> max. The first two function I replaced with strcmp and strncmp from  
> string.h that i think works fine. The min and max function I tried  
> to replace with fmin an fmax from math.h but I'm not sure this is  
> the right thing to do because I get warnings like this: warning:  
> incompatible implicit declaration of built-in function 'fmax'
>
> However, it compiles and starts up, but I don't know if it  
> functions right. I got the parts for my wisp628 but haven't built  
> it yet. It would be cool if you could have a look at the attached  
> files and tell me what you think.
>
> If I can help in any way I'd be glad to.
>
> Cheers,
> Ezra.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.