From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Move initialization to compile time Date: Sun, 15 Jul 2012 18:05:10 +0300 Message-ID: <83fw8tawux.fsf@gnu.org> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: dough.gmane.org 1342364714 747 80.91.229.3 (15 Jul 2012 15:05:14 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sun, 15 Jul 2012 15:05:14 +0000 (UTC) Cc: emacs-devel@gnu.org To: Dmitry Antipov Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Jul 15 17:05:14 2012 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1SqQNl-00060K-Gu for ged-emacs-devel@m.gmane.org; Sun, 15 Jul 2012 17:05:13 +0200 Original-Received: from localhost ([::1]:45641 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SqQNk-00063c-PI for ged-emacs-devel@m.gmane.org; Sun, 15 Jul 2012 11:05:12 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:48397) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SqQNh-00063X-HQ for emacs-devel@gnu.org; Sun, 15 Jul 2012 11:05:10 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SqQNg-00088V-NU for emacs-devel@gnu.org; Sun, 15 Jul 2012 11:05:09 -0400 Original-Received: from mtaout20.012.net.il ([80.179.55.166]:39420) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SqQNg-00087z-Fd for emacs-devel@gnu.org; Sun, 15 Jul 2012 11:05:08 -0400 Original-Received: from conversion-daemon.a-mtaout20.012.net.il by a-mtaout20.012.net.il (HyperSendmail v2007.08) id <0M7700A00J4TNO00@a-mtaout20.012.net.il> for emacs-devel@gnu.org; Sun, 15 Jul 2012 18:05:06 +0300 (IDT) Original-Received: from HOME-C4E4A596F7 ([87.69.210.75]) by a-mtaout20.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0M7700585J8H9U90@a-mtaout20.012.net.il>; Sun, 15 Jul 2012 18:05:05 +0300 (IDT) X-012-Sender: halo1@inter.net.il X-detected-operating-system: by eggs.gnu.org: Solaris 10 (beta) X-Received-From: 80.179.55.166 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:151623 Archived-At: Revision 109096 on the trunk moved some initializations from startup (in temacs) to compile time. Example: @@ -1481,7 +1476,7 @@ /* Index in interval_block above of the next unused interval structure. */ -static int interval_block_index; +static int interval_block_index = INTERVAL_BLOCK_SIZE; /* Number of free and live intervals. */ @@ -1491,18 +1486,6 @@ static INTERVAL interval_free_list; - -/* Initialize interval allocation. */ - -static void -init_intervals (void) -{ - interval_block = NULL; - interval_block_index = INTERVAL_BLOCK_SIZE; - interval_free_list = 0; -} - - /* Return a new interval. */ AFAIK, this moves interval_block_index from the .bss section to .data section. If I'm right, then perhaps such changes should be discussed before they are committed.