diff -ur libqalculate-0.9.6/configure.in libqalculate-0.9.6_patched/configure.in
|
old
|
new
|
|
| 91 | 91 | |
| 92 | 92 | AC_LANG([C++]) |
| 93 | 93 | |
| 94 | | AC_PATH_CLN(1.1.0, [ |
| 95 | | LIBS="$LIBS $CLN_LIBS" |
| 96 | | CPPFLAGS="$CPPFLAGS $CLN_CPPFLAGS" |
| 97 | | AC_DEFINE(HAVE_LIBCLN,1,[If CLN can be used]) |
| 98 | | ], AC_MSG_ERROR([No suitable installed version of CLN could be found.])) |
| 99 | | |
| 100 | | |
| 101 | 94 | PKG_CHECK_MODULES(GLIB, [ |
| 102 | 95 | glib-2.0 |
| 103 | 96 | libxml-2.0 >= 2.3.8 |
| … |
… |
|
| 105 | 98 | AC_SUBST(GLIB_CFLAGS) |
| 106 | 99 | AC_SUBST(GLIB_LIBS) |
| 107 | 100 | |
| | 101 | PKG_CHECK_MODULES(CLN, [ cln >= 1.2 ], |
| | 102 | [have_recent_cln=yes], [have_recent_cln=no]) |
| | 103 | AC_SUBST(CLN_CPPFLAGS) |
| | 104 | AC_SUBST(CLN_LIBS) |
| | 105 | |
| | 106 | if test "$have_recent_cln" = "yes" ; then |
| | 107 | AC_DEFINE(HAVE_RECENT_CLN, 1, [Define if CLN can be used]) |
| | 108 | LIBS="$LIBS $CLN_LIBS" |
| | 109 | CPPFLAGS="$CPPFLAGS $CLN_CPPFLAGS" |
| | 110 | fi |
| | 111 | |
| 108 | 112 | dnl -------------------------------- |
| 109 | 113 | dnl | check for readline |----------------------------------------- |
| 110 | 114 | dnl -------------------------------- |
diff -ur libqalculate-0.9.6/libqalculate/Calculator.cc libqalculate-0.9.6_patched/libqalculate/Calculator.cc
|
old
|
new
|
|
| 33 | 33 | #include <sys/types.h> |
| 34 | 34 | #include <sys/stat.h> |
| 35 | 35 | #include <dirent.h> |
| 36 | | #include <wait.h> |
| | 36 | #include <sys/wait.h> |
| 37 | 37 | #include <queue> |
| 38 | 38 | #include <glib.h> |
| 39 | 39 | //#include <dlfcn.h> |
diff -ur libqalculate-0.9.6/libqalculate/Number.cc libqalculate-0.9.6_patched/libqalculate/Number.cc
|
old
|
new
|
|
| 28 | 28 | |
| 29 | 29 | using namespace cln; |
| 30 | 30 | |
| | 31 | /* |
| 31 | 32 | void cln::cl_abort() { |
| 32 | 33 | CALCULATOR->error(true, "CLN Error: see terminal output (probably too large or small floating point number)", NULL); |
| 33 | 34 | if(CALCULATOR->busy()) { |
| … |
… |
|
| 36 | 37 | exit(0); |
| 37 | 38 | } |
| 38 | 39 | } |
| 39 | | |
| | 40 | */ |
| 40 | 41 | string printCL_I(cl_I integ, int base = 10, bool display_sign = true, BaseDisplay base_display = BASE_DISPLAY_NORMAL, bool lower_case = false) { |
| 41 | 42 | if(base == BASE_ROMAN_NUMERALS) { |
| 42 | 43 | if(!zerop(integ) && integ < 10000 && integ > -10000) { |
diff -ur libqalculate-0.9.6/src/qalc.cc libqalculate-0.9.6_patched/src/qalc.cc
|
old
|
new
|
|
| 16 | 16 | #include <time.h> |
| 17 | 17 | #include <pthread.h> |
| 18 | 18 | #include <dirent.h> |
| 19 | | #include <malloc.h> |
| | 19 | #include <malloc/malloc.h> |
| 20 | 20 | #include <stdio.h> |
| 21 | 21 | #include <vector> |
| 22 | 22 | #include <glib.h> |