Re:Source code of the file with the Zune bug (starts on line...
by JesseAldridge on Friday January 02, 2009 @09:54AM
(#417349)
From that function's comments:
// This function is called by WinCE OS to initialize the time after boot.
So how about calling it:
init_time
or maybe
init_time_after_boot
Re:Source code of the file with the Zune bug (starts on line...
by sounddust on Friday January 02, 2009 @08:35PM
(#418003)
The reason it's not calleld init_time_after_boot - well, first of all Microsoft coding standards call for CamelCase. But secondly, there are several "times", and there are several ways to "initialize" something, and there are several meanings to "boot."
You're either going to have a naming conflict, or you're going to have a bunch of idiots who wanted to initialize a different clock, who start posting to forums saying "i don't understand???! i called init_time waht's wrong???"
Sure, they could call it
SendTheIOCTLCommandToInitializeTheRealTimeClockForTheOEMAbstractionLayer
but sometimes the names of functions are going to be ugly.
The rest reads "HAL (hardware abstraction layer) initialize RTC (real-time clock)".. and that's what it does.
This is from five minutes looking at the source. Very little college embedded programming. What more do you want?