]> git.ipfire.org Git - thirdparty/zstd.git/commitdiff
More descriptive exclusion error; updated docs and copyright 3005/head
authorCarl Woffenden <cwoffenden@gmail.com>
Thu, 20 Jan 2022 13:50:31 +0000 (14:50 +0100)
committerCarl Woffenden <cwoffenden@gmail.com>
Thu, 20 Jan 2022 13:50:31 +0000 (14:50 +0100)
build/single_file_libs/combine.py
build/single_file_libs/combine.sh
build/single_file_libs/zstd-in.c
build/single_file_libs/zstddeclib-in.c

index 6443edad3bc177847e13e53b81e50c5ba4b30316..badd68a91aff542b52dda28e83156d850bcbe9a3 100755 (executable)
@@ -171,7 +171,7 @@ def add_file(file: Path, file_name: str = None) -> None:
                     if (resolved):
                         if (resolved in excludes):
                             # The file was excluded so error if the compiler uses it
-                            write_line(f'#error Using excluded file: {inc_name}')
+                            write_line(f'#error Using excluded file: {inc_name} (re-amalgamate source to fix)')
                             error_line(f'Excluding: {inc_name}')
                         else:
                             if (resolved not in found):
index 674a5a275c8a2b4b9530f76ab29645eca2d5db9d..a4933bf21d6c8e05e1a559f41242e0616d091ce9 100755 (executable)
@@ -130,7 +130,7 @@ add_file() {
         local res_inc="$(resolve_include "$srcdir" "$inc")"
         if list_has_item "$XINCS" "$inc"; then
           # The file was excluded so error if the source attempts to use it
-          write_line "#error Using excluded file: $inc"
+          write_line "#error Using excluded file: $inc (re-amalgamate source to fix)"
           log_line "Excluding: $inc"
         else
           if ! list_has_item "$FOUND" "$res_inc"; then
index c22e4cd971e4fbb9465cbdf9a3fbffa45e25f4af..eecd9a688ee5942eb3c351435face3242a82e38d 100644 (file)
@@ -4,11 +4,11 @@
  *
  * Generate using:
  * \code
- *     combine.sh -r ../../lib -x legacy/zstd_legacy.h -o zstd.c zstd-in.c
+ *     python combine.py -r ../../lib -x legacy/zstd_legacy.h -o zstd.c zstd-in.c
  * \endcode
  */
 /*
- * Copyright (c) 2016-2021, Yann Collet, Facebook, Inc.
+ * Copyright (c) 2016-present, Yann Collet, Facebook, Inc.
  * All rights reserved.
  *
  * This source code is licensed under both the BSD-style license (found in the
  * Note: the undefs for xxHash allow Zstd's implementation to coincide with with
  * standalone xxHash usage (with global defines).
  *
+ * Note: if you enable ZSTD_LEGACY_SUPPORT the combine.py script will need
+ * re-running without the "-x legacy/zstd_legacy.h" option (it excludes the
+ * legacy support at the source level).
+ *
  * Note: multithreading is enabled for all platforms apart from Emscripten.
  */
 #define DEBUGLEVEL 0
index 42c510736b9963d3c7a820c1d141ec89edd7237c..d0343c54a460a86bccfb0bd2b00083db46522dd2 100644 (file)
@@ -4,11 +4,11 @@
  *
  * Generate using:
  * \code
- *     combine.sh -r ../../lib -x legacy/zstd_legacy.h -o zstddeclib.c zstddeclib-in.c
+ *     python combine.py -r ../../lib -x legacy/zstd_legacy.h -o zstddeclib.c zstddeclib-in.c
  * \endcode
  */
 /*
- * Copyright (c) 2016-2021, Yann Collet, Facebook, Inc.
+ * Copyright (c) 2016-present, Yann Collet, Facebook, Inc.
  * All rights reserved.
  *
  * This source code is licensed under both the BSD-style license (found in the
  *
  * Note: the undefs for xxHash allow Zstd's implementation to coincide with with
  * standalone xxHash usage (with global defines).
+ *
+ * Note: if you enable ZSTD_LEGACY_SUPPORT the combine.py script will need
+ * re-running without the "-x legacy/zstd_legacy.h" option (it excludes the
+ * legacy support at the source level).
  */
 #define DEBUGLEVEL 0
 #define MEM_MODULE