platform/upstream/libconfig.git
5 years agoMinor fix on license (LICENSE.LGPL-2.1+) 42/186642/1 accepted/tizen_6.0_unified accepted/tizen_6.0_unified_hotfix tizen_6.0 tizen_6.0_hotfix accepted/tizen/6.0/unified/20201030.110632 accepted/tizen/6.0/unified/hotfix/20201102.234431 accepted/tizen/6.0/unified/hotfix/20201103.051404 accepted/tizen/6.5/unified/20211029.013505 accepted/tizen/unified/20191112.125203 submit/tizen/20191112.000001 submit/tizen_6.0/20201029.205502 submit/tizen_6.0_hotfix/20201102.192902 submit/tizen_6.0_hotfix/20201103.115102 submit/tizen_6.5/20211028.163501 tizen_6.0.m2_release tizen_6.5.m2_release
Hyotaek Shim [Mon, 13 Aug 2018 05:18:00 +0000 (14:18 +0900)]
Minor fix on license (LICENSE.LGPL-2.1+)

Change-Id: I76a38a66917a5e1b139b8db96e6ca1766704abf9
Signed-off-by: Hyotaek Shim <hyotaek.shim@samsung.com>
7 years agoBump version to 1.6 22/126422/1 accepted/tizen_4.0_unified accepted/tizen_5.0_unified accepted/tizen_5.5_unified_mobile_hotfix tizen_4.0 tizen_5.0 tizen_5.5_mobile_hotfix accepted/tizen/4.0/unified/20170816.011907 accepted/tizen/4.0/unified/20170828.222918 accepted/tizen/5.0/unified/20181102.025249 accepted/tizen/5.5/unified/20191031.012052 accepted/tizen/5.5/unified/mobile/hotfix/20201027.074410 submit/tizen/20170421.113907 submit/tizen_4.0/20170811.094300 submit/tizen_4.0/20170828.100006 submit/tizen_5.0/20181101.000006 submit/tizen_5.5/20191031.000007 submit/tizen_5.5_mobile_hotfix/20201026.185107 tizen_4.0.IoT.p1_release tizen_4.0.IoT.p2_release tizen_4.0.m1_release tizen_4.0.m2_release tizen_5.5.m2_release
Krzysztof Opasiak [Wed, 19 Apr 2017 13:32:03 +0000 (15:32 +0200)]
Bump version to 1.6

Change-Id: I9e8c9dcfaeb9a619f6666638769efd0acb528b6d
Signed-off-by: Krzysztof Opasiak <k.opasiak@samsung.com>
7 years agolicense: update license to LGPL-2.1+
taeyoung [Thu, 22 Sep 2016 04:44:35 +0000 (13:44 +0900)]
license: update license to LGPL-2.1+

Signed-off-by: taeyoung <ty317.kim@samsung.com>
Change-Id: I6f661c65ae9b56908f44a877acfb429d92f572cc

7 years agoFix build by removing auto generated files
Krzysztof Opasiak [Wed, 19 Apr 2017 13:46:27 +0000 (15:46 +0200)]
Fix build by removing auto generated files

Files generated by flex or autotools should not be stored
inside repository. This may lead to compilation errors
as reported by a few users.

Signed-off-by: Krzysztof Opasiak <k.opasiak@samsung.com>
7 years agoAdd packaging for generating rpm package
Krzysztof Opasiak [Sat, 28 Jun 2014 11:15:46 +0000 (13:15 +0200)]
Add packaging for generating rpm package

Signed-off-by: Krzysztof Opasiak <k.opasiak@samsung.com>
8 years agoRelease 1.6 upstream v1.6
Jose Luis Tallon [Thu, 31 Dec 2015 20:18:44 +0000 (21:18 +0100)]
Release 1.6

8 years agoRobustness & bug fixes for tab_width handling
Jose Luis Tallon [Wed, 30 Dec 2015 22:44:17 +0000 (23:44 +0100)]
Robustness & bug fixes for tab_width handling

 * Reset default float_precision to 2 (from leftover DBL_DIG)

 * bugfix (missing mask) that multiplied indentation by 3840 (0x0F00)

 * Robustness: convert get|set_tab_width() from macro to function
   Also: const correctness

8 years agoMerge pull request #28 from thfi/cmake
jltallon [Wed, 30 Dec 2015 22:02:19 +0000 (23:02 +0100)]
Merge pull request #28 from thfi/cmake

Locating libconfig from CMake-based projects.

Tested. Looks good.

8 years agoMerge pull request #45 from jltallon/master
jltallon [Wed, 30 Dec 2015 21:30:55 +0000 (22:30 +0100)]
Merge pull request #45 from jltallon/master

Implement float_precision parameter (Closes #31)

8 years agoImplement float_precision parameter (Closes #31)
Jose Luis Tallon [Wed, 30 Dec 2015 21:25:50 +0000 (22:25 +0100)]
Implement float_precision parameter (Closes #31)

Added the ability to specify the amount of decimal digits (precision)
to be used when writing out (file or stream) a configuration.
Includes C & C++ versions.

As per zhaopingsun's suggestion

8 years agoMerge pull request #44 from jltallon/issue41
jltallon [Wed, 30 Dec 2015 19:05:52 +0000 (20:05 +0100)]
Merge pull request #44 from jltallon/issue41

Merge fix for issue #41 from random85 ; Documentation and fixes by me

8 years agoDocumentation fixes for config_setting_remove
Jose Luis Tallon [Wed, 30 Dec 2015 19:02:53 +0000 (20:02 +0100)]
Documentation fixes for config_setting_remove

8 years agoFix RemoveSetting test (Closes: #41)
Guy Morand [Tue, 22 Dec 2015 13:11:18 +0000 (14:11 +0100)]
Fix RemoveSetting test (Closes: #41)

We look for the setting using its path and extract the setting name from the
path to get its index in parent for removal.

This adds "Removing a setting with its path" feature.
This changes the specification, the documentation has to be updated.

8 years agoAdd a test that fails removing a single element
Guy Morand [Tue, 22 Dec 2015 09:45:28 +0000 (10:45 +0100)]
Add a test that fails removing a single element

The test doesn't behave as documented. The wrong element is removed.

8 years agoMerge pull request #42 from jltallon/octal_ints
hyperrealm [Wed, 30 Dec 2015 18:18:09 +0000 (11:18 -0700)]
Merge pull request #42 from jltallon/octal_ints

Octal ints

8 years agoCode styling: apply fixes as per Mark's advice.
Jose Luis Tallon [Tue, 29 Dec 2015 16:43:12 +0000 (17:43 +0100)]
Code styling: apply fixes as per Mark's advice.

8 years agoDocumentation for octal_ints
Jose Luis Tallon [Mon, 28 Dec 2015 18:58:27 +0000 (19:58 +0100)]
Documentation for octal_ints

8 years agoAdd support for octal ints
Jose Luis Tallon [Mon, 28 Dec 2015 18:55:13 +0000 (19:55 +0100)]
Add support for octal ints

8 years agoMerge pull request #36 from jltallon/include_dir
hyperrealm [Wed, 30 Dec 2015 17:54:58 +0000 (10:54 -0700)]
Merge pull request #36 from jltallon/include_dir

Add @include_dir directive: debian-style ("conf.d") config processing

8 years agoIndentation: change to 2-spaces indent, like the rest of the code
Jose Luis Tallon [Mon, 28 Dec 2015 17:08:53 +0000 (18:08 +0100)]
Indentation: change to 2-spaces indent, like the rest of the code

Apply stylistic fixes, following Mark's advice: homogeneous style
with the rest of the code

8 years agoAdd support for absolute pathnames to @include / @include_dir (Closes #16)
Jose Luis Tallon [Thu, 24 Dec 2015 22:05:36 +0000 (23:05 +0100)]
Add support for absolute pathnames to @include / @include_dir (Closes #16)
 - Misc documentation fixes

8 years agoDocumentation & misc fixes:
Jose Luis Tallon [Sun, 22 Nov 2015 22:49:23 +0000 (23:49 +0100)]
Documentation & misc fixes:
 - Document the include_dir directive
 - Robustness: filter out non-files (where scandir supports it)
 - Add myself to the credits

8 years agoAdd @include_dir directive: debian-style ("conf.d") configuration processing
Jose Luis Tallon [Sun, 22 Nov 2015 17:51:56 +0000 (18:51 +0100)]
Add @include_dir directive: debian-style ("conf.d") configuration processing

  Quite some refactoring of the includefile stack and filename processing logic

  Adds some extra fields to scan_context, but does not change the API
  "symbols" file should hide all functions called scanctx_* anyway

8 years agoFixed include path (again).
Mark Lindner [Wed, 23 Dec 2015 03:40:39 +0000 (20:40 -0700)]
Fixed include path (again).

8 years agoDocumentation update.
Mark Lindner [Wed, 23 Dec 2015 03:36:23 +0000 (20:36 -0700)]
Documentation update.

8 years agoLocating libconfig from CMake-based projects
Thomas Fischer [Wed, 14 Oct 2015 18:46:35 +0000 (20:46 +0200)]
Locating libconfig from CMake-based projects

Configuration files for CMake are provided to simplify
locating libconfig from within project that use CMake
as their build system.
Separate configuration files are provided for C and C++
builds.

In a CMakeLists.txt file, use the following commands to
locate libconfig:

- To locate the library, use either
    find_package(libconfig)
  or
    find_package(libconfig++)

- The include directories are available as variables
    LIBCONFIG_INCLUDE_DIRS
  and
    LIBCONFIG++_INCLUDE_DIRS
  respectively, and can be used like this:
    include_directories(${LIBCONFIG++_INCLUDE_DIRS})

- Link to libconfig using variables
    LIBCONFIG_LIBRARIES
  and
    LIBCONFIG++_LIBRARIES
  respectively, by writing:
    target_link_libraries(${PROJECT_NAME}
      ${LIBCONFIG++_LIBRARIES}
    )

8 years agoFixed include path
Mark Lindner [Wed, 23 Sep 2015 01:56:41 +0000 (19:56 -0600)]
Fixed include path

8 years agoAdded autoconf *.in files
Mark Lindner [Sat, 15 Aug 2015 04:05:03 +0000 (22:05 -0600)]
Added autoconf *.in files

8 years agoAdded missing operator[](std::string&)
Mark Lindner [Sat, 15 Aug 2015 04:01:17 +0000 (22:01 -0600)]
Added missing operator[](std::string&)

8 years agoMerge branch 'kinke-vs15'
Mark Lindner [Sat, 15 Aug 2015 03:58:28 +0000 (21:58 -0600)]
Merge branch 'kinke-vs15'

8 years agoAdd solution and projects for Visual Studio 2015.
Martin [Sun, 9 Aug 2015 12:27:12 +0000 (14:27 +0200)]
Add solution and projects for Visual Studio 2015.

Also, add x64 solution platform and DebugStatic/ReleaseStatic solution &
project configurations, generating static libraries.
Reset output and intermediate directories and filenames to VS defaults.
Adjust preprocessor definitions (LIBCONFIG_STATIC / LIBCONFIG_EXPORTS,
_USRDLL) for the static configurations.

8 years agoSupport Visual Studio 2015.
Martin [Sun, 9 Aug 2015 12:00:27 +0000 (14:00 +0200)]
Support Visual Studio 2015.

8 years agoMerge branch 'fzago-cray-forupstream'
Mark Lindner [Sun, 17 May 2015 05:06:41 +0000 (23:06 -0600)]
Merge branch 'fzago-cray-forupstream'

Re-generate scanner.[ch], add aux-build/test-driver, and update documentation.

8 years agoMerge branch 'forupstream' of https://github.com/fzago-cray/libconfig into fzago...
Mark Lindner [Sun, 17 May 2015 04:53:49 +0000 (22:53 -0600)]
Merge branch 'forupstream' of https://github.com/fzago-cray/libconfig into fzago-cray-forupstream

Re-generate scanner.[ch], add aux-build/test-driver, and update documentation.

8 years agoupdated changelog & readme
Mark Lindner [Sun, 17 May 2015 04:43:22 +0000 (22:43 -0600)]
updated changelog & readme

8 years agoAdded configure to git repo
Mark Lindner [Sun, 17 May 2015 04:13:59 +0000 (22:13 -0600)]
Added configure to git repo

8 years agoDon't fclose() a null pointer.
Mark Lindner [Sun, 17 May 2015 04:12:52 +0000 (22:12 -0600)]
Don't fclose() a null pointer.

9 years agoRecognize long integers without the need for L extension
Frank Zago [Thu, 19 Mar 2015 19:16:50 +0000 (14:16 -0500)]
Recognize long integers without the need for L extension

A value is recognized as CONFIG_TYPE_INT if it's only numbers, and
CONFIG_TYPE_INT64 if it's numbers followed by L or LL. However from a
user point of view adding L or LL is confusing. Instead, if the
integer is too big to fit in an int, return a CONFIG_TYPE_INT64. This
also avoid silent truncation.

9 years agoMake an automake testsuite
Frank Zago [Thu, 19 Mar 2015 18:40:29 +0000 (13:40 -0500)]
Make an automake testsuite

Add the existing tests and the examples. The testsuite is then run with
"make check".

9 years agoSilence automake during compilation
Frank Zago [Thu, 19 Mar 2015 18:28:59 +0000 (13:28 -0500)]
Silence automake during compilation

Do not display compilation command lines, unless make is called with
V=1.

9 years agoadded config_set_options(), config_get_options(), setOptions(), getOptions().
Mark Lindner [Sat, 20 Sep 2014 06:44:33 +0000 (23:44 -0700)]
added config_set_options(), config_get_options(), setOptions(), getOptions().

9 years ago-
Mark Lindner [Sat, 20 Sep 2014 04:54:48 +0000 (21:54 -0700)]
-

9 years agoCheck if file being opened is a directory.
Mark Lindner [Sat, 20 Sep 2014 04:53:53 +0000 (21:53 -0700)]
Check if file being opened is a directory.

9 years agodeleted some cruft; added a .gitignore file
Mark Lindner [Fri, 30 May 2014 05:02:43 +0000 (22:02 -0700)]
deleted some cruft; added a .gitignore file

9 years agoMerge branch 'master' of https://github.com/hyperrealm/libconfig
Mark Lindner [Wed, 28 May 2014 06:05:47 +0000 (23:05 -0700)]
Merge branch 'master' of https://github.com/hyperrealm/libconfig

9 years agomore code cleanup
Mark Lindner [Wed, 28 May 2014 06:03:11 +0000 (23:03 -0700)]
more code cleanup

9 years agoFixed implementations of iterator operator== and operator!=
hyperrealm [Tue, 27 May 2014 05:13:13 +0000 (22:13 -0700)]
Fixed implementations of iterator operator== and operator!=
(which were infinitely recursive).

9 years agoadjusted copyright dates
Mark Lindner [Mon, 26 May 2014 08:30:49 +0000 (01:30 -0700)]
adjusted copyright dates

9 years agoversion updates
Mark Lindner [Mon, 26 May 2014 08:25:25 +0000 (01:25 -0700)]
version updates

9 years agoparser code cleanup; and regenerated with bison 3.0.2
Mark Lindner [Mon, 26 May 2014 08:21:58 +0000 (01:21 -0700)]
parser code cleanup; and regenerated with bison 3.0.2

9 years agoMisc. code cleanup v1.5.0
Mark Lindner [Mon, 26 May 2014 08:04:53 +0000 (01:04 -0700)]
Misc. code cleanup

9 years agomigrated over the contrib directory from svn repo
Mark Lindner [Mon, 26 May 2014 08:00:25 +0000 (01:00 -0700)]
migrated over the contrib directory from svn repo

9 years agoBump version symbols.
Mark Lindner [Mon, 26 May 2014 07:08:19 +0000 (00:08 -0700)]
Bump version symbols.

9 years agoMerge branch 'yurial-public-exceptions' of https://github.com/yurial/libconfig
Mark Lindner [Mon, 26 May 2014 06:50:51 +0000 (23:50 -0700)]
Merge branch 'yurial-public-exceptions' of https://github.com/yurial/libconfig

Made all exception constructors public.

9 years agoPatch from Alexander Klauer; fix float precision loss
Mark Lindner [Mon, 26 May 2014 06:49:04 +0000 (23:49 -0700)]
Patch from Alexander Klauer; fix float precision loss

9 years agoscanner code cleanup
Mark Lindner [Mon, 26 May 2014 06:46:52 +0000 (23:46 -0700)]
scanner code cleanup

9 years agoremoved files that shouldn't be versioned
Mark Lindner [Mon, 26 May 2014 06:34:59 +0000 (23:34 -0700)]
removed files that shouldn't be versioned

9 years ago- removed throws specifications and other code cleanup
Mark Lindner [Mon, 26 May 2014 06:29:54 +0000 (23:29 -0700)]
- removed throws specifications and other code cleanup
- added Setting.lookup() and config_setting_lookup()
- documentation updates
- version bump

9 years agomake libconfig exceptions public
Yuri Dyachenko [Wed, 7 May 2014 11:05:06 +0000 (11:05 +0000)]
make libconfig exceptions public

it's allow to generate libconfig exception in user code
example:
libconfig::Setting& obj = ...;
if ( !obj.isGroup() )
    throw libconfig::SettingTypeException( obj, "TypeGroup expected" );

10 years agoUpdated AUTHORS to contain myself.
Matt Renaud [Thu, 6 Mar 2014 00:44:05 +0000 (19:44 -0500)]
Updated AUTHORS to contain myself.

10 years agoAdded iterators to Setting sequences.
Matt Renaud [Wed, 5 Mar 2014 23:38:24 +0000 (18:38 -0500)]
Added iterators to Setting sequences.

To address hyperrealm/libconfig#3, I have added a SettingIterator class
and begin() and end() methods on Setting so that lists and arrays of
Setting can be iterated through using C++ style iterators.

There is an iterator as well as const_iterator defined for the class.

10 years agoUnified lookup interface for Config and Setting.
Matt Renaud [Wed, 5 Mar 2014 18:06:38 +0000 (13:06 -0500)]
Unified lookup interface for Config and Setting.

To address hyperrealm/libconfig#4, `Config::operator[](const char*)` and
`Setting::lookup(const std::string& key)` have been added.

Note: `operator[]` had to remain as `const char*` to avoid ambiguities
      in some situations.

10 years agoRemoved cast from Setting to const char*.
Matt Renaud [Wed, 5 Mar 2014 16:59:54 +0000 (11:59 -0500)]
Removed cast from Setting to const char*.

To address hyperrealm/libconfig#1, the cast operator from Setting to
const char* has been removed. As a result, lookupValue() taking a const
char* has also been removed as it uses the cast operator.

This change allows code that assigns directly to a std::string or a
const char* to compile without errors. No change to existing code should
be required.

10 years agoAdded Setting constructor taking a std::string.
Matt Renaud [Wed, 5 Mar 2014 16:37:34 +0000 (11:37 -0500)]
Added Setting constructor taking a std::string.

To address hyperrealm/libconfig#2, a constructor has been added to the
header and source file.

10 years agoupdated some automake helper files
Mark Lindner [Tue, 4 Mar 2014 02:10:39 +0000 (18:10 -0800)]
updated some automake helper files

10 years agoinitial commit
Mark Lindner [Tue, 4 Mar 2014 02:07:17 +0000 (18:07 -0800)]
initial commit

10 years agoAdded readme.
Mark Lindner [Tue, 4 Mar 2014 01:50:39 +0000 (17:50 -0800)]
Added readme.

10 years agofirst commit
Mark Lindner [Tue, 4 Mar 2014 01:49:04 +0000 (17:49 -0800)]
first commit

10 years agoInitial commit
mesmerism [Tue, 4 Mar 2014 01:38:37 +0000 (17:38 -0800)]
Initial commit