Cleanup: Move BKE_node.h to C++ #117773

Closed
Iliya Katushenock wants to merge 10 commits from mod_moder:tmp_movements into main

When changing the target branch, be careful to rebase the branch in your fork to match. See documentation.

No response

_No response_
Iliya Katushenock added 5 commits 2024-02-03 00:11:48 +01:00
Iliya Katushenock added 2 commits 2024-02-03 00:25:29 +01:00
Iliya Katushenock added 1 commit 2024-02-03 00:27:00 +01:00
Iliya Katushenock added 1 commit 2024-02-03 00:43:05 +01:00
delete typedef for structres, struct keywords and (void)s
Hans Goudey reviewed 2024-02-03 01:38:35 +01:00
Hans Goudey left a comment
Member

I like where you're headed with this, but first, before changing any of the functions (moving them to a namespace, organizing them, etc) I'd hope for one PR/commit that's just the very simple change of moving the contents of BKE_node.h to the end of BKE_node.hh and removing the old header.

I like where you're headed with this, but first, before changing any of the functions (moving them to a namespace, organizing them, etc) I'd hope for one PR/commit that's just the very simple change of moving the contents of `BKE_node.h` to the end of `BKE_node.hh` and removing the old header.
Author
Member

I like where you're headed with this, but first, before changing any of the functions (moving them to a namespace, organizing them, etc) I'd hope for one PR/commit that's just the very simple change of moving the contents of BKE_node.h to the end of BKE_node.hh and removing the old header.

There is one issue with small-change approach in this case: all functions and its comments is located in some certain zones (splitted by another comments). Initially i did splitting according to the just the fact if function is used in C code or no. But in result, there is was just many randomly distributed parts of old file in new one.
For now, i reimplement old BKE_node.c version of file (with code structure) and inserting small C++ part back into existing file structure (and manually apply next changes as well).
To achieve the same structure, but doing this step-by-step, everything need to be backed to C version and next be copied by lines sets (and this might be done on the fly, via just taking some C lines of code and moving them to C++ header, and changing other lines of C++ header to consider correct structure of code).
I just have choose more easier way to me.

> I like where you're headed with this, but first, before changing any of the functions (moving them to a namespace, organizing them, etc) I'd hope for one PR/commit that's just the very simple change of moving the contents of BKE_node.h to the end of BKE_node.hh and removing the old header. There is one issue with small-change approach in this case: all functions and its comments is located in some certain zones (splitted by another comments). Initially i did splitting according to the just the fact if function is used in C code or no. But in result, there is was just many randomly distributed parts of old file in new one. For now, i reimplement old BKE_node.c version of file (with code structure) and inserting small C++ part back into existing file structure (and manually apply next changes as well). To achieve the same structure, but doing this step-by-step, everything need to be backed to C version and next be copied by lines sets (and this might be done on the fly, via just taking some C lines of code and moving them to C++ header, and changing other lines of C++ header to consider correct structure of code). I just have choose more easier way to me.
Iliya Katushenock added 1 commit 2024-02-03 02:04:49 +01:00
full build errors fix
Author
Member
#121637.
Iliya Katushenock deleted branch tmp_movements 2024-05-10 00:21:56 +02:00

Pull request closed

Sign in to join this conversation.
No reviewers
No Label
Interest
Alembic
Interest
Animation & Rigging
Interest
Asset System
Interest
Audio
Interest
Automated Testing
Interest
Blender Asset Bundle
Interest
BlendFile
Interest
Collada
Interest
Compatibility
Interest
Compositing
Interest
Core
Interest
Cycles
Interest
Dependency Graph
Interest
Development Management
Interest
EEVEE
Interest
Freestyle
Interest
Geometry Nodes
Interest
Grease Pencil
Interest
ID Management
Interest
Images & Movies
Interest
Import Export
Interest
Line Art
Interest
Masking
Interest
Metal
Interest
Modeling
Interest
Modifiers
Interest
Motion Tracking
Interest
Nodes & Physics
Interest
OpenGL
Interest
Overlay
Interest
Overrides
Interest
Performance
Interest
Physics
Interest
Pipeline, Assets & IO
Interest
Platforms, Builds & Tests
Interest
Python API
Interest
Render & Cycles
Interest
Render Pipeline
Interest
Sculpt, Paint & Texture
Interest
Text Editor
Interest
Translations
Interest
Triaging
Interest
Undo
Interest
USD
Interest
User Interface
Interest
UV Editing
Interest
VFX & Video
Interest
Video Sequencer
Interest
Viewport & EEVEE
Interest
Virtual Reality
Interest
Vulkan
Interest
Wayland
Interest
Workbench
Interest: X11
Legacy
Asset Browser Project
Legacy
Blender 2.8 Project
Legacy
Milestone 1: Basic, Local Asset Browser
Legacy
OpenGL Error
Meta
Good First Issue
Meta
Papercut
Meta
Retrospective
Meta
Security
Module
Animation & Rigging
Module
Core
Module
Development Management
Module
Grease Pencil
Module
Modeling
Module
Nodes & Physics
Module
Pipeline, Assets & IO
Module
Platforms, Builds & Tests
Module
Python API
Module
Render & Cycles
Module
Sculpt, Paint & Texture
Module
Triaging
Module
User Interface
Module
VFX & Video
Module
Viewport & EEVEE
Platform
FreeBSD
Platform
Linux
Platform
macOS
Platform
Windows
Severity
High
Severity
Low
Severity
Normal
Severity
Unbreak Now!
Status
Archived
Status
Confirmed
Status
Duplicate
Status
Needs Info from Developers
Status
Needs Information from User
Status
Needs Triage
Status
Resolved
Type
Bug
Type
Design
Type
Known Issue
Type
Patch
Type
Report
Type
To Do
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: blender/blender#117773
No description provided.