Re: [U-Boot] [PATCH V3 04/12] cmd_test: use table lookup for parsing

2014-02-03 Thread Simon Glass
Hi Stephen, On 3 February 2014 13:19, Stephen Warren wrote: > > On 01/31/2014 05:03 PM, Simon Glass wrote: > > Hi Stephen, > > > > On 27 January 2014 13:49, Stephen Warren wrote: > >> From: Stephen Warren > >> > >> do_test() currently uses strcmp() twice to determine which operator is > >> pres

Re: [U-Boot] [PATCH V3 04/12] cmd_test: use table lookup for parsing

2014-02-03 Thread Stephen Warren
On 01/31/2014 05:03 PM, Simon Glass wrote: > Hi Stephen, > > On 27 January 2014 13:49, Stephen Warren wrote: >> From: Stephen Warren >> >> do_test() currently uses strcmp() twice to determine which operator is >> present; once to determine how many arguments the operator needs, then >> a second

Re: [U-Boot] [PATCH V3 04/12] cmd_test: use table lookup for parsing

2014-01-31 Thread Simon Glass
Hi Stephen, On 27 January 2014 13:49, Stephen Warren wrote: > From: Stephen Warren > > do_test() currently uses strcmp() twice to determine which operator is > present; once to determine how many arguments the operator needs, then > a second time to actually decode the operator and implement it.

[U-Boot] [PATCH V3 04/12] cmd_test: use table lookup for parsing

2014-01-27 Thread Stephen Warren
From: Stephen Warren do_test() currently uses strcmp() twice to determine which operator is present; once to determine how many arguments the operator needs, then a second time to actually decode the operator and implement it. Rewrite the code so that a table lookup is used to translate the oper