7.30.2011

Actually no need for lists

I couldn't get my ass moving and make function notations out of my item macros. However, the (thus not always working) list macros themself are sooo minimal that there at best only one macro inserted and nothing else. Using the sentinel itself as a list item fulfills everything you would for managing a complete list including all their operations. It's absolutely null pointer safe when passing correct parameters, will have some awesome features I always wanted and it's extremely compact in instruction count. Even GCC's lowest optimization settings are able to shrink the code size dramatically - so yeah, there's no real need for additional wrapping macros. Well, about counting list items and so on... It's no problem counting them up manually. Just set var changes here and there... that's not the world's problem.

Hooray! Now we're getting closer. Next stop: macro stack operations!

No comments: