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
3eeb270e
Commit
3eeb270e
authored
Sep 06, 2011
by
Jesse Beder
Browse files
Merged from trunk
parents
d7feb2e9
c1d75dd4
Changes
58
Hide whitespace changes
Inline
Side-by-side
Showing
20 changed files
with
24 additions
and
21 deletions
+24
-21
include/yaml-cpp/ostream.h
include/yaml-cpp/ostream.h
+1
-1
include/yaml-cpp/parser.h
include/yaml-cpp/parser.h
+1
-1
include/yaml-cpp/stlemitter.h
include/yaml-cpp/stlemitter.h
+1
-1
include/yaml-cpp/stlnode.h
include/yaml-cpp/stlnode.h
+1
-1
include/yaml-cpp/traits.h
include/yaml-cpp/traits.h
+1
-1
include/yaml-cpp/yaml.h
include/yaml-cpp/yaml.h
+1
-1
src/collectionstack.h
src/collectionstack.h
+1
-1
src/contrib/graphbuilderadapter.h
src/contrib/graphbuilderadapter.h
+1
-1
src/directives.h
src/directives.h
+1
-1
src/emitterstate.h
src/emitterstate.h
+1
-1
src/emitterutils.cpp
src/emitterutils.cpp
+4
-1
src/emitterutils.h
src/emitterutils.h
+2
-2
src/exp.h
src/exp.h
+1
-1
src/indentation.h
src/indentation.h
+1
-1
src/iterpriv.h
src/iterpriv.h
+1
-1
src/nodebuilder.h
src/nodebuilder.h
+1
-1
src/nodeownership.h
src/nodeownership.h
+1
-1
src/ptr_stack.h
src/ptr_stack.h
+1
-1
src/ptr_vector.h
src/ptr_vector.h
+1
-1
src/regex.h
src/regex.h
+1
-1
No files found.
include/yaml-cpp/ostream.h
View file @
3eeb270e
#ifndef OSTREAM_H_62B23520_7C8E_11DE_8A39_0800200C9A66
#ifndef OSTREAM_H_62B23520_7C8E_11DE_8A39_0800200C9A66
#define OSTREAM_H_62B23520_7C8E_11DE_8A39_0800200C9A66
#define OSTREAM_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/parser.h
View file @
3eeb270e
#ifndef PARSER_H_62B23520_7C8E_11DE_8A39_0800200C9A66
#ifndef PARSER_H_62B23520_7C8E_11DE_8A39_0800200C9A66
#define PARSER_H_62B23520_7C8E_11DE_8A39_0800200C9A66
#define PARSER_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/stlemitter.h
View file @
3eeb270e
#ifndef STLEMITTER_H_62B23520_7C8E_11DE_8A39_0800200C9A66
#ifndef STLEMITTER_H_62B23520_7C8E_11DE_8A39_0800200C9A66
#define STLEMITTER_H_62B23520_7C8E_11DE_8A39_0800200C9A66
#define STLEMITTER_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/stlnode.h
View file @
3eeb270e
#ifndef STLNODE_H_62B23520_7C8E_11DE_8A39_0800200C9A66
#ifndef STLNODE_H_62B23520_7C8E_11DE_8A39_0800200C9A66
#define STLNODE_H_62B23520_7C8E_11DE_8A39_0800200C9A66
#define STLNODE_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/traits.h
View file @
3eeb270e
#ifndef TRAITS_H_62B23520_7C8E_11DE_8A39_0800200C9A66
#ifndef TRAITS_H_62B23520_7C8E_11DE_8A39_0800200C9A66
#define TRAITS_H_62B23520_7C8E_11DE_8A39_0800200C9A66
#define TRAITS_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/yaml.h
View file @
3eeb270e
#ifndef YAML_H_62B23520_7C8E_11DE_8A39_0800200C9A66
#ifndef YAML_H_62B23520_7C8E_11DE_8A39_0800200C9A66
#define YAML_H_62B23520_7C8E_11DE_8A39_0800200C9A66
#define YAML_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
...
...
src/collectionstack.h
View file @
3eeb270e
#ifndef COLLECTIONSTACK_H_62B23520_7C8E_11DE_8A39_0800200C9A66
#ifndef COLLECTIONSTACK_H_62B23520_7C8E_11DE_8A39_0800200C9A66
#define COLLECTIONSTACK_H_62B23520_7C8E_11DE_8A39_0800200C9A66
#define COLLECTIONSTACK_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
...
...
src/contrib/graphbuilderadapter.h
View file @
3eeb270e
#ifndef GRAPHBUILDERADAPTER_H_62B23520_7C8E_11DE_8A39_0800200C9A66
#ifndef GRAPHBUILDERADAPTER_H_62B23520_7C8E_11DE_8A39_0800200C9A66
#define GRAPHBUILDERADAPTER_H_62B23520_7C8E_11DE_8A39_0800200C9A66
#define GRAPHBUILDERADAPTER_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
...
...
src/directives.h
View file @
3eeb270e
#ifndef DIRECTIVES_H_62B23520_7C8E_11DE_8A39_0800200C9A66
#ifndef DIRECTIVES_H_62B23520_7C8E_11DE_8A39_0800200C9A66
#define DIRECTIVES_H_62B23520_7C8E_11DE_8A39_0800200C9A66
#define DIRECTIVES_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
...
...
src/emitterstate.h
View file @
3eeb270e
#ifndef EMITTERSTATE_H_62B23520_7C8E_11DE_8A39_0800200C9A66
#ifndef EMITTERSTATE_H_62B23520_7C8E_11DE_8A39_0800200C9A66
#define EMITTERSTATE_H_62B23520_7C8E_11DE_8A39_0800200C9A66
#define EMITTERSTATE_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
...
...
src/emitterutils.cpp
View file @
3eeb270e
...
@@ -128,6 +128,9 @@ namespace YAML
...
@@ -128,6 +128,9 @@ namespace YAML
}
}
bool
IsValidPlainScalar
(
const
std
::
string
&
str
,
bool
inFlow
,
bool
allowOnlyAscii
)
{
bool
IsValidPlainScalar
(
const
std
::
string
&
str
,
bool
inFlow
,
bool
allowOnlyAscii
)
{
if
(
str
.
empty
())
return
false
;
// first check the start
// first check the start
const
RegEx
&
start
=
(
inFlow
?
Exp
::
PlainScalarInFlow
()
:
Exp
::
PlainScalar
());
const
RegEx
&
start
=
(
inFlow
?
Exp
::
PlainScalarInFlow
()
:
Exp
::
PlainScalar
());
if
(
!
start
.
Matches
(
str
))
if
(
!
start
.
Matches
(
str
))
...
@@ -344,7 +347,7 @@ namespace YAML
...
@@ -344,7 +347,7 @@ namespace YAML
return
true
;
return
true
;
}
}
bool
WriteBinary
(
ostream
&
out
,
const
char
*
data
,
std
::
size_t
size
)
bool
WriteBinary
(
ostream
&
out
,
const
unsigned
char
*
data
,
std
::
size_t
size
)
{
{
static
const
char
encoding
[]
=
"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"
;
static
const
char
encoding
[]
=
"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"
;
const
char
PAD
=
'='
;
const
char
PAD
=
'='
;
...
...
src/emitterutils.h
View file @
3eeb270e
#ifndef EMITTERUTILS_H_62B23520_7C8E_11DE_8A39_0800200C9A66
#ifndef EMITTERUTILS_H_62B23520_7C8E_11DE_8A39_0800200C9A66
#define EMITTERUTILS_H_62B23520_7C8E_11DE_8A39_0800200C9A66
#define EMITTERUTILS_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
...
@@ -22,7 +22,7 @@ namespace YAML
...
@@ -22,7 +22,7 @@ namespace YAML
bool
WriteAnchor
(
ostream
&
out
,
const
std
::
string
&
str
);
bool
WriteAnchor
(
ostream
&
out
,
const
std
::
string
&
str
);
bool
WriteTag
(
ostream
&
out
,
const
std
::
string
&
str
,
bool
verbatim
);
bool
WriteTag
(
ostream
&
out
,
const
std
::
string
&
str
,
bool
verbatim
);
bool
WriteTagWithPrefix
(
ostream
&
out
,
const
std
::
string
&
prefix
,
const
std
::
string
&
tag
);
bool
WriteTagWithPrefix
(
ostream
&
out
,
const
std
::
string
&
prefix
,
const
std
::
string
&
tag
);
bool
WriteBinary
(
ostream
&
out
,
const
char
*
data
,
std
::
size_t
size
);
bool
WriteBinary
(
ostream
&
out
,
const
unsigned
char
*
data
,
std
::
size_t
size
);
}
}
}
}
...
...
src/exp.h
View file @
3eeb270e
#ifndef EXP_H_62B23520_7C8E_11DE_8A39_0800200C9A66
#ifndef EXP_H_62B23520_7C8E_11DE_8A39_0800200C9A66
#define EXP_H_62B23520_7C8E_11DE_8A39_0800200C9A66
#define EXP_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
...
...
src/indentation.h
View file @
3eeb270e
#ifndef INDENTATION_H_62B23520_7C8E_11DE_8A39_0800200C9A66
#ifndef INDENTATION_H_62B23520_7C8E_11DE_8A39_0800200C9A66
#define INDENTATION_H_62B23520_7C8E_11DE_8A39_0800200C9A66
#define INDENTATION_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
...
...
src/iterpriv.h
View file @
3eeb270e
#ifndef ITERPRIV_H_62B23520_7C8E_11DE_8A39_0800200C9A66
#ifndef ITERPRIV_H_62B23520_7C8E_11DE_8A39_0800200C9A66
#define ITERPRIV_H_62B23520_7C8E_11DE_8A39_0800200C9A66
#define ITERPRIV_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
...
...
src/nodebuilder.h
View file @
3eeb270e
#ifndef NODEBUILDER_H_62B23520_7C8E_11DE_8A39_0800200C9A66
#ifndef NODEBUILDER_H_62B23520_7C8E_11DE_8A39_0800200C9A66
#define NODEBUILDER_H_62B23520_7C8E_11DE_8A39_0800200C9A66
#define NODEBUILDER_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
...
...
src/nodeownership.h
View file @
3eeb270e
#ifndef NODE_OWNERSHIP_H_62B23520_7C8E_11DE_8A39_0800200C9A66
#ifndef NODE_OWNERSHIP_H_62B23520_7C8E_11DE_8A39_0800200C9A66
#define NODE_OWNERSHIP_H_62B23520_7C8E_11DE_8A39_0800200C9A66
#define NODE_OWNERSHIP_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
...
...
src/ptr_stack.h
View file @
3eeb270e
#ifndef PTR_STACK_H_62B23520_7C8E_11DE_8A39_0800200C9A66
#ifndef PTR_STACK_H_62B23520_7C8E_11DE_8A39_0800200C9A66
#define PTR_STACK_H_62B23520_7C8E_11DE_8A39_0800200C9A66
#define PTR_STACK_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
...
...
src/ptr_vector.h
View file @
3eeb270e
#ifndef PTR_VECTOR_H_62B23520_7C8E_11DE_8A39_0800200C9A66
#ifndef PTR_VECTOR_H_62B23520_7C8E_11DE_8A39_0800200C9A66
#define PTR_VECTOR_H_62B23520_7C8E_11DE_8A39_0800200C9A66
#define PTR_VECTOR_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
...
...
src/regex.h
View file @
3eeb270e
#ifndef REGEX_H_62B23520_7C8E_11DE_8A39_0800200C9A66
#ifndef REGEX_H_62B23520_7C8E_11DE_8A39_0800200C9A66
#define REGEX_H_62B23520_7C8E_11DE_8A39_0800200C9A66
#define REGEX_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