Giter Site home page Giter Site logo

unic's Introduction

unic

Standard macros and functions prepended with unic_ (Work in progress). I pronounce unic as unique, please avoid confusion by doing likewise.

About

Originally named fbstdc (because I hadn't thought of a good name yet). UniC stands for Universal C, as it's name implies aims to use universal C where ever possible, in practice this means as much as possible restricting code to C89 format & api, system level stuff will just get a wrapper.

Original Info

I often run into differences in various standard headers and am tired of re-wrapping around them, to avoid this problem I'm doing these headers from the ground up while defaulting to what is already provided and just adding in fallbacks for anything not defined, my projects will be adapted to use these headers instead so that I may stop thinking about if something is defined and simply use it, the only exceptions being ones like int8_t which depend on exact width, I typically use flexible width integers like intptr_t so those will not be an issue to me.

Modified Info

Similar to musl in purpose but with unic prepended to names, when in UNIC_FALLBACK is defined then the headers will check if original macros and functions are defined, if they're not and unic has the matching function/macro available then it will define them like this: #define name unic_name having unic prepended to the names means unic headers can be included along side the original stdc headers without issue, the only difference is inlcuding an extra libraries like this -l unic (or for certain compilers /l unic). For system stuff like /proc unic will provide handles via it's own api instead, the api is yet to be decided as gasp is currently the experimentation ground for that.

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.