Page 1 of 1
constants.h sizes
Posted: Thu May 22, 2014 9:14 am
by kackle123
Is there some easy way for me to know what the values in constants.h represent (bytes, words, etc.)? For example:
Thank you.
Re: constants.h sizes
Posted: Thu May 22, 2014 9:18 am
by dciliske
Honestly, the quickest way (currently) is to just grep through the install and look for where it is used. Most of the time "SIZE" constants will be for bytes.
We should probably annotate the values in some way...
Re: constants.h sizes
Posted: Thu May 22, 2014 9:57 am
by kackle123
I first tried searching through the nburn's "include" and "system" directories using Windows' Explorer, but came up empty. Actually I'm now thinking my Windows search feature is broken. Thank you anyway.
And yes, code comments are nice!
Re: constants.h sizes
Posted: Thu May 22, 2014 10:03 am
by rnixon
Agent Ransack is free, and incredibly good for searching files.
Re: constants.h sizes
Posted: Thu May 22, 2014 10:25 am
by kackle123
Thank you, rnixon. I just downloaded it minutes before your post!
Re: constants.h sizes
Posted: Thu May 22, 2014 10:52 am
by tod
I don't know if it's been disabled in NBEclipse but the standard installs that I use allow you to search directories right from inside Eclipse.
Search->Search...
Make sure the Remote Search tab is selected. The green arrows show the folder selection areas. The blue arrows show some features that I find useful.
I've also used the similar feature found in TextPad when I happen to have that open.

- Search File Dialog
- SearchFiles.png (38.37 KiB) Viewed 11749 times
Re: constants.h sizes
Posted: Thu May 22, 2014 10:55 am
by tod
Dan,
If it were called
it would be self-documenting. I suppose
changing the name would break code but
adding a second name would not.
Re: constants.h sizes
Posted: Thu May 22, 2014 12:00 pm
by kackle123
Thanks tod. Shame on me for forgetting that Eclipse can do that.
Re: constants.h sizes
Posted: Thu May 22, 2014 12:30 pm
by tod
<shamelessPromo>
Eclipse does so much it's easy to forget features exist, which is why a
certain course or
two on Pluralsight should be watched again and again and...

</shamelessPromo>
Re: constants.h sizes
Posted: Thu May 22, 2014 1:49 pm
by kackle123
<shamelessPraise>
Holy cow! Now I know where to go if I need to expand my Eclipse skills...
</shamelessPraise>