bug-indent
[Top][All Lists]
Advanced

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

Re: [Bug-indent] MFC


From: david ingamells
Subject: Re: [Bug-indent] MFC
Date: Thu, 20 Dec 2001 21:03:34 +0100

All your questions refer to things that are part of using gettext. Gettext 
allows the package to be run with  all messages produced by the package that 
are marked with the _("string") macro being output in the user-preferred 
language which is great for non-English speakers. Currently only a Taiwanese 
translation has been made for indent! There is probable a way to build with 
the gettext option disabled. You will need to study the file ABOUT-NLS or 
maybe visit the www.gnu.org site to find the full gettext documentation to 
find out more.

if you just want to build you can probably do a 

#define _(x) x

in libgettext.h, but I don't guarantee that this is the right place: you'll 
have to suck it and see.

David.

On Wednesday 19 December 2001 8:11 pm, corky wrote:
> I got it to compile and it seems to work?
>
> 1.  what is "LOCALEDIR" I had to comment that line out in indent.c
> to      get it to work.
>
> #if defined (HAVE_SETLOCALE) && defined (HAVE_LC_MESSAGES)
>   setlocale (LC_MESSAGES, "");
> //#endif
>   bindtextdomain (PACKAGE, LOCALEDIR);
>   textdomain (PACKAGE);
> #endif
>
> 2.  I also had to change these lines in wildexp.c back to the way it
> was      in 2.2.6
>
>  if (!fs)
>     myabort ("CANNOT FIND '@' FILE!");
>
>     from in 2.2.7
>
>  if (!fs)
>     myabort (_("CANNOT FIND '@' FILE!"));
>
>      I don't understand what is going on with this line of code??
>
> 3.  I chamged the #include in indent.c to point to where I had put it
>
> #include <intl/libgettext.h>
>
> david ingamells wrote:
> > Corky,
> > As is explained in the NEWS,  the make files for vc++, etc have not
> > been changed yet for the introduction of gettext.
> >
> > Somebody using vc++ needs to send me a set of updates that work with vc++
> > and don't break the other builds.
> >
> > David.
> >
> > On Wednesday 19 December 2001 3:14 pm, corky wrote:
> > > I can't get 2.2.7 to compile under MFC
> > >
> > > keep getting the errors below I used the indent.dsp??
> > >
> > >
> > > indent.c
> > > c:\source\indent-2.2.7\indent-2.2.7\src\indent.c(2692) : error C2065:
> > > 'LOCALEDIR' : undeclared identifier
> > > c:\source\indent-2.2.7\indent-2.2.7\src\indent.c(2698) : error C2143:
> > > syntax error : missing ';' before 'type'
> > > c:\source\indent-2.2.7\indent-2.2.7\src\indent.c(2700) : warning C4013:
> > > 'wildexp' undefined; assuming extern returning int
> > >
> > > wildexp.c
> > > c:\source\indent-2.2.7\indent-2.2.7\src\wildexp.c(86) : warning C4013:
> > > '_' undefined; assuming extern returning int
> > > c:\source\indent-2.2.7\indent-2.2.7\src\wildexp.c(86) : warning C4047:
> > > 'function' : 'char *' differs in levels of indirection from 'int '
> > > c:\source\indent-2.2.7\indent-2.2.7\src\wildexp.c(86) : warning C4024:
> > > 'myabort' : different types for formal and actual parameter 1
> > > Error executing cl.exe.
> >
> > --
> > David Ingamells
> > address@hidden
> > (0031) +13 5093388     (home)
> > (0031) +13 065010947 (mobile)

-- 
David Ingamells
address@hidden
(0031) +13 5093388     (home)
(0031) +13 065010947 (mobile)



reply via email to

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