Skip to content

Commit

Permalink
WIP BROKEN libticonv, libtifiles, libticalcs: add initial, limited su…
Browse files Browse the repository at this point in the history
…pport for the CBL, CBR, CBL2, CBR2 (legacy I/O), LabPro (legacy I/O) and TI-Presenter; add ticonv_model_is_lab_equipment(), multiple libticalcs functions, and torture tests; improve test_ticalcs_2 a lot further; require a C++11 compiler.

Tests, test programs and sources of information by myself, Xavier "critor" Andréani, CVSoft / notipa and Brandon "BrandonW" Wilson.

Signed-off-by: Lionel Debroux <[email protected]>
  • Loading branch information
debrouxl committed Nov 12, 2023
1 parent 059e34e commit 34f9795
Show file tree
Hide file tree
Showing 51 changed files with 4,853 additions and 1,136 deletions.
8 changes: 8 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,8 @@ add_definitions(-DHAVE_FVISIBILITY=1 -DLOCALEDIR="${LOCALEDIR}")
check_symbol_exists(ctime_r "time.h" HAVE_CTIME_R)
check_symbol_exists(localtime_r "time.h" HAVE_LOCALTIME_R)
check_symbol_exists(asctime_r "time.h" HAVE_ASCTIME_R)
check_symbol_exists(strtok_r "string.h" HAVE_STRTOK_R)
check_symbol_exists(strtok_s "string.h" HAVE_STRTOK_S)
if(HAVE_CTIME_R)
add_compile_definitions(HAVE_CTIME_R=1)
endif()
Expand All @@ -155,6 +157,12 @@ endif()
if(HAVE_ASCTIME_R)
add_compile_definitions(HAVE_ASCTIME_R=1)
endif()
if(HAVE_STRTOK_R)
add_definitions(-DHAVE_STRTOK_R=1)
endif()
if(HAVE_STRTOK_S)
add_definitions(-DHAVE_STRTOK_S=1)
endif()

# For libs finding
find_package(PkgConfig)
Expand Down
4 changes: 3 additions & 1 deletion libticalcs/trunk/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ set(SRC_FILES
src/calc_9x.cc
src/calc_nsp.cc
src/calc_xx.cc
src/calclabequipmentdata.cc
src/clock.cc
src/cmd68k.cc
src/cmdz80.cc
Expand Down Expand Up @@ -60,7 +61,8 @@ set(PUBLIC_HEADERS
src/nsp_vpkt.h
src/nsp_cmd.h
src/cmdz80.h
src/cmd68k.h)
src/cmd68k.h
src/calclabequipmentdata.h)

# external deps lookup
if(TRY_STATIC_LIBS)
Expand Down
3 changes: 2 additions & 1 deletion libticalcs/trunk/configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -89,10 +89,11 @@ AC_CHECK_HEADERS([stdlib.h string.h time.h unistd.h])
AC_C_BIGENDIAN
AC_C_CONST
AC_C_RESTRICT
AX_CXX_COMPILE_STDCXX_11(noext, mandatory)

# Checks for library functions.
AC_PROG_GCC_TRADITIONAL
AC_CHECK_FUNCS([bzero memmove memset strcasecmp strdup localtime_r asctime_r])
AC_CHECK_FUNCS([bzero memmove memset strcasecmp strdup localtime_r asctime_r strtok_r strtok_s])

# Platform specific tests.
dnl AC_CANONICAL_HOST
Expand Down
1 change: 1 addition & 0 deletions libticalcs/trunk/po/POTFILES.in
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# List of source files containing translatable strings.

src/backup.cc
src/calclabequipmentdata.cc
src/calc_00.cc
src/calc_73.cc
src/calc_84p.cc
Expand Down
Loading

0 comments on commit 34f9795

Please sign in to comment.