[Bf-blender-cvs] [177a0ca1317] master: Cleanup: comments (long lines) in various intern/ libs

Campbell Barton noreply at git.blender.org
Wed May 1 13:45:54 CEST 2019


Commit: 177a0ca131794a15d775577e4fa25c1d9e695d13
Author: Campbell Barton
Date:   Wed May 1 20:50:02 2019 +1000
Branches: master
https://developer.blender.org/rB177a0ca131794a15d775577e4fa25c1d9e695d13

Cleanup: comments (long lines) in various intern/ libs

===================================================================

M	intern/clog/clog.c
M	intern/ffmpeg/ffmpeg_compat.h
M	intern/guardedalloc/MEM_guardedalloc.h
M	intern/guardedalloc/intern/mallocn_guarded_impl.c
M	intern/guardedalloc/intern/mmap_win.c
M	intern/guardedalloc/test/simpletest/memtest.c
M	intern/iksolver/intern/IK_QJacobianSolver.cpp
M	intern/iksolver/intern/IK_QSegment.cpp
M	intern/iksolver/intern/IK_QSegment.h
M	intern/locale/boost_locale_wrapper.cpp
M	intern/opencolorio/ocio_impl.cc
M	intern/opencolorio/ocio_impl_glsl.cc

===================================================================

diff --git a/intern/clog/clog.c b/intern/clog/clog.c
index ea6f215e8f0..da94acd97b1 100644
--- a/intern/clog/clog.c
+++ b/intern/clog/clog.c
@@ -356,7 +356,8 @@ static void clg_ctx_fatal_action(CLogContext *ctx)
 static void clg_ctx_backtrace(CLogContext *ctx)
 {
   /* Note: we avoid writing fo 'FILE', for backtrace we make an exception,
-   * if necessary we could have a version of the callback that writes to file descriptor all at once. */
+   * if necessary we could have a version of the callback that writes to file
+   * descriptor all at once. */
   ctx->callbacks.backtrace_fn(ctx->output_file);
   fflush(ctx->output_file);
 }
diff --git a/intern/ffmpeg/ffmpeg_compat.h b/intern/ffmpeg/ffmpeg_compat.h
index 1eafd409668..863fbd40bb0 100644
--- a/intern/ffmpeg/ffmpeg_compat.h
+++ b/intern/ffmpeg/ffmpeg_compat.h
@@ -1,7 +1,7 @@
 /*
  * compatibility macros to make every ffmpeg installation appear
  * like the most current installation (wrapping some functionality sometimes)
- * it also includes all ffmpeg header files at once, no need to do it 
+ * it also includes all ffmpeg header files at once, no need to do it
  * separately.
  *
  * Copyright (c) 2011 Peter Schlaile
@@ -136,8 +136,8 @@ int av_sample_fmt_is_planar(enum AVSampleFormat sample_fmt)
 
 #endif
 
-/* XXX TODO Probably fix to correct modern flags in code? Not sure how old FFMPEG we want to support though,
- * so for now this will do. */
+/* XXX TODO Probably fix to correct modern flags in code? Not sure how old FFMPEG we want to
+ * support though, so for now this will do. */
 
 #ifndef FF_MIN_BUFFER_SIZE
 #  ifdef AV_INPUT_BUFFER_MIN_SIZE
@@ -215,8 +215,8 @@ int av_get_cropped_height_from_codec(AVCodecContext *pCodecCtx)
   /* really bad hack to remove this dreadfull black bar at the bottom
    with Canon footage and old ffmpeg versions.
    (to fix this properly in older ffmpeg versions one has to write a new
-   demuxer...) 
-     
+   demuxer...)
+
    see the actual fix here for reference:
 
    http://git.libav.org/?p=libav.git;a=commit;h=30f515091c323da59c0f1b533703dedca2f4b95d
diff --git a/intern/guardedalloc/MEM_guardedalloc.h b/intern/guardedalloc/MEM_guardedalloc.h
index b5ac3288a61..b1a0eda0e22 100644
--- a/intern/guardedalloc/MEM_guardedalloc.h
+++ b/intern/guardedalloc/MEM_guardedalloc.h
@@ -60,13 +60,13 @@ extern "C" {
 #endif
 
 /** Returns the length of the allocated memory segment pointed at
-   * by vmemh. If the pointer was not previously allocated by this
-   * module, the result is undefined.*/
+ * by vmemh. If the pointer was not previously allocated by this
+ * module, the result is undefined.*/
 extern size_t (*MEM_allocN_len)(const void *vmemh) ATTR_WARN_UNUSED_RESULT;
 
 /**
-   * Release memory previously allocated by this module.
-   */
+ * Release memory previously allocated by this module.
+ */
 extern void (*MEM_freeN)(void *vmemh);
 
 #if 0 /* UNUSED */
@@ -77,23 +77,23 @@ extern short (*MEM_testN)(void *vmemh);
 #endif
 
 /**
-   * Duplicates a block of memory, and returns a pointer to the
-   * newly allocated block.  */
+ * Duplicates a block of memory, and returns a pointer to the
+ * newly allocated block.  */
 extern void *(*MEM_dupallocN)(const void *vmemh) /* ATTR_MALLOC */ ATTR_WARN_UNUSED_RESULT;
 
 /**
-   * Reallocates a block of memory, and returns pointer to the newly
-   * allocated block, the old one is freed. this is not as optimized
-   * as a system realloc but just makes a new allocation and copies
-   * over from existing memory. */
+ * Reallocates a block of memory, and returns pointer to the newly
+ * allocated block, the old one is freed. this is not as optimized
+ * as a system realloc but just makes a new allocation and copies
+ * over from existing memory. */
 extern void *(*MEM_reallocN_id)(void *vmemh,
                                 size_t len,
                                 const char *str) /* ATTR_MALLOC */ ATTR_WARN_UNUSED_RESULT
     ATTR_ALLOC_SIZE(2);
 
 /**
-   * A variant of realloc which zeros new bytes
-   */
+ * A variant of realloc which zeros new bytes
+ */
 extern void *(*MEM_recallocN_id)(void *vmemh,
                                  size_t len,
                                  const char *str) /* ATTR_MALLOC */ ATTR_WARN_UNUSED_RESULT
@@ -103,62 +103,62 @@ extern void *(*MEM_recallocN_id)(void *vmemh,
 #define MEM_recallocN(vmemh, len) MEM_recallocN_id(vmemh, len, __func__)
 
 /**
-   * Allocate a block of memory of size len, with tag name str. The
-   * memory is cleared. The name must be static, because only a
-   * pointer to it is stored ! */
+ * Allocate a block of memory of size len, with tag name str. The
+ * memory is cleared. The name must be static, because only a
+ * pointer to it is stored ! */
 extern void *(*MEM_callocN)(size_t len, const char *str) /* ATTR_MALLOC */ ATTR_WARN_UNUSED_RESULT
     ATTR_ALLOC_SIZE(1) ATTR_NONNULL(2);
 
 /**
-   * Allocate a block of memory of size (len * size), with tag name
-   * str, aborting in case of integer overflows to prevent vulnerabilities.
-   * The memory is cleared. The name must be static, because only a
-   * pointer to it is stored ! */
+ * Allocate a block of memory of size (len * size), with tag name
+ * str, aborting in case of integer overflows to prevent vulnerabilities.
+ * The memory is cleared. The name must be static, because only a
+ * pointer to it is stored ! */
 extern void *(*MEM_calloc_arrayN)(size_t len,
                                   size_t size,
                                   const char *str) /* ATTR_MALLOC */ ATTR_WARN_UNUSED_RESULT
     ATTR_ALLOC_SIZE(1, 2) ATTR_NONNULL(3);
 
 /**
-   * Allocate a block of memory of size len, with tag name str. The
-   * name must be a static, because only a pointer to it is stored !
-   * */
+ * Allocate a block of memory of size len, with tag name str. The
+ * name must be a static, because only a pointer to it is stored !
+ * */
 extern void *(*MEM_mallocN)(size_t len, const char *str) /* ATTR_MALLOC */ ATTR_WARN_UNUSED_RESULT
     ATTR_ALLOC_SIZE(1) ATTR_NONNULL(2);
 
 /**
-   * Allocate a block of memory of size (len * size), with tag name str,
-   * aborting in case of integer overflow to prevent vulnerabilities. The
-   * name must be a static, because only a pointer to it is stored !
-   * */
+ * Allocate a block of memory of size (len * size), with tag name str,
+ * aborting in case of integer overflow to prevent vulnerabilities. The
+ * name must be a static, because only a pointer to it is stored !
+ * */
 extern void *(*MEM_malloc_arrayN)(size_t len,
                                   size_t size,
                                   const char *str) /* ATTR_MALLOC */ ATTR_WARN_UNUSED_RESULT
     ATTR_ALLOC_SIZE(1, 2) ATTR_NONNULL(3);
 
 /**
-   * Allocate an aligned block of memory of size len, with tag name str. The
-   * name must be a static, because only a pointer to it is stored !
-   * */
+ * Allocate an aligned block of memory of size len, with tag name str. The
+ * name must be a static, because only a pointer to it is stored !
+ * */
 extern void *(*MEM_mallocN_aligned)(size_t len,
                                     size_t alignment,
                                     const char *str) /* ATTR_MALLOC */ ATTR_WARN_UNUSED_RESULT
     ATTR_ALLOC_SIZE(1) ATTR_NONNULL(3);
 
 /**
-   * Same as callocN, clears memory and uses mmap (disk cached) if supported.
-   * Can be free'd with MEM_freeN as usual.
-   * */
+ * Same as callocN, clears memory and uses mmap (disk cached) if supported.
+ * Can be free'd with MEM_freeN as usual.
+ * */
 extern void *(*MEM_mapallocN)(size_t len,
                               const char *str) /* ATTR_MALLOC */ ATTR_WARN_UNUSED_RESULT
     ATTR_ALLOC_SIZE(1) ATTR_NONNULL(2);
 
 /** Print a list of the names and sizes of all allocated memory
-   * blocks. as a python dict for easy investigation */
+ * blocks. as a python dict for easy investigation */
 extern void (*MEM_printmemlist_pydict)(void);
 
 /** Print a list of the names and sizes of all allocated memory
-   * blocks. */
+ * blocks. */
 extern void (*MEM_printmemlist)(void);
 
 /** calls the function on all allocated memory blocks. */
@@ -171,22 +171,22 @@ extern void (*MEM_printmemlist_stats)(void);
 extern void (*MEM_set_error_callback)(void (*func)(const char *));
 
 /**
-   * Are the start/end block markers still correct ?
-   *
-   * @retval true for correct memory, false for corrupted memory. */
+ * Are the start/end block markers still correct ?
+ *
+ * @retval true for correct memory, false for corrupted memory. */
 extern bool (*MEM_consistency_check)(void);
 
 /** Set thread locking functions for safe memory allocation from multiple
-   * threads, pass NULL pointers to disable thread locking again. */
+ * threads, pass NULL pointers to disable thread locking again. */
 extern void (*MEM_set_lock_callback)(void (*lock)(void), void (*unlock)(void));
 
 /** Attempt to enforce OSX (or other OS's) to have malloc and stack nonzero */
 extern void (*MEM_set_memory_debug)(void);
 
 /**
-   * Memory usage stats
-   * - MEM_get_memory_in_use is all memory
-   * - MEM_get_mapped_memory_in_use is a subset of all memory */
+ * Memory usage stats
+ * - MEM_get_memory_in_use is all memory
+ * - MEM_get_mapped_memory_in_use is a subset of all memory */
 extern size_t (*MEM_get_memory_in_use)(void);
 /** Get mapped memory usage. */
 extern size_t (*MEM_get_mapped_memory_in_use)(void);
diff --git a/intern/guardedalloc/intern/mallocn_guarded_impl.c b/intern/guardedalloc/intern/mallocn_guarded_impl.c
index 384cba113ff..8ba14b3887b 100644
--- a/intern/guardedalloc/intern/mallocn_guarded_impl.c
+++ b/intern/guardedalloc/intern/mallocn_guarded_impl.c
@@ -106,8 +106,8 @@ typedef struct MemHead {
   int tag2;
   short mmap;      /* if true, memory was mmapped */
   short alignment; /* if non-zero aligned alloc was used
-                     * and alignment is stored here.
-                     */
+                    * and alignment is stored here.
+                    */
 #ifdef DEBUG_MEMCOUNTER
   int _count;
 #endif
diff --git a/intern/guardedalloc/intern/mmap_win.c b/intern/guardedalloc/intern/mmap_win.c
index 331d67aa55a..5b0c4b6614a 100644
--- a/intern/guardedalloc/intern/mmap_wi

@@ Diff output truncated at 10240 characters. @@



More information about the Bf-blender-cvs mailing list