barrust / c-utils Goto Github PK
View Code? Open in Web Editor NEWC utility libraries
License: MIT License
C utility libraries
License: MIT License
Move from Travis-ci to github actions
#ifdef __cplusplus
extern "C" {
#endif
/* all the codes */
#ifdef __cplusplus
} // extern "C"
#endif
Adding an automatic test for all new code pushed would help ensure everything is working as expected. This could also allow us to test windows environments.
Add a linked list library and, perhaps, a doubly linked list library
It would be nice if tests could be run on a windows machine; until travis.ci has better windows support, this may be difficult. Until then, another CI host may be needed. I figure there are issues (readdir
, _rmdir
, _mkdir
, etc) will need to be resolved or thought through,
An error occurs when using the fs_resolve_path
function on a filename within the same directory:
fs_resolve_path("./somefile.txt"); // works
fs_resolve_path("somefile.txt"); // segfaults
It seems that we need to check for a -1 result for the first delimiter before jumping into the while loop.
Add a new function that checks and sets the bit to allow for simpler check and set
operations.
Some thoughts:
The only thing that needs the math library (-lm) is the ceil function for bitarray. It would be nice if that requirement were removed.
There are many places that the doubly linked list could be simplified and reuse code; this cleanup will make it easier to read and maintain.
Now that it is (almost) possible to add vertices by id, it would be easier to allow for parallel generation of the graph with OpenMP support. There are a few considerations including using atomic builtins (gcc) for increments and decrements.
There are several places in the fileutils library that are not fully tested because they require symlinks, these should be tested in full as much as possible!
Need a function to get and set the permissions of a filepath as a mode_t
int fs_get_permissions(const char* path);
int fs_set_permissions(const char* path, int new_permissions);
fs_make_path()
- combine into a single pathfs_list_dir()
- return all the thingsIt would be beneficial to add a few more functions:
Currently c-utils does not support removing a directory. There are several different removal types that will need to be handled:
Some set of functionality should be supported!
Adding some examples to the code base could make it easier for others to get started with the project.
Currently, each vertex is assigned an id so that it can be looked up in O(1) time. This makes using this library in parallel difficult as they may not be in the same order as they are from the source. Adding an alternate method of insertion that allows for the id to be passed in would help in making this library closer to thread safe (OpenMP).
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.