bug-ocrad
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug-ocrad] Re: Patches for building with gcc-2.96


From: Antonio Diaz Diaz
Subject: [Bug-ocrad] Re: Patches for building with gcc-2.96
Date: Thu, 5 Aug 2004 18:14:11 +0200 (CEST)

Per Ola Ingvarsson wrote:

> I have made some patches so that ocrad can be built using gcc-2.96
> which are available at http://www.df.lth.se/~pi/ocrad.html.
> The patches also contain a way to avoid using getopt which is not
> always installed on all systems.


Thanks for the patch. It seems useful for people with old or non-GNU
systems. Here are my comments to your modifications:

> *  The functions in ucs were named isalpha etc. which are also
> functions (which are really macros) in ctypes. They were renamed
> so that they would not collide with the macros in ctypes.h.
> * std::isalpha etc. changed in to isalpha.
> * std::getc changed to std::fgetc since getc is a macro.

Renaming functions may be useful for some people, but please,
understand that I won't change Ocrad to adap it to a non
standards-compliant compiler. Even if it is an old version of gcc.


> * The use of getopts is disabled by default, but can be enabled
> by defining HAVE_GETOPT_H in the file main.cc.

I am thinking about an alternative to getopt_long for systems lacking
it, but in any case the default behavior will be to use it. GNU Ocrad
should run "out of the box" on current GNU systems, and modified on
other systems, not the other way round.


Best regards,
Antonio Diaz.



                
______________________________________________
Renovamos el Correo Yahoo!: ¡100 MB GRATIS!
Nuevos servicios, más seguridad
http://correo.yahoo.es




reply via email to

[Prev in Thread] Current Thread [Next in Thread]