- Version: 6.9.1/7.2.0/general
- Platform: UNIX/general
- Subsystem: src (general)
Considering that the node.h header is exported for both addons and embedders I see a few things that could be improved:
Will discuss the remaining ideas elsewhere (related to nodejs/api#31):
Break node.h into the smaller parts such as:
API for addons
external API for embedder(s)
type definitions
Other ideas:
Keep the definition of node_module internal
C API for Node embedders
I would be happy to submit PRs for whatever ideas may be desired by the community.
Considering that the
node.hheader is exported for both addons and embedders I see a few things that could be improved:comingnode.h [API] cleanup: remove node_internals.h & extra dependencies from node.h #9767)Cleanup orremove lines to define size_t/ssize_t for UNIX/Windows (node.h#L167-L176).Ideal may be node-specific size typedefs. Any other ideas @tjfontaine?(now part of PR node.h [API] cleanup: remove node_internals.h & extra dependencies from node.h #9767)_Will discuss the remaining ideas elsewhere (related to nodejs/api#31):
Break node.h into the smaller parts such as:API for addonsexternal API for embedder(s)type definitionsOther ideas:Keep the definition ofnode_moduleinternalC API for Node embeddersI would be happy to submit PRs for whatever ideas may be desired by the community.