From mboxrd@z Thu Jan 1 00:00:00 1970 From: Wolfgang Denk Date: Thu, 12 May 2011 19:35:49 +0200 Subject: [U-Boot] [PATCH] part_dos: allocate sector buffer dynamically In-Reply-To: <4DBFF9FD.1070907@mvista.com> References: <201104122323.59105.sshtylyov@ru.mvista.com> <20110430191454.978B9D5270F@gemini.denx.de> <4DBFF300.9010906@mvista.com> <20110503123428.2E288126DAF@gemini.denx.de> <4DBFF9FD.1070907@mvista.com> Message-ID: <20110512173549.78490D6F24F@gemini.denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Dear Sergei Shtylyov, In message <4DBFF9FD.1070907@mvista.com> you wrote: > > > Umm... you _are_ aware that you can put dynamically sized arrays on > > the stack, aren't you? > > No, it seems I'm not. Is it a standard C now? It's been a GCC extension forever (well, I have to admit that I don't remember before GCC v1.39 or so). Best regards, Wolfgang Denk -- DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de When a man sits with a pretty girl for an hour, it seems like a minute. But let him sit on a hot stove for a minute -- and it's lon- ger than any hour. That's relativity. -- Albert Einstein