Giter Site home page Giter Site logo

matteoalessiocarrara / readability Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 0.0 27 KB

These headers let you able to read C code better, contains type definitons and some macros (even standard libaries macros)

License: GNU General Public License v3.0

C 100.00%

readability's Introduction

Readability

These headers let you able to read C code better, contains type definitons and some macros (even standard libaries macros).

Example

/* C code without readability */
if ((!func1() && func2()) || func3())

/* w/ readability */
if ((not func1() and func2()) or func3())

/* without */
b = 1 ^ 0;

/* w/ readability */
b = true xor false;

/* without */
if ((tab_closed == 1) && !was_last_tab)

/* w/ readability */
if ((tab_closed is true) and not was_last_tab)

/* without */
char * foo = "bar";
unsigned char b = 0b01000101;

/* w/ readability */
str foo = "bar";
unsigned byte b = 0b01000101;

Using the header##

Just include readability.h file in C source code, then you can use new type definitions and macros. You can also include only some headers, if others do not interest you.

Standard

Headers should work with the c99 standard, and perhaps even with the previous standards, if you're lucky :)

Achievement

Achievement is to get better visiblity in C source code.

Inspiration

This was inspired from: "The Zen of Python":

Beautiful is better than ugly.
Explicit is better than implicit.
Simple is better than complex.
Complex is better than complicated.
Flat is better than nested.
Sparse is better than dense.
Readability counts.

License

Licensed under GPLv3 this is free software, read about it in file LICENSE

Other infos

This is the Unix philosophy: Write programs that do one thing and do it well. Write programs to work together. Write programs to handle text streams, because that is a universal interface.

Official github repository: GitHub
Mailto: [email protected]

readability's People

Contributors

matteoalessiocarrara avatar r0pgadget avatar

Watchers

James Cloos avatar  avatar

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.