Cleanup: redundant "void" in function declarations for C++

This commit is contained in:
Campbell Barton
2024-03-05 11:21:44 +11:00
parent b8cc85f602
commit 76867ad4c2
37 changed files with 117 additions and 117 deletions

View File

@@ -20,13 +20,13 @@ GHOST_DECLARE_HANDLE(GHOST_SystemPathsHandle);
* Creates the one and only instance of the system path access.
* \return An indication of success.
*/
extern GHOST_TSuccess GHOST_CreateSystemPaths(void);
extern GHOST_TSuccess GHOST_CreateSystemPaths();
/**
* Disposes the one and only system.
* \return An indication of success.
*/
extern GHOST_TSuccess GHOST_DisposeSystemPaths(void);
extern GHOST_TSuccess GHOST_DisposeSystemPaths();
/**
* Determine the base dir in which shared resources are located. It will first try to use
@@ -57,7 +57,7 @@ extern const char *GHOST_getUserSpecialDir(GHOST_TUserSpecialDirTypes type);
* Determine the dir in which the binary file is found.
* \return Unsigned char string pointing to binary dir (eg ~/usr/local/bin/).
*/
extern const char *GHOST_getBinaryDir(void);
extern const char *GHOST_getBinaryDir();
/**
* Add the file to the operating system most recently used files

View File

@@ -24,7 +24,7 @@ class GHOST_DisplayManagerCocoa : public GHOST_DisplayManager {
/**
* Constructor.
*/
GHOST_DisplayManagerCocoa(void);
GHOST_DisplayManagerCocoa();
/**
* Returns the number of display devices on this system.

View File

@@ -23,7 +23,7 @@ class GHOST_DisplayManagerWin32 : public GHOST_DisplayManager {
/**
* Constructor.
*/
GHOST_DisplayManagerWin32(void);
GHOST_DisplayManagerWin32();
/**
* Returns the number of display devices on this system.

View File

@@ -23,8 +23,8 @@ class GHOST_DropTargetWin32 : public IDropTarget {
* methods in IUnknown are the first entries in the VTable for every interface.
*/
HRESULT __stdcall QueryInterface(REFIID riid, void **ppv_obj);
ULONG __stdcall AddRef(void);
ULONG __stdcall Release(void);
ULONG __stdcall AddRef();
ULONG __stdcall Release();
/* IDropTarget implementation
* + The IDropTarget interface is one of the interfaces you implement to
@@ -50,7 +50,7 @@ class GHOST_DropTargetWin32 : public IDropTarget {
POINTL pt,
DWORD *pdw_effect);
HRESULT __stdcall DragOver(DWORD grf_key_state, POINTL pt, DWORD *pdw_effect);
HRESULT __stdcall DragLeave(void);
HRESULT __stdcall DragLeave();
HRESULT __stdcall Drop(IDataObject *p_data_object,
DWORD grf_key_state,
POINTL pt,

View File

@@ -246,7 +246,7 @@ class GHOST_System : public GHOST_ISystem {
* \param api: Enum indicating which API to use.
*/
virtual void setTabletAPI(GHOST_TTabletAPI api);
GHOST_TTabletAPI getTabletAPI(void);
GHOST_TTabletAPI getTabletAPI();
/**
* Get the color of the pixel at the current mouse cursor location
@@ -332,7 +332,7 @@ class GHOST_System : public GHOST_ISystem {
/**
* Returns GHOST_kSuccess if the clipboard contains an image.
*/
GHOST_TSuccess hasClipboardImage(void) const;
GHOST_TSuccess hasClipboardImage() const;
/**
* Get image data from the Clipboard

View File

@@ -229,7 +229,7 @@ class GHOST_SystemWin32 : public GHOST_System {
/**
* Returns GHOST_kSuccess if the clipboard contains an image.
*/
GHOST_TSuccess hasClipboardImage(void) const;
GHOST_TSuccess hasClipboardImage() const;
/**
* Get image data from the Clipboard
@@ -451,7 +451,7 @@ class GHOST_SystemWin32 : public GHOST_System {
/**
* Check current key layout for AltGr
*/
inline void handleKeyboardChange(void);
inline void handleKeyboardChange();
/**
* Windows call back routine for our window class.
@@ -483,7 +483,7 @@ class GHOST_SystemWin32 : public GHOST_System {
int m_wheelDeltaAccum;
};
inline void GHOST_SystemWin32::handleKeyboardChange(void)
inline void GHOST_SystemWin32::handleKeyboardChange()
{
m_keylayout = GetKeyboardLayout(0); /* Get keylayout for current thread. */
int i;

View File

@@ -217,7 +217,7 @@ class GHOST_WindowCocoa : public GHOST_Window {
*/
GHOST_TSuccess endProgressBar();
void setNativePixelSize(void);
void setNativePixelSize();
GHOST_TSuccess beginFullScreen() const
{
@@ -240,7 +240,7 @@ class GHOST_WindowCocoa : public GHOST_Window {
{
m_immediateDraw = value;
}
bool getImmediateDraw(void) const
bool getImmediateDraw() const
{
return m_immediateDraw;
}

View File

@@ -260,7 +260,7 @@ blender::asset_system::AssetLibrary *AS_asset_library_load(const char *name,
const char *library_dirpath);
/** Return whether any loaded AssetLibrary has unsaved changes to its catalogs. */
bool AS_asset_library_has_any_unsaved_catalogs(void);
bool AS_asset_library_has_any_unsaved_catalogs();
/**
* An asset library can include local IDs (IDs in the current file). Their pointers need to be

View File

@@ -29,21 +29,21 @@ struct ColorManagedDisplay;
struct ResultBLF;
struct rcti;
int BLF_init(void);
void BLF_exit(void);
int BLF_init();
void BLF_exit();
/**
* Close any user-loaded fonts that are not used by the Interface. Call when
* loading new blend files so that the old fonts are not still taking resources.
*/
void BLF_reset_fonts(void);
void BLF_reset_fonts();
void BLF_cache_clear(void);
void BLF_cache_clear();
/**
* Optional cache flushing function, called before #blf_batch_draw.
*/
void BLF_cache_flush_set_fn(void (*cache_flush_fn)(void));
void BLF_cache_flush_set_fn(void (*cache_flush_fn)());
/**
* Loads a font, or returns an already loaded font and increments its reference count.
@@ -65,7 +65,7 @@ void BLF_unload_mem(const char *name) ATTR_NONNULL(1);
#endif
void BLF_unload_id(int fontid);
void BLF_unload_all(void);
void BLF_unload_all();
char *BLF_display_name_from_file(const char *filepath) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL(1);
@@ -136,9 +136,9 @@ void BLF_matrix(int fontid, const float m[16]);
* Batch draw-calls together as long as
* the model-view matrix and the font remain unchanged.
*/
void BLF_batch_draw_begin(void);
void BLF_batch_draw_flush(void);
void BLF_batch_draw_end(void);
void BLF_batch_draw_begin();
void BLF_batch_draw_flush();
void BLF_batch_draw_end();
/**
* Draw the string using the current font.
@@ -331,7 +331,7 @@ void BLF_default_set(int fontid);
/**
* Get default font ID so we can pass it to other functions.
*/
int BLF_default(void);
int BLF_default();
/**
* Draw the string using the default font, size and DPI.
*/
@@ -344,13 +344,13 @@ void BLF_draw_default_shadowed(float x, float y, float z, const char *str, size_
/**
* Set size and DPI, and return default font ID.
*/
int BLF_set_default(void);
int BLF_set_default();
/* `blf_font_default.cc` */
int BLF_load_default(bool unique);
int BLF_load_mono_default(bool unique);
void BLF_load_font_stack(void);
void BLF_load_font_stack();
#ifndef NDEBUG
void BLF_state_print(int fontid);

View File

@@ -52,7 +52,7 @@ struct rcti;
extern struct FontBLF *global_font[BLF_MAX_FONT];
void blf_batch_draw_begin(struct FontBLF *font);
void blf_batch_draw(void);
void blf_batch_draw();
/**
* Some font have additional file with metrics information,
@@ -60,8 +60,8 @@ void blf_batch_draw(void);
*/
char *blf_dir_metrics_search(const char *filepath);
int blf_font_init(void);
void blf_font_exit(void);
int blf_font_init();
void blf_font_exit();
bool blf_font_id_is_valid(int fontid);
@@ -77,7 +77,7 @@ bool blf_ensure_face(struct FontBLF *font);
void blf_ensure_size(struct FontBLF *font);
void blf_draw_buffer__start(struct FontBLF *font);
void blf_draw_buffer__end(void);
void blf_draw_buffer__end();
struct FontBLF *blf_font_new_from_filepath(const char *filepath);
struct FontBLF *blf_font_new_from_mem(const char *name, const unsigned char *mem, size_t mem_size);

View File

@@ -28,8 +28,8 @@ struct ListBase;
* Without this any callers to this module that run early on,
* will miss out on changes from parsing arguments.
*/
void BKE_appdir_init(void);
void BKE_appdir_exit(void);
void BKE_appdir_init();
void BKE_appdir_exit();
/**
* Get the folder that's the "natural" starting point for browsing files on an OS.
@@ -39,15 +39,15 @@ void BKE_appdir_exit(void);
* \note On Windows `Users/{MyUserName}/Documents` is used as it's the default location to save
* documents.
*/
const char *BKE_appdir_folder_default(void) ATTR_WARN_UNUSED_RESULT;
const char *BKE_appdir_folder_root(void) ATTR_WARN_UNUSED_RESULT ATTR_RETURNS_NONNULL;
const char *BKE_appdir_folder_default_or_root(void) ATTR_WARN_UNUSED_RESULT ATTR_RETURNS_NONNULL;
const char *BKE_appdir_folder_default() ATTR_WARN_UNUSED_RESULT;
const char *BKE_appdir_folder_root() ATTR_WARN_UNUSED_RESULT ATTR_RETURNS_NONNULL;
const char *BKE_appdir_folder_default_or_root() ATTR_WARN_UNUSED_RESULT ATTR_RETURNS_NONNULL;
/**
* Get the user's home directory, i.e.
* - Unix: `$HOME`
* - Windows: `%userprofile%`
*/
const char *BKE_appdir_folder_home(void);
const char *BKE_appdir_folder_home();
/**
* Get the user's document directory, i.e.
* - Linux: `$HOME/Documents`
@@ -104,11 +104,11 @@ std::optional<std::string> BKE_appdir_resource_path_id(int folder_id, bool check
* Check if this is an install with user files kept together
* with the Blender executable and its installation files.
*/
bool BKE_appdir_app_is_portable_install(void);
bool BKE_appdir_app_is_portable_install();
/**
* Return true if templates exist
*/
bool BKE_appdir_app_template_any(void);
bool BKE_appdir_app_template_any();
bool BKE_appdir_app_template_id_search(const char *app_template, char *path, size_t path_maxncpy)
ATTR_NONNULL(1);
bool BKE_appdir_app_template_has_userpref(const char *app_template) ATTR_NONNULL(1);
@@ -122,11 +122,11 @@ void BKE_appdir_program_path_init(const char *argv0) ATTR_NONNULL(1);
/**
* Path to executable
*/
const char *BKE_appdir_program_path(void) ATTR_WARN_UNUSED_RESULT ATTR_RETURNS_NONNULL;
const char *BKE_appdir_program_path() ATTR_WARN_UNUSED_RESULT ATTR_RETURNS_NONNULL;
/**
* Path to directory of executable
*/
const char *BKE_appdir_program_dir(void) ATTR_WARN_UNUSED_RESULT ATTR_RETURNS_NONNULL;
const char *BKE_appdir_program_dir() ATTR_WARN_UNUSED_RESULT ATTR_RETURNS_NONNULL;
/**
* Gets a good default directory for fonts.
@@ -149,15 +149,15 @@ void BKE_tempdir_init(const char *userdir);
/**
* Path to persistent temporary directory (with trailing slash)
*/
const char *BKE_tempdir_base(void) ATTR_WARN_UNUSED_RESULT ATTR_RETURNS_NONNULL;
const char *BKE_tempdir_base() ATTR_WARN_UNUSED_RESULT ATTR_RETURNS_NONNULL;
/**
* Path to temporary directory (with trailing slash)
*/
const char *BKE_tempdir_session(void) ATTR_WARN_UNUSED_RESULT ATTR_RETURNS_NONNULL;
const char *BKE_tempdir_session() ATTR_WARN_UNUSED_RESULT ATTR_RETURNS_NONNULL;
/**
* Delete content of this instance's temp dir.
*/
void BKE_tempdir_session_purge(void);
void BKE_tempdir_session_purge();
/* folder_id */
enum {

View File

@@ -16,10 +16,10 @@ struct UserDef;
/**
* Only to be called on exit Blender.
*/
void BKE_blender_free(void);
void BKE_blender_free();
void BKE_blender_globals_init(void);
void BKE_blender_globals_clear(void);
void BKE_blender_globals_init();
void BKE_blender_globals_clear();
/** Replace current global Main by the given one, freeing existing one. */
void BKE_blender_globals_main_replace(Main *bmain);
@@ -53,4 +53,4 @@ void BKE_blender_userdef_data_free(UserDef *userdef, bool clear_fonts);
/* Blenders' own atexit (avoids leaking) */
void BKE_blender_atexit_register(void (*func)(void *user_data), void *user_data);
void BKE_blender_atexit_unregister(void (*func)(void *user_data), const void *user_data);
void BKE_blender_atexit(void);
void BKE_blender_atexit();

View File

@@ -16,8 +16,8 @@ struct Main;
struct Object;
struct Scene;
void BKE_cachefiles_init(void);
void BKE_cachefiles_exit(void);
void BKE_cachefiles_init();
void BKE_cachefiles_exit();
void *BKE_cachefile_add(Main *bmain, const char *name);

View File

@@ -129,8 +129,8 @@ void BKE_callback_exec_string(Main *bmain, eCbEvent evt, const char *str);
void BKE_callback_add(bCallbackFuncStore *funcstore, eCbEvent evt);
void BKE_callback_remove(bCallbackFuncStore *funcstore, eCbEvent evt);
void BKE_callback_global_init(void);
void BKE_callback_global_init();
/**
* Call on application exit.
*/
void BKE_callback_global_finalize(void);
void BKE_callback_global_finalize();

View File

@@ -276,7 +276,7 @@ extern IDTypeInfo IDType_ID_LINK_PLACEHOLDER;
/* ********** Helpers/Utils API. ********** */
/* Module initialization. */
void BKE_idtype_init(void);
void BKE_idtype_init();
/* General helpers. */
const IDTypeInfo *BKE_idtype_get_info_from_idtype_index(const int idtype_index);

View File

@@ -257,7 +257,7 @@ struct Main {
* \note Always generate a non-global Main, use #BKE_blender_globals_main_replace to put a newly
* created one in `G_MAIN`.
*/
Main *BKE_main_new(void);
Main *BKE_main_new();
void BKE_main_free(Main *mainvar);
/** Struct packaging log/report info about a Main merge result. */

View File

@@ -474,7 +474,7 @@ struct bNodeTreeType *ntreeTypeFind(const char *idname);
void ntreeTypeAdd(struct bNodeTreeType *nt);
void ntreeTypeFreeLink(const struct bNodeTreeType *nt);
bool ntreeIsRegistered(const struct bNodeTree *ntree);
struct GHashIterator *ntreeTypeGetIterator(void);
struct GHashIterator *ntreeTypeGetIterator();
/* Helper macros for iterating over tree types. */
#define NODE_TREE_TYPES_BEGIN(ntype) \
@@ -559,7 +559,7 @@ const char *nodeTypeFindAlias(const char *idname);
void nodeRegisterType(struct bNodeType *ntype);
void nodeUnregisterType(struct bNodeType *ntype);
void nodeRegisterAlias(struct bNodeType *nt, const char *alias);
struct GHashIterator *nodeTypeGetIterator(void);
struct GHashIterator *nodeTypeGetIterator();
/* Helper macros for iterating over node types. */
#define NODE_TYPES_BEGIN(ntype) \
@@ -579,7 +579,7 @@ struct bNodeSocketType *nodeSocketTypeFind(const char *idname);
void nodeRegisterSocketType(struct bNodeSocketType *stype);
void nodeUnregisterSocketType(struct bNodeSocketType *stype);
bool nodeSocketIsRegistered(const struct bNodeSocket *sock);
struct GHashIterator *nodeSocketTypeGetIterator(void);
struct GHashIterator *nodeSocketTypeGetIterator();
const char *nodeSocketTypeLabel(const bNodeSocketType *stype);
const char *nodeStaticSocketType(int type, int subtype);
@@ -1380,8 +1380,8 @@ void BKE_nodetree_remove_layer_n(struct bNodeTree *ntree, struct Scene *scene, i
/** \} */
void BKE_node_system_init(void);
void BKE_node_system_exit(void);
void BKE_node_system_init();
void BKE_node_system_exit();
namespace blender::bke {

View File

@@ -121,7 +121,7 @@ void BKE_vfont_build_char(Curve *cu,
int BKE_vfont_select_get(Object *ob, int *r_start, int *r_end);
void BKE_vfont_select_clamp(Object *ob);
void BKE_vfont_clipboard_free(void);
void BKE_vfont_clipboard_free();
void BKE_vfont_clipboard_set(const char32_t *text_buf, const CharInfo *info_buf, size_t len);
void BKE_vfont_clipboard_get(char32_t **r_text_buf,
CharInfo **r_info_buf,

View File

@@ -68,7 +68,7 @@ void BKE_ffmpeg_preset_set(RenderData *rd, int preset);
void BKE_ffmpeg_image_type_verify(RenderData *rd, const ImageFormatData *imf);
bool BKE_ffmpeg_alpha_channel_is_supported(const RenderData *rd);
void *BKE_ffmpeg_context_create(void);
void *BKE_ffmpeg_context_create();
void BKE_ffmpeg_context_free(void *context_v);
void BKE_ffmpeg_exit();

View File

@@ -39,7 +39,7 @@ struct bMovieHandle {
bool preview,
const char *suffix);
void *(*context_create)(void);
void *(*context_create)();
void (*context_free)(void *context_v);
};

View File

@@ -14,15 +14,15 @@ struct EnumPropertyItem;
* the case for Linux, Win and Mac.
* Also dynamically builds locales and locales' menu from "languages" text file.
*/
void BLT_lang_init(void);
void BLT_lang_init();
/* Free languages and locales_menu arrays created by BLT_lang_init. */
void BLT_lang_free(void);
void BLT_lang_free();
/* Set the current locale. */
void BLT_lang_set(const char *);
/* Get the current locale ([partial] ISO code, e.g. `pt_BR`). */
const char *BLT_lang_get(void);
const char *BLT_lang_get();
/* Get locale's elements (if relevant pointer is not NULL and element actually exists, e.g.
* if there is no variant, *variant and *language_variant will always be NULL).
@@ -46,4 +46,4 @@ void BLT_lang_locale_explode(const char *locale,
char **language_variant);
/* Get EnumPropertyItem's for translations menu. */
EnumPropertyItem *BLT_lang_RNA_enum_properties(void);
EnumPropertyItem *BLT_lang_RNA_enum_properties();

View File

@@ -21,11 +21,11 @@ const char *BLT_pgettext(const char *msgctxt, const char *msgid);
* - tooltips only include the popup tooltips when hovering a button.
* - report is for longer, additional information displayed in the UI, such as error messages.
* - new_dataname is the actual user-created data such as objects, meshes, etc. */
bool BLT_translate(void);
bool BLT_translate_iface(void);
bool BLT_translate_tooltips(void);
bool BLT_translate_reports(void);
bool BLT_translate_new_dataname(void);
bool BLT_translate();
bool BLT_translate_iface();
bool BLT_translate_tooltips();
bool BLT_translate_reports();
bool BLT_translate_new_dataname();
const char *BLT_translate_do(const char *msgctxt, const char *msgid);
const char *BLT_translate_do_iface(const char *msgctxt, const char *msgid);
const char *BLT_translate_do_tooltip(const char *msgctxt, const char *msgid);

View File

@@ -113,10 +113,10 @@ void COM_execute(Render *render,
* \brief Deinitialize the compositor caches and allocated memory.
* Use COM_clear_caches to only free the caches.
*/
void COM_deinitialize(void);
void COM_deinitialize();
/**
* \brief Clear all compositor caches. (Compositor system will still remain available).
* To deinitialize the compositor use the COM_deinitialize method.
*/
// void COM_clear_caches(void); // NOT YET WRITTEN
// void COM_clear_caches(); // NOT YET WRITTEN

View File

@@ -19,9 +19,9 @@ extern RenderEngineType DRW_engine_viewport_select_type;
extern DrawEngineType draw_engine_debug_select_type;
#endif
struct SELECTID_Context *DRW_select_engine_context_get(void);
struct GPUFrameBuffer *DRW_engine_select_framebuffer_get(void);
struct GPUTexture *DRW_engine_select_texture_get(void);
struct SELECTID_Context *DRW_select_engine_context_get();
struct GPUFrameBuffer *DRW_engine_select_framebuffer_get();
struct GPUTexture *DRW_engine_select_texture_get();
/* select_instance.cc */

View File

@@ -26,4 +26,4 @@ GPUShader *DRW_shader_draw_view_finalize_get();
GPUShader *DRW_shader_draw_resource_finalize_get();
GPUShader *DRW_shader_draw_command_generate_get();
void DRW_shaders_free(void);
void DRW_shaders_free();

View File

@@ -34,7 +34,7 @@ void catalogs_save_from_main_path(asset_system::AssetLibrary *library, const Mai
* and as such ignores the per asset library #catalogs_read_only().
*/
void catalogs_set_save_catalogs_when_file_is_saved(bool should_save);
bool catalogs_get_save_catalogs_when_file_is_saved(void);
bool catalogs_get_save_catalogs_when_file_is_saved();
/**
* Returns if the catalogs of \a library are allowed to be editable, or if the UI should forbid

View File

@@ -47,12 +47,12 @@ void region_layout(const bContext *C, ARegion *region);
void region_draw(const bContext *C, ARegion *region);
void region_blend_read_data(BlendDataReader *reader, ARegion *region);
void region_blend_write(BlendWriter *writer, ARegion *region);
int region_prefsizey(void);
int region_prefsizey();
void header_region_init(wmWindowManager *wm, ARegion *region);
void header_region(const bContext *C, ARegion *region);
void header_region_listen(const wmRegionListenerParams *params);
int header_region_size(void);
int header_region_size();
void header_regiontype_register(ARegionType *region_type, const int space_type);
/** \} */

View File

@@ -70,20 +70,20 @@ void GPU_select_begin_next(GPUSelectBuffer *buffer,
* \warning We rely on the order of object rendering on passes to be the same for this to work.
*/
bool GPU_select_load_id(unsigned int id);
void GPU_select_finalize(void);
void GPU_select_finalize();
/**
* Cleanup and flush selection results to buffer.
* Return number of hits and hits in buffer.
* if \a dopass is true, we will do a second pass with occlusion queries to get the closest hit.
*/
unsigned int GPU_select_end(void);
unsigned int GPU_select_end();
/* Cache selection region. */
bool GPU_select_is_cached(void);
void GPU_select_cache_begin(void);
void GPU_select_cache_load_id(void);
void GPU_select_cache_end(void);
bool GPU_select_is_cached();
void GPU_select_cache_begin();
void GPU_select_cache_load_id();
void GPU_select_cache_end();
/* Utilities. */

View File

@@ -83,7 +83,7 @@ BLI_INLINE void IMB_colormanagement_aces_to_scene_linear(float scene_linear[3],
const float aces[3]);
BLI_INLINE void IMB_colormanagement_scene_linear_to_aces(float aces[3],
const float scene_linear[3]);
const float *IMB_colormanagement_get_xyz_to_scene_linear(void);
const float *IMB_colormanagement_get_xyz_to_scene_linear();
/** \} */
@@ -300,12 +300,12 @@ void IMB_display_buffer_release(void *cache_handle);
int IMB_colormanagement_display_get_named_index(const char *name);
const char *IMB_colormanagement_display_get_indexed_name(int index);
const char *IMB_colormanagement_display_get_default_name(void);
const char *IMB_colormanagement_display_get_default_name();
/**
* Used by performance-critical pixel processing areas, such as color widgets.
*/
ColorManagedDisplay *IMB_colormanagement_display_get_named(const char *name);
const char *IMB_colormanagement_display_get_none_name(void);
const char *IMB_colormanagement_display_get_none_name();
const char *IMB_colormanagement_display_get_default_view_transform_name(
ColorManagedDisplay *display);
@@ -326,7 +326,7 @@ const char *IMB_colormanagement_view_get_indexed_name(int index);
int IMB_colormanagement_look_get_named_index(const char *name);
const char *IMB_colormanagement_look_get_indexed_name(int index);
const char *IMB_colormanagement_look_get_default_name(void);
const char *IMB_colormanagement_look_get_default_name();
const char *IMB_colormanagement_look_validate_for_view(const char *view_name,
const char *look_name);
@@ -483,7 +483,7 @@ bool IMB_colormanagement_setup_glsl_draw_from_space_ctx(const bContext *C,
/**
* Finish GLSL-based display space conversion.
*/
void IMB_colormanagement_finish_glsl_draw(void);
void IMB_colormanagement_finish_glsl_draw();
/** \} */

View File

@@ -60,8 +60,8 @@ struct GSet;
struct ImageFormatData;
struct Stereo3dFormat;
void IMB_init(void);
void IMB_exit(void);
void IMB_init();
void IMB_exit();
ImBuf *IMB_ibImageFromMemory(const unsigned char *mem,
size_t size,
@@ -674,8 +674,8 @@ void IMB_transform(const ImBuf *src,
/* FFMPEG */
void IMB_ffmpeg_init(void);
const char *IMB_ffmpeg_last_error(void);
void IMB_ffmpeg_init();
const char *IMB_ffmpeg_last_error();
GPUTexture *IMB_create_gpu_texture(const char *name,
ImBuf *ibuf,

View File

@@ -27,8 +27,8 @@ using MovieCacheGetPriorityDataFP = void *(*)(void *userkey);
using MovieCacheGetItemPriorityFP = int (*)(void *last_userkey, void *priority_data);
using MovieCachePriorityDeleterFP = void (*)(void *priority_data);
void IMB_moviecache_init(void);
void IMB_moviecache_destruct(void);
void IMB_moviecache_init();
void IMB_moviecache_destruct();
MovieCache *IMB_moviecache_create(const char *name,
int keysize,

View File

@@ -20,7 +20,7 @@
struct StampData;
void *IMB_exr_get_handle(void);
void *IMB_exr_get_handle();
void *IMB_exr_get_handle_name(const char *name);
/**

View File

@@ -78,7 +78,7 @@ ImBuf *IMB_thumb_manage(const char *file_or_lib_path, ThumbSize size, ThumbSourc
/**
* Create the necessary directories to store the thumbnails.
*/
void IMB_thumb_makedirs(void);
void IMB_thumb_makedirs();
/**
* Special function for loading a thumbnail embedded into a blend file.
@@ -93,7 +93,7 @@ bool IMB_thumb_load_font_get_hash(char *r_hash);
/* Threading */
void IMB_thumb_locks_acquire(void);
void IMB_thumb_locks_release(void);
void IMB_thumb_locks_acquire();
void IMB_thumb_locks_release();
void IMB_thumb_path_lock(const char *path);
void IMB_thumb_path_unlock(const char *path);

View File

@@ -9,14 +9,14 @@
struct ImBuf;
void imb_refcounter_lock_init(void);
void imb_refcounter_lock_exit(void);
void imb_refcounter_lock_init();
void imb_refcounter_lock_exit();
#ifndef WIN32
void imb_mmap_lock_init(void);
void imb_mmap_lock_exit(void);
void imb_mmap_lock(void);
void imb_mmap_unlock(void);
void imb_mmap_lock_init();
void imb_mmap_lock_exit();
void imb_mmap_lock();
void imb_mmap_unlock();
#else
# define imb_mmap_lock_init()
# define imb_mmap_lock_exit()

View File

@@ -77,13 +77,13 @@ struct ColorManagedLook {
/* ** Initialization / De-initialization ** */
void colormanagement_init(void);
void colormanagement_exit(void);
void colormanagement_init();
void colormanagement_exit();
void colormanage_cache_free(ImBuf *ibuf);
const char *colormanage_display_get_default_name(void);
ColorManagedDisplay *colormanage_display_get_default(void);
const char *colormanage_display_get_default_name();
ColorManagedDisplay *colormanage_display_get_default();
ColorManagedDisplay *colormanage_display_add(const char *name);
ColorManagedDisplay *colormanage_display_get_named(const char *name);
ColorManagedDisplay *colormanage_display_get_indexed(int index);

View File

@@ -24,9 +24,9 @@ struct ImBuf;
struct ImFileType {
/** Optional, called once when initializing. */
void (*init)(void);
void (*init)();
/** Optional, called once when exiting. */
void (*exit)(void);
void (*exit)();
/**
* Check if the data matches this file types 'magic',
@@ -67,8 +67,8 @@ extern const ImFileType *IMB_FILE_TYPES_LAST;
const ImFileType *IMB_file_type_from_ftype(int ftype);
const ImFileType *IMB_file_type_from_ibuf(const ImBuf *ibuf);
void imb_filetypes_init(void);
void imb_filetypes_exit(void);
void imb_filetypes_init();
void imb_filetypes_exit();
/** \} */

View File

@@ -165,7 +165,7 @@ bool USD_import(bContext *C,
bool as_background_job,
ReportList *reports);
int USD_get_version(void);
int USD_get_version();
/* USD Import and Mesh Cache interface. */