Name Rules
8-bit UCHAR and char begin with c, example: tcpip\arp.c UCHAR cHardwareLen;
16-bit USHORT and short begin with s, example: tcpip\ip.c USHORT sCheckSum;
32-bit UINT and int begin with i, example: tcpip\icmp.c UINT iMustBeZero;
BOOLEAN begins with b, example: tcpip\tcpsm.c BOOLEAN bFinAcked;
Add p to pointers, example: UCHAR pcDst[HW_ALEN]; char * pcBuf;
Add pp to 2-dimension pointers.
32-bit memory mapped registers begin with r, example: REG rStall; PREG prCtl;
8-bit memory mapped registers begin with rc, example: REG8 rc;
General struct T_XXXX_XXXX begins with t, example: PT_UDP_SOCKET ptNext;
General union U_XXXX_XXXX begins with u.
PT_XXXX_XXXX and PU_XXXX_XXXX define point to struct and union.
Function pointer F_XXXX_XXXX begins with f, example: F_TIMER_IRQ fCallBack;
Const data begins with c_, example: const char c_pcLoop[] = "LOOP"; const parameter in a function does not add c_.
None const global data begins with g_, example: UINT g_iCurrentTime;
Data only used within the source file begins with _, example: BOOLEAN _bTimer;
Related Information
Data structure of PA3288.
Data structure of PA6488.
|