X-Git-Url: http://ncurses.scripts.mit.edu/?p=ncurses.git;a=blobdiff_plain;f=ncurses%2Ftinfo%2Fread_entry.c;fp=ncurses%2Ftinfo%2Fread_entry.c;h=81b8180d54854099f936c8bb8a2dcb492e75fac1;hp=435b0b5d4aef64b7848647191d51d1e4a6d87bf1;hb=ef2d99350e0d3e4606171b5b1466ab92ec440205;hpb=5ad1bd48d7931f7daf76a0cd9b3382fdb5eb5c27 diff --git a/ncurses/tinfo/read_entry.c b/ncurses/tinfo/read_entry.c index 435b0b5d..81b8180d 100644 --- a/ncurses/tinfo/read_entry.c +++ b/ncurses/tinfo/read_entry.c @@ -1,5 +1,5 @@ /**************************************************************************** - * Copyright (c) 1998-2012,2013 Free Software Foundation, Inc. * + * Copyright (c) 1998-2013,2014 Free Software Foundation, Inc. * * * * Permission is hereby granted, free of charge, to any person obtaining a * * copy of this software and associated documentation files (the * @@ -41,7 +41,7 @@ #include -MODULE_ID("$Id: read_entry.c,v 1.126 2013/12/15 00:35:36 tom Exp $") +MODULE_ID("$Id: read_entry.c,v 1.127 2014/03/08 22:07:31 Xin.Li Exp $") #define TYPE_CALLOC(type,elts) typeCalloc(type, (unsigned)(elts)) @@ -114,6 +114,7 @@ fake_read(char *src, int *offset, int limit, char *dst, unsigned want) #define even_boundary(value) \ if ((value) % 2 != 0) Read(buf, 1) +#endif NCURSES_EXPORT(void) _nc_init_termtype(TERMTYPE *const tp) @@ -145,6 +146,7 @@ _nc_init_termtype(TERMTYPE *const tp) tp->Strings[i] = ABSENT_STRING; } +#if NCURSES_USE_DATABASE /* * Return TGETENT_YES if read, TGETENT_NO if not found or garbled. */