Skip to content

[FEATURE REQUEST] Issue #1 [Build & Distribution]: The Umbrella Header (cstruct.h) & Namespace Refactoring #21

@FatinShadab

Description

@FatinShadab

Describe the feature

This feature involves creating a master entry point for the entire library.

  1. 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.).
  2. 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions