Package: less Version: 391-1 Severity: normal On the attached file, when I do "LESS= less -c mpfr-impl.h", then "/MPFR_GMP" (i.e. search for MPFR_GMP) in a 80-column xterm, I get:
#if defined(__GNU_MP_VERSION)&&defined(__GNU_MP_VERSION_MINOR)&&defined(__GNU_M_VERSION_PATCHLEVEL)************************************/ # define __MPFR_GMP(a, b, c) \ (MPFR_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCLEVEL) >= MPFR_VERSION_NUM(a,b,c)), but GMP's one! */ #else # define __MPFR_GMP(a, b, c) 0 #endif at the end, instead of: #if defined(__GNU_MP_VERSION)&&defined(__GNU_MP_VERSION_MINOR)&&defined(__GNU_M_VERSION_PATCHLEVEL) # define __MPFR_GMP(a, b, c) \ (MPFR_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCLEVEL) >= MPFR_VERSION_NUM(a,b,c)) #else # define __MPFR_GMP(a, b, c) 0 #endif No problem without the -c switch (or when I look at the end of the file without the search). -- System Information: Debian Release: testing/unstable APT prefers unstable APT policy: (500, 'unstable'), (500, 'stable') Architecture: i386 (i686) Shell: /bin/sh linked to /bin/bash Kernel: Linux 2.6.11.10-20050517 Locale: LANG=POSIX, LC_CTYPE=en_US.ISO8859-1 (charmap=ISO-8859-1) Versions of packages less depends on: ii debianutils 2.14.3 Miscellaneous utilities specific t ii libc6 2.3.5-6 GNU C Library: Shared libraries an ii libncurses5 5.4-9 Shared libraries for terminal hand less recommends no packages. -- no debconf information
/* Utilities for MPFR developers, not exported. Copyright 1999, 2000, 2001, 2002, 2003, 2004, 2005 Free Software Foundation, Inc. This file is part of the MPFR Library. The MPFR Library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. The MPFR Library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with the MPFR Library; see the file COPYING.LIB. If not, write to the Free Software Foundation, Inc., 51 Franklin Place, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifndef __MPFR_IMPL_H__ #define __MPFR_IMPL_H__ /* Include stdio.h iff we are debugging or we want to check */ #if defined(DEBUG) || defined(WANT_ASSERT) # include <stdio.h> #endif /* Check if we are inside a build of MPFR or inside the test suite. This is needed in mpfr.h to export or import the functions. It matters only for Windows DLL */ #ifndef __MPFR_TEST_H__ # define __MPFR_WITHIN_MPFR 1 #endif /****************************************************** ****************** Include files ********************* ******************************************************/ /* Include 'config.h' before using ANY configure macros if needed NOTE: It isn't MPFR 'config.h', but GMP's one! */ #if defined(HAVE_CONFIG_H) #if HAVE_CONFIG_H #include "config.h" #endif #endif #ifdef MPFR_HAVE_GMP_IMPL /* Build with gmp internals*/ # ifndef __GMP_H__ # include "gmp.h" # endif # ifndef __GMP_IMPL_H__ # include "gmp-impl.h" # endif # ifdef MPFR_NEED_LONGLONG_H # include "longlong.h" # endif # ifndef __MPFR_H # include "mpfr.h" # endif #else /* Build without gmp internals */ # ifndef __GMP_H__ # include "gmp.h" # endif # ifndef __MPFR_H # include "mpfr.h" # endif # ifndef __GMPFR_GMP_H__ # include "mpfr-gmp.h" # endif # ifdef MPFR_NEED_LONGLONG_H # include "mpfr-longlong.h" # endif #endif #undef MPFR_NEED_LONGLONG_H /****************************************************** ***************** Detection macros ******************* ******************************************************/ /* Macros to detect STDC, GCC, GLIBC, GMP and ICC version */ #if defined(__STDC_VERSION__) # define __MPFR_STDC(version) (__STDC_VERSION__>=(version)) #elif defined(__STDC__) # define __MPFR_STDC(version) (0 == (version)) #else # define __MPFR_STDC(version) 0 #endif #if defined(__GNUC__) && defined(__GNUC_MINOR__) && !defined(__ICC) # define __MPFR_GNUC(a, i) \ (MPFR_VERSION_NUM(__GNUC__,__GNUC_MINOR__,0)>=MPFR_VERSION_NUM(a,i,0)) #else # define __MPFR_GNUC(a, i) 0 #endif #if defined(__GLIBC__) && defined(__GLIBC_MINOR__) # define __MPFR_GLIBC(a, i) \ (MPFR_VERSION_NUM(__GLIBC__,__GLIBC_MINOR__,0)>=MPFR_VERSION_NUM(a,i,0)) #else # define __MPFR_GLIBC(a, i) 0 #endif #if defined(__GNU_MP_VERSION)&&defined(__GNU_MP_VERSION_MINOR)&&defined(__GNU_MP_VERSION_PATCHLEVEL) # define __MPFR_GMP(a, b, c) \ (MPFR_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL) >= MPFR_VERSION_NUM(a,b,c)) #else # define __MPFR_GMP(a, b, c) 0 #endif