<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 0x45524F43 /* "CORE" */<br>
#define NGX_CONF_MODULE 0x464E4F43 /* "CONF" */<br>#define NGX_EVENT_MODULE 0x544E5645 /* "EVNT" */<br>#define NGX_HTTP_MODULE 0x50545448 /* "HTTP" */<br>#define NGX_MAIL_MODULE 0x4C49414D /* "MAIL" */<br></blockquote></div><br><div>The question got the answer:</div><div><blockquote type="cite">0x45524F43 /* "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 ;) 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>