From mboxrd@z Thu Jan 1 00:00:00 1970 From: Igor Grinberg Date: Thu, 04 Oct 2012 10:49:54 +0200 Subject: [U-Boot] [PATCH v2] Add a new "ini" command In-Reply-To: <1349298951-10317-1-git-send-email-joe.hershberger@ni.com> References: <1345237017-20210-1-git-send-email-joe.hershberger@ni.com> <1349298951-10317-1-git-send-email-joe.hershberger@ni.com> Message-ID: <506D4DB2.1060705@compulab.co.il> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On 10/03/12 23:15, Joe Hershberger wrote: > This allows you to read ini-formatted data from anywhere and then > import one of the sections into the environment > > This is based on rev 16 at http://code.google.com/p/inih/ > > Signed-off-by: Joe Hershberger > --- > Changes in v2: > - Documented in README > - Made all functions static > - Changed if statments to ternary operator selected parameters > - Return any errors from ini_parse() to the shell > > README | 1 + > common/Makefile | 1 + > common/cmd_ini.c | 247 +++++++++++++++++++++++++++++++++++++++++++++++++++++++ > 3 files changed, 249 insertions(+) > create mode 100644 common/cmd_ini.c [...] > diff --git a/common/cmd_ini.c b/common/cmd_ini.c > new file mode 100644 > index 0000000..652e4f6 > --- /dev/null > +++ b/common/cmd_ini.c > @@ -0,0 +1,247 @@ > +/* > + * inih -- simple .INI file parser > + * > + * inih is released under the New BSD license (see LICENSE.txt). Go to the > + * project home page for more info: > + * > + * http://code.google.com/p/inih/ Hmmm, I'm wondering, is it the appropriate license for U-Boot code? [...] -- Regards, Igor.