Skip to content

Commit 01c0747

Browse files
committed
first commit
0 parents  commit 01c0747

20 files changed

+10005
-0
lines changed

.gitignore

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
.bzr
2+
.bzrignore
3+
.lbox
4+
.lbox.check

LICENSE

+185
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,185 @@
1+
This software is licensed under the LGPLv3, included below.
2+
3+
As a special exception to the GNU Lesser General Public License version 3
4+
("LGPL3"), the copyright holders of this Library give you permission to
5+
convey to a third party a Combined Work that links statically or dynamically
6+
to this Library without providing any Minimal Corresponding Source or
7+
Minimal Application Code as set out in 4d or providing the installation
8+
information set out in section 4e, provided that you comply with the other
9+
provisions of LGPL3 and provided that you meet, for the Application the
10+
terms and conditions of the license(s) which apply to the Application.
11+
12+
Except as stated in this special exception, the provisions of LGPL3 will
13+
continue to comply in full to this Library. If you modify this Library, you
14+
may apply this exception to your version of this Library, but you are not
15+
obliged to do so. If you do not wish to do so, delete this exception
16+
statement from your version. This exception does not (and cannot) modify any
17+
license terms which apply to the Application, with which you must still
18+
comply.
19+
20+
21+
GNU LESSER GENERAL PUBLIC LICENSE
22+
Version 3, 29 June 2007
23+
24+
Copyright (C) 2007 Free Software Foundation, Inc. <http://fsf.org/>
25+
Everyone is permitted to copy and distribute verbatim copies
26+
of this license document, but changing it is not allowed.
27+
28+
29+
This version of the GNU Lesser General Public License incorporates
30+
the terms and conditions of version 3 of the GNU General Public
31+
License, supplemented by the additional permissions listed below.
32+
33+
0. Additional Definitions.
34+
35+
As used herein, "this License" refers to version 3 of the GNU Lesser
36+
General Public License, and the "GNU GPL" refers to version 3 of the GNU
37+
General Public License.
38+
39+
"The Library" refers to a covered work governed by this License,
40+
other than an Application or a Combined Work as defined below.
41+
42+
An "Application" is any work that makes use of an interface provided
43+
by the Library, but which is not otherwise based on the Library.
44+
Defining a subclass of a class defined by the Library is deemed a mode
45+
of using an interface provided by the Library.
46+
47+
A "Combined Work" is a work produced by combining or linking an
48+
Application with the Library. The particular version of the Library
49+
with which the Combined Work was made is also called the "Linked
50+
Version".
51+
52+
The "Minimal Corresponding Source" for a Combined Work means the
53+
Corresponding Source for the Combined Work, excluding any source code
54+
for portions of the Combined Work that, considered in isolation, are
55+
based on the Application, and not on the Linked Version.
56+
57+
The "Corresponding Application Code" for a Combined Work means the
58+
object code and/or source code for the Application, including any data
59+
and utility programs needed for reproducing the Combined Work from the
60+
Application, but excluding the System Libraries of the Combined Work.
61+
62+
1. Exception to Section 3 of the GNU GPL.
63+
64+
You may convey a covered work under sections 3 and 4 of this License
65+
without being bound by section 3 of the GNU GPL.
66+
67+
2. Conveying Modified Versions.
68+
69+
If you modify a copy of the Library, and, in your modifications, a
70+
facility refers to a function or data to be supplied by an Application
71+
that uses the facility (other than as an argument passed when the
72+
facility is invoked), then you may convey a copy of the modified
73+
version:
74+
75+
a) under this License, provided that you make a good faith effort to
76+
ensure that, in the event an Application does not supply the
77+
function or data, the facility still operates, and performs
78+
whatever part of its purpose remains meaningful, or
79+
80+
b) under the GNU GPL, with none of the additional permissions of
81+
this License applicable to that copy.
82+
83+
3. Object Code Incorporating Material from Library Header Files.
84+
85+
The object code form of an Application may incorporate material from
86+
a header file that is part of the Library. You may convey such object
87+
code under terms of your choice, provided that, if the incorporated
88+
material is not limited to numerical parameters, data structure
89+
layouts and accessors, or small macros, inline functions and templates
90+
(ten or fewer lines in length), you do both of the following:
91+
92+
a) Give prominent notice with each copy of the object code that the
93+
Library is used in it and that the Library and its use are
94+
covered by this License.
95+
96+
b) Accompany the object code with a copy of the GNU GPL and this license
97+
document.
98+
99+
4. Combined Works.
100+
101+
You may convey a Combined Work under terms of your choice that,
102+
taken together, effectively do not restrict modification of the
103+
portions of the Library contained in the Combined Work and reverse
104+
engineering for debugging such modifications, if you also do each of
105+
the following:
106+
107+
a) Give prominent notice with each copy of the Combined Work that
108+
the Library is used in it and that the Library and its use are
109+
covered by this License.
110+
111+
b) Accompany the Combined Work with a copy of the GNU GPL and this license
112+
document.
113+
114+
c) For a Combined Work that displays copyright notices during
115+
execution, include the copyright notice for the Library among
116+
these notices, as well as a reference directing the user to the
117+
copies of the GNU GPL and this license document.
118+
119+
d) Do one of the following:
120+
121+
0) Convey the Minimal Corresponding Source under the terms of this
122+
License, and the Corresponding Application Code in a form
123+
suitable for, and under terms that permit, the user to
124+
recombine or relink the Application with a modified version of
125+
the Linked Version to produce a modified Combined Work, in the
126+
manner specified by section 6 of the GNU GPL for conveying
127+
Corresponding Source.
128+
129+
1) Use a suitable shared library mechanism for linking with the
130+
Library. A suitable mechanism is one that (a) uses at run time
131+
a copy of the Library already present on the user's computer
132+
system, and (b) will operate properly with a modified version
133+
of the Library that is interface-compatible with the Linked
134+
Version.
135+
136+
e) Provide Installation Information, but only if you would otherwise
137+
be required to provide such information under section 6 of the
138+
GNU GPL, and only to the extent that such information is
139+
necessary to install and execute a modified version of the
140+
Combined Work produced by recombining or relinking the
141+
Application with a modified version of the Linked Version. (If
142+
you use option 4d0, the Installation Information must accompany
143+
the Minimal Corresponding Source and Corresponding Application
144+
Code. If you use option 4d1, you must provide the Installation
145+
Information in the manner specified by section 6 of the GNU GPL
146+
for conveying Corresponding Source.)
147+
148+
5. Combined Libraries.
149+
150+
You may place library facilities that are a work based on the
151+
Library side by side in a single library together with other library
152+
facilities that are not Applications and are not covered by this
153+
License, and convey such a combined library under terms of your
154+
choice, if you do both of the following:
155+
156+
a) Accompany the combined library with a copy of the same work based
157+
on the Library, uncombined with any other library facilities,
158+
conveyed under the terms of this License.
159+
160+
b) Give prominent notice with the combined library that part of it
161+
is a work based on the Library, and explaining where to find the
162+
accompanying uncombined form of the same work.
163+
164+
6. Revised Versions of the GNU Lesser General Public License.
165+
166+
The Free Software Foundation may publish revised and/or new versions
167+
of the GNU Lesser General Public License from time to time. Such new
168+
versions will be similar in spirit to the present version, but may
169+
differ in detail to address new problems or concerns.
170+
171+
Each version is given a distinguishing version number. If the
172+
Library as you received it specifies that a certain numbered version
173+
of the GNU Lesser General Public License "or any later version"
174+
applies to it, you have the option of following the terms and
175+
conditions either of that published version or of any later version
176+
published by the Free Software Foundation. If the Library as you
177+
received it does not specify a version number of the GNU Lesser
178+
General Public License, you may choose any version of the GNU Lesser
179+
General Public License ever published by the Free Software Foundation.
180+
181+
If the Library as you received it specifies that a proxy can decide
182+
whether future versions of the GNU Lesser General Public License shall
183+
apply, that proxy's public statement of acceptance of any version is
184+
permanent authorization for you to choose that version for the
185+
Library.

LICENSE.libyaml

+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
Copyright (c) 2006 Kirill Simonov
2+
3+
Permission is hereby granted, free of charge, to any person obtaining a copy of
4+
this software and associated documentation files (the "Software"), to deal in
5+
the Software without restriction, including without limitation the rights to
6+
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
7+
of the Software, and to permit persons to whom the Software is furnished to do
8+
so, subject to the following conditions:
9+
10+
The above copyright notice and this permission notice shall be included in all
11+
copies or substantial portions of the Software.
12+
13+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
14+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
15+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
16+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
17+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
18+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
19+
SOFTWARE.

Makefile

+39
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
include $(GOROOT)/src/Make.inc
2+
3+
YAML=yaml-0.1.3
4+
LIBYAML=$(PWD)/$(YAML)/src/.libs/libyaml.a
5+
6+
TARG=launchpad.net/goyaml
7+
8+
GOFILES=\
9+
goyaml.go\
10+
resolve.go\
11+
12+
CGOFILES=\
13+
decode.go\
14+
encode.go\
15+
16+
CGO_OFILES+=\
17+
helpers.o\
18+
api.o\
19+
scanner.o\
20+
reader.o\
21+
parser.o\
22+
writer.o\
23+
emitter.o\
24+
25+
GOFMT=gofmt
26+
27+
BADFMT:=$(shell $(GOFMT) -l $(GOFILES) $(CGOFILES) $(wildcard *_test.go))
28+
29+
all: package
30+
gofmt: $(BADFMT)
31+
@for F in $(BADFMT); do $(GOFMT) -w $$F && echo $$F; done
32+
33+
include $(GOROOT)/src/Make.pkg
34+
35+
ifneq ($(BADFMT),)
36+
ifneq ($(MAKECMDGOALS),gofmt)
37+
$(warning WARNING: make gofmt: $(BADFMT))
38+
endif
39+
endif

0 commit comments

Comments
 (0)