From: dsc Date: Mon, 6 Jun 2011 08:02:14 +0000 (-0700) Subject: Adds YAML library. X-Git-Url: http://git.less.ly:3516/?a=commitdiff_plain;h=814dbcce24cf1c98deeb31230f167da5ae7f75fe;p=tanks-ios.git Adds YAML library. --- diff --git a/libs/YAML.framework/.gitignore b/libs/YAML.framework/.gitignore new file mode 100644 index 0000000..e8ece47 --- /dev/null +++ b/libs/YAML.framework/.gitignore @@ -0,0 +1,5 @@ +.DS_Store +build +YAML.xcodeproj/*.mode1v3 +YAML.xcodeproj/*.pbxuser +test/yaml/bigboy.yaml \ No newline at end of file diff --git a/libs/YAML.framework/English.lproj/InfoPlist.strings b/libs/YAML.framework/English.lproj/InfoPlist.strings new file mode 100644 index 0000000..88f65cf --- /dev/null +++ b/libs/YAML.framework/English.lproj/InfoPlist.strings @@ -0,0 +1,2 @@ +/* Localized versions of Info.plist keys */ + diff --git a/libs/YAML.framework/Info.plist b/libs/YAML.framework/Info.plist new file mode 100644 index 0000000..dc83270 --- /dev/null +++ b/libs/YAML.framework/Info.plist @@ -0,0 +1,28 @@ + + + + + CFBundleDevelopmentRegion + English + CFBundleExecutable + ${EXECUTABLE_NAME} + CFBundleIconFile + + CFBundleIdentifier + com.yourcompany.${PRODUCT_NAME:rfc1034Identifier} + CFBundleInfoDictionaryVersion + 6.0 + CFBundleName + ${PRODUCT_NAME} + CFBundlePackageType + FMWK + CFBundleShortVersionString + 1.0 + CFBundleSignature + ???? + CFBundleVersion + 1 + NSPrincipalClass + + + diff --git a/libs/YAML.framework/Readme.mkdn b/libs/YAML.framework/Readme.mkdn new file mode 100644 index 0000000..1f63853 --- /dev/null +++ b/libs/YAML.framework/Readme.mkdn @@ -0,0 +1,66 @@ +# YAML.framework for Objective-C + +Based on C `LibYAML` library (`http://pyyaml.org/wiki/LibYAML`) by Kirill Simonov. +`YAML.framework` provides support for YAML (de/)serialisation similarly to standard `NSPropertyListSerialization`. + +It's fast and compatible with iOS. + +## Examples + +Using input stream: + + NSInputStream *stream = [[NSInputStream alloc] initWithFileAtPath: @"yaml/items.yaml"]; + # or [[NSInputStream alloc] initWithURL: ...] + + id yaml = [YAMLSerialization YAMLWithStream: stream + options: kYAMLReadOptionStringScalars + error: nil]; + + // Dump Objective-C object description + printf("%s", [[yaml description] UTF8String]); + +For input YAML file: + + items: + - name: Foo + - name: Bar + +Should print dump string similar to: + + ( + { + items = ( + { + name = Foo; + }, + { + name = Bar; + } + ); + } + ) + +## License + +`YAML.framework` is released under the MIT license. + + Copyright (c) 2010 Mirek Rusin (YAML.framework) + 2006 Kirill Simonov (LibYAML) + + Permission is hereby granted, free of charge, to any person obtaining a copy of + this software and associated documentation files (the "Software"), to deal in + the Software without restriction, including without limitation the rights to + use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies + of the Software, and to permit persons to whom the Software is furnished to do + so, subject to the following conditions: + + The above copyright notice and this permission notice shall be included in all + copies or substantial portions of the Software. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + SOFTWARE. diff --git a/libs/YAML.framework/YAML.xcodeproj/project.pbxproj b/libs/YAML.framework/YAML.xcodeproj/project.pbxproj new file mode 100644 index 0000000..c00e8ab --- /dev/null +++ b/libs/YAML.framework/YAML.xcodeproj/project.pbxproj @@ -0,0 +1,1095 @@ +// !$*UTF8*$! +{ + archiveVersion = 1; + classes = { + }; + objectVersion = 45; + objects = { + +/* Begin PBXBuildFile section */ + 8DC2EF530486A6940098B216 /* InfoPlist.strings in Resources */ = {isa = PBXBuildFile; fileRef = 089C1666FE841158C02AAC07 /* InfoPlist.strings */; }; + EB2B592E124E2117001FFEEB /* events.c in Sources */ = {isa = PBXBuildFile; fileRef = EB2B592D124E2117001FFEEB /* events.c */; }; + EB2B5952124E230A001FFEEB /* yaml in Copy YAML Files */ = {isa = PBXBuildFile; fileRef = EB6C424F124D9B3E00886AD1 /* yaml */; }; + EB68E826125101C200336500 /* api.c in Sources */ = {isa = PBXBuildFile; fileRef = EB6C3EC1124D86C400886AD1 /* api.c */; }; + EB68E827125101C200336500 /* dumper.c in Sources */ = {isa = PBXBuildFile; fileRef = EB6C3EC2124D86C400886AD1 /* dumper.c */; }; + EB68E828125101C200336500 /* emitter.c in Sources */ = {isa = PBXBuildFile; fileRef = EB6C3EC3124D86C400886AD1 /* emitter.c */; }; + EB68E829125101C200336500 /* loader.c in Sources */ = {isa = PBXBuildFile; fileRef = EB6C3EC4124D86C400886AD1 /* loader.c */; }; + EB68E82A125101C200336500 /* parser.c in Sources */ = {isa = PBXBuildFile; fileRef = EB6C3EC7124D86C400886AD1 /* parser.c */; }; + EB68E82B125101C200336500 /* reader.c in Sources */ = {isa = PBXBuildFile; fileRef = EB6C3EC8124D86C400886AD1 /* reader.c */; }; + EB68E82C125101C200336500 /* scanner.c in Sources */ = {isa = PBXBuildFile; fileRef = EB6C3EC9124D86C400886AD1 /* scanner.c */; }; + EB68E82D125101C200336500 /* writer.c in Sources */ = {isa = PBXBuildFile; fileRef = EB6C3ECA124D86C400886AD1 /* writer.c */; }; + EB6C3FBA124D872600886AD1 /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = EB6C3FB9124D872600886AD1 /* Foundation.framework */; }; + EB6C419F124D8B4F00886AD1 /* api.c in Sources */ = {isa = PBXBuildFile; fileRef = EB6C3EC1124D86C400886AD1 /* api.c */; }; + EB6C41A0124D8B4F00886AD1 /* dumper.c in Sources */ = {isa = PBXBuildFile; fileRef = EB6C3EC2124D86C400886AD1 /* dumper.c */; }; + EB6C41A1124D8B4F00886AD1 /* emitter.c in Sources */ = {isa = PBXBuildFile; fileRef = EB6C3EC3124D86C400886AD1 /* emitter.c */; }; + EB6C41A2124D8B4F00886AD1 /* loader.c in Sources */ = {isa = PBXBuildFile; fileRef = EB6C3EC4124D86C400886AD1 /* loader.c */; }; + EB6C41A3124D8B4F00886AD1 /* parser.c in Sources */ = {isa = PBXBuildFile; fileRef = EB6C3EC7124D86C400886AD1 /* parser.c */; }; + EB6C41A4124D8B4F00886AD1 /* reader.c in Sources */ = {isa = PBXBuildFile; fileRef = EB6C3EC8124D86C400886AD1 /* reader.c */; }; + EB6C41A5124D8B4F00886AD1 /* scanner.c in Sources */ = {isa = PBXBuildFile; fileRef = EB6C3EC9124D86C400886AD1 /* scanner.c */; }; + EB6C41A6124D8B4F00886AD1 /* writer.c in Sources */ = {isa = PBXBuildFile; fileRef = EB6C3ECA124D86C400886AD1 /* writer.c */; }; + EB6C41C2124D8C8F00886AD1 /* yaml.h in Headers */ = {isa = PBXBuildFile; fileRef = EB6C3EBB124D86C400886AD1 /* yaml.h */; settings = {ATTRIBUTES = (Public, ); }; }; + EB6C4214124D99D000886AD1 /* YAML.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 8DC2EF5B0486A6940098B216 /* YAML.framework */; }; + EB6C422C124D9A4B00886AD1 /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = EB6C3FB9124D872600886AD1 /* Foundation.framework */; }; + EB6C4252124D9B4A00886AD1 /* yaml in Copy YAML Files */ = {isa = PBXBuildFile; fileRef = EB6C424F124D9B3E00886AD1 /* yaml */; }; + EB6C433C124E0CF600886AD1 /* test.m in Sources */ = {isa = PBXBuildFile; fileRef = EB6C4226124D9A1700886AD1 /* test.m */; }; + EBE745BA124F8C0D00618049 /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = EB6C3FB9124D872600886AD1 /* Foundation.framework */; }; + EBE745BB124F8C0D00618049 /* YAML.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 8DC2EF5B0486A6940098B216 /* YAML.framework */; }; + EBE745BD124F8C0D00618049 /* yaml in Copy YAML Files */ = {isa = PBXBuildFile; fileRef = EB6C424F124D9B3E00886AD1 /* yaml */; }; + EBE745C7124F8C2F00618049 /* spec12examples.m in Sources */ = {isa = PBXBuildFile; fileRef = EBE745AF124F8B5000618049 /* spec12examples.m */; }; + EBF83D8B124D7A3E008517E5 /* YAMLSerialization.h in Headers */ = {isa = PBXBuildFile; fileRef = EBF83D89124D7A3E008517E5 /* YAMLSerialization.h */; settings = {ATTRIBUTES = (Public, ); }; }; + EBF83D8C124D7A3E008517E5 /* YAMLSerialization.m in Sources */ = {isa = PBXBuildFile; fileRef = EBF83D8A124D7A3E008517E5 /* YAMLSerialization.m */; }; +/* End PBXBuildFile section */ + +/* Begin PBXContainerItemProxy section */ + EB6C4212124D99CB00886AD1 /* PBXContainerItemProxy */ = { + isa = PBXContainerItemProxy; + containerPortal = 0867D690FE84028FC02AAC07 /* Project object */; + proxyType = 1; + remoteGlobalIDString = 8DC2EF4F0486A6940098B216; + remoteInfo = YAML; + }; + EBE745B6124F8C0D00618049 /* PBXContainerItemProxy */ = { + isa = PBXContainerItemProxy; + containerPortal = 0867D690FE84028FC02AAC07 /* Project object */; + proxyType = 1; + remoteGlobalIDString = 8DC2EF4F0486A6940098B216; + remoteInfo = YAML; + }; +/* End PBXContainerItemProxy section */ + +/* Begin PBXCopyFilesBuildPhase section */ + EB2B5960124E230D001FFEEB /* Copy YAML Files */ = { + isa = PBXCopyFilesBuildPhase; + buildActionMask = 2147483647; + dstPath = ""; + dstSubfolderSpec = 16; + files = ( + EB2B5952124E230A001FFEEB /* yaml in Copy YAML Files */, + ); + name = "Copy YAML Files"; + runOnlyForDeploymentPostprocessing = 0; + }; + EB6C424E124D9B0300886AD1 /* Copy YAML Files */ = { + isa = PBXCopyFilesBuildPhase; + buildActionMask = 2147483647; + dstPath = ""; + dstSubfolderSpec = 16; + files = ( + EB6C4252124D9B4A00886AD1 /* yaml in Copy YAML Files */, + ); + name = "Copy YAML Files"; + runOnlyForDeploymentPostprocessing = 0; + }; + EBE745BC124F8C0D00618049 /* Copy YAML Files */ = { + isa = PBXCopyFilesBuildPhase; + buildActionMask = 2147483647; + dstPath = ""; + dstSubfolderSpec = 16; + files = ( + EBE745BD124F8C0D00618049 /* yaml in Copy YAML Files */, + ); + name = "Copy YAML Files"; + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXCopyFilesBuildPhase section */ + +/* Begin PBXFileReference section */ + 089C1667FE841158C02AAC07 /* English */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.strings; name = English; path = English.lproj/InfoPlist.strings; sourceTree = ""; }; + 32DBCF5E0370ADEE00C91783 /* YAML_Prefix.pch */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = YAML_Prefix.pch; sourceTree = ""; }; + 8DC2EF5A0486A6940098B216 /* Info.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; + 8DC2EF5B0486A6940098B216 /* YAML.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = YAML.framework; sourceTree = BUILT_PRODUCTS_DIR; }; + EB2B5928124E2100001FFEEB /* events */ = {isa = PBXFileReference; explicitFileType = "compiled.mach-o.executable"; includeInIndex = 0; path = events; sourceTree = BUILT_PRODUCTS_DIR; }; + EB2B592D124E2117001FFEEB /* events.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = events.c; sourceTree = ""; }; + EB6C3E59124D86C400886AD1 /* aclocal.m4 */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = aclocal.m4; sourceTree = ""; }; + EB6C3E5B124D86C400886AD1 /* config.guess */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.script.sh; path = config.guess; sourceTree = ""; }; + EB6C3E5C124D86C400886AD1 /* config.sub */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.script.sh; path = config.sub; sourceTree = ""; }; + EB6C3E5D124D86C400886AD1 /* depcomp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.script.sh; path = depcomp; sourceTree = ""; }; + EB6C3E5E124D86C400886AD1 /* install-sh */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.script.sh; path = "install-sh"; sourceTree = ""; }; + EB6C3E5F124D86C400886AD1 /* ltmain.sh */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.script.sh; path = ltmain.sh; sourceTree = ""; }; + EB6C3E60124D86C400886AD1 /* missing */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.script.sh; path = missing; sourceTree = ""; }; + EB6C3E61124D86C400886AD1 /* config.h.in */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = config.h.in; sourceTree = ""; }; + EB6C3E62124D86C400886AD1 /* configure */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.script.sh; path = configure; sourceTree = ""; }; + EB6C3E63124D86C400886AD1 /* configure.ac */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = configure.ac; sourceTree = ""; }; + EB6C3E65124D86C400886AD1 /* doxygen.cfg */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = doxygen.cfg; sourceTree = ""; }; + EB6C3E67124D86C400886AD1 /* annotated.html */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.html; path = annotated.html; sourceTree = ""; }; + EB6C3E68124D86C400886AD1 /* classes.html */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.html; path = classes.html; sourceTree = ""; }; + EB6C3E69124D86C400886AD1 /* doxygen.css */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.css; path = doxygen.css; sourceTree = ""; }; + EB6C3E6A124D86C400886AD1 /* doxygen.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = doxygen.png; sourceTree = ""; }; + EB6C3E6B124D86C400886AD1 /* files.html */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.html; path = files.html; sourceTree = ""; }; + EB6C3E6C124D86C400886AD1 /* functions.html */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.html; path = functions.html; sourceTree = ""; }; + EB6C3E6D124D86C400886AD1 /* functions_0x62.html */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.html; path = functions_0x62.html; sourceTree = ""; }; + EB6C3E6E124D86C400886AD1 /* functions_0x63.html */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.html; path = functions_0x63.html; sourceTree = ""; }; + EB6C3E6F124D86C400886AD1 /* functions_0x64.html */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.html; path = functions_0x64.html; sourceTree = ""; }; + EB6C3E70124D86C400886AD1 /* functions_0x65.html */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.html; path = functions_0x65.html; sourceTree = ""; }; + EB6C3E71124D86C400886AD1 /* functions_0x66.html */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.html; path = functions_0x66.html; sourceTree = ""; }; + EB6C3E72124D86C400886AD1 /* functions_0x68.html */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.html; path = functions_0x68.html; sourceTree = ""; }; + EB6C3E73124D86C400886AD1 /* functions_0x69.html */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.html; path = functions_0x69.html; sourceTree = ""; }; + EB6C3E74124D86C400886AD1 /* functions_0x6b.html */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.html; path = functions_0x6b.html; sourceTree = ""; }; + EB6C3E75124D86C400886AD1 /* functions_0x6c.html */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.html; path = functions_0x6c.html; sourceTree = ""; }; + EB6C3E76124D86C400886AD1 /* functions_0x6d.html */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.html; path = functions_0x6d.html; sourceTree = ""; }; + EB6C3E77124D86C400886AD1 /* functions_0x6e.html */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.html; path = functions_0x6e.html; sourceTree = ""; }; + EB6C3E78124D86C400886AD1 /* functions_0x6f.html */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.html; path = functions_0x6f.html; sourceTree = ""; }; + EB6C3E79124D86C400886AD1 /* functions_0x70.html */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.html; path = functions_0x70.html; sourceTree = ""; }; + EB6C3E7A124D86C400886AD1 /* functions_0x71.html */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.html; path = functions_0x71.html; sourceTree = ""; }; + EB6C3E7B124D86C400886AD1 /* functions_0x72.html */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.html; path = functions_0x72.html; sourceTree = ""; }; + EB6C3E7C124D86C400886AD1 /* functions_0x73.html */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.html; path = functions_0x73.html; sourceTree = ""; }; + EB6C3E7D124D86C400886AD1 /* functions_0x74.html */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.html; path = functions_0x74.html; sourceTree = ""; }; + EB6C3E7E124D86C400886AD1 /* functions_0x75.html */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.html; path = functions_0x75.html; sourceTree = ""; }; + EB6C3E7F124D86C400886AD1 /* functions_0x76.html */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.html; path = functions_0x76.html; sourceTree = ""; }; + EB6C3E80124D86C400886AD1 /* functions_0x77.html */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.html; path = functions_0x77.html; sourceTree = ""; }; + EB6C3E81124D86C400886AD1 /* functions_vars.html */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.html; path = functions_vars.html; sourceTree = ""; }; + EB6C3E82124D86C400886AD1 /* functions_vars_0x62.html */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.html; path = functions_vars_0x62.html; sourceTree = ""; }; + EB6C3E83124D86C400886AD1 /* functions_vars_0x63.html */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.html; path = functions_vars_0x63.html; sourceTree = ""; }; + EB6C3E84124D86C400886AD1 /* functions_vars_0x64.html */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.html; path = functions_vars_0x64.html; sourceTree = ""; }; + EB6C3E85124D86C400886AD1 /* functions_vars_0x65.html */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.html; path = functions_vars_0x65.html; sourceTree = ""; }; + EB6C3E86124D86C400886AD1 /* functions_vars_0x66.html */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.html; path = functions_vars_0x66.html; sourceTree = ""; }; + EB6C3E87124D86C400886AD1 /* functions_vars_0x68.html */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.html; path = functions_vars_0x68.html; sourceTree = ""; }; + EB6C3E88124D86C400886AD1 /* functions_vars_0x69.html */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.html; path = functions_vars_0x69.html; sourceTree = ""; }; + EB6C3E89124D86C400886AD1 /* functions_vars_0x6b.html */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.html; path = functions_vars_0x6b.html; sourceTree = ""; }; + EB6C3E8A124D86C400886AD1 /* functions_vars_0x6c.html */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.html; path = functions_vars_0x6c.html; sourceTree = ""; }; + EB6C3E8B124D86C400886AD1 /* functions_vars_0x6d.html */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.html; path = functions_vars_0x6d.html; sourceTree = ""; }; + EB6C3E8C124D86C400886AD1 /* functions_vars_0x6e.html */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.html; path = functions_vars_0x6e.html; sourceTree = ""; }; + EB6C3E8D124D86C400886AD1 /* functions_vars_0x6f.html */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.html; path = functions_vars_0x6f.html; sourceTree = ""; }; + EB6C3E8E124D86C400886AD1 /* functions_vars_0x70.html */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.html; path = functions_vars_0x70.html; sourceTree = ""; }; + EB6C3E8F124D86C400886AD1 /* functions_vars_0x71.html */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.html; path = functions_vars_0x71.html; sourceTree = ""; }; + EB6C3E90124D86C400886AD1 /* functions_vars_0x72.html */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.html; path = functions_vars_0x72.html; sourceTree = ""; }; + EB6C3E91124D86C400886AD1 /* functions_vars_0x73.html */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.html; path = functions_vars_0x73.html; sourceTree = ""; }; + EB6C3E92124D86C400886AD1 /* functions_vars_0x74.html */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.html; path = functions_vars_0x74.html; sourceTree = ""; }; + EB6C3E93124D86C400886AD1 /* functions_vars_0x75.html */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.html; path = functions_vars_0x75.html; sourceTree = ""; }; + EB6C3E94124D86C400886AD1 /* functions_vars_0x76.html */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.html; path = functions_vars_0x76.html; sourceTree = ""; }; + EB6C3E95124D86C400886AD1 /* functions_vars_0x77.html */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.html; path = functions_vars_0x77.html; sourceTree = ""; }; + EB6C3E96124D86C400886AD1 /* globals.html */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.html; path = globals.html; sourceTree = ""; }; + EB6C3E97124D86C400886AD1 /* globals_defs.html */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.html; path = globals_defs.html; sourceTree = ""; }; + EB6C3E98124D86C400886AD1 /* globals_enum.html */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.html; path = globals_enum.html; sourceTree = ""; }; + EB6C3E99124D86C400886AD1 /* globals_eval.html */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.html; path = globals_eval.html; sourceTree = ""; }; + EB6C3E9A124D86C400886AD1 /* globals_func.html */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.html; path = globals_func.html; sourceTree = ""; }; + EB6C3E9B124D86C400886AD1 /* globals_type.html */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.html; path = globals_type.html; sourceTree = ""; }; + EB6C3E9C124D86C400886AD1 /* group__basic.html */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.html; path = group__basic.html; sourceTree = ""; }; + EB6C3E9D124D86C400886AD1 /* group__emitter.html */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.html; path = group__emitter.html; sourceTree = ""; }; + EB6C3E9E124D86C400886AD1 /* group__events.html */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.html; path = group__events.html; sourceTree = ""; }; + EB6C3E9F124D86C400886AD1 /* group__export.html */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.html; path = group__export.html; sourceTree = ""; }; + EB6C3EA0124D86C400886AD1 /* group__nodes.html */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.html; path = group__nodes.html; sourceTree = ""; }; + EB6C3EA1124D86C400886AD1 /* group__parser.html */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.html; path = group__parser.html; sourceTree = ""; }; + EB6C3EA2124D86C400886AD1 /* group__styles.html */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.html; path = group__styles.html; sourceTree = ""; }; + EB6C3EA3124D86C400886AD1 /* group__tokens.html */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.html; path = group__tokens.html; sourceTree = ""; }; + EB6C3EA4124D86C400886AD1 /* group__version.html */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.html; path = group__version.html; sourceTree = ""; }; + EB6C3EA5124D86C400886AD1 /* index.html */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.html; path = index.html; sourceTree = ""; }; + EB6C3EA6124D86C400886AD1 /* modules.html */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.html; path = modules.html; sourceTree = ""; }; + EB6C3EA7124D86C400886AD1 /* structyaml__alias__data__s.html */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.html; path = structyaml__alias__data__s.html; sourceTree = ""; }; + EB6C3EA8124D86C400886AD1 /* structyaml__document__s.html */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.html; path = structyaml__document__s.html; sourceTree = ""; }; + EB6C3EA9124D86C400886AD1 /* structyaml__emitter__s.html */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.html; path = structyaml__emitter__s.html; sourceTree = ""; }; + EB6C3EAA124D86C400886AD1 /* structyaml__event__s.html */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.html; path = structyaml__event__s.html; sourceTree = ""; }; + EB6C3EAB124D86C400886AD1 /* structyaml__mark__s.html */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.html; path = structyaml__mark__s.html; sourceTree = ""; }; + EB6C3EAC124D86C400886AD1 /* structyaml__node__pair__s.html */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.html; path = structyaml__node__pair__s.html; sourceTree = ""; }; + EB6C3EAD124D86C400886AD1 /* structyaml__node__s.html */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.html; path = structyaml__node__s.html; sourceTree = ""; }; + EB6C3EAE124D86C400886AD1 /* structyaml__parser__s.html */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.html; path = structyaml__parser__s.html; sourceTree = ""; }; + EB6C3EAF124D86C400886AD1 /* structyaml__simple__key__s.html */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.html; path = structyaml__simple__key__s.html; sourceTree = ""; }; + EB6C3EB0124D86C400886AD1 /* structyaml__tag__directive__s.html */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.html; path = structyaml__tag__directive__s.html; sourceTree = ""; }; + EB6C3EB1124D86C400886AD1 /* structyaml__token__s.html */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.html; path = structyaml__token__s.html; sourceTree = ""; }; + EB6C3EB2124D86C400886AD1 /* structyaml__version__directive__s.html */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.html; path = structyaml__version__directive__s.html; sourceTree = ""; }; + EB6C3EB3124D86C400886AD1 /* tab_b.gif */ = {isa = PBXFileReference; lastKnownFileType = image.gif; path = tab_b.gif; sourceTree = ""; }; + EB6C3EB4124D86C400886AD1 /* tab_l.gif */ = {isa = PBXFileReference; lastKnownFileType = image.gif; path = tab_l.gif; sourceTree = ""; }; + EB6C3EB5124D86C400886AD1 /* tab_r.gif */ = {isa = PBXFileReference; lastKnownFileType = image.gif; path = tab_r.gif; sourceTree = ""; }; + EB6C3EB6124D86C400886AD1 /* tabs.css */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.css; path = tabs.css; sourceTree = ""; }; + EB6C3EB7124D86C400886AD1 /* yaml_8h.html */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.html; path = yaml_8h.html; sourceTree = ""; }; + EB6C3EB9124D86C400886AD1 /* Makefile.am */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = Makefile.am; sourceTree = ""; }; + EB6C3EBA124D86C400886AD1 /* Makefile.in */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = Makefile.in; sourceTree = ""; }; + EB6C3EBB124D86C400886AD1 /* yaml.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = yaml.h; sourceTree = ""; }; + EB6C3EBC124D86C400886AD1 /* LICENSE */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = LICENSE; sourceTree = ""; }; + EB6C3EBD124D86C400886AD1 /* Makefile.am */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = Makefile.am; sourceTree = ""; }; + EB6C3EBE124D86C400886AD1 /* Makefile.in */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = Makefile.in; sourceTree = ""; }; + EB6C3EBF124D86C400886AD1 /* README */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = README; sourceTree = ""; }; + EB6C3EC1124D86C400886AD1 /* api.c */ = {isa = PBXFileReference; explicitFileType = sourcecode.c.c; fileEncoding = 4; path = api.c; sourceTree = ""; }; + EB6C3EC2124D86C400886AD1 /* dumper.c */ = {isa = PBXFileReference; explicitFileType = sourcecode.c.c; fileEncoding = 4; path = dumper.c; sourceTree = ""; }; + EB6C3EC3124D86C400886AD1 /* emitter.c */ = {isa = PBXFileReference; explicitFileType = sourcecode.c.c; fileEncoding = 4; path = emitter.c; sourceTree = ""; }; + EB6C3EC4124D86C400886AD1 /* loader.c */ = {isa = PBXFileReference; explicitFileType = sourcecode.c.c; fileEncoding = 4; path = loader.c; sourceTree = ""; }; + EB6C3EC5124D86C400886AD1 /* Makefile.am */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = Makefile.am; sourceTree = ""; }; + EB6C3EC6124D86C400886AD1 /* Makefile.in */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = Makefile.in; sourceTree = ""; }; + EB6C3EC7124D86C400886AD1 /* parser.c */ = {isa = PBXFileReference; explicitFileType = sourcecode.c.c; fileEncoding = 4; path = parser.c; sourceTree = ""; }; + EB6C3EC8124D86C400886AD1 /* reader.c */ = {isa = PBXFileReference; explicitFileType = sourcecode.c.c; fileEncoding = 4; path = reader.c; sourceTree = ""; }; + EB6C3EC9124D86C400886AD1 /* scanner.c */ = {isa = PBXFileReference; explicitFileType = sourcecode.c.c; fileEncoding = 4; path = scanner.c; sourceTree = ""; }; + EB6C3ECA124D86C400886AD1 /* writer.c */ = {isa = PBXFileReference; explicitFileType = sourcecode.c.c; fileEncoding = 4; path = writer.c; sourceTree = ""; }; + EB6C3ECB124D86C400886AD1 /* yaml_private.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = yaml_private.h; sourceTree = ""; }; + EB6C3ECD124D86C400886AD1 /* example-deconstructor-alt.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = "example-deconstructor-alt.c"; sourceTree = ""; }; + EB6C3ECE124D86C400886AD1 /* example-deconstructor.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = "example-deconstructor.c"; sourceTree = ""; }; + EB6C3ECF124D86C400886AD1 /* example-reformatter-alt.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = "example-reformatter-alt.c"; sourceTree = ""; }; + EB6C3ED0124D86C400886AD1 /* example-reformatter.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = "example-reformatter.c"; sourceTree = ""; }; + EB6C3ED1124D86C400886AD1 /* Makefile.am */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = Makefile.am; sourceTree = ""; }; + EB6C3ED2124D86C400886AD1 /* Makefile.in */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = Makefile.in; sourceTree = ""; }; + EB6C3ED3124D86C400886AD1 /* run-dumper.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = "run-dumper.c"; sourceTree = ""; }; + EB6C3ED4124D86C400886AD1 /* run-emitter.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = "run-emitter.c"; sourceTree = ""; }; + EB6C3ED5124D86C400886AD1 /* run-loader.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = "run-loader.c"; sourceTree = ""; }; + EB6C3ED6124D86C400886AD1 /* run-parser.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = "run-parser.m"; sourceTree = ""; }; + EB6C3ED7124D86C400886AD1 /* run-scanner.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = "run-scanner.c"; sourceTree = ""; }; + EB6C3ED8124D86C400886AD1 /* test-reader.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = "test-reader.c"; sourceTree = ""; }; + EB6C3ED9124D86C400886AD1 /* test-version.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = "test-version.c"; sourceTree = ""; }; + EB6C3EDB124D86C400886AD1 /* config.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = config.h; sourceTree = ""; }; + EB6C3EDC124D86C400886AD1 /* Makefile.am */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = Makefile.am; sourceTree = ""; }; + EB6C3EDD124D86C400886AD1 /* Makefile.in */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = Makefile.in; sourceTree = ""; }; + EB6C3EDF124D86C400886AD1 /* example_deconstructor.dsp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = example_deconstructor.dsp; sourceTree = ""; }; + EB6C3EE0124D86C400886AD1 /* example_deconstructor_alt.dsp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = example_deconstructor_alt.dsp; sourceTree = ""; }; + EB6C3EE1124D86C400886AD1 /* example_reformatter.dsp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = example_reformatter.dsp; sourceTree = ""; }; + EB6C3EE2124D86C400886AD1 /* example_reformatter_alt.dsp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = example_reformatter_alt.dsp; sourceTree = ""; }; + EB6C3EE3124D86C400886AD1 /* libyaml.dsw */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = libyaml.dsw; sourceTree = ""; }; + EB6C3EE4124D86C400886AD1 /* run_dumper.dsp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = run_dumper.dsp; sourceTree = ""; }; + EB6C3EE5124D86C400886AD1 /* run_emitter.dsp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = run_emitter.dsp; sourceTree = ""; }; + EB6C3EE6124D86C400886AD1 /* run_loader.dsp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = run_loader.dsp; sourceTree = ""; }; + EB6C3EE7124D86C400886AD1 /* run_parser.dsp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = run_parser.dsp; sourceTree = ""; }; + EB6C3EE8124D86C400886AD1 /* run_scanner.dsp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = run_scanner.dsp; sourceTree = ""; }; + EB6C3EE9124D86C400886AD1 /* test_reader.dsp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = test_reader.dsp; sourceTree = ""; }; + EB6C3EEA124D86C400886AD1 /* test_version.dsp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = test_version.dsp; sourceTree = ""; }; + EB6C3EEB124D86C400886AD1 /* yaml.dsp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = yaml.dsp; sourceTree = ""; }; + EB6C3EEC124D86C400886AD1 /* yamldll.dsp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = yamldll.dsp; sourceTree = ""; }; + EB6C3EEE124D86C400886AD1 /* example_deconstructor.vcproj */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xml; path = example_deconstructor.vcproj; sourceTree = ""; }; + EB6C3EEF124D86C400886AD1 /* example_deconstructor_alt.vcproj */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xml; path = example_deconstructor_alt.vcproj; sourceTree = ""; }; + EB6C3EF0124D86C400886AD1 /* example_reformatter.vcproj */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xml; path = example_reformatter.vcproj; sourceTree = ""; }; + EB6C3EF1124D86C400886AD1 /* example_reformatter_alt.vcproj */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xml; path = example_reformatter_alt.vcproj; sourceTree = ""; }; + EB6C3EF2124D86C400886AD1 /* libyaml.sln */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = libyaml.sln; sourceTree = ""; }; + EB6C3EF3124D86C400886AD1 /* run_dumper.vcproj */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xml; path = run_dumper.vcproj; sourceTree = ""; }; + EB6C3EF4124D86C400886AD1 /* run_emitter.vcproj */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xml; path = run_emitter.vcproj; sourceTree = ""; }; + EB6C3EF5124D86C400886AD1 /* run_loader.vcproj */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xml; path = run_loader.vcproj; sourceTree = ""; }; + EB6C3EF6124D86C400886AD1 /* run_parser.vcproj */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xml; path = run_parser.vcproj; sourceTree = ""; }; + EB6C3EF7124D86C400886AD1 /* run_scanner.vcproj */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xml; path = run_scanner.vcproj; sourceTree = ""; }; + EB6C3EF8124D86C400886AD1 /* test_reader.vcproj */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xml; path = test_reader.vcproj; sourceTree = ""; }; + EB6C3EF9124D86C400886AD1 /* test_version.vcproj */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xml; path = test_version.vcproj; sourceTree = ""; }; + EB6C3EFA124D86C400886AD1 /* yaml.vcproj */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xml; path = yaml.vcproj; sourceTree = ""; }; + EB6C3EFB124D86C400886AD1 /* yamldll.vcproj */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xml; path = yamldll.vcproj; sourceTree = ""; }; + EB6C3EFD124D86C400886AD1 /* example_deconstructor.vcproj */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xml; path = example_deconstructor.vcproj; sourceTree = ""; }; + EB6C3EFE124D86C400886AD1 /* example_deconstructor_alt.vcproj */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xml; path = example_deconstructor_alt.vcproj; sourceTree = ""; }; + EB6C3EFF124D86C400886AD1 /* example_reformatter.vcproj */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xml; path = example_reformatter.vcproj; sourceTree = ""; }; + EB6C3F00124D86C400886AD1 /* example_reformatter_alt.vcproj */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xml; path = example_reformatter_alt.vcproj; sourceTree = ""; }; + EB6C3F01124D86C400886AD1 /* libyaml.sln */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = libyaml.sln; sourceTree = ""; }; + EB6C3F02124D86C400886AD1 /* run_dumper.vcproj */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xml; path = run_dumper.vcproj; sourceTree = ""; }; + EB6C3F03124D86C400886AD1 /* run_emitter.vcproj */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xml; path = run_emitter.vcproj; sourceTree = ""; }; + EB6C3F04124D86C400886AD1 /* run_loader.vcproj */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xml; path = run_loader.vcproj; sourceTree = ""; }; + EB6C3F05124D86C400886AD1 /* run_parser.vcproj */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xml; path = run_parser.vcproj; sourceTree = ""; }; + EB6C3F06124D86C400886AD1 /* run_scanner.vcproj */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xml; path = run_scanner.vcproj; sourceTree = ""; }; + EB6C3F07124D86C400886AD1 /* test_reader.vcproj */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xml; path = test_reader.vcproj; sourceTree = ""; }; + EB6C3F08124D86C400886AD1 /* test_version.vcproj */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xml; path = test_version.vcproj; sourceTree = ""; }; + EB6C3F09124D86C400886AD1 /* yaml.vcproj */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xml; path = yaml.vcproj; sourceTree = ""; }; + EB6C3F0A124D86C400886AD1 /* yamldll.vcproj */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xml; path = yamldll.vcproj; sourceTree = ""; }; + EB6C3FB9124D872600886AD1 /* Foundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Foundation.framework; path = System/Library/Frameworks/Foundation.framework; sourceTree = SDKROOT; }; + EB6C420E124D99BE00886AD1 /* test */ = {isa = PBXFileReference; explicitFileType = "compiled.mach-o.executable"; includeInIndex = 0; path = test; sourceTree = BUILT_PRODUCTS_DIR; }; + EB6C4226124D9A1700886AD1 /* test.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = test.m; sourceTree = ""; }; + EB6C424F124D9B3E00886AD1 /* yaml */ = {isa = PBXFileReference; lastKnownFileType = folder; path = yaml; sourceTree = ""; }; + EBE745AF124F8B5000618049 /* spec12examples.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = spec12examples.m; sourceTree = ""; }; + EBE745C1124F8C0D00618049 /* test */ = {isa = PBXFileReference; explicitFileType = "compiled.mach-o.executable"; includeInIndex = 0; path = test; sourceTree = BUILT_PRODUCTS_DIR; }; + EBF83D89124D7A3E008517E5 /* YAMLSerialization.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = YAMLSerialization.h; sourceTree = ""; }; + EBF83D8A124D7A3E008517E5 /* YAMLSerialization.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = YAMLSerialization.m; sourceTree = ""; }; +/* End PBXFileReference section */ + +/* Begin PBXFrameworksBuildPhase section */ + 8DC2EF560486A6940098B216 /* Frameworks */ = { + isa = PBXFrameworksBuildPhase; + buildActionMask = 2147483647; + files = ( + EB6C3FBA124D872600886AD1 /* Foundation.framework in Frameworks */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; + EB2B5926124E2100001FFEEB /* Frameworks */ = { + isa = PBXFrameworksBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + runOnlyForDeploymentPostprocessing = 0; + }; + EB6C420C124D99BE00886AD1 /* Frameworks */ = { + isa = PBXFrameworksBuildPhase; + buildActionMask = 2147483647; + files = ( + EB6C422C124D9A4B00886AD1 /* Foundation.framework in Frameworks */, + EB6C4214124D99D000886AD1 /* YAML.framework in Frameworks */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; + EBE745B9124F8C0D00618049 /* Frameworks */ = { + isa = PBXFrameworksBuildPhase; + buildActionMask = 2147483647; + files = ( + EBE745BA124F8C0D00618049 /* Foundation.framework in Frameworks */, + EBE745BB124F8C0D00618049 /* YAML.framework in Frameworks */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXFrameworksBuildPhase section */ + +/* Begin PBXGroup section */ + 034768DFFF38A50411DB9C8B /* Products */ = { + isa = PBXGroup; + children = ( + 8DC2EF5B0486A6940098B216 /* YAML.framework */, + EB6C420E124D99BE00886AD1 /* test */, + EB2B5928124E2100001FFEEB /* events */, + EBE745C1124F8C0D00618049 /* test */, + ); + name = Products; + sourceTree = ""; + }; + 0867D691FE84028FC02AAC07 /* YAML */ = { + isa = PBXGroup; + children = ( + EB6C4222124D9A0200886AD1 /* test */, + EB6C3E58124D86C400886AD1 /* yaml-0.1.3 */, + 08FB77AEFE84172EC02AAC07 /* Classes */, + 32C88DFF0371C24200C91783 /* Other Sources */, + 089C1665FE841158C02AAC07 /* Resources */, + 0867D69AFE84028FC02AAC07 /* Frameworks */, + 034768DFFF38A50411DB9C8B /* Products */, + ); + name = YAML; + sourceTree = ""; + }; + 0867D69AFE84028FC02AAC07 /* Frameworks */ = { + isa = PBXGroup; + children = ( + EB6C3FB9124D872600886AD1 /* Foundation.framework */, + ); + name = Frameworks; + sourceTree = ""; + }; + 089C1665FE841158C02AAC07 /* Resources */ = { + isa = PBXGroup; + children = ( + 8DC2EF5A0486A6940098B216 /* Info.plist */, + 089C1666FE841158C02AAC07 /* InfoPlist.strings */, + ); + name = Resources; + sourceTree = ""; + }; + 08FB77AEFE84172EC02AAC07 /* Classes */ = { + isa = PBXGroup; + children = ( + EBF83D89124D7A3E008517E5 /* YAMLSerialization.h */, + EBF83D8A124D7A3E008517E5 /* YAMLSerialization.m */, + ); + name = Classes; + sourceTree = ""; + }; + 32C88DFF0371C24200C91783 /* Other Sources */ = { + isa = PBXGroup; + children = ( + 32DBCF5E0370ADEE00C91783 /* YAML_Prefix.pch */, + ); + name = "Other Sources"; + sourceTree = ""; + }; + EB6C3E58124D86C400886AD1 /* yaml-0.1.3 */ = { + isa = PBXGroup; + children = ( + EB6C3E59124D86C400886AD1 /* aclocal.m4 */, + EB6C3E5A124D86C400886AD1 /* config */, + EB6C3E61124D86C400886AD1 /* config.h.in */, + EB6C3E62124D86C400886AD1 /* configure */, + EB6C3E63124D86C400886AD1 /* configure.ac */, + EB6C3E64124D86C400886AD1 /* doc */, + EB6C3EB8124D86C400886AD1 /* include */, + EB6C3EBC124D86C400886AD1 /* LICENSE */, + EB6C3EBD124D86C400886AD1 /* Makefile.am */, + EB6C3EBE124D86C400886AD1 /* Makefile.in */, + EB6C3EBF124D86C400886AD1 /* README */, + EB6C3EC0124D86C400886AD1 /* src */, + EB6C3ECC124D86C400886AD1 /* tests */, + EB6C3EDA124D86C400886AD1 /* win32 */, + ); + path = "yaml-0.1.3"; + sourceTree = ""; + }; + EB6C3E5A124D86C400886AD1 /* config */ = { + isa = PBXGroup; + children = ( + EB6C3E5B124D86C400886AD1 /* config.guess */, + EB6C3E5C124D86C400886AD1 /* config.sub */, + EB6C3E5D124D86C400886AD1 /* depcomp */, + EB6C3E5E124D86C400886AD1 /* install-sh */, + EB6C3E5F124D86C400886AD1 /* ltmain.sh */, + EB6C3E60124D86C400886AD1 /* missing */, + ); + path = config; + sourceTree = ""; + }; + EB6C3E64124D86C400886AD1 /* doc */ = { + isa = PBXGroup; + children = ( + EB6C3E65124D86C400886AD1 /* doxygen.cfg */, + EB6C3E66124D86C400886AD1 /* html */, + ); + path = doc; + sourceTree = ""; + }; + EB6C3E66124D86C400886AD1 /* html */ = { + isa = PBXGroup; + children = ( + EB6C3E67124D86C400886AD1 /* annotated.html */, + EB6C3E68124D86C400886AD1 /* classes.html */, + EB6C3E69124D86C400886AD1 /* doxygen.css */, + EB6C3E6A124D86C400886AD1 /* doxygen.png */, + EB6C3E6B124D86C400886AD1 /* files.html */, + EB6C3E6C124D86C400886AD1 /* functions.html */, + EB6C3E6D124D86C400886AD1 /* functions_0x62.html */, + EB6C3E6E124D86C400886AD1 /* functions_0x63.html */, + EB6C3E6F124D86C400886AD1 /* functions_0x64.html */, + EB6C3E70124D86C400886AD1 /* functions_0x65.html */, + EB6C3E71124D86C400886AD1 /* functions_0x66.html */, + EB6C3E72124D86C400886AD1 /* functions_0x68.html */, + EB6C3E73124D86C400886AD1 /* functions_0x69.html */, + EB6C3E74124D86C400886AD1 /* functions_0x6b.html */, + EB6C3E75124D86C400886AD1 /* functions_0x6c.html */, + EB6C3E76124D86C400886AD1 /* functions_0x6d.html */, + EB6C3E77124D86C400886AD1 /* functions_0x6e.html */, + EB6C3E78124D86C400886AD1 /* functions_0x6f.html */, + EB6C3E79124D86C400886AD1 /* functions_0x70.html */, + EB6C3E7A124D86C400886AD1 /* functions_0x71.html */, + EB6C3E7B124D86C400886AD1 /* functions_0x72.html */, + EB6C3E7C124D86C400886AD1 /* functions_0x73.html */, + EB6C3E7D124D86C400886AD1 /* functions_0x74.html */, + EB6C3E7E124D86C400886AD1 /* functions_0x75.html */, + EB6C3E7F124D86C400886AD1 /* functions_0x76.html */, + EB6C3E80124D86C400886AD1 /* functions_0x77.html */, + EB6C3E81124D86C400886AD1 /* functions_vars.html */, + EB6C3E82124D86C400886AD1 /* functions_vars_0x62.html */, + EB6C3E83124D86C400886AD1 /* functions_vars_0x63.html */, + EB6C3E84124D86C400886AD1 /* functions_vars_0x64.html */, + EB6C3E85124D86C400886AD1 /* functions_vars_0x65.html */, + EB6C3E86124D86C400886AD1 /* functions_vars_0x66.html */, + EB6C3E87124D86C400886AD1 /* functions_vars_0x68.html */, + EB6C3E88124D86C400886AD1 /* functions_vars_0x69.html */, + EB6C3E89124D86C400886AD1 /* functions_vars_0x6b.html */, + EB6C3E8A124D86C400886AD1 /* functions_vars_0x6c.html */, + EB6C3E8B124D86C400886AD1 /* functions_vars_0x6d.html */, + EB6C3E8C124D86C400886AD1 /* functions_vars_0x6e.html */, + EB6C3E8D124D86C400886AD1 /* functions_vars_0x6f.html */, + EB6C3E8E124D86C400886AD1 /* functions_vars_0x70.html */, + EB6C3E8F124D86C400886AD1 /* functions_vars_0x71.html */, + EB6C3E90124D86C400886AD1 /* functions_vars_0x72.html */, + EB6C3E91124D86C400886AD1 /* functions_vars_0x73.html */, + EB6C3E92124D86C400886AD1 /* functions_vars_0x74.html */, + EB6C3E93124D86C400886AD1 /* functions_vars_0x75.html */, + EB6C3E94124D86C400886AD1 /* functions_vars_0x76.html */, + EB6C3E95124D86C400886AD1 /* functions_vars_0x77.html */, + EB6C3E96124D86C400886AD1 /* globals.html */, + EB6C3E97124D86C400886AD1 /* globals_defs.html */, + EB6C3E98124D86C400886AD1 /* globals_enum.html */, + EB6C3E99124D86C400886AD1 /* globals_eval.html */, + EB6C3E9A124D86C400886AD1 /* globals_func.html */, + EB6C3E9B124D86C400886AD1 /* globals_type.html */, + EB6C3E9C124D86C400886AD1 /* group__basic.html */, + EB6C3E9D124D86C400886AD1 /* group__emitter.html */, + EB6C3E9E124D86C400886AD1 /* group__events.html */, + EB6C3E9F124D86C400886AD1 /* group__export.html */, + EB6C3EA0124D86C400886AD1 /* group__nodes.html */, + EB6C3EA1124D86C400886AD1 /* group__parser.html */, + EB6C3EA2124D86C400886AD1 /* group__styles.html */, + EB6C3EA3124D86C400886AD1 /* group__tokens.html */, + EB6C3EA4124D86C400886AD1 /* group__version.html */, + EB6C3EA5124D86C400886AD1 /* index.html */, + EB6C3EA6124D86C400886AD1 /* modules.html */, + EB6C3EA7124D86C400886AD1 /* structyaml__alias__data__s.html */, + EB6C3EA8124D86C400886AD1 /* structyaml__document__s.html */, + EB6C3EA9124D86C400886AD1 /* structyaml__emitter__s.html */, + EB6C3EAA124D86C400886AD1 /* structyaml__event__s.html */, + EB6C3EAB124D86C400886AD1 /* structyaml__mark__s.html */, + EB6C3EAC124D86C400886AD1 /* structyaml__node__pair__s.html */, + EB6C3EAD124D86C400886AD1 /* structyaml__node__s.html */, + EB6C3EAE124D86C400886AD1 /* structyaml__parser__s.html */, + EB6C3EAF124D86C400886AD1 /* structyaml__simple__key__s.html */, + EB6C3EB0124D86C400886AD1 /* structyaml__tag__directive__s.html */, + EB6C3EB1124D86C400886AD1 /* structyaml__token__s.html */, + EB6C3EB2124D86C400886AD1 /* structyaml__version__directive__s.html */, + EB6C3EB3124D86C400886AD1 /* tab_b.gif */, + EB6C3EB4124D86C400886AD1 /* tab_l.gif */, + EB6C3EB5124D86C400886AD1 /* tab_r.gif */, + EB6C3EB6124D86C400886AD1 /* tabs.css */, + EB6C3EB7124D86C400886AD1 /* yaml_8h.html */, + ); + path = html; + sourceTree = ""; + }; + EB6C3EB8124D86C400886AD1 /* include */ = { + isa = PBXGroup; + children = ( + EB6C3EB9124D86C400886AD1 /* Makefile.am */, + EB6C3EBA124D86C400886AD1 /* Makefile.in */, + EB6C3EBB124D86C400886AD1 /* yaml.h */, + ); + path = include; + sourceTree = ""; + }; + EB6C3EC0124D86C400886AD1 /* src */ = { + isa = PBXGroup; + children = ( + EB6C3EC1124D86C400886AD1 /* api.c */, + EB6C3EC2124D86C400886AD1 /* dumper.c */, + EB6C3EC3124D86C400886AD1 /* emitter.c */, + EB6C3EC4124D86C400886AD1 /* loader.c */, + EB6C3EC5124D86C400886AD1 /* Makefile.am */, + EB6C3EC6124D86C400886AD1 /* Makefile.in */, + EB6C3EC7124D86C400886AD1 /* parser.c */, + EB6C3EC8124D86C400886AD1 /* reader.c */, + EB6C3EC9124D86C400886AD1 /* scanner.c */, + EB6C3ECA124D86C400886AD1 /* writer.c */, + EB6C3ECB124D86C400886AD1 /* yaml_private.h */, + ); + path = src; + sourceTree = ""; + }; + EB6C3ECC124D86C400886AD1 /* tests */ = { + isa = PBXGroup; + children = ( + EB6C3ECD124D86C400886AD1 /* example-deconstructor-alt.c */, + EB6C3ECE124D86C400886AD1 /* example-deconstructor.c */, + EB6C3ECF124D86C400886AD1 /* example-reformatter-alt.c */, + EB6C3ED0124D86C400886AD1 /* example-reformatter.c */, + EB6C3ED1124D86C400886AD1 /* Makefile.am */, + EB6C3ED2124D86C400886AD1 /* Makefile.in */, + EB6C3ED3124D86C400886AD1 /* run-dumper.c */, + EB6C3ED4124D86C400886AD1 /* run-emitter.c */, + EB6C3ED5124D86C400886AD1 /* run-loader.c */, + EB6C3ED6124D86C400886AD1 /* run-parser.m */, + EB6C3ED7124D86C400886AD1 /* run-scanner.c */, + EB6C3ED8124D86C400886AD1 /* test-reader.c */, + EB6C3ED9124D86C400886AD1 /* test-version.c */, + ); + path = tests; + sourceTree = ""; + }; + EB6C3EDA124D86C400886AD1 /* win32 */ = { + isa = PBXGroup; + children = ( + EB6C3EDB124D86C400886AD1 /* config.h */, + EB6C3EDC124D86C400886AD1 /* Makefile.am */, + EB6C3EDD124D86C400886AD1 /* Makefile.in */, + EB6C3EDE124D86C400886AD1 /* vc6 */, + EB6C3EED124D86C400886AD1 /* vs2003 */, + EB6C3EFC124D86C400886AD1 /* vs2008 */, + ); + path = win32; + sourceTree = ""; + }; + EB6C3EDE124D86C400886AD1 /* vc6 */ = { + isa = PBXGroup; + children = ( + EB6C3EDF124D86C400886AD1 /* example_deconstructor.dsp */, + EB6C3EE0124D86C400886AD1 /* example_deconstructor_alt.dsp */, + EB6C3EE1124D86C400886AD1 /* example_reformatter.dsp */, + EB6C3EE2124D86C400886AD1 /* example_reformatter_alt.dsp */, + EB6C3EE3124D86C400886AD1 /* libyaml.dsw */, + EB6C3EE4124D86C400886AD1 /* run_dumper.dsp */, + EB6C3EE5124D86C400886AD1 /* run_emitter.dsp */, + EB6C3EE6124D86C400886AD1 /* run_loader.dsp */, + EB6C3EE7124D86C400886AD1 /* run_parser.dsp */, + EB6C3EE8124D86C400886AD1 /* run_scanner.dsp */, + EB6C3EE9124D86C400886AD1 /* test_reader.dsp */, + EB6C3EEA124D86C400886AD1 /* test_version.dsp */, + EB6C3EEB124D86C400886AD1 /* yaml.dsp */, + EB6C3EEC124D86C400886AD1 /* yamldll.dsp */, + ); + path = vc6; + sourceTree = ""; + }; + EB6C3EED124D86C400886AD1 /* vs2003 */ = { + isa = PBXGroup; + children = ( + EB6C3EEE124D86C400886AD1 /* example_deconstructor.vcproj */, + EB6C3EEF124D86C400886AD1 /* example_deconstructor_alt.vcproj */, + EB6C3EF0124D86C400886AD1 /* example_reformatter.vcproj */, + EB6C3EF1124D86C400886AD1 /* example_reformatter_alt.vcproj */, + EB6C3EF2124D86C400886AD1 /* libyaml.sln */, + EB6C3EF3124D86C400886AD1 /* run_dumper.vcproj */, + EB6C3EF4124D86C400886AD1 /* run_emitter.vcproj */, + EB6C3EF5124D86C400886AD1 /* run_loader.vcproj */, + EB6C3EF6124D86C400886AD1 /* run_parser.vcproj */, + EB6C3EF7124D86C400886AD1 /* run_scanner.vcproj */, + EB6C3EF8124D86C400886AD1 /* test_reader.vcproj */, + EB6C3EF9124D86C400886AD1 /* test_version.vcproj */, + EB6C3EFA124D86C400886AD1 /* yaml.vcproj */, + EB6C3EFB124D86C400886AD1 /* yamldll.vcproj */, + ); + path = vs2003; + sourceTree = ""; + }; + EB6C3EFC124D86C400886AD1 /* vs2008 */ = { + isa = PBXGroup; + children = ( + EB6C3EFD124D86C400886AD1 /* example_deconstructor.vcproj */, + EB6C3EFE124D86C400886AD1 /* example_deconstructor_alt.vcproj */, + EB6C3EFF124D86C400886AD1 /* example_reformatter.vcproj */, + EB6C3F00124D86C400886AD1 /* example_reformatter_alt.vcproj */, + EB6C3F01124D86C400886AD1 /* libyaml.sln */, + EB6C3F02124D86C400886AD1 /* run_dumper.vcproj */, + EB6C3F03124D86C400886AD1 /* run_emitter.vcproj */, + EB6C3F04124D86C400886AD1 /* run_loader.vcproj */, + EB6C3F05124D86C400886AD1 /* run_parser.vcproj */, + EB6C3F06124D86C400886AD1 /* run_scanner.vcproj */, + EB6C3F07124D86C400886AD1 /* test_reader.vcproj */, + EB6C3F08124D86C400886AD1 /* test_version.vcproj */, + EB6C3F09124D86C400886AD1 /* yaml.vcproj */, + EB6C3F0A124D86C400886AD1 /* yamldll.vcproj */, + ); + path = vs2008; + sourceTree = ""; + }; + EB6C4222124D9A0200886AD1 /* test */ = { + isa = PBXGroup; + children = ( + EBE745AF124F8B5000618049 /* spec12examples.m */, + EB6C424F124D9B3E00886AD1 /* yaml */, + EB6C4226124D9A1700886AD1 /* test.m */, + EB2B592D124E2117001FFEEB /* events.c */, + ); + path = test; + sourceTree = ""; + }; +/* End PBXGroup section */ + +/* Begin PBXHeadersBuildPhase section */ + 8DC2EF500486A6940098B216 /* Headers */ = { + isa = PBXHeadersBuildPhase; + buildActionMask = 2147483647; + files = ( + EB6C41C2124D8C8F00886AD1 /* yaml.h in Headers */, + EBF83D8B124D7A3E008517E5 /* YAMLSerialization.h in Headers */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXHeadersBuildPhase section */ + +/* Begin PBXNativeTarget section */ + 8DC2EF4F0486A6940098B216 /* YAML */ = { + isa = PBXNativeTarget; + buildConfigurationList = 1DEB91AD08733DA50010E9CD /* Build configuration list for PBXNativeTarget "YAML" */; + buildPhases = ( + 8DC2EF500486A6940098B216 /* Headers */, + 8DC2EF520486A6940098B216 /* Resources */, + 8DC2EF540486A6940098B216 /* Sources */, + 8DC2EF560486A6940098B216 /* Frameworks */, + ); + buildRules = ( + ); + dependencies = ( + ); + name = YAML; + productInstallPath = "$(HOME)/Library/Frameworks"; + productName = YAML; + productReference = 8DC2EF5B0486A6940098B216 /* YAML.framework */; + productType = "com.apple.product-type.framework"; + }; + EB2B5927124E2100001FFEEB /* events */ = { + isa = PBXNativeTarget; + buildConfigurationList = EB2B592F124E2117001FFEEB /* Build configuration list for PBXNativeTarget "events" */; + buildPhases = ( + EB2B5925124E2100001FFEEB /* Sources */, + EB2B5926124E2100001FFEEB /* Frameworks */, + EB2B5960124E230D001FFEEB /* Copy YAML Files */, + ); + buildRules = ( + ); + dependencies = ( + ); + name = events; + productName = events; + productReference = EB2B5928124E2100001FFEEB /* events */; + productType = "com.apple.product-type.tool"; + }; + EB6C420D124D99BE00886AD1 /* test */ = { + isa = PBXNativeTarget; + buildConfigurationList = EB6C4221124D99E100886AD1 /* Build configuration list for PBXNativeTarget "test" */; + buildPhases = ( + EB6C420B124D99BE00886AD1 /* Sources */, + EB6C420C124D99BE00886AD1 /* Frameworks */, + EB6C424E124D9B0300886AD1 /* Copy YAML Files */, + ); + buildRules = ( + ); + dependencies = ( + EB6C4213124D99CB00886AD1 /* PBXTargetDependency */, + ); + name = test; + productName = test; + productReference = EB6C420E124D99BE00886AD1 /* test */; + productType = "com.apple.product-type.tool"; + }; + EBE745B4124F8C0D00618049 /* test (spec12examples) */ = { + isa = PBXNativeTarget; + buildConfigurationList = EBE745BE124F8C0D00618049 /* Build configuration list for PBXNativeTarget "test (spec12examples)" */; + buildPhases = ( + EBE745B7124F8C0D00618049 /* Sources */, + EBE745B9124F8C0D00618049 /* Frameworks */, + EBE745BC124F8C0D00618049 /* Copy YAML Files */, + ); + buildRules = ( + ); + dependencies = ( + EBE745B5124F8C0D00618049 /* PBXTargetDependency */, + ); + name = "test (spec12examples)"; + productName = test; + productReference = EBE745C1124F8C0D00618049 /* test */; + productType = "com.apple.product-type.tool"; + }; +/* End PBXNativeTarget section */ + +/* Begin PBXProject section */ + 0867D690FE84028FC02AAC07 /* Project object */ = { + isa = PBXProject; + buildConfigurationList = 1DEB91B108733DA50010E9CD /* Build configuration list for PBXProject "YAML" */; + compatibilityVersion = "Xcode 3.1"; + developmentRegion = English; + hasScannedForEncodings = 1; + knownRegions = ( + English, + Japanese, + French, + German, + ); + mainGroup = 0867D691FE84028FC02AAC07 /* YAML */; + productRefGroup = 034768DFFF38A50411DB9C8B /* Products */; + projectDirPath = ""; + projectRoot = ""; + targets = ( + 8DC2EF4F0486A6940098B216 /* YAML */, + EB6C420D124D99BE00886AD1 /* test */, + EBE745B4124F8C0D00618049 /* test (spec12examples) */, + EB2B5927124E2100001FFEEB /* events */, + ); + }; +/* End PBXProject section */ + +/* Begin PBXResourcesBuildPhase section */ + 8DC2EF520486A6940098B216 /* Resources */ = { + isa = PBXResourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 8DC2EF530486A6940098B216 /* InfoPlist.strings in Resources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXResourcesBuildPhase section */ + +/* Begin PBXSourcesBuildPhase section */ + 8DC2EF540486A6940098B216 /* Sources */ = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + EB6C419F124D8B4F00886AD1 /* api.c in Sources */, + EB6C41A0124D8B4F00886AD1 /* dumper.c in Sources */, + EB6C41A1124D8B4F00886AD1 /* emitter.c in Sources */, + EB6C41A2124D8B4F00886AD1 /* loader.c in Sources */, + EB6C41A3124D8B4F00886AD1 /* parser.c in Sources */, + EB6C41A4124D8B4F00886AD1 /* reader.c in Sources */, + EB6C41A5124D8B4F00886AD1 /* scanner.c in Sources */, + EB6C41A6124D8B4F00886AD1 /* writer.c in Sources */, + EBF83D8C124D7A3E008517E5 /* YAMLSerialization.m in Sources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; + EB2B5925124E2100001FFEEB /* Sources */ = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + EB68E826125101C200336500 /* api.c in Sources */, + EB68E827125101C200336500 /* dumper.c in Sources */, + EB68E828125101C200336500 /* emitter.c in Sources */, + EB68E829125101C200336500 /* loader.c in Sources */, + EB68E82A125101C200336500 /* parser.c in Sources */, + EB68E82B125101C200336500 /* reader.c in Sources */, + EB68E82C125101C200336500 /* scanner.c in Sources */, + EB68E82D125101C200336500 /* writer.c in Sources */, + EB2B592E124E2117001FFEEB /* events.c in Sources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; + EB6C420B124D99BE00886AD1 /* Sources */ = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + EB6C433C124E0CF600886AD1 /* test.m in Sources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; + EBE745B7124F8C0D00618049 /* Sources */ = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + EBE745C7124F8C2F00618049 /* spec12examples.m in Sources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXSourcesBuildPhase section */ + +/* Begin PBXTargetDependency section */ + EB6C4213124D99CB00886AD1 /* PBXTargetDependency */ = { + isa = PBXTargetDependency; + target = 8DC2EF4F0486A6940098B216 /* YAML */; + targetProxy = EB6C4212124D99CB00886AD1 /* PBXContainerItemProxy */; + }; + EBE745B5124F8C0D00618049 /* PBXTargetDependency */ = { + isa = PBXTargetDependency; + target = 8DC2EF4F0486A6940098B216 /* YAML */; + targetProxy = EBE745B6124F8C0D00618049 /* PBXContainerItemProxy */; + }; +/* End PBXTargetDependency section */ + +/* Begin PBXVariantGroup section */ + 089C1666FE841158C02AAC07 /* InfoPlist.strings */ = { + isa = PBXVariantGroup; + children = ( + 089C1667FE841158C02AAC07 /* English */, + ); + name = InfoPlist.strings; + sourceTree = ""; + }; +/* End PBXVariantGroup section */ + +/* Begin XCBuildConfiguration section */ + 1DEB91AE08733DA50010E9CD /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_SEARCH_USER_PATHS = NO; + COPY_PHASE_STRIP = NO; + DEPLOYMENT_LOCATION = YES; + DSTROOT = /; + DYLIB_COMPATIBILITY_VERSION = 1; + DYLIB_CURRENT_VERSION = 1; + FRAMEWORK_VERSION = A; + GCC_DYNAMIC_NO_PIC = NO; + GCC_ENABLE_FIX_AND_CONTINUE = YES; + GCC_MODEL_TUNING = G5; + GCC_OPTIMIZATION_LEVEL = 0; + GCC_PRECOMPILE_PREFIX_HEADER = YES; + GCC_PREFIX_HEADER = YAML_Prefix.pch; + INFOPLIST_FILE = Info.plist; + INSTALL_PATH = "$(HOME)/Library/Frameworks"; + PRODUCT_NAME = YAML; + WRAPPER_EXTENSION = framework; + }; + name = Debug; + }; + 1DEB91AF08733DA50010E9CD /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_SEARCH_USER_PATHS = NO; + DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; + DEPLOYMENT_LOCATION = YES; + DSTROOT = /; + DYLIB_COMPATIBILITY_VERSION = 1; + DYLIB_CURRENT_VERSION = 1; + FRAMEWORK_VERSION = A; + GCC_MODEL_TUNING = G5; + GCC_PRECOMPILE_PREFIX_HEADER = YES; + GCC_PREFIX_HEADER = YAML_Prefix.pch; + INFOPLIST_FILE = Info.plist; + INSTALL_PATH = "$(HOME)/Library/Frameworks"; + PRODUCT_NAME = YAML; + WRAPPER_EXTENSION = framework; + }; + name = Release; + }; + 1DEB91B208733DA50010E9CD /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + ARCHS = "$(ARCHS_STANDARD_32_64_BIT)"; + GCC_C_LANGUAGE_STANDARD = gnu99; + GCC_OPTIMIZATION_LEVEL = 0; + GCC_WARN_ABOUT_RETURN_TYPE = YES; + GCC_WARN_UNUSED_VARIABLE = YES; + HEADER_SEARCH_PATHS = "${PROJECT_DIR}/yaml-0.1.3/include"; + ONLY_ACTIVE_ARCH = YES; + PREBINDING = NO; + SDKROOT = macosx10.6; + }; + name = Debug; + }; + 1DEB91B308733DA50010E9CD /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + ARCHS = "$(ARCHS_STANDARD_32_64_BIT)"; + GCC_C_LANGUAGE_STANDARD = gnu99; + GCC_WARN_ABOUT_RETURN_TYPE = YES; + GCC_WARN_UNUSED_VARIABLE = YES; + HEADER_SEARCH_PATHS = "${PROJECT_DIR}/yaml-0.1.3/include"; + PREBINDING = NO; + SDKROOT = macosx10.6; + }; + name = Release; + }; + EB2B592A124E2100001FFEEB /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_SEARCH_USER_PATHS = NO; + COPY_PHASE_STRIP = NO; + GCC_DYNAMIC_NO_PIC = NO; + GCC_ENABLE_FIX_AND_CONTINUE = YES; + GCC_MODEL_TUNING = G5; + GCC_OPTIMIZATION_LEVEL = 0; + GCC_PRECOMPILE_PREFIX_HEADER = YES; + GCC_PREFIX_HEADER = ""; + INSTALL_PATH = /usr/local/bin; + OTHER_LDFLAGS = ""; + PREBINDING = NO; + PRODUCT_NAME = events; + }; + name = Debug; + }; + EB2B592B124E2100001FFEEB /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_SEARCH_USER_PATHS = NO; + COPY_PHASE_STRIP = YES; + DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; + GCC_ENABLE_FIX_AND_CONTINUE = NO; + GCC_MODEL_TUNING = G5; + GCC_PRECOMPILE_PREFIX_HEADER = YES; + GCC_PREFIX_HEADER = ""; + INSTALL_PATH = /usr/local/bin; + OTHER_LDFLAGS = ""; + PREBINDING = NO; + PRODUCT_NAME = events; + ZERO_LINK = NO; + }; + name = Release; + }; + EB6C4210124D99BE00886AD1 /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_SEARCH_USER_PATHS = NO; + COPY_PHASE_STRIP = NO; + GCC_DYNAMIC_NO_PIC = NO; + GCC_ENABLE_FIX_AND_CONTINUE = YES; + GCC_MODEL_TUNING = G5; + GCC_OPTIMIZATION_LEVEL = 0; + GCC_PRECOMPILE_PREFIX_HEADER = YES; + GCC_PREFIX_HEADER = "$(SYSTEM_LIBRARY_DIR)/Frameworks/AppKit.framework/Headers/AppKit.h"; + INSTALL_PATH = /usr/local/bin; + OTHER_LDFLAGS = ( + "-framework", + Foundation, + "-framework", + AppKit, + ); + PREBINDING = NO; + PRODUCT_NAME = test; + }; + name = Debug; + }; + EB6C4211124D99BE00886AD1 /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_SEARCH_USER_PATHS = NO; + COPY_PHASE_STRIP = YES; + DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; + GCC_ENABLE_FIX_AND_CONTINUE = NO; + GCC_MODEL_TUNING = G5; + GCC_PRECOMPILE_PREFIX_HEADER = YES; + GCC_PREFIX_HEADER = "$(SYSTEM_LIBRARY_DIR)/Frameworks/AppKit.framework/Headers/AppKit.h"; + INSTALL_PATH = /usr/local/bin; + OTHER_LDFLAGS = ( + "-framework", + Foundation, + "-framework", + AppKit, + ); + PREBINDING = NO; + PRODUCT_NAME = test; + ZERO_LINK = NO; + }; + name = Release; + }; + EBE745BF124F8C0D00618049 /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_SEARCH_USER_PATHS = NO; + COPY_PHASE_STRIP = NO; + GCC_DYNAMIC_NO_PIC = NO; + GCC_ENABLE_FIX_AND_CONTINUE = YES; + GCC_MODEL_TUNING = G5; + GCC_OPTIMIZATION_LEVEL = 0; + GCC_PRECOMPILE_PREFIX_HEADER = YES; + GCC_PREFIX_HEADER = "$(SYSTEM_LIBRARY_DIR)/Frameworks/AppKit.framework/Headers/AppKit.h"; + INSTALL_PATH = /usr/local/bin; + OTHER_LDFLAGS = ( + "-framework", + Foundation, + "-framework", + AppKit, + ); + PREBINDING = NO; + PRODUCT_NAME = test; + }; + name = Debug; + }; + EBE745C0124F8C0D00618049 /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_SEARCH_USER_PATHS = NO; + COPY_PHASE_STRIP = YES; + DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; + GCC_ENABLE_FIX_AND_CONTINUE = NO; + GCC_MODEL_TUNING = G5; + GCC_PRECOMPILE_PREFIX_HEADER = YES; + GCC_PREFIX_HEADER = "$(SYSTEM_LIBRARY_DIR)/Frameworks/AppKit.framework/Headers/AppKit.h"; + INSTALL_PATH = /usr/local/bin; + OTHER_LDFLAGS = ( + "-framework", + Foundation, + "-framework", + AppKit, + ); + PREBINDING = NO; + PRODUCT_NAME = test; + ZERO_LINK = NO; + }; + name = Release; + }; +/* End XCBuildConfiguration section */ + +/* Begin XCConfigurationList section */ + 1DEB91AD08733DA50010E9CD /* Build configuration list for PBXNativeTarget "YAML" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 1DEB91AE08733DA50010E9CD /* Debug */, + 1DEB91AF08733DA50010E9CD /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; + 1DEB91B108733DA50010E9CD /* Build configuration list for PBXProject "YAML" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 1DEB91B208733DA50010E9CD /* Debug */, + 1DEB91B308733DA50010E9CD /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; + EB2B592F124E2117001FFEEB /* Build configuration list for PBXNativeTarget "events" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + EB2B592A124E2100001FFEEB /* Debug */, + EB2B592B124E2100001FFEEB /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; + EB6C4221124D99E100886AD1 /* Build configuration list for PBXNativeTarget "test" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + EB6C4210124D99BE00886AD1 /* Debug */, + EB6C4211124D99BE00886AD1 /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; + EBE745BE124F8C0D00618049 /* Build configuration list for PBXNativeTarget "test (spec12examples)" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + EBE745BF124F8C0D00618049 /* Debug */, + EBE745C0124F8C0D00618049 /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; +/* End XCConfigurationList section */ + }; + rootObject = 0867D690FE84028FC02AAC07 /* Project object */; +} diff --git a/libs/YAML.framework/YAMLSerialization.h b/libs/YAML.framework/YAMLSerialization.h new file mode 100644 index 0000000..6820a46 --- /dev/null +++ b/libs/YAML.framework/YAMLSerialization.h @@ -0,0 +1,58 @@ +// +// YAMLSerialization.h +// YAML Serialization support by Mirek Rusin based on C library LibYAML by Kirill Simonov +// Released under MIT License +// +// Copyright 2010 Mirek Rusin +// Copyright 2010 Stanislav Yudin +// + +#import +#import "yaml.h" + +// Mimics NSPropertyListMutabilityOptions +typedef enum { + kYAMLReadOptionImmutable = 0x0000000000000001, + kYAMLReadOptionMutableContainers = 0x0000000000000010, + kYAMLReadOptionMutableContainersAndLeaves = 0x0000000000000110, + kYAMLReadOptionStringScalars = 0x0000000000001000 +} YAMLReadOptions; + +typedef enum { + kYAMLErrorNoErrors, + kYAMLErrorCodeParserInitializationFailed, + kYAMLErrorCodeParseError, + kYAMLErrorCodeEmitterError, + kYAMLErrorInvalidOptions, + kYAMLErrorCodeOutOfMemory, + kYAMLErrorInvalidYamlObject, +} YAMLErrorCode; + +typedef enum { + kYAMLWriteOptionSingleDocument = 0x0000000000000001, + kYAMLWriteOptionMultipleDocuments = 0x0000000000000010, +} YAMLWriteOptions; + +extern NSString *const YAMLErrorDomain; + +@interface YAMLSerialization : NSObject { +} + ++ (void) writeYAML: (id) yaml + toStream: (NSOutputStream *) stream + options: (YAMLWriteOptions) opt + error: (NSError **) error; + ++ (NSData *) dataFromYAML: (id) yaml + options: (YAMLWriteOptions) opt + error: (NSError **) error; + ++ (NSMutableArray *) YAMLWithStream: (NSInputStream *) stream + options: (YAMLReadOptions) opt + error: (NSError **) error; + ++ (NSMutableArray *) YAMLWithData: (NSData *) data + options: (YAMLReadOptions) opt + error: (NSError **) error; + +@end diff --git a/libs/YAML.framework/YAMLSerialization.m b/libs/YAML.framework/YAMLSerialization.m new file mode 100644 index 0000000..4705583 --- /dev/null +++ b/libs/YAML.framework/YAMLSerialization.m @@ -0,0 +1,378 @@ +// +// YAMLSerialization.m +// YAML Serialization support by Mirek Rusin based on C library LibYAML by Kirill Simonov +// Released under MIT License +// +// Copyright 2010 Mirek Rusin +// Copyright 2010 Stanislav Yudin +// + +#import "YAMLSerialization.h" + +NSString *const YAMLErrorDomain = @"com.github.mirek.yaml"; + +// Assumes NSError **error is in the current scope +#define YAML_SET_ERROR(errorCode, description, recovery) \ + if (error) \ + *error = [NSError errorWithDomain: YAMLErrorDomain \ + code: errorCode \ + userInfo: [NSDictionary dictionaryWithObjectsAndKeys: \ + description, NSLocalizedDescriptionKey, \ + recovery, NSLocalizedRecoverySuggestionErrorKey, \ + nil]] + + +#pragma mark Write support +#pragma mark - + +static int YAMLSerializationDataHandler(void *data, unsigned char *buffer, size_t size) { + NSMutableString *string = (NSMutableString*)data; + NSString *buf = [[NSString alloc] initWithBytes:buffer length:size encoding:NSUTF8StringEncoding]; + [string appendString:buf]; + [buf release]; + return YES; +} + +static int YAMLSerializationWriteHandler(void *data, unsigned char *buffer, size_t size) { + if ([(NSOutputStream *)data write:buffer maxLength:size] <= 0) { + return NO; + } else { + return YES; + } +} + +static int YAMLSerializationProcessValue(yaml_document_t *document, id value) { + NSInteger nodeId = 0; + + if ([value isKindOfClass:[NSDictionary class]] ) { + + nodeId = yaml_document_add_mapping(document, NULL, YAML_BLOCK_MAPPING_STYLE); + for(NSString *key in [value allKeys]) { + int keyId = YAMLSerializationProcessValue(document, key); + id keyValue = [value objectForKey:key]; + int valueId = YAMLSerializationProcessValue(document, keyValue); + yaml_document_append_mapping_pair(document, nodeId, keyId, valueId); + } + } + else if ([value isKindOfClass:[NSArray class]] ) { + + nodeId = yaml_document_add_sequence(document, NULL, YAML_BLOCK_SEQUENCE_STYLE); + for(id childValue in value) { + int childId = YAMLSerializationProcessValue(document, childValue); + yaml_document_append_sequence_item(document, nodeId, childId); + } + } + else { + if ( ![value isKindOfClass:[NSString class]] ) { + value = [value stringValue]; + } + nodeId = yaml_document_add_scalar(document, NULL, (yaml_char_t*)[value UTF8String], [value length], YAML_PLAIN_SCALAR_STYLE); + } + return nodeId; +} + +// De-serialize single, parsed document. Creates the document +static yaml_document_t* YAMLSerializationToDocument(id yaml, YAMLWriteOptions opt, NSError **error) { + + yaml_document_t *document = (yaml_document_t*)malloc( sizeof(yaml_document_t)); + if (!document) { + YAML_SET_ERROR(kYAMLErrorCodeOutOfMemory, @"Couldn't allocate memory", @"Please try to free memory and retry"); + return NULL; + } + + if (!yaml_document_initialize(document, NULL, NULL, NULL, 0, 0)) { + YAML_SET_ERROR(kYAMLErrorInvalidYamlObject, @"Failed to initialize yaml document", @"Underlying data structure failed to initalize"); + free(document); + return NULL; + } + + //add root element + int rootId = 0; + if ([yaml isKindOfClass:[NSDictionary class]]) { + rootId = yaml_document_add_mapping(document, NULL, YAML_ANY_MAPPING_STYLE); + + for(NSString *key in [yaml allKeys]) { + int keyId = YAMLSerializationProcessValue(document, key); + id value = [yaml objectForKey:key]; + int valueId = YAMLSerializationProcessValue(document, value); + yaml_document_append_mapping_pair(document, rootId, keyId, valueId); + } + } + else if ([yaml isKindOfClass:[NSArray class]]) { + rootId = yaml_document_add_sequence(document, NULL, YAML_ANY_SEQUENCE_STYLE); + for(id value in yaml) { + int valueId = YAMLSerializationProcessValue(document, value); + yaml_document_append_sequence_item(document, rootId, valueId); + } + } + else { + //unsupported root element + YAML_SET_ERROR(kYAMLErrorInvalidYamlObject, @"Yaml object must be either NSDictionary of NSArray. Scalar roots are pointless.", @"Send dictionary or array as yaml document root"); + free(document); + return NULL; + } + + return document; +} + +#pragma mark Read support +#pragma mark - + + +static int YAMLSerializationReadHandler(void *data, unsigned char *buffer, size_t size, size_t *size_read) { + NSInteger outcome = [(NSInputStream *)data read: (uint8_t *)buffer maxLength: size]; + if (outcome < 0) { + *size_read = 0; + return NO; + } else { + *size_read = outcome; + return YES; + } +} + +// Serialize single, parsed document. Does not destroy the document. +static id YAMLSerializationWithDocument(yaml_document_t *document, YAMLReadOptions opt, NSError **error) { + + id root = nil; + id *objects = nil; + + // Mutability options + Class arrayClass = [NSArray class]; + Class dictionaryClass = [NSDictionary class]; + Class stringClass = [NSString class]; + if (opt & kYAMLReadOptionMutableContainers) { + arrayClass = [NSMutableArray class]; + dictionaryClass = [NSMutableDictionary class]; + if (opt & kYAMLReadOptionMutableContainersAndLeaves) { + stringClass = [NSMutableString class]; + } + } + + if (opt & kYAMLReadOptionStringScalars) { + // Supported + } else { + YAML_SET_ERROR(kYAMLErrorInvalidOptions, @"Currently only kYAMLReadOptionStringScalars is supported", @"Serialize with kYAMLReadOptionStringScalars option"); + return nil; + } + + yaml_node_t *node; + yaml_node_item_t *item; + yaml_node_pair_t *pair; + + int i = 0; + + objects = (id *)malloc(sizeof(id) * (document->nodes.top - document->nodes.start)); + if (!objects) { + YAML_SET_ERROR(kYAMLErrorCodeOutOfMemory, @"Couldn't allocate memory", @"Please try to free memory and retry"); + return nil; + } + + // Create all objects, don't fill containers yet... + for (node = document->nodes.start, i = 0; node < document->nodes.top; node++, i++) { + switch (node->type) { + case YAML_SCALAR_NODE: + objects[i] = [[stringClass alloc] initWithUTF8String: (const char *)node->data.scalar.value]; + if (!root) root = objects[i]; + break; + + case YAML_SEQUENCE_NODE: + objects[i] = [[NSMutableArray alloc] initWithCapacity: node->data.sequence.items.top - node->data.sequence.items.start]; + if (!root) root = objects[i]; + break; + + case YAML_MAPPING_NODE: + objects[i] = [[NSMutableDictionary alloc] initWithCapacity: node->data.mapping.pairs.top - node->data.mapping.pairs.start]; + if (!root) root = objects[i]; + break; + } + } + + // Fill in containers + for (node = document->nodes.start, i = 0; node < document->nodes.top; node++, i++) { + switch (node->type) { + case YAML_SEQUENCE_NODE: + for (item = node->data.sequence.items.start; item < node->data.sequence.items.top; item++) + [objects[i] addObject: objects[*item - 1]]; + break; + + case YAML_MAPPING_NODE: + for (pair = node->data.mapping.pairs.start; pair < node->data.mapping.pairs.top; pair++) + [objects[i] setObject: objects[pair->value - 1] + forKey: objects[pair->key - 1]]; + break; + } + } + + // Retain the root object + if (root) + [root retain]; + + // Release all objects. The root object and all referenced (in containers) objects + // will have retain count > 0 + for (node = document->nodes.start, i = 0; node < document->nodes.top; node++, i++) + [objects[i] release]; + + if (objects) + free(objects); + + return root; +} + +#pragma mark YAMLSerialization Implementation + +@implementation YAMLSerialization + ++ (NSMutableArray *) YAMLWithStream: (NSInputStream *) stream + options: (YAMLReadOptions) opt + error: (NSError **) error +{ + NSMutableArray *documents = [NSMutableArray array]; + id documentObject = nil; + + yaml_parser_t parser; + yaml_document_t document; + BOOL done = NO; + + // Open input stream + [stream open]; + + if (!yaml_parser_initialize(&parser)) { + YAML_SET_ERROR(kYAMLErrorCodeParserInitializationFailed, @"Error in yaml_parser_initialize(&parser)", @"Internal error, please let us know about this error"); + return nil; + } + + yaml_parser_set_input(&parser, YAMLSerializationReadHandler, (void *)stream); + + while (!done) { + + if (!yaml_parser_load(&parser, &document)) { + YAML_SET_ERROR(kYAMLErrorCodeParseError, @"Parse error", @"Make sure YAML file is well formed"); + return nil; + } + + done = !yaml_document_get_root_node(&document); + + if (!done) { + documentObject = YAMLSerializationWithDocument(&document, opt, error); + if (error) { + yaml_document_delete(&document); + } else { + [documents addObject: documentObject]; + [documentObject release]; + } + } + + // TODO: Check if aliases to previous documents are allowed by the specs + yaml_document_delete(&document); + } + + yaml_parser_delete(&parser); + return documents; +} + ++ (NSMutableArray *) YAMLWithData: (NSData *) data + options: (YAMLReadOptions) opt + error: (NSError **) error; +{ + if (data) { + NSInputStream *inputStream = [NSInputStream inputStreamWithData:data]; + NSMutableArray *documents = [self YAMLWithStream: inputStream options: opt error: error]; + return documents; + } + else { + return nil; + } +} + ++ (void) writeYAML: (id) yaml + toStream: (NSOutputStream *) stream + options: (YAMLWriteOptions) opt + error: (NSError **) error +{ + yaml_emitter_t emitter; + if (!yaml_emitter_initialize(&emitter)) { + YAML_SET_ERROR(kYAMLErrorCodeEmitterError, @"Error in yaml_emitter_initialize(&emitter)", @"Internal error, please let us know about this error"); + return; + } + + yaml_emitter_set_encoding(&emitter, YAML_UTF8_ENCODING); + yaml_emitter_set_output(&emitter, YAMLSerializationWriteHandler, (void *)stream); + + // Open output stream + [stream open]; + + if (kYAMLWriteOptionMultipleDocuments & opt) { + //yaml is an array of documents + for(id documentObject in yaml) { + yaml_document_t *document = YAMLSerializationToDocument(documentObject, opt, error); + if (!document) { + YAML_SET_ERROR(kYAMLErrorInvalidYamlObject, @"Failed to de-serialize document at index %d", @"Document root can be either NSArray or NSDictionary"); + + yaml_emitter_delete(&emitter); + [stream close]; + return; + } + + yaml_emitter_dump(&emitter, document); + } + } + else { + //yaml is a single document + yaml_document_t *document = YAMLSerializationToDocument(yaml, opt, error); + if (!document) { + yaml_emitter_delete(&emitter); + [stream close]; + return; + } + + yaml_emitter_dump(&emitter, document); + } + + [stream close]; + yaml_emitter_delete(&emitter); +} + ++ (NSData *) dataFromYAML:(id)yaml options:(YAMLWriteOptions) opt error:(NSError **) error +{ + NSMutableString *data = [NSMutableString string]; + + yaml_emitter_t emitter; + if (!yaml_emitter_initialize(&emitter)) { + YAML_SET_ERROR(kYAMLErrorCodeEmitterError, @"Error in yaml_emitter_initialize(&emitter)", @"Internal error, please let us know about this error"); + return nil; + } + + yaml_emitter_set_encoding(&emitter, YAML_UTF8_ENCODING); + yaml_emitter_set_output(&emitter, YAMLSerializationDataHandler, (void *)data); + + if (kYAMLWriteOptionMultipleDocuments & opt) { + //yaml is an array of documents + for(id documentObject in yaml) { + yaml_document_t *document = YAMLSerializationToDocument(documentObject, opt, error); + if (!document) { + YAML_SET_ERROR(kYAMLErrorInvalidYamlObject, @"Failed to de-serialize document at index %d", @"Document root can be either NSArray or NSDictionary"); + + yaml_emitter_delete(&emitter); + return nil; + } + + yaml_emitter_dump(&emitter, document); + } + } + else { + //yaml is a single document + yaml_document_t *document = YAMLSerializationToDocument(yaml, opt, error); + if (!document) { + yaml_emitter_delete(&emitter); + + return nil; + } + + yaml_emitter_dump(&emitter, document); + } + + yaml_emitter_delete(&emitter); + return [data dataUsingEncoding:NSUnicodeStringEncoding]; +} + +@end diff --git a/libs/YAML.framework/YAML_Prefix.pch b/libs/YAML.framework/YAML_Prefix.pch new file mode 100644 index 0000000..cfd1538 --- /dev/null +++ b/libs/YAML.framework/YAML_Prefix.pch @@ -0,0 +1,7 @@ +// +// Prefix header for all source files of the 'YAML' target in the 'YAML' project. +// + +#ifdef __OBJC__ + #import +#endif diff --git a/libs/YAML.framework/test/bigboy.rb b/libs/YAML.framework/test/bigboy.rb new file mode 100644 index 0000000..75188ca --- /dev/null +++ b/libs/YAML.framework/test/bigboy.rb @@ -0,0 +1,22 @@ +# Generate large YAML file +# +# Usage: +# +# ruby bigboy.rb > yaml/bigboy.yaml +# + +lorem = "lorem ipsum dolor sit amet consectetur adipisicing elit sed do eiusmod " \ + "tempor incididunt ut labore et dolore magna aliqua ut enim minim veniam " \ + "quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo " \ + "consequat duis aute irure dolor in reprehenderit in voluptate velit esse " \ + "cillum dolore eu fugiat nulla pariatur excepteur sint occaecat cupidatat " \ + "non proident sunte culpa qui officia deserunt".split + +# 2000 ~ 10MB +(3 * 2000).times do |i| + puts "- foo: bar" + puts "- #{lorem.shuffle.first}: #{lorem.shuffle.join(' ')}" + lorem.shuffle[0..10].each do |k| + puts " #{k}: #{lorem.shuffle.join(' ')}" + end +end diff --git a/libs/YAML.framework/test/events.c b/libs/YAML.framework/test/events.c new file mode 100644 index 0000000..2394ef3 --- /dev/null +++ b/libs/YAML.framework/test/events.c @@ -0,0 +1,118 @@ +// +// events.c +// YAML Serialization support by Mirek Rusin based on C library LibYAML by Kirill Simonov +// +// Copyright 2010 Mirek Rusin, Released under MIT License +// + +//#import +//#import "YAMLSerialization.h" + +#include +#include +#include "yaml.h" + +#ifdef NDEBUG +#undef NDEBUG +#endif +#include + +#define PRINT_INDENT() for (int i = 0;