List Info

Thread: 3 minor problems with current (20061202) CVS code on OS/2




3 minor problems with current (20061202) CVS code on OS/2
user name
2006-12-02 21:11:01
On Sat, 02 Dec 2006 21:26:25 +0100 (CET)
"Franz Bakan" <fbakangmx.net> wrote:

> On Sat, 2 Dec 2006 20:31:06 +0100, Alessandro Zummo
wrote:
> 
> >  well, you need to check where are those
functions/types
> >  defined on os/2 
> 
> Yes, I know and already checked, but unfortunattely
there is not place where
> 
> __le16_to_cpup(), __u16,, __le32_to_cpup(),
> __u32,  __le32 or __cpu_to_le32()
> 
> are defined on OS/2. What do you suggest?

 mmm.. you should try to find similar macros we
 can use/adapt in some OS/2 include file... I guess
 endianness conversion is performed even on OS/2 ;)


-- 

 Best regards,

 Alessandro Zummo,
  Tower Technologies - Turin, Italy

  http://www.towertech.it


-- 
sane-devel mailing list: sane-devellists.alioth.debian.org
http://lists.alioth.debian.org/mailman/listinfo/sane-d
evel
Unsubscribe: Send mail with subject "unsubscribe
your_password"
             to sane-devel-requestlists.alioth.debian.org
3 minor problems with current (20061202) CVS code on OS/2
user name
2006-12-04 18:28:43
On Saturday 02 December 2006 22:11, Alessandro Zummo wrote:
> On Sat, 02 Dec 2006 21:26:25 +0100 (CET)
>
> "Franz Bakan" <fbakangmx.net> wrote:
> > On Sat, 2 Dec 2006 20:31:06 +0100, Alessandro
Zummo wrote:
> > >  well, you need to check where are those
functions/types
> > >  defined on os/2 
> >
> > Yes, I know and already checked, but
unfortunattely there is not place
> > where
> >
> > __le16_to_cpup(), __u16,, __le32_to_cpup(),
> > __u32,  __le32 or __cpu_to_le32()
> >
> > are defined on OS/2. What do you suggest?
>
>  mmm.. you should try to find similar macros we
>  can use/adapt in some OS/2 include file... I guess
>  endianness conversion is performed even on OS/2 ;)
>
Hmmm, I think you should not use these macros in userspace
anyway!
They are not portable an I'm pretty sure building SANE on
any
platform but Linux will fail.

my 2 cents
Gerhard

-- 
sane-devel mailing list: sane-devellists.alioth.debian.org
http://lists.alioth.debian.org/mailman/listinfo/sane-d
evel
Unsubscribe: Send mail with subject "unsubscribe
your_password"
             to sane-devel-requestlists.alioth.debian.org
3 minor problems with current (20061202) CVS code on OS/2
user name
2006-12-04 20:59:35
On Mon, 4 Dec 2006 19:28:43 +0100 (MET)
Gerhard Jaeger <gerhardgjaeger.de> wrote:

> > >
> > > __le16_to_cpup(), __u16,, __le32_to_cpup(),
> > > __u32,  __le32 or __cpu_to_le32()
> > >
> > > are defined on OS/2. What do you suggest?
> >
> >  mmm.. you should try to find similar macros we
> >  can use/adapt in some OS/2 include file... I
guess
> >  endianness conversion is performed even on OS/2
;)
> >
> Hmmm, I think you should not use these macros in
userspace anyway!
> They are not portable an I'm pretty sure building SANE
on any
> platform but Linux will fail.

 mm. right. So I need to find some portable macros or
include
 appropriate one in sane.

 any suggestion?


-- 

 Best regards,

 Alessandro Zummo,
  Tower Technologies - Turin, Italy

  http://www.towertech.it


-- 
sane-devel mailing list: sane-devellists.alioth.debian.org
http://lists.alioth.debian.org/mailman/listinfo/sane-d
evel
Unsubscribe: Send mail with subject "unsubscribe
your_password"
             to sane-devel-requestlists.alioth.debian.org
3 minor problems with current (20061202) CVS code on OS/2
user name
2006-12-05 07:44:32
On Monday 04 December 2006 21:59, Alessandro Zummo wrote:
> On Mon, 4 Dec 2006 19:28:43 +0100 (MET)
> Gerhard Jaeger <gerhardgjaeger.de> wrote:
> 
> > > >
> > > > __le16_to_cpup(), __u16,,
__le32_to_cpup(),
> > > > __u32,  __le32 or __cpu_to_le32()
> > > >
> > > > are defined on OS/2. What do you
suggest?
> > >
> > >  mmm.. you should try to find similar macros
we
> > >  can use/adapt in some OS/2 include file... I
guess
> > >  endianness conversion is performed even on
OS/2 ;)
> > >
> > Hmmm, I think you should not use these macros in
userspace anyway!
> > They are not portable an I'm pretty sure building
SANE on any
> > platform but Linux will fail.
> 
>  mm. right. So I need to find some portable macros or
include
>  appropriate one in sane.
> 
>  any suggestion?

Well, __u16 and __u32 are not necessary anyway ;)
Before finding somw suitable macros, you should also think
about 
handling such stuff on other platforms like PPC, where you
won't
need the swapping stuff. Maybe some kind of online-detection
is necessary.
As there are only two places, where swapping is needed, you
should
provide your own functions.

Gerhard

BTW: In the Plustek backend, I use this macro 
#define _SWAP(x,y)   { (x)^=(y); (x)^=((y)^=(x));}

with a run-time detection.



-- 
sane-devel mailing list: sane-devellists.alioth.debian.org
http://lists.alioth.debian.org/mailman/listinfo/sane-d
evel
Unsubscribe: Send mail with subject "unsubscribe
your_password"
             to sane-devel-requestlists.alioth.debian.org
3 minor problems with current (20061202) CVS code on OS/2
user name
2006-12-05 09:12:43
Hi,

On Tue, 5 Dec 2006, Gerhard Jaeger wrote:
> On Monday 04 December 2006 21:59, Alessandro Zummo
wrote:
> BTW: In the Plustek backend, I use this macro
> #define _SWAP(x,y)   { (x)^=(y); (x)^=((y)^=(x));}

If they are suitable for you then htons, htonl, etc should
be pretty 
ubiquitous across OS's.

cheers,
Jon

====================== Jon Chambers =====================
  http://www.jon.demon.co.uk
, 020 8575 7097, 07931 961669
=========================================================


-- 
sane-devel mailing list: sane-devellists.alioth.debian.org
http://lists.alioth.debian.org/mailman/listinfo/sane-d
evel
Unsubscribe: Send mail with subject "unsubscribe
your_password"
             to sane-devel-requestlists.alioth.debian.org
Which scanner for Linux
user name
2006-12-05 12:41:49
Hi all,

I tried an Epson perfection V350 Photo last week, but it is
only partially 
supported and the driver requires a closed source library. I
returned it for 
a refund.

I've checked the sane list of supported units, but I can't
see the forest for 
the trees. Also, lots of web sites appear to carry outdated
reccommendations 
as far as scanning is concerned. Types that are no longer
available in shops 
and such.

Can anyone please recommend a scanner that answers to the
following criteria, 
in descending order of importance:

- less than +/-160 EUR ($200)
- no closed-source bits needed for basic operation. 
- 4800 optical dpi max, in full-color.
- A4 (letter) size flatbed.
- decent for occasional transparency and film scans.
- not a 'multifunctional'
- in (web) shops now

Thanks,
Dennis

-- 
sane-devel mailing list: sane-devellists.alioth.debian.org
http://lists.alioth.debian.org/mailman/listinfo/sane-d
evel
Unsubscribe: Send mail with subject "unsubscribe
your_password"
             to sane-devel-requestlists.alioth.debian.org
3 minor problems with current (20061202) CVS code on OS/2
user name
2006-12-06 01:59:09
On Tue, 5 Dec 2006 09:12:43 +0000 (GMT)
Jon Chambers <jonjon.demon.co.uk> wrote:

> 
> Hi,
> 
> On Tue, 5 Dec 2006, Gerhard Jaeger wrote:
> > On Monday 04 December 2006 21:59, Alessandro Zummo
wrote:
> > BTW: In the Plustek backend, I use this macro
> > #define _SWAP(x,y)   { (x)^=(y); (x)^=((y)^=(x));}
> 
> If they are suitable for you then htons, htonl, etc
should be pretty 
> ubiquitous across OS's.

 htons and htonl convert from host endian to big endian. I
need
 little endian to host endian.

 the macro i used, which are common under linux, are
evaluated
 a compile time .

 I will search for an appropriate macro in the next few
days.

-- 

 Best regards,

 Alessandro Zummo,
  Tower Technologies - Turin, Italy

  http://www.towertech.it


-- 
sane-devel mailing list: sane-devellists.alioth.debian.org
http://lists.alioth.debian.org/mailman/listinfo/sane-d
evel
Unsubscribe: Send mail with subject "unsubscribe
your_password"
             to sane-devel-requestlists.alioth.debian.org
canon Lide 30
user name
2006-12-11 12:55:10
Hi all,
this scanner is not on the SANE supported hardware list even
though a Google 
search shows lots of people reporting this as working with
SANE.
There is no additional info on the back-end site either.

Does anyone know whether this H/W will work properly? I can
only get it second 
hand, so there's no return policy. It would be a shame to
try it, only to 
find it doesn't work.

Dennis


-- 
sane-devel mailing list: sane-devellists.alioth.debian.org
http://lists.alioth.debian.org/mailman/listinfo/sane-d
evel
Unsubscribe: Send mail with subject "unsubscribe
your_password"
             to sane-devel-requestlists.alioth.debian.org
canon Lide 30
user name
2006-12-11 13:39:49
On Monday 11 December 2006 13:55, Dennis Meulensteen wrote:
> Hi all,
> this scanner is not on the SANE supported hardware list
even though a Google 
> search shows lots of people reporting this as working
with SANE.
> There is no additional info on the back-end site
either.
> 
> Does anyone know whether this H/W will work properly? I
can only get it second 
> hand, so there's no return policy. It would be a shame
to try it, only to 
> find it doesn't work.
> 
> Dennis
> 
I don't know, where you got this info from, but a quick
search  SANE
leads to some surprising results - you might check that:

http://www.sa
ne-project.org/cgi-bin/driver.pl?manu=Canon&model=Lide30
&bus=usb&v=&p=

- Gerhard


-- 
sane-devel mailing list: sane-devellists.alioth.debian.org
http://lists.alioth.debian.org/mailman/listinfo/sane-d
evel
Unsubscribe: Send mail with subject "unsubscribe
your_password"
             to sane-devel-requestlists.alioth.debian.org
B I G OOPS ! ! ! Re: canon Lide 30
user name
2006-12-11 13:28:11
On Monday 11 December 2006 13:55, Dennis Meulensteen wrote:
> Hi all,
> this scanner is not on the SANE supported hardware list
Yes it is. I was looking in the wrong place!

> even though a 
> Google search shows lots of people reporting this as
working with SANE.
At least I got that part right...

> There is no additional info on the back-end site
either.
Yes there is, it's the plustek back-end which has a nice
hardware 
compatibility list on the man page.
>
> Does anyone know whether this H/W will work properly? I
can only get it
> second hand, so there's no return policy. It would be a
shame to try it,
> only to find it doesn't work.
I'm gonna give the owner a call.
Wish me luck. Judging from the above, I'll need it :-(

Dennis

-- 
sane-devel mailing list: sane-devellists.alioth.debian.org
http://lists.alioth.debian.org/mailman/listinfo/sane-d
evel
Unsubscribe: Send mail with subject "unsubscribe
your_password"
             to sane-devel-requestlists.alioth.debian.org
[1-10]

about | contact  Other archives ( Real Estate discussion Medical topics )