[futurebasic] Re: [FB] FBtoC parse error? (or not?)

Message: < previous - next > : Reply : Subscribe : Cleanse
Home   : December 2011 : Group Archive : Group : All Groups

From: Robert Purves <listrp@...>
Date: Wed, 14 Dec 2011 20:54:07 +1300
Robert Covington wrote:

> •• '#if/#endif' structure error in line 9207 of dcRAW
>  9207: 
>       ^
> Translation failed with 1 error
> 
> Still getting errors.
> http://www.cybercom.net/~dcoffin/dcraw/dcraw.c

What do you want to do with that file?
It's intended to be a command-line tool, and can be built after inserting one line near the beginning:
#define NODEPS // don't look for nonexistent .h files

Then in Terminal.app
$ clang cdraw.c -o cdraw && ./cdraw
cdraw.c:4535:35: warning: passing 'unsigned char [324]' to parameter of type 'char *' converts between pointers to integer types with
      different sign [-Wpointer-sign]
            i = (uchar *) memmem (buf97, sizeof buf97,"\xbb\xbb",2) - buf97 + 10;
                                  ^~~~~
cdraw.c:257:24: note: passing argument to parameter 'haystack' here
char *my_memmem (char *haystack, size_t haystacklen,
                       ^
cdraw.c:8536:57: warning: data argument not used by format string [-Wformat-extra-args]
                 _("Converting to %s colorspace...\n"), name[output_color-1]);
                                                        ^
2 warnings generated.

Raw photo decoder "dcraw" v9.11
by Dave Coffin, dcoffin a cybercom o net

Usage:  ./cdraw [OPTION]... [FILE]...

-v        Print verbose messages
-c        Write image data to standard output
-e        Extract embedded thumbnail image
-i        Identify files without decoding them
-i -v     Identify files and show metadata
-z        Change file dates to camera timestamp
[snip]
-T        Write TIFF instead of PPM


Robert P.