Re: Compiling on OS/2

From: Oliver Rauch (oliver.rauch@rauch-domain.de)
Date: Fri Jun 08 2001 - 11:06:31 PDT

  • Next message: Franz Bakan: "Re: Compiling on OS/2"

    Franz Bakan wrote:
    >
    > Hi,
    >
    > On Wed, 6 Jun 2001 20:39:27 +0200, Henning Meier-Geinitz wrote:
    >
    > >> >So maybe the filename can be changed to contain an allowed character
    > >> >instead of ":".
    > >>
    > >> With this patch it works: ( diff -c )
    > >
    > >Yes, but it fixes only the save function. Load must also be changed.
    >
    > Load was also changed with the patch.
    >
    > >Further more it only exchanges one colon, but there can be more than
    > >one, e.g. in "net:localhost:mustek:/dev/scanner".
    >
    > What about:
    >
    > #ifdef OS2
    > char *colon;
    >
    > colon = strchr((filename+2),':');
    > while (colon != NULL)
    > {
    > colon[0] = '-';
    > colon = strchr(colon,':');
    > }
    > #endif
    >
    > I have included the needed diffs for xcam and xscanimage as attachement.
    >

    Hello Franz,

    why don`t you apply this function to gsg_make_path in gtkglue.c:
    about line 155 (in if (dev_name))

                case '/':
                  buf[len++] = '+';
                  buf[len++] = '-';
                  break;
    +#ifdef OS2
    + case ':':
    + buf[len++] = '_';
    + buf[lrn++] = '_';
    + break;
    +#endif
                case '+':

    Bye
    Oliver

    -- 
    Homepage:	http://www.rauch-domain.de
    sane-umax:	http://www.rauch-domain.de/sane-umax
    xsane:		http://www.xsane.org
    E-Mail:		mailto:Oliver.Rauch@rauch-domain.de
    

    -- Source code, list archive, and docs: http://www.mostang.com/sane/ To unsubscribe: echo unsubscribe sane-devel | mail majordomo@mostang.com



    This archive was generated by hypermail 2b29 : Fri Jun 08 2001 - 11:12:24 PDT