Describe the feature
This feature involves creating a master entry point for the entire library.
- The Umbrella Header: Create
cstruct.h in the root directory that includes all sub-headers (SLL/sll.h, DLL/dll.h, CLL/cll.h, etc.).
- Namespace Refactoring: To prevent naming collisions when multiple structures are used together, we must prefix functions. For example,
insert_at_begin() in SLL becomes sll_insert_at_begin().
It should be implemented because
Currently, if a user wants to use both SLL and CLL, they have to include multiple files and may face "duplicate symbol" errors during compilation. A master header with prefixed functions makes the library professional and "plug-and-play" ready.
Additional context
Goal:
Standardize the naming convention and provide a single include file.
Files to Create/Modify:
cstruct.h: The master include file.
- All
.h and .c files in SLL, DLL, CLL folders (for prefixing).
Specific Task:
Ensure all functions follow the [type]_[action] format (e.g., stack_push, queue_enqueue).
Dependency:
None initally
Would you like to work on this issue?
None
Describe the feature
This feature involves creating a master entry point for the entire library.
cstruct.hin the root directory that includes all sub-headers (SLL/sll.h,DLL/dll.h,CLL/cll.h, etc.).insert_at_begin()in SLL becomessll_insert_at_begin().It should be implemented because
Currently, if a user wants to use both SLL and CLL, they have to include multiple files and may face "duplicate symbol" errors during compilation. A master header with prefixed functions makes the library professional and "plug-and-play" ready.
Additional context
Goal:
Files to Create/Modify:
cstruct.h: The master include file..hand.cfiles in SLL, DLL, CLL folders (for prefixing).Specific Task:
Dependency:
Would you like to work on this issue?
None