Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
gaoqiong
yaml-cpp
Commits
d6811c42
Commit
d6811c42
authored
Sep 06, 2011
by
beder
Browse files
Merged from trunk
parent
f56d4530
Changes
58
Hide whitespace changes
Inline
Side-by-side
Showing
20 changed files
with
33 additions
and
23 deletions
+33
-23
include/yaml-cpp/aliasmanager.h
include/yaml-cpp/aliasmanager.h
+1
-1
include/yaml-cpp/anchor.h
include/yaml-cpp/anchor.h
+1
-1
include/yaml-cpp/contrib/anchordict.h
include/yaml-cpp/contrib/anchordict.h
+1
-1
include/yaml-cpp/contrib/graphbuilder.h
include/yaml-cpp/contrib/graphbuilder.h
+1
-1
include/yaml-cpp/conversion.h
include/yaml-cpp/conversion.h
+1
-1
include/yaml-cpp/dll.h
include/yaml-cpp/dll.h
+1
-1
include/yaml-cpp/emitfromevents.h
include/yaml-cpp/emitfromevents.h
+1
-1
include/yaml-cpp/emitter.h
include/yaml-cpp/emitter.h
+1
-1
include/yaml-cpp/emittermanip.h
include/yaml-cpp/emittermanip.h
+4
-4
include/yaml-cpp/eventhandler.h
include/yaml-cpp/eventhandler.h
+1
-1
include/yaml-cpp/exceptions.h
include/yaml-cpp/exceptions.h
+1
-1
include/yaml-cpp/iterator.h
include/yaml-cpp/iterator.h
+1
-1
include/yaml-cpp/ltnode.h
include/yaml-cpp/ltnode.h
+1
-1
include/yaml-cpp/mark.h
include/yaml-cpp/mark.h
+1
-1
include/yaml-cpp/node.h
include/yaml-cpp/node.h
+3
-1
include/yaml-cpp/nodeimpl.h
include/yaml-cpp/nodeimpl.h
+9
-1
include/yaml-cpp/nodereadimpl.h
include/yaml-cpp/nodereadimpl.h
+1
-1
include/yaml-cpp/nodeutil.h
include/yaml-cpp/nodeutil.h
+1
-1
include/yaml-cpp/noncopyable.h
include/yaml-cpp/noncopyable.h
+1
-1
include/yaml-cpp/null.h
include/yaml-cpp/null.h
+1
-1
No files found.
include/yaml-cpp/aliasmanager.h
View file @
d6811c42
#ifndef ALIASMANAGER_H_62B23520_7C8E_11DE_8A39_0800200C9A66
#ifndef ALIASMANAGER_H_62B23520_7C8E_11DE_8A39_0800200C9A66
#define ALIASMANAGER_H_62B23520_7C8E_11DE_8A39_0800200C9A66
#define ALIASMANAGER_H_62B23520_7C8E_11DE_8A39_0800200C9A66
#if
!
defined(__GNUC__)
||
(__GNUC__ == 3 && __GNUC_MINOR__ >= 4) || (__GNUC__ >= 4) // GCC supports "pragma once" correctly since 3.4
#if
defined(_MSC_VER) || (
defined(__GNUC__)
&&
(__GNUC__ == 3 && __GNUC_MINOR__ >= 4) || (__GNUC__ >= 4)
)
// GCC supports "pragma once" correctly since 3.4
#pragma once
#pragma once
#endif
#endif
...
...
include/yaml-cpp/anchor.h
View file @
d6811c42
#ifndef ANCHOR_H_62B23520_7C8E_11DE_8A39_0800200C9A66
#ifndef ANCHOR_H_62B23520_7C8E_11DE_8A39_0800200C9A66
#define ANCHOR_H_62B23520_7C8E_11DE_8A39_0800200C9A66
#define ANCHOR_H_62B23520_7C8E_11DE_8A39_0800200C9A66
#if
!
defined(__GNUC__)
||
(__GNUC__ == 3 && __GNUC_MINOR__ >= 4) || (__GNUC__ >= 4) // GCC supports "pragma once" correctly since 3.4
#if
defined(_MSC_VER) || (
defined(__GNUC__)
&&
(__GNUC__ == 3 && __GNUC_MINOR__ >= 4) || (__GNUC__ >= 4)
)
// GCC supports "pragma once" correctly since 3.4
#pragma once
#pragma once
#endif
#endif
...
...
include/yaml-cpp/contrib/anchordict.h
View file @
d6811c42
#ifndef ANCHORDICT_H_62B23520_7C8E_11DE_8A39_0800200C9A66
#ifndef ANCHORDICT_H_62B23520_7C8E_11DE_8A39_0800200C9A66
#define ANCHORDICT_H_62B23520_7C8E_11DE_8A39_0800200C9A66
#define ANCHORDICT_H_62B23520_7C8E_11DE_8A39_0800200C9A66
#if
!
defined(__GNUC__)
||
(__GNUC__ == 3 && __GNUC_MINOR__ >= 4) || (__GNUC__ >= 4) // GCC supports "pragma once" correctly since 3.4
#if
defined(_MSC_VER) || (
defined(__GNUC__)
&&
(__GNUC__ == 3 && __GNUC_MINOR__ >= 4) || (__GNUC__ >= 4)
)
// GCC supports "pragma once" correctly since 3.4
#pragma once
#pragma once
#endif
#endif
...
...
include/yaml-cpp/contrib/graphbuilder.h
View file @
d6811c42
#ifndef GRAPHBUILDER_H_62B23520_7C8E_11DE_8A39_0800200C9A66
#ifndef GRAPHBUILDER_H_62B23520_7C8E_11DE_8A39_0800200C9A66
#define GRAPHBUILDER_H_62B23520_7C8E_11DE_8A39_0800200C9A66
#define GRAPHBUILDER_H_62B23520_7C8E_11DE_8A39_0800200C9A66
#if
!
defined(__GNUC__)
||
(__GNUC__ == 3 && __GNUC_MINOR__ >= 4) || (__GNUC__ >= 4) // GCC supports "pragma once" correctly since 3.4
#if
defined(_MSC_VER) || (
defined(__GNUC__)
&&
(__GNUC__ == 3 && __GNUC_MINOR__ >= 4) || (__GNUC__ >= 4)
)
// GCC supports "pragma once" correctly since 3.4
#pragma once
#pragma once
#endif
#endif
...
...
include/yaml-cpp/conversion.h
View file @
d6811c42
#ifndef CONVERSION_H_62B23520_7C8E_11DE_8A39_0800200C9A66
#ifndef CONVERSION_H_62B23520_7C8E_11DE_8A39_0800200C9A66
#define CONVERSION_H_62B23520_7C8E_11DE_8A39_0800200C9A66
#define CONVERSION_H_62B23520_7C8E_11DE_8A39_0800200C9A66
#if
!
defined(__GNUC__)
||
(__GNUC__ == 3 && __GNUC_MINOR__ >= 4) || (__GNUC__ >= 4) // GCC supports "pragma once" correctly since 3.4
#if
defined(_MSC_VER) || (
defined(__GNUC__)
&&
(__GNUC__ == 3 && __GNUC_MINOR__ >= 4) || (__GNUC__ >= 4)
)
// GCC supports "pragma once" correctly since 3.4
#pragma once
#pragma once
#endif
#endif
...
...
include/yaml-cpp/dll.h
View file @
d6811c42
#ifndef DLL_H_62B23520_7C8E_11DE_8A39_0800200C9A66
#ifndef DLL_H_62B23520_7C8E_11DE_8A39_0800200C9A66
#define DLL_H_62B23520_7C8E_11DE_8A39_0800200C9A66
#define DLL_H_62B23520_7C8E_11DE_8A39_0800200C9A66
#if
!
defined(__GNUC__)
||
(__GNUC__ == 3 && __GNUC_MINOR__ >= 4) || (__GNUC__ >= 4) // GCC supports "pragma once" correctly since 3.4
#if
defined(_MSC_VER) || (
defined(__GNUC__)
&&
(__GNUC__ == 3 && __GNUC_MINOR__ >= 4) || (__GNUC__ >= 4)
)
// GCC supports "pragma once" correctly since 3.4
#pragma once
#pragma once
#endif
#endif
...
...
include/yaml-cpp/emitfromevents.h
View file @
d6811c42
#ifndef EMITFROMEVENTS_H_62B23520_7C8E_11DE_8A39_0800200C9A66
#ifndef EMITFROMEVENTS_H_62B23520_7C8E_11DE_8A39_0800200C9A66
#define EMITFROMEVENTS_H_62B23520_7C8E_11DE_8A39_0800200C9A66
#define EMITFROMEVENTS_H_62B23520_7C8E_11DE_8A39_0800200C9A66
#if
!
defined(__GNUC__)
||
(__GNUC__ == 3 && __GNUC_MINOR__ >= 4) || (__GNUC__ >= 4) // GCC supports "pragma once" correctly since 3.4
#if
defined(_MSC_VER) || (
defined(__GNUC__)
&&
(__GNUC__ == 3 && __GNUC_MINOR__ >= 4) || (__GNUC__ >= 4)
)
// GCC supports "pragma once" correctly since 3.4
#pragma once
#pragma once
#endif
#endif
...
...
include/yaml-cpp/emitter.h
View file @
d6811c42
#ifndef EMITTER_H_62B23520_7C8E_11DE_8A39_0800200C9A66
#ifndef EMITTER_H_62B23520_7C8E_11DE_8A39_0800200C9A66
#define EMITTER_H_62B23520_7C8E_11DE_8A39_0800200C9A66
#define EMITTER_H_62B23520_7C8E_11DE_8A39_0800200C9A66
#if
!
defined(__GNUC__)
||
(__GNUC__ == 3 && __GNUC_MINOR__ >= 4) || (__GNUC__ >= 4) // GCC supports "pragma once" correctly since 3.4
#if
defined(_MSC_VER) || (
defined(__GNUC__)
&&
(__GNUC__ == 3 && __GNUC_MINOR__ >= 4) || (__GNUC__ >= 4)
)
// GCC supports "pragma once" correctly since 3.4
#pragma once
#pragma once
#endif
#endif
...
...
include/yaml-cpp/emittermanip.h
View file @
d6811c42
#ifndef EMITTERMANIP_H_62B23520_7C8E_11DE_8A39_0800200C9A66
#ifndef EMITTERMANIP_H_62B23520_7C8E_11DE_8A39_0800200C9A66
#define EMITTERMANIP_H_62B23520_7C8E_11DE_8A39_0800200C9A66
#define EMITTERMANIP_H_62B23520_7C8E_11DE_8A39_0800200C9A66
#if
!
defined(__GNUC__)
||
(__GNUC__ == 3 && __GNUC_MINOR__ >= 4) || (__GNUC__ >= 4) // GCC supports "pragma once" correctly since 3.4
#if
defined(_MSC_VER) || (
defined(__GNUC__)
&&
(__GNUC__ == 3 && __GNUC_MINOR__ >= 4) || (__GNUC__ >= 4)
)
// GCC supports "pragma once" correctly since 3.4
#pragma once
#pragma once
#endif
#endif
...
@@ -127,12 +127,12 @@ namespace YAML
...
@@ -127,12 +127,12 @@ namespace YAML
}
}
struct
_Binary
{
struct
_Binary
{
_Binary
(
const
char
*
data_
,
std
::
size_t
size_
)
:
data
(
data_
),
size
(
size_
)
{}
_Binary
(
const
unsigned
char
*
data_
,
std
::
size_t
size_
)
:
data
(
data_
),
size
(
size_
)
{}
const
char
*
data
;
const
unsigned
char
*
data
;
std
::
size_t
size
;
std
::
size_t
size
;
};
};
inline
_Binary
Binary
(
const
char
*
data
,
std
::
size_t
size
)
{
inline
_Binary
Binary
(
const
unsigned
char
*
data
,
std
::
size_t
size
)
{
return
_Binary
(
data
,
size
);
return
_Binary
(
data
,
size
);
}
}
}
}
...
...
include/yaml-cpp/eventhandler.h
View file @
d6811c42
#ifndef EVENTHANDLER_H_62B23520_7C8E_11DE_8A39_0800200C9A66
#ifndef EVENTHANDLER_H_62B23520_7C8E_11DE_8A39_0800200C9A66
#define EVENTHANDLER_H_62B23520_7C8E_11DE_8A39_0800200C9A66
#define EVENTHANDLER_H_62B23520_7C8E_11DE_8A39_0800200C9A66
#if
!
defined(__GNUC__)
||
(__GNUC__ == 3 && __GNUC_MINOR__ >= 4) || (__GNUC__ >= 4) // GCC supports "pragma once" correctly since 3.4
#if
defined(_MSC_VER) || (
defined(__GNUC__)
&&
(__GNUC__ == 3 && __GNUC_MINOR__ >= 4) || (__GNUC__ >= 4)
)
// GCC supports "pragma once" correctly since 3.4
#pragma once
#pragma once
#endif
#endif
...
...
include/yaml-cpp/exceptions.h
View file @
d6811c42
#ifndef EXCEPTIONS_H_62B23520_7C8E_11DE_8A39_0800200C9A66
#ifndef EXCEPTIONS_H_62B23520_7C8E_11DE_8A39_0800200C9A66
#define EXCEPTIONS_H_62B23520_7C8E_11DE_8A39_0800200C9A66
#define EXCEPTIONS_H_62B23520_7C8E_11DE_8A39_0800200C9A66
#if
!
defined(__GNUC__)
||
(__GNUC__ == 3 && __GNUC_MINOR__ >= 4) || (__GNUC__ >= 4) // GCC supports "pragma once" correctly since 3.4
#if
defined(_MSC_VER) || (
defined(__GNUC__)
&&
(__GNUC__ == 3 && __GNUC_MINOR__ >= 4) || (__GNUC__ >= 4)
)
// GCC supports "pragma once" correctly since 3.4
#pragma once
#pragma once
#endif
#endif
...
...
include/yaml-cpp/iterator.h
View file @
d6811c42
#ifndef ITERATOR_H_62B23520_7C8E_11DE_8A39_0800200C9A66
#ifndef ITERATOR_H_62B23520_7C8E_11DE_8A39_0800200C9A66
#define ITERATOR_H_62B23520_7C8E_11DE_8A39_0800200C9A66
#define ITERATOR_H_62B23520_7C8E_11DE_8A39_0800200C9A66
#if
!
defined(__GNUC__)
||
(__GNUC__ == 3 && __GNUC_MINOR__ >= 4) || (__GNUC__ >= 4) // GCC supports "pragma once" correctly since 3.4
#if
defined(_MSC_VER) || (
defined(__GNUC__)
&&
(__GNUC__ == 3 && __GNUC_MINOR__ >= 4) || (__GNUC__ >= 4)
)
// GCC supports "pragma once" correctly since 3.4
#pragma once
#pragma once
#endif
#endif
...
...
include/yaml-cpp/ltnode.h
View file @
d6811c42
#ifndef LTNODE_H_62B23520_7C8E_11DE_8A39_0800200C9A66
#ifndef LTNODE_H_62B23520_7C8E_11DE_8A39_0800200C9A66
#define LTNODE_H_62B23520_7C8E_11DE_8A39_0800200C9A66
#define LTNODE_H_62B23520_7C8E_11DE_8A39_0800200C9A66
#if
!
defined(__GNUC__)
||
(__GNUC__ == 3 && __GNUC_MINOR__ >= 4) || (__GNUC__ >= 4) // GCC supports "pragma once" correctly since 3.4
#if
defined(_MSC_VER) || (
defined(__GNUC__)
&&
(__GNUC__ == 3 && __GNUC_MINOR__ >= 4) || (__GNUC__ >= 4)
)
// GCC supports "pragma once" correctly since 3.4
#pragma once
#pragma once
#endif
#endif
...
...
include/yaml-cpp/mark.h
View file @
d6811c42
#ifndef MARK_H_62B23520_7C8E_11DE_8A39_0800200C9A66
#ifndef MARK_H_62B23520_7C8E_11DE_8A39_0800200C9A66
#define MARK_H_62B23520_7C8E_11DE_8A39_0800200C9A66
#define MARK_H_62B23520_7C8E_11DE_8A39_0800200C9A66
#if
!
defined(__GNUC__)
||
(__GNUC__ == 3 && __GNUC_MINOR__ >= 4) || (__GNUC__ >= 4) // GCC supports "pragma once" correctly since 3.4
#if
defined(_MSC_VER) || (
defined(__GNUC__)
&&
(__GNUC__ == 3 && __GNUC_MINOR__ >= 4) || (__GNUC__ >= 4)
)
// GCC supports "pragma once" correctly since 3.4
#pragma once
#pragma once
#endif
#endif
...
...
include/yaml-cpp/node.h
View file @
d6811c42
#ifndef NODE_H_62B23520_7C8E_11DE_8A39_0800200C9A66
#ifndef NODE_H_62B23520_7C8E_11DE_8A39_0800200C9A66
#define NODE_H_62B23520_7C8E_11DE_8A39_0800200C9A66
#define NODE_H_62B23520_7C8E_11DE_8A39_0800200C9A66
#if
!
defined(__GNUC__)
||
(__GNUC__ == 3 && __GNUC_MINOR__ >= 4) || (__GNUC__ >= 4) // GCC supports "pragma once" correctly since 3.4
#if
defined(_MSC_VER) || (
defined(__GNUC__)
&&
(__GNUC__ == 3 && __GNUC_MINOR__ >= 4) || (__GNUC__ >= 4)
)
// GCC supports "pragma once" correctly since 3.4
#pragma once
#pragma once
#endif
#endif
...
@@ -77,7 +77,9 @@ namespace YAML
...
@@ -77,7 +77,9 @@ namespace YAML
// specific to maps
// specific to maps
const
Node
*
FindValue
(
const
char
*
key
)
const
;
const
Node
*
FindValue
(
const
char
*
key
)
const
;
const
Node
*
FindValue
(
char
*
key
)
const
;
const
Node
&
operator
[]
(
const
char
*
key
)
const
;
const
Node
&
operator
[]
(
const
char
*
key
)
const
;
const
Node
&
operator
[]
(
char
*
key
)
const
;
// for tags
// for tags
const
std
::
string
&
Tag
()
const
{
return
m_tag
;
}
const
std
::
string
&
Tag
()
const
{
return
m_tag
;
}
...
...
include/yaml-cpp/nodeimpl.h
View file @
d6811c42
#ifndef NODEIMPL_H_62B23520_7C8E_11DE_8A39_0800200C9A66
#ifndef NODEIMPL_H_62B23520_7C8E_11DE_8A39_0800200C9A66
#define NODEIMPL_H_62B23520_7C8E_11DE_8A39_0800200C9A66
#define NODEIMPL_H_62B23520_7C8E_11DE_8A39_0800200C9A66
#if
!
defined(__GNUC__)
||
(__GNUC__ == 3 && __GNUC_MINOR__ >= 4) || (__GNUC__ >= 4) // GCC supports "pragma once" correctly since 3.4
#if
defined(_MSC_VER) || (
defined(__GNUC__)
&&
(__GNUC__ == 3 && __GNUC_MINOR__ >= 4) || (__GNUC__ >= 4)
)
// GCC supports "pragma once" correctly since 3.4
#pragma once
#pragma once
#endif
#endif
...
@@ -68,10 +68,18 @@ namespace YAML
...
@@ -68,10 +68,18 @@ namespace YAML
inline
const
Node
*
Node
::
FindValue
(
const
char
*
key
)
const
{
inline
const
Node
*
Node
::
FindValue
(
const
char
*
key
)
const
{
return
FindValue
(
std
::
string
(
key
));
return
FindValue
(
std
::
string
(
key
));
}
}
inline
const
Node
*
Node
::
FindValue
(
char
*
key
)
const
{
return
FindValue
(
std
::
string
(
key
));
}
inline
const
Node
&
Node
::
operator
[]
(
const
char
*
key
)
const
{
inline
const
Node
&
Node
::
operator
[]
(
const
char
*
key
)
const
{
return
GetValue
(
std
::
string
(
key
));
return
GetValue
(
std
::
string
(
key
));
}
}
inline
const
Node
&
Node
::
operator
[]
(
char
*
key
)
const
{
return
GetValue
(
std
::
string
(
key
));
}
}
}
#endif // NODEIMPL_H_62B23520_7C8E_11DE_8A39_0800200C9A66
#endif // NODEIMPL_H_62B23520_7C8E_11DE_8A39_0800200C9A66
include/yaml-cpp/nodereadimpl.h
View file @
d6811c42
#ifndef NODEREADIMPL_H_62B23520_7C8E_11DE_8A39_0800200C9A66
#ifndef NODEREADIMPL_H_62B23520_7C8E_11DE_8A39_0800200C9A66
#define NODEREADIMPL_H_62B23520_7C8E_11DE_8A39_0800200C9A66
#define NODEREADIMPL_H_62B23520_7C8E_11DE_8A39_0800200C9A66
#if
!
defined(__GNUC__)
||
(__GNUC__ == 3 && __GNUC_MINOR__ >= 4) || (__GNUC__ >= 4) // GCC supports "pragma once" correctly since 3.4
#if
defined(_MSC_VER) || (
defined(__GNUC__)
&&
(__GNUC__ == 3 && __GNUC_MINOR__ >= 4) || (__GNUC__ >= 4)
)
// GCC supports "pragma once" correctly since 3.4
#pragma once
#pragma once
#endif
#endif
...
...
include/yaml-cpp/nodeutil.h
View file @
d6811c42
#ifndef NODEUTIL_H_62B23520_7C8E_11DE_8A39_0800200C9A66
#ifndef NODEUTIL_H_62B23520_7C8E_11DE_8A39_0800200C9A66
#define NODEUTIL_H_62B23520_7C8E_11DE_8A39_0800200C9A66
#define NODEUTIL_H_62B23520_7C8E_11DE_8A39_0800200C9A66
#if
!
defined(__GNUC__)
||
(__GNUC__ == 3 && __GNUC_MINOR__ >= 4) || (__GNUC__ >= 4) // GCC supports "pragma once" correctly since 3.4
#if
defined(_MSC_VER) || (
defined(__GNUC__)
&&
(__GNUC__ == 3 && __GNUC_MINOR__ >= 4) || (__GNUC__ >= 4)
)
// GCC supports "pragma once" correctly since 3.4
#pragma once
#pragma once
#endif
#endif
...
...
include/yaml-cpp/noncopyable.h
View file @
d6811c42
#ifndef NONCOPYABLE_H_62B23520_7C8E_11DE_8A39_0800200C9A66
#ifndef NONCOPYABLE_H_62B23520_7C8E_11DE_8A39_0800200C9A66
#define NONCOPYABLE_H_62B23520_7C8E_11DE_8A39_0800200C9A66
#define NONCOPYABLE_H_62B23520_7C8E_11DE_8A39_0800200C9A66
#if
!
defined(__GNUC__)
||
(__GNUC__ == 3 && __GNUC_MINOR__ >= 4) || (__GNUC__ >= 4) // GCC supports "pragma once" correctly since 3.4
#if
defined(_MSC_VER) || (
defined(__GNUC__)
&&
(__GNUC__ == 3 && __GNUC_MINOR__ >= 4) || (__GNUC__ >= 4)
)
// GCC supports "pragma once" correctly since 3.4
#pragma once
#pragma once
#endif
#endif
...
...
include/yaml-cpp/null.h
View file @
d6811c42
#ifndef NULL_H_62B23520_7C8E_11DE_8A39_0800200C9A66
#ifndef NULL_H_62B23520_7C8E_11DE_8A39_0800200C9A66
#define NULL_H_62B23520_7C8E_11DE_8A39_0800200C9A66
#define NULL_H_62B23520_7C8E_11DE_8A39_0800200C9A66
#if
!
defined(__GNUC__)
||
(__GNUC__ == 3 && __GNUC_MINOR__ >= 4) || (__GNUC__ >= 4) // GCC supports "pragma once" correctly since 3.4
#if
defined(_MSC_VER) || (
defined(__GNUC__)
&&
(__GNUC__ == 3 && __GNUC_MINOR__ >= 4) || (__GNUC__ >= 4)
)
// GCC supports "pragma once" correctly since 3.4
#pragma once
#pragma once
#endif
#endif
...
...
Prev
1
2
3
Next
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment