<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div><div>Hi, langwan,</div><div><br></div><div>On 20.01.2010, at 8:36, langwan wrote:</div><blockquote type="cite"><font class="Apple-style-span" color="#000000"><br></font>i find these constants, i would like to know the laws of the definition of what these values.<br><br>because i want to add a core module, like NGX_HTTP_MODULE.<br><br>#define NGX_CORE_MODULE&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 0x45524F43&nbsp; /* "CORE" */<br>
#define NGX_CONF_MODULE&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 0x464E4F43&nbsp; /* "CONF" */<br>#define NGX_EVENT_MODULE&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 0x544E5645&nbsp; /* "EVNT" */<br>#define NGX_HTTP_MODULE&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 0x50545448&nbsp;&nbsp; /* "HTTP" */<br>#define NGX_MAIL_MODULE&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 0x4C49414D&nbsp;&nbsp;&nbsp;&nbsp; /* "MAIL" */<br></blockquote></div><br><div>The question got the answer:</div><div><blockquote type="cite">0x45524F43&nbsp; /* "CORE" */</blockquote><br></div><div><div>0x45524F43 is a 32-bit integer consists of thees four bytes: 0x45, 0x52, 0x4F and 0x43 for thees characters 'E' 'R' 'O' 'C' (reversed CORE). The comment tells what's encoded in integer ;)&nbsp;This means that one can define four chars long module type identifier. I think that's enough ;)</div><div><br></div><div>Best regards,</div><div>Peter.</div></div></body></html>