I can't edit my comment, but the source code seems to be here: https://github.com/SymbianSource
I could never accept the coding standard for curly bracket positioning.
I could never accept the coding standard for curly bracket positioning.
OK, so I had to look.
It's like they saw the two main camps (same line vs next line) and said "let's come up with something everyone will hate":
TInt GetROMSize(TInt /*aDeviceNumber*/, TInt /*aAttrib*/, TBool /*aSet*/, TAny* aInOut)
{
TMemoryInfoV1 info;
TPckg<TMemoryInfoV1> infoPckg(info);
TInt r=UserSvr::HalFunction(EHalGroupKernel, EKernelHalMemoryInfo, (TAny*)&infoPckg, NULL);
if (r==KErrNone)
{
*(TInt*)aInOut=info.iTotalRomInBytes;
}
return r;
}Hahaha, how bad could it be...
... Why the fuck would they need to indent every function by an 8-space tab!?
Now, over a decade later, I understand that they looked at the Symbian standard, and saw that anything goes.