HP-UX compile fix, thai keymap

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@1448 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Jean-Marc Lasgouttes 2001-02-06 15:17:11 +00:00
parent 16fde21f40
commit e7b0972c44
13 changed files with 148 additions and 10 deletions

View File

@ -1,3 +1,13 @@
2001-02-06 albert chin <china@thewrittenword.com>
* acconfig.h:
* configure.in: check declarations of snprintf and vsnprintf.
2001-02-06 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
* INSTALL: update description of command line to use with compaq
cxx.
2001-01-30 John Levon <moz@compsoc.man.ac.uk> 2001-01-30 John Levon <moz@compsoc.man.ac.uk>
* INSTALL: mention build problem with older xforms * INSTALL: mention build problem with older xforms

View File

@ -325,8 +325,9 @@ notify us.
o It is possible to compile lyx with Tru64 Unix cxx compiler o It is possible to compile lyx with Tru64 Unix cxx compiler
version 6.2, provided one uses version 6.2, provided one uses
CXX=cxx CXX='cxx -std strict_ansi'
CXXFLAGS='-ptr /tmp/lyx_cxx_repository -std strict_ansi -g -O' CXXFLAGS='-ptr /tmp/lyx_cxx_repository -g'
CC=cc
Note that this will not work when compiling directly from the cvs Note that this will not work when compiling directly from the cvs
repository, due to the tricks used by automake for dependencies. Ask repository, due to the tricks used by automake for dependencies. Ask

View File

@ -47,6 +47,12 @@
/* Define as 1 if the MKSTEMP function is declared */ /* Define as 1 if the MKSTEMP function is declared */
#undef HAVE_DECL_MKSTEMP #undef HAVE_DECL_MKSTEMP
/* Define if you have the function prototype for snprintf(). */
#undef HAVE_DECL_SNPRINTF
/* Define if you have the function prototype for vsnprintf(). */
#undef HAVE_DECL_VSNPRINTF
@BOTTOM@ @BOTTOM@
/************************************************************ /************************************************************

View File

@ -261,8 +261,12 @@ if test "x$lyx_broken_headers" = "xyes"; then
AC_DEFINE(BROKEN_HEADERS, 1, AC_DEFINE(BROKEN_HEADERS, 1,
[Define on SunOS 4 and SCO, were some functions are missing from the headers]) [Define on SunOS 4 and SCO, were some functions are missing from the headers])
fi fi
AC_CHECK_FUNCS(memmove memset strchr putenv setenv mkfifo snprintf vsnprintf) AC_CHECK_FUNCS(snprintf vsnprintf)
AC_CHECK_FUNCS(mkstemp mktemp) LYX_CHECK_DECL(snprintf, stdio.h)
LYX_CHECK_DECL(vsnprintf, stdio.h)
AC_CHECK_FUNCS(memmove memset strchr putenv setenv mkfifo \
mkstemp mktemp)
dnl Until this is fixed in autoconf we provide our own version dnl Until this is fixed in autoconf we provide our own version
LYX_FUNC_SELECT_ARGTYPES LYX_FUNC_SELECT_ARGTYPES

View File

@ -1,3 +1,8 @@
2001-02-05 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
* kbd/thai-kedmanee.kmap: new Thai keymap, contributed by Chanop
Silpa-Anan.
2001-02-03 Dekel Tsur <dekelts@tau.ac.il> 2001-02-03 Dekel Tsur <dekelts@tau.ac.il>
* ui/default.ui: Add Edit->Math menu. * ui/default.ui: Add Edit->Math menu.

View File

@ -0,0 +1,97 @@
#
# Thai Kedmanee Keyboard for Lyx.
#
# By Chanop Silpa-Anan <chanop@debian.org>, February 6, 2001.
#
# If you find any bug, please report to me or Lyx team.
#
\kmap q æ
\kmap Q ð
\kmap w ä
\kmap W \"
\kmap e Ó
\kmap E ®
\kmap r ¾
\kmap R ±
\kmap t Ð
\kmap T ¸
\kmap y Ñ
\kmap Y í
\kmap u Õ
\kmap U ê
\kmap i Ã
\kmap I ³
\kmap o ¹
\kmap O Ï
\kmap p Â
\kmap P ­
\kmap [ º
\kmap { °
\kmap ] Å
\kmap } ","
\kmap a ¿
\kmap A Ä
\kmap s Ë
\kmap S ¦
\kmap d ¡
\kmap D ¯
\kmap f ´
\kmap F â
\kmap g à
\kmap G ¬
\kmap h é
\kmap H ç
\kmap j è
\kmap J ë
\kmap k Ò
\kmap K É
\kmap l Ê
\kmap L È
\kmap ; Ç
\kmap : «
\kmap ' §
\kmap \" .
\kmap z ¼
\kmap Z (
\kmap x »
\kmap X )
\kmap c á
\kmap C ©
\kmap v Í
\kmap V Î
\kmap b Ô
\kmap B Ú
\kmap n ×
\kmap N ì
\kmap m ·
\kmap M ?
\kmap "," Á
\kmap < ²
\kmap . ã
\kmap > Ì
\kmap / ½
\kmap ? Æ
\kmap 1 å
\kmap ! +
\kmap 2 /
\kmap @ ñ
\kmap 3 -
\kmap \# ò
\kmap 4 À
\kmap $ ó
\kmap 5 ¶
\kmap % ô
\kmap 6 Ø
\kmap ^ Ù
\kmap 7 Ö
\kmap & ß
\kmap 8 ¤
\kmap * õ
\kmap 9 µ
\kmap \( ö
\kmap 0 ¨
\kmap \) ÷
\kmap - ¢
\kmap _ ø
\kmap = ª
\kmap + ù

View File

@ -1,3 +1,10 @@
2001-02-06 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
* LaTeX.h: yet another std:: that Allan forgot.
* Variables.C (set): renamed from isset(), because this clashes
with some HP-UX macros (grr).
2001-02-06 Allan Rae <rae@lyx.org> 2001-02-06 Allan Rae <rae@lyx.org>
* LaTeX.h: Another bug fix. Missing std:: this time. * LaTeX.h: Another bug fix. Missing std:: this time.

View File

@ -182,7 +182,7 @@ protected:
std::vector<Aux_Info> const &); std::vector<Aux_Info> const &);
/// ///
bool runBibTeX(vector<Aux_Info> const &); bool runBibTeX(std::vector<Aux_Info> const &);
/// ///
void deleteFilesOnError() const; void deleteFilesOnError() const;

View File

@ -38,7 +38,7 @@ string const Variables::get(string const & var) const
} }
bool Variables::isset(string const & var) const bool Variables::set(string const & var) const
{ {
Vars::const_iterator cit = vars_.find(var); Vars::const_iterator cit = vars_.find(var);
return (cit != vars_.end()); return (cit != vars_.end());

View File

@ -28,7 +28,7 @@ public:
/// ///
string const get(string const &) const; string const get(string const &) const;
/// ///
bool isset(string const & var) const; bool set(string const & var) const;
/// ///
string const expand(string const &) const; string const expand(string const &) const;
private: private:

View File

@ -1,3 +1,8 @@
2001-02-06 albert chin <china@thewrittenword.com>
* snprintf.h:
* fmt.C: use HAVE_DECL_SNPRINTF
2001-01-26 Dekel Tsur <dekelts@tau.ac.il> 2001-01-26 Dekel Tsur <dekelts@tau.ac.il>
* lyxstring.C: Fix some assertions. * lyxstring.C: Fix some assertions.

View File

@ -2,7 +2,7 @@
#include <cstdio> #include <cstdio>
#include <cstdarg> #include <cstdarg>
#ifndef HAVE_VSNPRINTF #ifndef HAVE_DECL_VSNPRINTF
#include "support/snprintf.h" #include "support/snprintf.h"
#endif #endif

View File

@ -8,10 +8,13 @@
extern "C" { extern "C" {
#endif #endif
#ifdef HAVE_SNPRINTF #if defined(HAVE_DECL_SNPRINTF) || defined(HAVE_DECL_VSNPRINTF)
#include <stdio.h> #include <stdio.h>
#else #endif
#ifndef HAVE_DECL_SNPRINTF
int snprintf(char *, size_t, const char *, /*args*/ ...); int snprintf(char *, size_t, const char *, /*args*/ ...);
#endif
#ifndef HAVE_DECL_VSNPRINTF
int vsnprintf(char *, size_t, const char *, va_list); int vsnprintf(char *, size_t, const char *, va_list);
#endif #endif