From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1HzGKv-0001yg-WA for mharc-grub-devel@gnu.org; Fri, 15 Jun 2007 14:15:54 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HzGKu-0001yb-AC for grub-devel@gnu.org; Fri, 15 Jun 2007 14:15:52 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HzGKs-0001x3-S0 for grub-devel@gnu.org; Fri, 15 Jun 2007 14:15:51 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HzGKs-0001x0-Kw for grub-devel@gnu.org; Fri, 15 Jun 2007 14:15:50 -0400 Received: from smtp-vbr7.xs4all.nl ([194.109.24.27]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1HzGKs-0003J8-7k for grub-devel@gnu.org; Fri, 15 Jun 2007 14:15:50 -0400 Received: from localhost.localdomain (249-174.surfsnel.dsl.internl.net [145.99.174.249]) by smtp-vbr7.xs4all.nl (8.13.8/8.13.8) with ESMTP id l5FIFkHH004073 for ; Fri, 15 Jun 2007 20:15:47 +0200 (CEST) (envelope-from mgerards@xs4all.nl) From: Marco Gerards To: The development of GRUB 2 References: <4668259D.9090701@raulete.net> <466D6014.7090205@raulete.net> Mail-Copies-To: mgerards@xs4all.nl Date: Fri, 15 Jun 2007 20:22:16 +0200 In-Reply-To: <466D6014.7090205@raulete.net> (adrian15@raulete.net's message of "Mon, 11 Jun 2007 16:45:40 +0200") Message-ID: <87ps3xt6w7.fsf@xs4all.nl> User-Agent: Gnus/5.110006 (No Gnus v0.6) Emacs/21.4 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-Virus-Scanned: by XS4ALL Virus Scanner X-detected-kernel: FreeBSD 4.6-4.9 Subject: Re: map command for grub2 draft X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: The development of GRUB 2 List-Id: The development of GRUB 2 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 15 Jun 2007 18:15:52 -0000 adrian15 writes: > adrian15 escribi=F3: >> 1st) Where to save an array? >> =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D >> >> If I mimic the grub legacy map command I need to save an array with = the >> map definitions. >> >> static unsigned short bios_drive_map[DRIVE_MAP_SIZE + 1]; >> So that each time I call something like: >> map (hd0) (hd1) >> it modifies this vector. >> >> Any example on where should I define this vector so that I can use it >> from each command ? > > I ask the question again. What is this vector supposed to do? Do you really need it outside map.c? Can you describe the design of the map command? -- Marco