Git Product home page Git Product logo

bdsort's People

Contributors

nlfiedler avatar

Watchers

 avatar  avatar  avatar

bdsort's Issues

Replace the alloc/free related macros with functions

There are a set of macros defined in bdsort.h that relate to memory allocation 
(e.g. SMALLOC, SCALLOC, FREE). These perform the usual memory allocation and 
free function calls, in addition to updating global variables to track memory 
usage. These should all be replaced with similar functions that have a static 
struct for keeping track of memory usage. In other words, get rid of some of 
the global variables and let the compiler decide if the functions should be 
inlined or not.

Original issue reported on code.google.com by [email protected] on 13 Feb 2011 at 2:59

Replace uses of strtok with strsep

Since we're compiling with C99 support, it's time to replace the uses of 
strtok() with strsep(), which handles empty tokens (i.e. two consecutive 
separators).

Original issue reported on code.google.com by [email protected] on 13 Feb 2011 at 12:26

Fix the many compiler warnings

When compiling the code with default warnings enabled there are a bunch of 
warnings issued for the bdsort code. Should try to correct as many of these as 
possible.

And then turn on more warnings with -Wall or -Wextra.

Original issue reported on code.google.com by [email protected] on 8 Feb 2011 at 3:11

Rewrite the whole thing in Rust

C is fine for embedded systems and OS kernels. Everything else should be 
written using a modern language with type safety and automatic memory safety. 
Rust is the obvious choice here.

Original issue reported on code.google.com by [email protected] on 12 Mar 2015 at 4:56

Add unit tests

It should be possible to set up something similar to unit tests for C code, 
which would be a good addition to the bdsort code base.

Original issue reported on code.google.com by [email protected] on 4 Feb 2011 at 5:58

Make command line arguments descriptive

Presently all of the command line arguments processed by main.c are cryptically 
named (e.g. sc, ls, oi). As such, there's no telling what they mean. All of 
them need to be renamed to something at least somewhat self descriptive (e.g. 
rename "oi" to "orderin").

Original issue reported on code.google.com by [email protected] on 13 Feb 2011 at 3:18

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.