Return-Path: Delivered-To: apmail-httpd-dev-archive@httpd.apache.org Received: (qmail 37666 invoked by uid 500); 27 Aug 2001 15:09:23 -0000 Mailing-List: contact dev-help@httpd.apache.org; run by ezmlm Precedence: bulk Reply-To: dev@httpd.apache.org list-help: list-unsubscribe: list-post: Delivered-To: mailing list dev@httpd.apache.org Received: (qmail 37635 invoked from network); 27 Aug 2001 15:09:22 -0000 Sender: rederpj@Mail.MeepZor.Com Message-ID: <3B8A629C.FCDDB7E@remulak.net> Date: Mon, 27 Aug 2001 11:09:16 -0400 From: "Paul J. Reder" X-Mailer: Mozilla 4.7 [en] (X11; I; Linux 2.2.12-20 i686) X-Accept-Language: en MIME-Version: 1.0 To: dev@httpd.apache.org Subject: Re: Ryan's comments about split_and_pass_pretag_buckets. References: <3B86DD0B.61A9D6F8@remulak.net> <017401c12d09$e0a6d4f0$95c0b0d0@roweclan.net> <01082419091600.10549@koj.rkbloom.net> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N Status: O X-Status: X-Keywords: X-UID: 1398 Ryan Bloom wrote: > The big problem, is that this shouldn't be a function, it should be a macro. This function/macro is called from mod_include, mod_cgi, and mod_cgid. There are six calls in all. One of which is from the first level include processing (send_parsed_content) and five are from second level include handlers. I was taught that you should *consider* converting a macro to a function if is is called more than 5 times. I initially chose to leave this a macro because 6 calls was borderline and because the code was very simple. When Ryan added the return to the macro I rethought that decision. I abhor having returns hidden in macros, for the very reason illustrated here. The macro now did the wrong thing in five of the six calls. I will be turning this back into a macro, but removing the return. I will pass in, set, and return a return value. The rest of the code that I added (to check the return code after each call and after the return from the include handlers) will remain. The code will be commited shortly. Paul J. Reder