Many hyperlinks are disabled.
Use anonymous login
to enable hyperlinks.
Difference From 96e142ed8e To 6eaea2465f
2021-08-28 15:43 | Bump version number: version 0.2 alpha. (check-in: 39f43fcefb user: mark tags: trunk, version-0.2) | |
2021-08-28 15:31 | Merge [9d412bdfacee14e3|libf-amalgamation] into trunk. (check-in: 96e142ed8e user: mark tags: trunk, version-0.2) | |
2021-08-27 14:42 | Bring branch up to parity with [trunk]. (Closed-Leaf check-in: 9d412bdfac user: mark tags: libf-amalgamation) | |
2021-08-27 13:28 | Implement simpler, more robust fix for line wrap. (check-in: b413600889 user: mark tags: trunk) | |
2021-08-05 11:32 | Add commit branch/tags to search results. (check-in: 7dfce7ca8d user: mark tags: trunk) | |
2021-08-05 08:12 | Initial commit of fnc. (check-in: 6eaea2465f user: mark tags: trunk) | |
Changes to Makefile.in.
1 2 3 4 5 6 7 8 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 | - + - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - + + + + + + + + + + | #!/usr/bin/make # help out emacs # # Top-level autosetup-filtered Makefile for libfossil. This particular # build is for Unix platforms with GNU Make 3.81+. all: .NOTPARALLEL: # stop subdir makes and reconfigure from launching # multiple times concurrently. include config.make |
︙ |
Changes to auto.def.
1 2 3 4 5 6 7 8 9 10 11 12 13 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 | + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - + + + + + | # vim:se syn=tcl: # use cc cc-shared cc-lib options { shared=1 => "Disable build of a shared library." no-debug=0 => "Disable debug build options." amal => "Generates a conservative config file for the amalgamation build." static=1 => "Disable build of a static library." loud=0 => "Enables 'loud' build mode." } # autosetup interceps 'debug' and 'enable-debug' flags :/ # prefix:=[get-env HOME /usr/local] -> "Installation prefix." define FSL_PACKAGE_NAME "libfossil" define FSL_LIBRARY_VERSION 0.0.1-alphabeta ######################################################################## # See if we can get the fossil schema version from the current # checkout. If so, use that one, otherwise fall back to some hard-coded # default. set auxSchema {} set contentSchema {} set fossilBin [find-an-executable fossil] if {[string length $fossilBin] > 0} { puts "Found fossil binary: $fossilBin" catch { set auxSchema [string trimright \ [exec echo \ {SELECT value FROM config WHERE name='aux-schema';} \ "|" $fossilBin sqlite3] ] set contentSchema [string trimright \ [exec echo \ {SELECT value FROM config WHERE name='content-schema';} \ "|" $fossilBin sqlite3] ] } ex # puts "exception=$ex" } #set uname [exec $fossilBin version -v "|" grep "Schema version"] #puts "uname=$uname" #return if {[string length $auxSchema] == 16} { puts "Got aux-schema value from current repo: $auxSchema" puts "Got content-schema value from current repo: $contentSchema" } else { set auxSchema "2015-01-24" # "2011-04-25 19:50" set contentSchema 2 puts "Using hard-coded aux-schema: $auxSchema" puts "Using hard-coded content-schema: $contentSchema" } define FSL_AUX_SCHEMA $auxSchema define FSL_CONTENT_SCHEMA $contentSchema ######################################################################## # Grab the code version and timestamp from manifest.uuid and manifest # files... # # This requires that the repo is NOT generating delta manifests. As # of 2020-03, the libfossil server uses the forbid-delta-manifest # setting. set timestamp [clock format [clock seconds] \ -gmt 1 -format "%Y-%m-%d %H:%M"] set fp [open "manifest.uuid" r] set libVersionHash [string trimright [read $fp]] close $fp set fp [open "manifest"] # Get C-card: gets $fp # Get D-card: gets $fp line close $fp unset fp set manifestTimestamp [string map {"D " "" T " "} $line] unset line puts "libVersionHash = $libVersionHash" puts "manifestTimestamp = $manifestTimestamp" set FSL_PLATFORM_CONFIG_H " \#define FSL_LIB_VERSION_HASH \"$libVersionHash\" \#define FSL_LIB_VERSION_TIMESTAMP \"$manifestTimestamp UTC\" \#define FSL_LIB_CONFIG_TIME \"$timestamp GMT\" \#if defined(_MSC_VER) \#define FSL_PLATFORM_OS \"windows\" \#define FSL_PLATFORM_IS_WINDOWS 1 \#define FSL_PLATFORM_IS_UNIX 0 \#define FSL_PLATFORM_PLATFORM \"windows\" \#define FSL_PLATFORM_PATH_SEPARATOR \";\" \#define FSL_CHECKOUTDB_NAME \"./_FOSSIL_\" \/* define a __func__ compatibility macro *\/ \#if _MSC_VER < 1500 /* (vc9.0; dev studio 2008) */ /* sorry; cant do much better than nothing at all on those earlier ones */ \#define __func__ \"(func)\" \#else \#define __func__ __FUNCTION__ \#endif /* for the time being at least, don't complain about there being secure crt alternatives: */ \#ifndef _CRT_SECURE_NO_WARNINGS \#define _CRT_SECURE_NO_WARNINGS \#endif /* for the time being at least, don't complain about using POSIX names instead of ISO C++: */ \#pragma warning ( disable : 4996 ) /* for the time being at least, suppresss some int conversion warnings */ \#pragma warning ( disable : 4244 ) /*'fsl_size_t' to 'int'; this masks other problems that should be fixed*/ \#pragma warning ( disable : 4761 ) /*'integral size mismatch in argument'; more size_t problems*/ \#pragma warning ( disable : 4267 ) /*'size_t' to 'int'; crops up especially in 64-bit builds*/ /* these were extracted from fossil's unistd.h */ \#define S_ISDIR(m) (((m) & S_IFMT) == S_IFDIR) \#include <io.h> \#elif defined(__MINGW32__) \#define FSL_PLATFORM_OS \"mingw\" \#define FSL_PLATFORM_IS_WINDOWS 1 \#define FSL_PLATFORM_IS_UNIX 0 \#define FSL_PLATFORM_PLATFORM \"windows\" \#define FSL_PLATFORM_PATH_SEPARATOR \";\" \#define FSL_CHECKOUTDB_NAME \"./.fslckout\" \#elif defined(__CYGWIN__) \#define FSL_PLATFORM_OS \"cygwin\" \#define FSL_PLATFORM_IS_WINDOWS 0 \#define FSL_PLATFORM_IS_UNIX 1 \#define FSL_PLATFORM_PLATFORM \"unix\" \#define FSL_PLATFORM_PATH_SEPARATOR \":\" \#define FSL_CHECKOUTDB_NAME \"./_FOSSIL_\" \#else \#define FSL_PLATFORM_OS \"unknown\" \#define FSL_PLATFORM_IS_WINDOWS 0 \#define FSL_PLATFORM_IS_UNIX 1 \#define FSL_PLATFORM_PLATFORM \"unix\" \#define FSL_PLATFORM_PATH_SEPARATOR \":\" \#define FSL_CHECKOUTDB_NAME \"./.fslckout\" \#endif " if {[opt-bool amal]} { puts "Generating conservative config for the amalgamation build..." set incGuard _NET_FOSSIL_SCM_FSL_AMALGAMATION_CONFIG_H_INCLUDED_ set ofile libfossil-config.h set out [open $ofile w] puts $out "\#if !defined($incGuard) \#define $incGuard 1 \#define FSL_AUX_SCHEMA \"$auxSchema\" \#define FSL_CONTENT_SCHEMA \"$contentSchema\" \#define FSL_PACKAGE_NAME \"[get-define FSL_PACKAGE_NAME]\" \#define FSL_LIBRARY_VERSION \"[get-define FSL_LIBRARY_VERSION]\" /* Tweak the following for your system... */ \#if !defined(HAVE_COMPRESS) \# define HAVE_COMPRESS 1 \#endif \#if !defined(HAVE_DLFCN_H) \# define HAVE_DLFCN_H 0 \#endif \#if !defined(HAVE_DLOPEN) \# define HAVE_DLOPEN 0 \#endif \#if !defined(HAVE_GETADDRINFO) \# define HAVE_GETADDRINFO 0 \#endif \#if !defined(HAVE_INET_NTOP) \# define HAVE_INET_NTOP 0 \#endif \#if !defined(HAVE_INTTYPES_H) \# define HAVE_INTTYPES_H 0 \#endif \#if !defined(HAVE_LIBDL) \# define HAVE_LIBDL 0 \#endif \#if !defined(HAVE_LIBLTDL) \# define HAVE_LIBLTDL 0 \#endif \#if !defined(_WIN32) \#if !defined(HAVE_LSTAT) \# define HAVE_LSTAT 1 \#endif \#if !defined(HAVE_LTDL_H) \# define HAVE_LTDL_H 0 \#endif \#if !defined(HAVE_LT_DLOPEN) \# define HAVE_LT_DLOPEN 0 \#endif \#if !defined(HAVE_OPENDIR) \# define HAVE_OPENDIR 1 \#endif \#if !defined(HAVE_PIPE) \# define HAVE_PIPE 1 \#endif \#if !defined(HAVE_STAT) \# define HAVE_STAT 1 \#endif \#if !defined(HAVE_STDINT_H) \# define HAVE_STDINT_H 0 \#endif \#if !defined(_DEFAULT_SOURCE) \# define _DEFAULT_SOURCE 1 \#endif \#if !defined(_XOPEN_SOURCE) \# define _XOPEN_SOURCE 500 \#endif \#else \#if !defined(HAVE_LSTAT) \# define HAVE_LSTAT 0 \#endif \#if !defined(HAVE_LTDL_H) \# define HAVE_LTDL_H 0 \#endif \#if !defined(HAVE_LT_DLOPEN) \# define HAVE_LT_DLOPEN 0 \#endif \#if !defined(HAVE_OPENDIR) \# define HAVE_OPENDIR 1 \#endif \#if !defined(HAVE_PIPE) \# define HAVE_PIPE 0 \#endif \#if !defined(HAVE_STAT) \# define HAVE_STAT 0 \#endif \#if !defined(HAVE_STDINT_H) \# define HAVE_STDINT_H 0 \#endif \#endif /* _WIN32 */ $FSL_PLATFORM_CONFIG_H \#endif /* $incGuard */ " close $out puts "Generated $ofile." return } # end of --amal bootstrap config generation |
︙ | |||
46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 | 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 | + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + | set CC_FLAG_C99 {} } if {![cc-check-c99]} { user-error "As of 2021-02-21, libfossil requires C99." } define CC_FLAG_C99 $CC_FLAG_C99 ######################################################################## # Module loader is currently used only by the s2 binding. define HAVE_LIBLTDL 0 define HAVE_LIBDL 0 define LDFLAGS_MODULE_LOADER "" define FSL_ENABLE_MODULE_LOADER 0 if {[cc-check-includes ltdl.h] && [cc-check-function-in-lib lt_dlopen ltdl]} { define HAVE_LIBLTDL 1 define LDFLAGS_MODULE_LOADER "-lltdl" define FSL_ENABLE_MODULE_LOADER 1 } elseif {[cc-with {-includes dlfcn.h} { cctest -link 1 -declare "extern char* dlerror(void);" -code "dlerror();"}]} { msg-result "This system can use dlopen() w/o -ldl" define HAVE_LIBDL 1 define LDFLAGS_MODULE_LOADER "" define FSL_ENABLE_MODULE_LOADER 1 } elseif {[cc-check-includes dlfcn.h]} { msg-result "Found dlfcn.h." define HAVE_LIBDL 1 if {[cc-check-function-in-lib dlopen dl]} { msg-result "Found libdl." define LDFLAGS_MODULE_LOADER "-ldl" } else { msg-result "No libdl found. Assuming dlopen is built-in." define LDFLAGS_MODULE_LOADER "" } define FSL_ENABLE_MODULE_LOADER 1 } if {![get-define FSL_ENABLE_MODULE_LOADER]} { msg-result {No usable module loading library found. No worries, because we won't have a module system yet. :-D} } else { msg-result {Found a module loader. Now we just need something to do with it.} } ######################################################################## # A proxy for cc-check-function-in-lib which "undoes" any changes that # routine makes to the LIBS define. proc my-check-function-in-lib {function libs {otherlibs {}}} { set _LIBS [get-define LIBS] set found [cc-check-function-in-lib $function $libs $otherlibs] define LIBS $_LIBS return $found } ######################################################################## # readline is only used (if at all) by s2sh. If it's not available, we # fall back to a tree-local copy of the BSD-licensed linenoise editing # library. if {[cc-check-includes readline/readline.h] && [my-check-function-in-lib readline readline]} { define FSL_ENABLE_READLINE 1 define FSL_ENABLE_LINENOISE 0 msg-result "Enabling libreadline for f-s2sh line editing." } else { msg-result "libreadline not found. f-s2sh will use the linenoise line editor." define FSL_ENABLE_READLINE 0 define FSL_ENABLE_LINENOISE 1 define lib_readline "" } # cc-check-functions getcwd fopen cc-check-functions opendir stat pipe inet_ntop getaddrinfo #msg-result [cc-check-functions lstat] if {[cc-check-functions lstat]} { # for lstat() on Linux and FreeBSD: |
︙ | |||
91 92 93 94 95 96 97 | 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 | - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + | msg-result "Non-debug build." set cFlags "$cFlags -O2" } else { msg-result "Debug build enabled. Use --no-debug to build in non-debug mode." set cFlags "$cFlags -g -DDEBUG -O0" } |
Added bindings/Makefile.
|
Added bindings/Makefile.in.
|
Added bindings/cpp/Context.cpp.