Closed
Description
- 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:
- Do not include node_internals.h (PR
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 definitions
Other ideas:
Keep the definition ofnode_module
internalC API for Node embedders
I would be happy to submit PRs for whatever ideas may be desired by the community.