* Makefile.am: Use AM_CPPFLAGS for path to mc-slang includes.

* slmisc.c (SLang_Version): Declare const. Use SLANG_VERSION for version
        number.
        * include/slang.h (SLang_Version): Declare const.
This commit is contained in:
Andrew V. Samoilov 2004-11-29 11:11:47 +00:00
parent 5f926f02a6
commit 0cd8f81bdc
4 changed files with 11 additions and 3 deletions

View File

@ -1,3 +1,10 @@
2004-11-29 Pavel S. Shirshov <me@pavelsh.pp.ru>
* Makefile.am: Use AM_CPPFLAGS for path to mc-slang includes.
* slmisc.c (SLang_Version): Declare const. Use SLANG_VERSION for version
number.
* include/slang.h (SLang_Version): Declare const.
2004-11-09 Andrew V. Samoilov <sav@bcs.zp.ua>
* sldisply.c (SLtt_delete_nlines): Add boundary check.

View File

@ -1,4 +1,5 @@
AM_CFLAGS = $(GLIB_CFLAGS) -I$(srcdir)/include
AM_CFLAGS = $(GLIB_CFLAGS)
AM_CPPFLAGS = -I$(srcdir)/include
if INCLUDED_SLANG
noinst_LIBRARIES = libmcslang.a

View File

@ -741,7 +741,7 @@ extern int SLarray_map_array (SLCONST SLarray_Map_Type *);
extern char *SLang_User_Prompt;
/* Prompt to use when reading from stdin */
extern int SLang_Version;
extern const int SLang_Version;
extern char *SLang_Version_String;
extern char *SLang_Doc_Dir;

View File

@ -11,7 +11,7 @@
#include "slang.h"
#include "_slang.h"
int SLang_Version = 10409;
const int SLang_Version = SLANG_VERSION;
/* p and ch may point to the same buffer */
char *_SLexpand_escaped_char(char *p, char *ch)