awsdert / mitsy Goto Github PK
View Code? Open in Web Editor NEWMIT licensed C compiler
License: MIT License
MIT licensed C compiler
License: MIT License
file mcc_get.c (line 55 for current master head; c7625b1)
if ( size ) {
if ( addr ) addr = realloc( addr, size );
else addr = malloc( size );
There is no need for this; i.e. if addr is NULL then realloc(addr, size) is the same as realloc(NULL, size) which is perfectly fine and safe (if it's NULL realloc behaves the same as malloc(size)). So, although you'd need to add a temp variable in case realloc() fails I think that overall it would be more readable.
I attempted to update unit_tests.c so that it will compile using the latest code structure (filenames etc), but gave up in the attempt: too many errors. I could probably spend a lot of time and get it to work but maybe it's better to rewrite the file from scratch (?) to more accurately test the current state of the project. Not sure...
This is just a reminder for myself as I'm leaving for work in a minute and don't have my computer on (doing this from home using openhub)
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.