libc: Document functions in headers #11

Merged
apio merged 12 commits from descriptive_headers into main 2022-10-12 10:11:45 +00:00
Owner

Right now, header functions are of the sort:
int foo(int, const char*);

These prototypes are not very descriptive.

This pull request starts changing the headers to add parameter names to functions and a short description, to be more helpful and expressive.

Now foo would be:

// Does the foo operation bar times to the string baz.
int foo(int bar, const char* baz);

Which is a lot more readable.

Right now, header functions are of the sort: int foo(int, const char*); These prototypes are not very descriptive. This pull request starts changing the headers to add parameter names to functions and a short description, to be more helpful and expressive. Now foo would be: // Does the foo operation bar times to the string baz. int foo(int bar, const char* baz); Which is a lot more readable.
apio added 1 commit 2022-10-12 09:05:05 +00:00
apio added 1 commit 2022-10-12 09:19:21 +00:00
apio added 1 commit 2022-10-12 09:20:54 +00:00
apio added 1 commit 2022-10-12 09:30:28 +00:00
Also, add prototypes for calloc() and realloc(), which were already implemented but not in the header.
apio added 1 commit 2022-10-12 09:51:40 +00:00
apio added 1 commit 2022-10-12 09:54:36 +00:00
apio added 2 commits 2022-10-12 09:58:14 +00:00
apio added 2 commits 2022-10-12 10:01:24 +00:00
apio added 1 commit 2022-10-12 10:06:53 +00:00
apio added 1 commit 2022-10-12 10:07:48 +00:00
apio changed title from WIP: libc: Document functions in headers to libc: Document functions in headers 2022-10-12 10:11:23 +00:00
apio merged commit a8eb7a6b66 into main 2022-10-12 10:11:45 +00:00
apio deleted branch descriptive_headers 2022-10-12 10:11:45 +00:00
apio added the
enhancement
label 2022-10-12 10:12:05 +00:00
Sign in to join this conversation.
No reviewers
No Milestone
No project
No Assignees
1 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: apio/Luna#11
No description provided.