mirror of
https://github.com/lcn2/calc.git
synced 2025-08-16 01:03:29 +03:00
Fixed when disabling use of the GNU-readline facility
Fixed FUNCPTR typedef in hist.c to fix deprecated compiler warnings. Fixed when USE_READLINE, READLINE_LIB, READLINE_EXTRAS, and READLINE_INCLUDE are set to empty (disable use of the GNU-readline facility). Fix cases of spaces before tabs in Makefile and Makefile.simple.
This commit is contained in:
@@ -1072,11 +1072,25 @@ CALCRC= ./.calcinit:~/.calcrc:${CALC_SHAREDIR}/startup
|
||||
# READLINE_INCLUDE Where the readline include files reside
|
||||
# (leave blank if they are /usr/include/readline)
|
||||
#
|
||||
# NOTE: If you select the 'USE_READLINE=' mode, then we recommend you set:
|
||||
#
|
||||
# READLINE_EXTRAS=
|
||||
# READLINE_INCLUDE=
|
||||
# READLINE_LIB=
|
||||
#
|
||||
# NOTE: The GNU-readline code is not shipped with calc. You must have
|
||||
# the appropriate headers and link libs installed on your system in
|
||||
# order to use it.
|
||||
#
|
||||
# If in doubt, set USE_READLINE, READLINE_LIB and READLINE_INCLUDE to nothing.
|
||||
# To disable the use of the GNU-readline facility (as well as ncurses), set:
|
||||
#
|
||||
# USE_READLINE=
|
||||
# READLINE_EXTRAS=
|
||||
# READLINE_INCLUDE=
|
||||
# READLINE_LIB=
|
||||
#
|
||||
# If in doubt, set USE_READLINE, READLINE_EXTRAS, READLINE_INCLUDE, and
|
||||
# READLINE_LIB to nothing.
|
||||
#
|
||||
#USE_READLINE=
|
||||
USE_READLINE= -DUSE_READLINE
|
||||
@@ -4972,7 +4986,7 @@ install: ${LIB_H_SRC} ${BUILD_H_SRC} calc.1 all custom/Makefile
|
||||
continue; \
|
||||
fi; \
|
||||
${RM} -f tmp; \
|
||||
${SED} -e 's/^\(#[ ]*include[ ][ ]*\)"/\1"calc\//' \
|
||||
${SED} -e 's/^\(#[ ]*include[ ][ ]*\)"/\1"calc\//' \
|
||||
$$i > tmp; \
|
||||
if ${CMP} -s tmp ${T}${CALC_INCDIR}/$$i; then \
|
||||
${TRUE}; \
|
||||
|
Reference in New Issue
Block a user