Path: csiph.com!eternal-september.org!feeder.eternal-september.org!reader01.eternal-september.org!.POSTED!not-for-mail From: Keith Thompson Newsgroups: comp.lang.c++ Subject: Re: On endianness, many #ifdefs, and the need thereof Date: Thu, 03 Oct 2019 14:28:05 -0700 Organization: None to speak of Lines: 15 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Injection-Info: reader02.eternal-september.org; posting-host="0ddfe3fdb43f1c8b380e990e1697baf6"; logging-data="2427"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/Sy63rUuTZqrLpbF4Xh7c7" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1 (gnu/linux) Cancel-Lock: sha1:RGLyMjtTJbxOJdByz7HhPhLQMGg= sha1:dGwS6xUFSfyl94eplEQLrwEfd0I= Xref: csiph.com comp.lang.c++:69005 David Brown writes: [...] > A little look suggests that it is for parsing binary JSON formats (like > UBJSON), rather than standard text-based JSON. But is still not > necessary, and I doubt if the code's algorithm is more efficient than > the obvious endian independent method. FYI, my browser shows me a "This site may be hacked." warning for http://ubjson.org/ I haven't investigated further. -- Keith Thompson (The_Other_Keith) kst-u@mib.org Will write code for food. void Void(void) { Void(); } /* The recursive call of the void */