ffi 1.9.0-x86-mingw32 → 1.9.3-x86-mingw32

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of ffi might be problematic. Click here for more details.

Files changed (76) hide show
  1. checksums.yaml +7 -0
  2. data/COPYING +48 -673
  3. data/LICENSE +21 -11
  4. data/README.md +6 -6
  5. data/Rakefile +1 -1
  6. data/ext/ffi_c/AbstractMemory.c +23 -12
  7. data/ext/ffi_c/AbstractMemory.h +21 -12
  8. data/ext/ffi_c/ArrayType.c +21 -12
  9. data/ext/ffi_c/ArrayType.h +21 -12
  10. data/ext/ffi_c/Buffer.c +22 -12
  11. data/ext/ffi_c/Call.c +21 -12
  12. data/ext/ffi_c/Call.h +21 -12
  13. data/ext/ffi_c/ClosurePool.c +21 -12
  14. data/ext/ffi_c/ClosurePool.h +21 -12
  15. data/ext/ffi_c/DynamicLibrary.c +21 -12
  16. data/ext/ffi_c/DynamicLibrary.h +21 -12
  17. data/ext/ffi_c/Function.c +21 -12
  18. data/ext/ffi_c/Function.h +21 -12
  19. data/ext/ffi_c/FunctionInfo.c +22 -12
  20. data/ext/ffi_c/LastError.c +22 -12
  21. data/ext/ffi_c/LastError.h +21 -12
  22. data/ext/ffi_c/LongDouble.h +21 -12
  23. data/ext/ffi_c/MappedType.c +21 -12
  24. data/ext/ffi_c/MappedType.h +21 -12
  25. data/ext/ffi_c/MemoryPointer.c +22 -13
  26. data/ext/ffi_c/MemoryPointer.h +21 -12
  27. data/ext/ffi_c/MethodHandle.c +21 -12
  28. data/ext/ffi_c/MethodHandle.h +21 -12
  29. data/ext/ffi_c/Platform.c +21 -12
  30. data/ext/ffi_c/Platform.h +21 -12
  31. data/ext/ffi_c/Pointer.c +21 -12
  32. data/ext/ffi_c/Pointer.h +21 -12
  33. data/ext/ffi_c/Struct.c +22 -13
  34. data/ext/ffi_c/Struct.h +21 -12
  35. data/ext/ffi_c/StructByValue.c +21 -12
  36. data/ext/ffi_c/StructByValue.h +21 -12
  37. data/ext/ffi_c/StructLayout.c +21 -12
  38. data/ext/ffi_c/Thread.c +21 -12
  39. data/ext/ffi_c/Thread.h +21 -12
  40. data/ext/ffi_c/Type.c +23 -12
  41. data/ext/ffi_c/Type.h +24 -9
  42. data/ext/ffi_c/Types.c +21 -12
  43. data/ext/ffi_c/Types.h +21 -12
  44. data/ext/ffi_c/Variadic.c +22 -12
  45. data/ext/ffi_c/compat.h +21 -12
  46. data/ext/ffi_c/ffi.c +22 -12
  47. data/ext/ffi_c/rbffi.h +21 -12
  48. data/ffi.gemspec +2 -2
  49. data/lib/1.8/ffi_c.so +0 -0
  50. data/lib/1.9/ffi_c.so +0 -0
  51. data/lib/2.0/ffi_c.so +0 -0
  52. data/lib/ffi/autopointer.rb +21 -11
  53. data/lib/ffi/enum.rb +22 -11
  54. data/lib/ffi/errno.rb +21 -11
  55. data/lib/ffi/ffi.rb +22 -11
  56. data/lib/ffi/io.rb +21 -11
  57. data/lib/ffi/library.rb +22 -12
  58. data/lib/ffi/managedstruct.rb +29 -0
  59. data/lib/ffi/platform.rb +20 -11
  60. data/lib/ffi/platform/x86_64-cygwin/types.conf +3 -0
  61. data/lib/ffi/pointer.rb +22 -10
  62. data/lib/ffi/struct.rb +22 -11
  63. data/lib/ffi/struct_layout_builder.rb +22 -11
  64. data/lib/ffi/types.rb +23 -10
  65. data/lib/ffi/union.rb +23 -12
  66. data/lib/ffi/variadic.rb +24 -11
  67. data/lib/ffi/version.rb +1 -1
  68. data/libtest/BoolTest.c +4 -1
  69. data/libtest/StructTest.c +4 -1
  70. metadata +396 -440
  71. data/COPYING.LESSER +0 -165
  72. data/History.txt +0 -1
  73. data/ext/ffi_c/cruby-ext.iml +0 -12
  74. data/gen/log +0 -1
  75. data/lib/ffi/ffi.iml +0 -11
  76. data/spec/ffi/spec.iml +0 -12
data/LICENSE CHANGED
@@ -1,14 +1,24 @@
1
- Copyright (c) 2008-2012 Ruby-FFI contributors
1
+ Copyright (c) 2008-2013, Ruby FFI project contributors
2
2
  All rights reserved.
3
3
 
4
- This code is free software: you can redistribute it and/or modify it under
5
- the terms of the GNU Lesser General Public License version 3 only, as
6
- published by the Free Software Foundation.
4
+ Redistribution and use in source and binary forms, with or without
5
+ modification, are permitted provided that the following conditions are met:
6
+ * Redistributions of source code must retain the above copyright
7
+ notice, this list of conditions and the following disclaimer.
8
+ * Redistributions in binary form must reproduce the above copyright
9
+ notice, this list of conditions and the following disclaimer in the
10
+ documentation and/or other materials provided with the distribution.
11
+ * Neither the name of the Ruby FFI project nor the
12
+ names of its contributors may be used to endorse or promote products
13
+ derived from this software without specific prior written permission.
7
14
 
8
- This code is distributed in the hope that it will be useful, but WITHOUT
9
- ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
10
- FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License
11
- version 3 for more details.
12
-
13
- You should have received a copy of the GNU Lesser General Public License
14
- version 3 along with this work. If not, see <http://www.gnu.org/licenses/>.
15
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
16
+ ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
17
+ WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
18
+ DISCLAIMED. IN NO EVENT SHALL <COPYRIGHT HOLDER> BE LIABLE FOR ANY
19
+ DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
20
+ (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
21
+ LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
22
+ ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
23
+ (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
24
+ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
data/README.md CHANGED
@@ -1,12 +1,12 @@
1
- # ruby-ffi http://wiki.github.com/ffi/ffi [![Build Status](https://travis-ci.org/ffi/ffi.png?branch=master)](https://travis-ci.org/ffi/ffi)
1
+ # ruby-ffi https://wiki.github.com/ffi/ffi [![Build Status](https://travis-ci.org/ffi/ffi.png?branch=master)](https://travis-ci.org/ffi/ffi)
2
2
 
3
3
  ## Description
4
4
 
5
5
  Ruby-FFI is a ruby extension for programmatically loading dynamic
6
6
  libraries, binding functions within them, and calling those functions
7
7
  from Ruby code. Moreover, a Ruby-FFI extension works without changes
8
- on Ruby and JRuby. Discover why should you write your next extension
9
- using Ruby-FFI [here](http://wiki.github.com/ffi/ffi/why-use-ffi).
8
+ on Ruby and JRuby. [Discover why you should write your next extension
9
+ using Ruby-FFI](https://wiki.github.com/ffi/ffi/why-use-ffi).
10
10
 
11
11
  ## Features/problems
12
12
 
@@ -33,8 +33,8 @@ MyLib.puts 'Hello, World using libc!'
33
33
  For less minimalistic and more sane examples you may look at:
34
34
 
35
35
  * the samples/ folder
36
- * the examples on the [wiki](http://wiki.github.com/ffi/ffi)
37
- * the projects using FFI listed on this page (http://wiki.github.com/ffi/ffi/projects-using-ffi)
36
+ * the examples on the [wiki](https://wiki.github.com/ffi/ffi)
37
+ * the projects using FFI listed on this page (https://wiki.github.com/ffi/ffi/projects-using-ffi)
38
38
 
39
39
  ## Requirements
40
40
 
@@ -57,7 +57,7 @@ or from the git repository on github:
57
57
 
58
58
  ## License
59
59
 
60
- The ffi library is covered by the LGPL3 license, also see the LICENSE file.
60
+ The ffi library is covered by the BSD license, also see the LICENSE file.
61
61
  The specs are shared with Rubyspec and are licensed by the same license
62
62
  as Rubyspec, see the LICENSE.SPECS file.
63
63
 
data/Rakefile CHANGED
@@ -184,7 +184,7 @@ if USE_RAKE_COMPILER
184
184
  # ext.lib_dir = BUILD_DIR # put binaries into this folder.
185
185
  ext.tmp_dir = BUILD_DIR # temporary folder used during compilation.
186
186
  ext.cross_compile = true # enable cross compilation (requires cross compile toolchain)
187
- ext.cross_platform = %w[i386-mingw32 x64-mingw32] # forces the Windows platform instead of the default one
187
+ ext.cross_platform = %w[i386-mingw32 x64-mingw32] # forces the Windows platform instead of the default one
188
188
  end
189
189
 
190
190
  ENV['RUBY_CC_VERSION'].to_s.split(':').each do |ruby_version|
@@ -1,21 +1,32 @@
1
1
  /*
2
2
  * Copyright (c) 2008, 2009, Wayne Meissner
3
+ * Copyright (C) 2009 Jake Douglas <jake@shiftedlabs.com>
4
+ * Copyright (C) 2008 Luc Heinrich <luc@honk-honk.com>
3
5
  *
6
+ * Copyright (c) 2008-2013, Ruby FFI project contributors
4
7
  * All rights reserved.
5
8
  *
6
- * This file is part of ruby-ffi.
9
+ * Redistribution and use in source and binary forms, with or without
10
+ * modification, are permitted provided that the following conditions are met:
11
+ * * Redistributions of source code must retain the above copyright
12
+ * notice, this list of conditions and the following disclaimer.
13
+ * * Redistributions in binary form must reproduce the above copyright
14
+ * notice, this list of conditions and the following disclaimer in the
15
+ * documentation and/or other materials provided with the distribution.
16
+ * * Neither the name of the Ruby FFI project nor the
17
+ * names of its contributors may be used to endorse or promote products
18
+ * derived from this software without specific prior written permission.
7
19
  *
8
- * This code is free software: you can redistribute it and/or modify it under
9
- * the terms of the GNU Lesser General Public License version 3 only, as
10
- * published by the Free Software Foundation.
11
- *
12
- * This code is distributed in the hope that it will be useful, but WITHOUT
13
- * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
14
- * FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License
15
- * version 3 for more details.
16
- *
17
- * You should have received a copy of the GNU Lesser General Public License
18
- * version 3 along with this work. If not, see <http://www.gnu.org/licenses/>.
20
+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
21
+ * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
22
+ * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
23
+ * DISCLAIMED. IN NO EVENT SHALL <COPYRIGHT HOLDER> BE LIABLE FOR ANY
24
+ * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
25
+ * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
26
+ * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
27
+ * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
28
+ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
29
+ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
19
30
  */
20
31
 
21
32
  #include <sys/types.h>
@@ -1,21 +1,30 @@
1
1
  /*
2
2
  * Copyright (c) 2008, 2009, Wayne Meissner
3
3
  *
4
+ * Copyright (c) 2008-2013, Ruby FFI project contributors
4
5
  * All rights reserved.
5
6
  *
6
- * This file is part of ruby-ffi.
7
+ * Redistribution and use in source and binary forms, with or without
8
+ * modification, are permitted provided that the following conditions are met:
9
+ * * Redistributions of source code must retain the above copyright
10
+ * notice, this list of conditions and the following disclaimer.
11
+ * * Redistributions in binary form must reproduce the above copyright
12
+ * notice, this list of conditions and the following disclaimer in the
13
+ * documentation and/or other materials provided with the distribution.
14
+ * * Neither the name of the Ruby FFI project nor the
15
+ * names of its contributors may be used to endorse or promote products
16
+ * derived from this software without specific prior written permission.
7
17
  *
8
- * This code is free software: you can redistribute it and/or modify it under
9
- * the terms of the GNU Lesser General Public License version 3 only, as
10
- * published by the Free Software Foundation.
11
- *
12
- * This code is distributed in the hope that it will be useful, but WITHOUT
13
- * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
14
- * FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License
15
- * version 3 for more details.
16
- *
17
- * You should have received a copy of the GNU Lesser General Public License
18
- * version 3 along with this work. If not, see <http://www.gnu.org/licenses/>.
18
+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
19
+ * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
20
+ * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
21
+ * DISCLAIMED. IN NO EVENT SHALL <COPYRIGHT HOLDER> BE LIABLE FOR ANY
22
+ * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
23
+ * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
24
+ * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
25
+ * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
26
+ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
27
+ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
19
28
  */
20
29
 
21
30
  #ifndef RBFFI_ABSTRACTMEMORY_H
@@ -1,21 +1,30 @@
1
1
  /*
2
2
  * Copyright (c) 2009, Wayne Meissner
3
3
  *
4
+ * Copyright (c) 2008-2013, Ruby FFI project contributors
4
5
  * All rights reserved.
5
6
  *
6
- * This file is part of ruby-ffi.
7
+ * Redistribution and use in source and binary forms, with or without
8
+ * modification, are permitted provided that the following conditions are met:
9
+ * * Redistributions of source code must retain the above copyright
10
+ * notice, this list of conditions and the following disclaimer.
11
+ * * Redistributions in binary form must reproduce the above copyright
12
+ * notice, this list of conditions and the following disclaimer in the
13
+ * documentation and/or other materials provided with the distribution.
14
+ * * Neither the name of the Ruby FFI project nor the
15
+ * names of its contributors may be used to endorse or promote products
16
+ * derived from this software without specific prior written permission.
7
17
  *
8
- * This code is free software: you can redistribute it and/or modify it under
9
- * the terms of the GNU Lesser General Public License version 3 only, as
10
- * published by the Free Software Foundation.
11
- *
12
- * This code is distributed in the hope that it will be useful, but WITHOUT
13
- * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
14
- * FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License
15
- * version 3 for more details.
16
- *
17
- * You should have received a copy of the GNU Lesser General Public License
18
- * version 3 along with this work. If not, see <http://www.gnu.org/licenses/>.
18
+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
19
+ * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
20
+ * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
21
+ * DISCLAIMED. IN NO EVENT SHALL <COPYRIGHT HOLDER> BE LIABLE FOR ANY
22
+ * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
23
+ * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
24
+ * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
25
+ * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
26
+ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
27
+ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
19
28
  */
20
29
 
21
30
  #include <ruby.h>
@@ -1,21 +1,30 @@
1
1
  /*
2
2
  * Copyright (c) 2009, Wayne Meissner
3
3
  *
4
+ * Copyright (c) 2008-2013, Ruby FFI project contributors
4
5
  * All rights reserved.
5
6
  *
6
- * This file is part of ruby-ffi.
7
+ * Redistribution and use in source and binary forms, with or without
8
+ * modification, are permitted provided that the following conditions are met:
9
+ * * Redistributions of source code must retain the above copyright
10
+ * notice, this list of conditions and the following disclaimer.
11
+ * * Redistributions in binary form must reproduce the above copyright
12
+ * notice, this list of conditions and the following disclaimer in the
13
+ * documentation and/or other materials provided with the distribution.
14
+ * * Neither the name of the Ruby FFI project nor the
15
+ * names of its contributors may be used to endorse or promote products
16
+ * derived from this software without specific prior written permission.
7
17
  *
8
- * This code is free software: you can redistribute it and/or modify it under
9
- * the terms of the GNU Lesser General Public License version 3 only, as
10
- * published by the Free Software Foundation.
11
- *
12
- * This code is distributed in the hope that it will be useful, but WITHOUT
13
- * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
14
- * FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License
15
- * version 3 for more details.
16
- *
17
- * You should have received a copy of the GNU Lesser General Public License
18
- * version 3 along with this work. If not, see <http://www.gnu.org/licenses/>.
18
+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
19
+ * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
20
+ * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
21
+ * DISCLAIMED. IN NO EVENT SHALL <COPYRIGHT HOLDER> BE LIABLE FOR ANY
22
+ * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
23
+ * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
24
+ * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
25
+ * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
26
+ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
27
+ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
19
28
  */
20
29
 
21
30
  #ifndef RBFFI_ARRAYTYPE_H
@@ -1,21 +1,31 @@
1
1
  /*
2
2
  * Copyright (c) 2008-2010 Wayne Meissner
3
+ * Copyright (C) 2009 Aman Gupta <aman@tmm1.net>
3
4
  *
5
+ * Copyright (c) 2008-2013, Ruby FFI project contributors
4
6
  * All rights reserved.
5
7
  *
6
- * This file is part of ruby-ffi.
8
+ * Redistribution and use in source and binary forms, with or without
9
+ * modification, are permitted provided that the following conditions are met:
10
+ * * Redistributions of source code must retain the above copyright
11
+ * notice, this list of conditions and the following disclaimer.
12
+ * * Redistributions in binary form must reproduce the above copyright
13
+ * notice, this list of conditions and the following disclaimer in the
14
+ * documentation and/or other materials provided with the distribution.
15
+ * * Neither the name of the Ruby FFI project nor the
16
+ * names of its contributors may be used to endorse or promote products
17
+ * derived from this software without specific prior written permission.
7
18
  *
8
- * This code is free software: you can redistribute it and/or modify it under
9
- * the terms of the GNU Lesser General Public License version 3 only, as
10
- * published by the Free Software Foundation.
11
- *
12
- * This code is distributed in the hope that it will be useful, but WITHOUT
13
- * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
14
- * FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License
15
- * version 3 for more details.
16
- *
17
- * You should have received a copy of the GNU Lesser General Public License
18
- * version 3 along with this work. If not, see <http://www.gnu.org/licenses/>.
19
+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
20
+ * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
21
+ * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
22
+ * DISCLAIMED. IN NO EVENT SHALL <COPYRIGHT HOLDER> BE LIABLE FOR ANY
23
+ * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
24
+ * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
25
+ * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
26
+ * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
27
+ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
28
+ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
19
29
  */
20
30
 
21
31
  #ifndef _MSC_VER
@@ -3,21 +3,30 @@
3
3
  * Copyright (c) 2009, Luc Heinrich <luc@honk-honk.com>
4
4
  * Copyright (c) 2009, Mike Dalessio <mike.dalessio@gmail.com>
5
5
  * Copyright (c) 2009, Aman Gupta.
6
+ * Copyright (c) 2008-2013, Ruby FFI project contributors
6
7
  * All rights reserved.
7
8
  *
8
- * This file is part of ruby-ffi.
9
+ * Redistribution and use in source and binary forms, with or without
10
+ * modification, are permitted provided that the following conditions are met:
11
+ * * Redistributions of source code must retain the above copyright
12
+ * notice, this list of conditions and the following disclaimer.
13
+ * * Redistributions in binary form must reproduce the above copyright
14
+ * notice, this list of conditions and the following disclaimer in the
15
+ * documentation and/or other materials provided with the distribution.
16
+ * * Neither the name of the Ruby FFI project nor the
17
+ * names of its contributors may be used to endorse or promote products
18
+ * derived from this software without specific prior written permission.
9
19
  *
10
- * This code is free software: you can redistribute it and/or modify it under
11
- * the terms of the GNU Lesser General Public License version 3 only, as
12
- * published by the Free Software Foundation.
13
- *
14
- * This code is distributed in the hope that it will be useful, but WITHOUT
15
- * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
16
- * FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License
17
- * version 3 for more details.
18
- *
19
- * You should have received a copy of the GNU Lesser General Public License
20
- * version 3 along with this work. If not, see <http://www.gnu.org/licenses/>.
20
+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
21
+ * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
22
+ * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
23
+ * DISCLAIMED. IN NO EVENT SHALL <COPYRIGHT HOLDER> BE LIABLE FOR ANY
24
+ * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
25
+ * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
26
+ * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
27
+ * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
28
+ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
29
+ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
21
30
  */
22
31
 
23
32
  #ifndef _MSC_VER
@@ -4,21 +4,30 @@
4
4
  * Copyright (c) 2009, Mike Dalessio <mike.dalessio@gmail.com>
5
5
  * Copyright (c) 2009, Aman Gupta.
6
6
  *
7
+ * Copyright (c) 2008-2013, Ruby FFI project contributors
7
8
  * All rights reserved.
8
9
  *
9
- * This file is part of ruby-ffi.
10
+ * Redistribution and use in source and binary forms, with or without
11
+ * modification, are permitted provided that the following conditions are met:
12
+ * * Redistributions of source code must retain the above copyright
13
+ * notice, this list of conditions and the following disclaimer.
14
+ * * Redistributions in binary form must reproduce the above copyright
15
+ * notice, this list of conditions and the following disclaimer in the
16
+ * documentation and/or other materials provided with the distribution.
17
+ * * Neither the name of the Ruby FFI project nor the
18
+ * names of its contributors may be used to endorse or promote products
19
+ * derived from this software without specific prior written permission.
10
20
  *
11
- * This code is free software: you can redistribute it and/or modify it under
12
- * the terms of the GNU Lesser General Public License version 3 only, as
13
- * published by the Free Software Foundation.
14
- *
15
- * This code is distributed in the hope that it will be useful, but WITHOUT
16
- * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
17
- * FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License
18
- * version 3 for more details.
19
- *
20
- * You should have received a copy of the GNU Lesser General Public License
21
- * version 3 along with this work. If not, see <http://www.gnu.org/licenses/>.
21
+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
22
+ * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
23
+ * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
24
+ * DISCLAIMED. IN NO EVENT SHALL <COPYRIGHT HOLDER> BE LIABLE FOR ANY
25
+ * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
26
+ * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
27
+ * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
28
+ * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
29
+ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
30
+ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
22
31
  */
23
32
 
24
33
  #ifndef RBFFI_CALL_H
@@ -1,20 +1,29 @@
1
1
  /*
2
2
  * Copyright (c) 2009, 2010 Wayne Meissner
3
+ * Copyright (c) 2008-2013, Ruby FFI project contributors
3
4
  * All rights reserved.
4
5
  *
5
- * This file is part of ruby-ffi.
6
+ * Redistribution and use in source and binary forms, with or without
7
+ * modification, are permitted provided that the following conditions are met:
8
+ * * Redistributions of source code must retain the above copyright
9
+ * notice, this list of conditions and the following disclaimer.
10
+ * * Redistributions in binary form must reproduce the above copyright
11
+ * notice, this list of conditions and the following disclaimer in the
12
+ * documentation and/or other materials provided with the distribution.
13
+ * * Neither the name of the Ruby FFI project nor the
14
+ * names of its contributors may be used to endorse or promote products
15
+ * derived from this software without specific prior written permission.
6
16
  *
7
- * This code is free software: you can redistribute it and/or modify it under
8
- * the terms of the GNU Lesser General Public License version 3 only, as
9
- * published by the Free Software Foundation.
10
- *
11
- * This code is distributed in the hope that it will be useful, but WITHOUT
12
- * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
13
- * FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License
14
- * version 3 for more details.
15
- *
16
- * You should have received a copy of the GNU Lesser General Public License
17
- * version 3 along with this work. If not, see <http://www.gnu.org/licenses/>.
17
+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
18
+ * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
19
+ * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
20
+ * DISCLAIMED. IN NO EVENT SHALL <COPYRIGHT HOLDER> BE LIABLE FOR ANY
21
+ * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
22
+ * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
23
+ * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
24
+ * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
25
+ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
26
+ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
18
27
  */
19
28
 
20
29
  #ifndef _MSC_VER
@@ -1,20 +1,29 @@
1
1
  /*
2
2
  * Copyright (c) 2009, 2010 Wayne Meissner
3
+ * Copyright (c) 2008-2013, Ruby FFI project contributors
3
4
  * All rights reserved.
4
5
  *
5
- * This file is part of ruby-ffi.
6
+ * Redistribution and use in source and binary forms, with or without
7
+ * modification, are permitted provided that the following conditions are met:
8
+ * * Redistributions of source code must retain the above copyright
9
+ * notice, this list of conditions and the following disclaimer.
10
+ * * Redistributions in binary form must reproduce the above copyright
11
+ * notice, this list of conditions and the following disclaimer in the
12
+ * documentation and/or other materials provided with the distribution.
13
+ * * Neither the name of the Ruby FFI project nor the
14
+ * names of its contributors may be used to endorse or promote products
15
+ * derived from this software without specific prior written permission.
6
16
  *
7
- * This code is free software: you can redistribute it and/or modify it under
8
- * the terms of the GNU Lesser General Public License version 3 only, as
9
- * published by the Free Software Foundation.
10
- *
11
- * This code is distributed in the hope that it will be useful, but WITHOUT
12
- * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
13
- * FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License
14
- * version 3 for more details.
15
- *
16
- * You should have received a copy of the GNU Lesser General Public License
17
- * version 3 along with this work. If not, see <http://www.gnu.org/licenses/>.
17
+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
18
+ * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
19
+ * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
20
+ * DISCLAIMED. IN NO EVENT SHALL <COPYRIGHT HOLDER> BE LIABLE FOR ANY
21
+ * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
22
+ * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
23
+ * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
24
+ * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
25
+ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
26
+ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
18
27
  */
19
28
 
20
29
  #ifndef RUBYFFI_CLOSUREPOOL_H