Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Remove LGPL license.

Change license from LGPL to MIT/X11.
Fix #381.
  • Loading branch information...
commit 7ec63634b57638c2fa730d4a7ad7710b0e75f26e 1 parent 041bad3
Laurent Etiemble letiemble authored
Showing with 1,592 additions and 1,342 deletions.
  1. +0 −71 LGPL.rtf
  2. +20 −15 native/Monobjc/fix_references.sh
  3. +21 −16 native/Monobjc/generate_descriptors.sh
  4. +23 −17 native/Monobjc/include/monobjc.h
  5. +23 −17 native/Monobjc/main.mm
  6. +23 −17 native/Monobjc/sources/blocks.h
  7. +23 −17 native/Monobjc/sources/cache.h
  8. +23 −17 native/Monobjc/sources/cache.mm
  9. +25 −19 native/Monobjc/sources/constants.h
  10. +21 −16 native/Monobjc/sources/definitions.def
  11. +23 −17 native/Monobjc/sources/definitions.h
  12. +23 −17 native/Monobjc/sources/definitions.mm
  13. +23 −17 native/Monobjc/sources/descriptors/descriptor-Monobjc.Block.mm
  14. +23 −17 native/Monobjc/sources/descriptors/descriptor-Monobjc.Class.mm
  15. +23 −17 native/Monobjc/sources/descriptors/descriptor-Monobjc.Id.mm
  16. +47 −41 native/Monobjc/sources/descriptors/descriptor-System.Boolean.mm
  17. +47 −41 native/Monobjc/sources/descriptors/descriptor-System.Byte.mm
  18. +47 −41 native/Monobjc/sources/descriptors/descriptor-System.Char.mm
  19. +47 −41 native/Monobjc/sources/descriptors/descriptor-System.Int16.mm
  20. +47 −41 native/Monobjc/sources/descriptors/descriptor-System.Int32.mm
  21. +47 −41 native/Monobjc/sources/descriptors/descriptor-System.Int64.mm
  22. +47 −41 native/Monobjc/sources/descriptors/descriptor-System.IntPtr.mm
  23. +47 −41 native/Monobjc/sources/descriptors/descriptor-System.SByte.mm
  24. +23 −17 native/Monobjc/sources/descriptors/descriptor-System.String.mm
  25. +23 −17 native/Monobjc/sources/descriptors/descriptor-System.Struct.mm
  26. +47 −41 native/Monobjc/sources/descriptors/descriptor-System.UInt16.mm
  27. +47 −41 native/Monobjc/sources/descriptors/descriptor-System.UInt32.mm
  28. +47 −41 native/Monobjc/sources/descriptors/descriptor-System.UInt64.mm
  29. +23 −17 native/Monobjc/sources/descriptors/descriptor-System.Void.mm
  30. +50 −44 native/Monobjc/sources/descriptors/descriptor.def
  31. +27 −21 native/Monobjc/sources/domain.h
  32. +24 −18 native/Monobjc/sources/domain.mm
  33. +30 −24 native/Monobjc/sources/enumerations.h
  34. +22 −16 native/Monobjc/sources/icalls.def
  35. +23 −17 native/Monobjc/sources/icalls.h
  36. +1 −1  native/Monobjc/sources/icalls/icalls-Monobjc.Block.mm
  37. +1 −1  native/Monobjc/sources/icalls/icalls-Monobjc.Class.mm
  38. +1 −1  native/Monobjc/sources/icalls/icalls-Monobjc.Id.mm
  39. +1 −1  native/Monobjc/sources/icalls/icalls-Monobjc.Logger.mm
  40. +1 −1  native/Monobjc/sources/icalls/icalls-Monobjc.ObjectiveCEncoding.mm
  41. +1 −1  native/Monobjc/sources/icalls/icalls-Monobjc.ObjectiveCRuntime.mm
  42. +1 −1  native/Monobjc/sources/icalls/icalls-Monobjc.Runtime.Bridge.mm
  43. +1 −1  native/Monobjc/sources/icalls/icalls-Monobjc.Runtime.Messaging.mm
  44. +1 −1  native/Monobjc/sources/icalls/icalls-Monobjc.Runtime.Platform.mm
  45. +23 −17 native/Monobjc/sources/lifecycle.h
  46. +24 −18 native/Monobjc/sources/lifecycle.mm
  47. +21 −16 native/Monobjc/sources/logging.def
  48. +29 −23 native/Monobjc/sources/logging.h
  49. +26 −20 native/Monobjc/sources/logging.mm
  50. +25 −19 native/Monobjc/sources/marshal.h
  51. +23 −17 native/Monobjc/sources/marshal.mm
  52. +23 −17 native/Monobjc/sources/messaging.h
  53. +23 −17 native/Monobjc/sources/messaging.mm
  54. +23 −17 native/Monobjc/sources/monobjc.mm
  55. +21 −16 native/Monobjc/sources/monobjc_Prefix.pch
  56. +23 −17 native/Monobjc/sources/support-ffi.h
  57. +23 −17 native/Monobjc/sources/support-ffi.mm
  58. +23 −17 native/Monobjc/sources/support-mono.h
  59. +23 −17 native/Monobjc/sources/support-mono.mm
  60. +23 −17 native/Monobjc/sources/support-objc.h
  61. +23 −17 native/Monobjc/sources/support-objc.mm
  62. +23 −17 native/Monobjc/sources/support-os.h
  63. +23 −17 native/Monobjc/sources/support-os.mm
  64. +24 −18 native/Monobjc/sources/threading.h
  65. +23 −17 native/Monobjc/test.mm
  66. +0 −1  package/Monobjc.pmdoc/08lgpl-contents.xml
  67. +0 −1  package/Monobjc.pmdoc/08lgpl.xml
  68. 0  package/Monobjc.pmdoc/{09mit-contents.xml → 08mit-contents.xml}
  69. 0  package/Monobjc.pmdoc/{09mit.xml → 08mit.xml}
  70. 0  package/Monobjc.pmdoc/{10makefile-contents.xml → 09makefile-contents.xml}
  71. 0  package/Monobjc.pmdoc/{10makefile.xml → 09makefile.xml}
  72. +1 −0  package/Monobjc.pmdoc/10monobjc-contents.xml
  73. +1 −0  package/Monobjc.pmdoc/10monobjc.xml
  74. +1 −1  package/Monobjc.pmdoc/11monobjc-contents.xml
  75. +1 −1  package/Monobjc.pmdoc/11monobjc.xml
  76. +1 −1  package/Monobjc.pmdoc/12monobjc-contents.xml
  77. +1 −1  package/Monobjc.pmdoc/12monobjc.xml
  78. +1 −1  package/Monobjc.pmdoc/13monobjc-contents.xml
  79. +1 −1  package/Monobjc.pmdoc/13monobjc.xml
  80. +0 −1  package/Monobjc.pmdoc/14monobjc-contents.xml
  81. +0 −1  package/Monobjc.pmdoc/14monobjc.xml
  82. 0  package/Monobjc.pmdoc/{15readme-contents.xml → 14readme-contents.xml}
  83. 0  package/Monobjc.pmdoc/{15readme.xml → 14readme.xml}
  84. +4 −6 package/Monobjc.pmdoc/index.xml
71 LGPL.rtf
View
@@ -1,71 +0,0 @@
-{\rtf1\ansi\ansicpg1252\cocoartf949\cocoasubrtf430
-{\fonttbl\f0\fswiss\fcharset0 Helvetica;}
-{\colortbl;\red255\green255\blue255;}
-\paperw11900\paperh16840\margl1440\margr1440\vieww13320\viewh11760\viewkind0
-\pard\tx560\tx1120\tx1680\tx2240\tx2800\tx3360\tx3920\tx4480\tx5040\tx5600\tx6160\tx6720\ql\qnatural\pardirnatural
-
-\f0\fs24 \cf0 GNU LESSER GENERAL PUBLIC LICENSE\
-\
-Version 3, 29 June 2007\
-\
-Copyright \'a9 2007 Free Software Foundation, Inc. <http://fsf.org/>\
-\
-Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed.\
-\
-This version of the GNU Lesser General Public License incorporates the terms and conditions of version 3 of the GNU General Public License, supplemented by the additional permissions listed below.\
-0. Additional Definitions.\
-\
-As used herein, \'93this License\'94 refers to version 3 of the GNU Lesser General Public License, and the \'93GNU GPL\'94 refers to version 3 of the GNU General Public License.\
-\
-\'93The Library\'94 refers to a covered work governed by this License, other than an Application or a Combined Work as defined below.\
-\
-An \'93Application\'94 is any work that makes use of an interface provided by the Library, but which is not otherwise based on the Library. Defining a subclass of a class defined by the Library is deemed a mode of using an interface provided by the Library.\
-\
-A \'93Combined Work\'94 is a work produced by combining or linking an Application with the Library. The particular version of the Library with which the Combined Work was made is also called the \'93Linked Version\'94.\
-\
-The \'93Minimal Corresponding Source\'94 for a Combined Work means the Corresponding Source for the Combined Work, excluding any source code for portions of the Combined Work that, considered in isolation, are based on the Application, and not on the Linked Version.\
-\
-The \'93Corresponding Application Code\'94 for a Combined Work means the object code and/or source code for the Application, including any data and utility programs needed for reproducing the Combined Work from the Application, but excluding the System Libraries of the Combined Work.\
-1. Exception to Section 3 of the GNU GPL.\
-\
-You may convey a covered work under sections 3 and 4 of this License without being bound by section 3 of the GNU GPL.\
-2. Conveying Modified Versions.\
-\
-If you modify a copy of the Library, and, in your modifications, a facility refers to a function or data to be supplied by an Application that uses the facility (other than as an argument passed when the facility is invoked), then you may convey a copy of the modified version:\
-\
- * a) under this License, provided that you make a good faith effort to ensure that, in the event an Application does not supply the function or data, the facility still operates, and performs whatever part of its purpose remains meaningful, or\
- * b) under the GNU GPL, with none of the additional permissions of this License applicable to that copy.\
-\
-3. Object Code Incorporating Material from Library Header Files.\
-\
-The object code form of an Application may incorporate material from a header file that is part of the Library. You may convey such object code under terms of your choice, provided that, if the incorporated material is not limited to numerical parameters, data structure layouts and accessors, or small macros, inline functions and templates (ten or fewer lines in length), you do both of the following:\
-\
- * a) Give prominent notice with each copy of the object code that the Library is used in it and that the Library and its use are covered by this License.\
- * b) Accompany the object code with a copy of the GNU GPL and this license document.\
-\
-4. Combined Works.\
-\
-You may convey a Combined Work under terms of your choice that, taken together, effectively do not restrict modification of the portions of the Library contained in the Combined Work and reverse engineering for debugging such modifications, if you also do each of the following:\
-\
- * a) Give prominent notice with each copy of the Combined Work that the Library is used in it and that the Library and its use are covered by this License.\
- * b) Accompany the Combined Work with a copy of the GNU GPL and this license document.\
- * c) For a Combined Work that displays copyright notices during execution, include the copyright notice for the Library among these notices, as well as a reference directing the user to the copies of the GNU GPL and this license document.\
- * d) Do one of the following:\
- o 0) Convey the Minimal Corresponding Source under the terms of this License, and the Corresponding Application Code in a form suitable for, and under terms that permit, the user to recombine or relink the Application with a modified version of the Linked Version to produce a modified Combined Work, in the manner specified by section 6 of the GNU GPL for conveying Corresponding Source.\
- o 1) Use a suitable shared library mechanism for linking with the Library. A suitable mechanism is one that (a) uses at run time a copy of the Library already present on the user's computer system, and (b) will operate properly with a modified version of the Library that is interface-compatible with the Linked Version.\
- * e) Provide Installation Information, but only if you would otherwise be required to provide such information under section 6 of the GNU GPL, and only to the extent that such information is necessary to install and execute a modified version of the Combined Work produced by recombining or relinking the Application with a modified version of the Linked Version. (If you use option 4d0, the Installation Information must accompany the Minimal Corresponding Source and Corresponding Application Code. If you use option 4d1, you must provide the Installation Information in the manner specified by section 6 of the GNU GPL for conveying Corresponding Source.)\
-\
-5. Combined Libraries.\
-\
-You may place library facilities that are a work based on the Library side by side in a single library together with other library facilities that are not Applications and are not covered by this License, and convey such a combined library under terms of your choice, if you do both of the following:\
-\
- * a) Accompany the combined library with a copy of the same work based on the Library, uncombined with any other library facilities, conveyed under the terms of this License.\
- * b) Give prominent notice with the combined library that part of it is a work based on the Library, and explaining where to find the accompanying uncombined form of the same work.\
-\
-6. Revised Versions of the GNU Lesser General Public License.\
-\
-The Free Software Foundation may publish revised and/or new versions of the GNU Lesser General Public License from time to time. Such new versions will be similar in spirit to the present version, but may differ in detail to address new problems or concerns.\
-\
-Each version is given a distinguishing version number. If the Library as you received it specifies that a certain numbered version of the GNU Lesser General Public License \'93or any later version\'94 applies to it, you have the option of following the terms and conditions either of that published version or of any later version published by the Free Software Foundation. If the Library as you received it does not specify a version number of the GNU Lesser General Public License, you may choose any version of the GNU Lesser General Public License ever published by the Free Software Foundation.\
-\
-If the Library as you received it specifies that a proxy can decide whether future versions of the GNU Lesser General Public License shall apply, that proxy's public statement of acceptance of any version is permanent authorization for you to choose that version for the Library.}
35 native/Monobjc/fix_references.sh
View
@@ -1,20 +1,25 @@
#!/bin/bash
-#
+#
# This file is part of Monobjc, a .NET/Objective-C bridge
-# Copyright (C) 2007-2012 Laurent Etiemble
-#
-# Monobjc is free software: you can redistribute it and/or modify
-# it under the terms of the GNU Lesser General Public License as published
-# by the Free Software Foundation, either version 3 of the License, or
-# any later version.
-#
-# Monobjc is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU Lesser General Public License
-# along with Monobjc. If not, see <http://www.gnu.org/licenses/>.
+# Copyright (C) 2007-2013 - Laurent Etiemble
+#
+# 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.
#
TARGET=$CONFIGURATION_BUILD_DIR/$EXECUTABLE_NAME
MONO_LIB="/Library/Frameworks/Mono.framework/Versions/Current/lib"
37 native/Monobjc/generate_descriptors.sh
View
@@ -1,21 +1,26 @@
#!/bin/bash
-#
+#
# This file is part of Monobjc, a .NET/Objective-C bridge
-# Copyright (C) 2007-2012 Laurent Etiemble
-#
-# Monobjc is free software: you can redistribute it and/or modify
-# it under the terms of the GNU Lesser General Public License as published
-# by the Free Software Foundation, either version 3 of the License, or
-# any later version.
-#
-# Monobjc is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU Lesser General Public License
-# along with Monobjc. If not, see <http://www.gnu.org/licenses/>.
-#
+# Copyright (C) 2007-2013 - Laurent Etiemble
+#
+# 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.
+#
DIR="sources/descriptors"
CPP="cpp -Isources"
INPUT="$DIR/descriptor.def"
40 native/Monobjc/include/monobjc.h
View
@@ -1,25 +1,31 @@
-//
+//
// This file is part of Monobjc, a .NET/Objective-C bridge
-// Copyright (C) 2007-2012 - Laurent Etiemble
-//
-// Monobjc is free software: you can redistribute it and/or modify
-// it under the terms of the GNU Lesser General Public License as published
-// by the Free Software Foundation, either version 3 of the License, or
-// any later version.
-//
-// Monobjc is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-//
-// You should have received a copy of the GNU Lesser General Public License
-// along with Monobjc. If not, see <http://www.gnu.org/licenses/>.
-//
+// Copyright (C) 2007-2013 - Laurent Etiemble
+//
+// 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.
+//
+
/**
* @file monobjc.h
* @brief Contains exposed functions for the bridging library.
* @author Laurent Etiemble <laurent.etiemble@monobjc.net>
- * @date 2009-2012
+ * @date 2009-2013
*/
#ifndef __MONOBJC_H__
#define __MONOBJC_H__
40 native/Monobjc/main.mm
View
@@ -1,25 +1,31 @@
-//
+//
// This file is part of Monobjc, a .NET/Objective-C bridge
-// Copyright (C) 2007-2012 - Laurent Etiemble
-//
-// Monobjc is free software: you can redistribute it and/or modify
-// it under the terms of the GNU Lesser General Public License as published
-// by the Free Software Foundation, either version 3 of the License, or
-// any later version.
-//
-// Monobjc is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-//
-// You should have received a copy of the GNU Lesser General Public License
-// along with Monobjc. If not, see <http://www.gnu.org/licenses/>.
-//
+// Copyright (C) 2007-2013 - Laurent Etiemble
+//
+// 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.
+//
+
/**
* @file main.mm
* @brief Default loader for the Monobjc bridge.
* @author Laurent Etiemble <laurent.etiemble@monobjc.net>
- * @date 2009-2012
+ * @date 2009-2013
*/
#import <stdlib.h>
#import <Cocoa/Cocoa.h>
40 native/Monobjc/sources/blocks.h
View
@@ -1,25 +1,31 @@
-//
+//
// This file is part of Monobjc, a .NET/Objective-C bridge
-// Copyright (C) 2007-2012 - Laurent Etiemble
-//
-// Monobjc is free software: you can redistribute it and/or modify
-// it under the terms of the GNU Lesser General Public License as published
-// by the Free Software Foundation, either version 3 of the License, or
-// any later version.
-//
-// Monobjc is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-//
-// You should have received a copy of the GNU Lesser General Public License
-// along with Monobjc. If not, see <http://www.gnu.org/licenses/>.
-//
+// Copyright (C) 2007-2013 - Laurent Etiemble
+//
+// 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.
+//
+
/**
* @file blocks.h
* @brief Private headers for blocks.
* @author Laurent Etiemble <laurent.etiemble@monobjc.net>
- * @date 2009-2012
+ * @date 2009-2013
*/
#ifndef __BLOCKS_H__
#define __BLOCKS_H__
40 native/Monobjc/sources/cache.h
View
@@ -1,25 +1,31 @@
-//
+//
// This file is part of Monobjc, a .NET/Objective-C bridge
-// Copyright (C) 2007-2012 - Laurent Etiemble
-//
-// Monobjc is free software: you can redistribute it and/or modify
-// it under the terms of the GNU Lesser General Public License as published
-// by the Free Software Foundation, either version 3 of the License, or
-// any later version.
-//
-// Monobjc is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-//
-// You should have received a copy of the GNU Lesser General Public License
-// along with Monobjc. If not, see <http://www.gnu.org/licenses/>.
-//
+// Copyright (C) 2007-2013 - Laurent Etiemble
+//
+// 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.
+//
+
/**
* @file cache.h
* @brief Defines the cache semantics to for the caches used in the bridge.
* @author Laurent Etiemble <laurent.etiemble@monobjc.net>
- * @date 2009-2012
+ * @date 2009-2013
*/
#ifndef __CACHE_H__
#define __CACHE_H__
40 native/Monobjc/sources/cache.mm
View
@@ -1,25 +1,31 @@
-//
+//
// This file is part of Monobjc, a .NET/Objective-C bridge
-// Copyright (C) 2007-2012 - Laurent Etiemble
-//
-// Monobjc is free software: you can redistribute it and/or modify
-// it under the terms void *of the GNU Lesser General Public License as published
-// by the Free Software Foundation, either version 3 of the License, or
-// any later version.
-//
-// Monobjc is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-//
-// You should have received a copy of the GNU Lesser General Public License
-// along with Monobjc. If not, see <http://www.gnu.org/licenses/>.
-//
+// Copyright (C) 2007-2013 - Laurent Etiemble
+//
+// 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.
+//
+
/**
* @file cache.mm
* @brief Defines the cache semantics to for the caches used in the bridge.
* @author Laurent Etiemble <laurent.etiemble@monobjc.net>
- * @date 2009-2012
+ * @date 2009-2013
*/
#include "cache.h"
#include "definitions.h"
44 native/Monobjc/sources/constants.h
View
@@ -1,25 +1,31 @@
-//
+//
// This file is part of Monobjc, a .NET/Objective-C bridge
-// Copyright (C) 2007-2012 - Laurent Etiemble
-//
-// Monobjc is free software: you can redistribute it and/or modify
-// it under the terms of the GNU Lesser General Public License as published
-// by the Free Software Foundation, either version 3 of the License, or
-// any later version.
-//
-// Monobjc is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-//
-// You should have received a copy of the GNU Lesser General Public License
-// along with Monobjc. If not, see <http://www.gnu.org/licenses/>.
-//
+// Copyright (C) 2007-2013 - Laurent Etiemble
+//
+// 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.
+//
+
/**
* @file constants.h
* @brief Contains common constants.
* @author Laurent Etiemble <laurent.etiemble@monobjc.net>
- * @date 2009-2012
+ * @date 2009-2013
*/
#ifndef __CONSTANTS_H__
#define __CONSTANTS_H__
@@ -49,10 +55,10 @@
#pragma mark ----- Predefined messages -----
-/*! @brief Resource string. */
+/** @brief Resource string. */
#define ASSERTION_FAILED "Assertion `%s' failed"
-/*! @brief Resource string. */
+/** @brief Resource string. */
#define STRING_CANNOT_LOAD_FRAMEWORK "Cannot load framework '%s'"
/** @brief Resource string. */
37 native/Monobjc/sources/definitions.def
View
@@ -1,20 +1,25 @@
-//
+//
// This file is part of Monobjc, a .NET/Objective-C bridge
-// Copyright (C) 2007-2012 - Laurent Etiemble
-//
-// Monobjc is free software: you can redistribute it and/or modify
-// it under the terms of the GNU Lesser General Public License as published
-// by the Free Software Foundation, either version 3 of the License, or
-// any later version.
-//
-// Monobjc is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-//
-// You should have received a copy of the GNU Lesser General Public License
-// along with Monobjc. If not, see <http://www.gnu.org/licenses/>.
-//
+// Copyright (C) 2007-2013 - Laurent Etiemble
+//
+// 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.
+//
DEFINITION(MonoAssembly *, Monobjc_assembly)
DEFINITION(MonoImage *, Monobjc_image)
40 native/Monobjc/sources/definitions.h
View
@@ -1,25 +1,31 @@
-//
+//
// This file is part of Monobjc, a .NET/Objective-C bridge
-// Copyright (C) 2007-2012 - Laurent Etiemble
-//
-// Monobjc is free software: you can redistribute it and/or modify
-// it under the terms of the GNU Lesser General Public License as published
-// by the Free Software Foundation, either version 3 of the License, or
-// any later version.
-//
-// Monobjc is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-//
-// You should have received a copy of the GNU Lesser General Public License
-// along with Monobjc. If not, see <http://www.gnu.org/licenses/>.
-//
+// Copyright (C) 2007-2013 - Laurent Etiemble
+//
+// 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.
+//
+
/**
* @file definitions.h
* @brief Defines the accessors to get access to the definition of the managed entities (assemblies, images, classes, methods, etc).
* @author Laurent Etiemble <laurent.etiemble@monobjc.net>
- * @date 2009-2012
+ * @date 2009-2013
*/
#ifndef __DEFINITIONS_H__
#define __DEFINITIONS_H__
40 native/Monobjc/sources/definitions.mm
View
@@ -1,25 +1,31 @@
-//
+//
// This file is part of Monobjc, a .NET/Objective-C bridge
-// Copyright (C) 2007-2012 - Laurent Etiemble
-//
-// Monobjc is free software: you can redistribute it and/or modify
-// it under the terms of the GNU Lesser General Public License as published
-// by the Free Software Foundation, either version 3 of the License, or
-// any later version.
-//
-// Monobjc is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-//
-// You should have received a copy of the GNU Lesser General Public License
-// along with Monobjc. If not, see <http://www.gnu.org/licenses/>.
-//
+// Copyright (C) 2007-2013 - Laurent Etiemble
+//
+// 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.
+//
+
/**
* @file definitions.mm
* @brief Defines the accessors to get access to the definition of the managed entities (assemblies, images, classes, methods, etc).
* @author Laurent Etiemble <laurent.etiemble@monobjc.net>
- * @date 2009-2012
+ * @date 2009-2013
*/
#include "constants.h"
#include "definitions.h"
40 native/Monobjc/sources/descriptors/descriptor-Monobjc.Block.mm
View
@@ -1,25 +1,31 @@
-//
+//
// This file is part of Monobjc, a .NET/Objective-C bridge
-// Copyright (C) 2007-2012 - Laurent Etiemble
-//
-// Monobjc is free software: you can redistribute it and/or modify
-// it under the terms of the GNU Lesser General Public License as published
-// by the Free Software Foundation, either version 3 of the License, or
-// any later version.
-//
-// Monobjc is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-//
-// You should have received a copy of the GNU Lesser General Public License
-// along with Monobjc. If not, see <http://www.gnu.org/licenses/>.
-//
+// Copyright (C) 2007-2013 - Laurent Etiemble
+//
+// 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.
+//
+
/**
* @file descriptor-Monobjc.Block.mm
* @brief Contains the descriptor code to handle the Monobjc.Block type.
* @author Laurent Etiemble <laurent.etiemble@monobjc.net>
- * @date 2009-2012
+ * @date 2009-2013
*/
#include "definitions.h"
#include "icalls.h"
40 native/Monobjc/sources/descriptors/descriptor-Monobjc.Class.mm
View
@@ -1,25 +1,31 @@
-//
+//
// This file is part of Monobjc, a .NET/Objective-C bridge
-// Copyright (C) 2007-2012 - Laurent Etiemble
-//
-// Monobjc is free software: you can redistribute it and/or modify
-// it under the terms of the GNU Lesser General Public License as published
-// by the Free Software Foundation, either version 3 of the License, or
-// any later version.
-//
-// Monobjc is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-//
-// You should have received a copy of the GNU Lesser General Public License
-// along with Monobjc. If not, see <http://www.gnu.org/licenses/>.
-//
+// Copyright (C) 2007-2013 - Laurent Etiemble
+//
+// 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.
+//
+
/**
* @file descriptor-Monobjc.Class.mm
* @brief Contains the descriptor code to handle the Monobjc.Class type.
* @author Laurent Etiemble <laurent.etiemble@monobjc.net>
- * @date 2009-2012
+ * @date 2009-2013
*/
#include "definitions.h"
#include "enumerations.h"
40 native/Monobjc/sources/descriptors/descriptor-Monobjc.Id.mm
View
@@ -1,25 +1,31 @@
-//
+//
// This file is part of Monobjc, a .NET/Objective-C bridge
-// Copyright (C) 2007-2012 - Laurent Etiemble
-//
-// Monobjc is free software: you can redistribute it and/or modify
-// it under the terms of the GNU Lesser General Public License as published
-// by the Free Software Foundation, either version 3 of the License, or
-// any later version.
-//
-// Monobjc is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-//
-// You should have received a copy of the GNU Lesser General Public License
-// along with Monobjc. If not, see <http://www.gnu.org/licenses/>.
-//
+// Copyright (C) 2007-2013 - Laurent Etiemble
+//
+// 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.
+//
+
/**
* @file descriptor-Monobjc.Id.mm
* @brief Contains the descriptor code to handle the Monobjc.Id type.
* @author Laurent Etiemble <laurent.etiemble@monobjc.net>
- * @date 2009-2012
+ * @date 2009-2013
*/
#include "definitions.h"
#include "enumerations.h"
88 native/Monobjc/sources/descriptors/descriptor-System.Boolean.mm
View
@@ -1,37 +1,43 @@
-//
+//
// This file is part of Monobjc, a .NET/Objective-C bridge
-// Copyright (C) 2007-2012 - Laurent Etiemble
-//
-// Monobjc is free software: you can redistribute it and/or modify
-// it under the terms of the GNU Lesser General Public License as published
-// by the Free Software Foundation, either version 3 of the License, or
-// any later version.
-//
-// Monobjc is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-//
-// You should have received a copy of the GNU Lesser General Public License
-// along with Monobjc. If not, see <http://www.gnu.org/licenses/>.
-//
-/*!
+// Copyright (C) 2007-2013 - Laurent Etiemble
+//
+// 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.
+//
+
+/**
* \file descriptor-System.Boolean.mm
- * \brief Contains the descriptor code to handle the System.Boolean type.
+ * @brief Contains the descriptor code to handle the System.Boolean type.
* \author Laurent Etiemble
* \date 2009-2010
*/
#include "logging.h"
#include "marshal.h"
-/*!
- * \brief Allocates a storage zone large enough to hold a marshalled System.Boolean.
- * \param descriptor The descriptor.
- * \param native TRUE if the storage zone has the native type width (direct access)
+/**
+ * @brief Allocates a storage zone large enough to hold a marshalled System.Boolean.
+ * @param descriptor The descriptor.
+ * @param native TRUE if the storage zone has the native type width (direct access)
* or FALSE if the zone is at least the size of pointer storage (as FFI requires it).
- * \return A pointer to the allocated storage.
+ * @return A pointer to the allocated storage.
*
- * \remark The storage zone is at least the size of pointer storage, due to libffi requirement.
+ * @remark The storage zone is at least the size of pointer storage, due to libffi requirement.
*/
static void *__alloc_native_storage_for_System_Boolean(MonobjcTypeDescriptor *descriptor, boolean_t native) {
//LOG_DEBUG(MONOBJC_DOMAIN_MARSHALLING, "__alloc_native_storage_for_System_Boolean()");
@@ -47,15 +53,15 @@
}
}
-/*!
- * \brief Marshal a native value into a System.Boolean object.
- * \param descriptor The descriptor.
- * \param ptr The pointer to the storage zone that contains the native object.
- * \param native TRUE if the storage zone has the native type width (direct access)
+/**
+ * @brief Marshal a native value into a System.Boolean object.
+ * @param descriptor The descriptor.
+ * @param ptr The pointer to the storage zone that contains the native object.
+ * @param native TRUE if the storage zone has the native type width (direct access)
* or FALSE if the zone is at least the size of pointer storage (as FFI requires it).
- * \return A fully initialized System.Boolean object.
+ * @return A fully initialized System.Boolean object.
*
- * \remark This function only use the storage zone. It is up to the caller to free it.
+ * @remark This function only use the storage zone. It is up to the caller to free it.
* Due to libffi requirement, the storage zone used is at least the size of pointer storage.
* This mean that smaller types are promoted before being boxed.
*/
@@ -76,15 +82,15 @@
}
}
-/*!
- * \brief Marshal a System.Boolean object to its native value.
- * \param descriptor The descriptor.
- * \param obj The managed object.
- * \param ptr The pointer to the storage zone that will contain the native object.
- * \param native TRUE if the storage zone has the native type width (direct access)
+/**
+ * @brief Marshal a System.Boolean object to its native value.
+ * @param descriptor The descriptor.
+ * @param obj The managed object.
+ * @param ptr The pointer to the storage zone that will contain the native object.
+ * @param native TRUE if the storage zone has the native type width (direct access)
* or FALSE if the zone is at least the size of pointer storage (as FFI requires it).
*
- * \remark This function does not allocate the storage zone. It is up to the caller to allocate it and free it.
+ * @remark This function does not allocate the storage zone. It is up to the caller to allocate it and free it.
*/
static void __marshal_to_native_for_System_Boolean(MonobjcTypeDescriptor *descriptor, MonoObject *obj, void *ptr, boolean_t native) {
//LOG_DEBUG(MONOBJC_DOMAIN_MARSHALLING, "__marshal_to_native_for_System_Boolean()");
@@ -94,9 +100,9 @@ static void __marshal_to_native_for_System_Boolean(MonobjcTypeDescriptor *descri
*(int8_t *)ptr = value;
}
-/*!
- * \brief Free the previously allocated storage zone.
- * \param ptr The pointer to the storage zone.
+/**
+ * @brief Free the previously allocated storage zone.
+ * @param ptr The pointer to the storage zone.
*/
static void __free_native_storage_for_System_Boolean(void *ptr) {
//LOG_DEBUG(MONOBJC_DOMAIN_MARSHALLING, "__free_native_storage_for_System_Boolean(%p)", ptr);
88 native/Monobjc/sources/descriptors/descriptor-System.Byte.mm
View
@@ -1,37 +1,43 @@
-//
+//
// This file is part of Monobjc, a .NET/Objective-C bridge
-// Copyright (C) 2007-2012 - Laurent Etiemble
-//
-// Monobjc is free software: you can redistribute it and/or modify
-// it under the terms of the GNU Lesser General Public License as published
-// by the Free Software Foundation, either version 3 of the License, or
-// any later version.
-//
-// Monobjc is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-//
-// You should have received a copy of the GNU Lesser General Public License
-// along with Monobjc. If not, see <http://www.gnu.org/licenses/>.
-//
-/*!
+// Copyright (C) 2007-2013 - Laurent Etiemble
+//
+// 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.
+//
+
+/**
* \file descriptor-System.Byte.mm
- * \brief Contains the descriptor code to handle the System.Byte type.
+ * @brief Contains the descriptor code to handle the System.Byte type.
* \author Laurent Etiemble
* \date 2009-2010
*/
#include "logging.h"
#include "marshal.h"
-/*!
- * \brief Allocates a storage zone large enough to hold a marshalled System.Byte.
- * \param descriptor The descriptor.
- * \param native TRUE if the storage zone has the native type width (direct access)
+/**
+ * @brief Allocates a storage zone large enough to hold a marshalled System.Byte.
+ * @param descriptor The descriptor.
+ * @param native TRUE if the storage zone has the native type width (direct access)
* or FALSE if the zone is at least the size of pointer storage (as FFI requires it).
- * \return A pointer to the allocated storage.
+ * @return A pointer to the allocated storage.
*
- * \remark The storage zone is at least the size of pointer storage, due to libffi requirement.
+ * @remark The storage zone is at least the size of pointer storage, due to libffi requirement.
*/
static void *__alloc_native_storage_for_System_Byte(MonobjcTypeDescriptor *descriptor, boolean_t native) {
//LOG_DEBUG(MONOBJC_DOMAIN_MARSHALLING, "__alloc_native_storage_for_System_Byte()");
@@ -47,15 +53,15 @@
}
}
-/*!
- * \brief Marshal a native value into a System.Byte object.
- * \param descriptor The descriptor.
- * \param ptr The pointer to the storage zone that contains the native object.
- * \param native TRUE if the storage zone has the native type width (direct access)
+/**
+ * @brief Marshal a native value into a System.Byte object.
+ * @param descriptor The descriptor.
+ * @param ptr The pointer to the storage zone that contains the native object.
+ * @param native TRUE if the storage zone has the native type width (direct access)
* or FALSE if the zone is at least the size of pointer storage (as FFI requires it).
- * \return A fully initialized System.Byte object.
+ * @return A fully initialized System.Byte object.
*
- * \remark This function only use the storage zone. It is up to the caller to free it.
+ * @remark This function only use the storage zone. It is up to the caller to free it.
* Due to libffi requirement, the storage zone used is at least the size of pointer storage.
* This mean that smaller types are promoted before being boxed.
*/
@@ -76,15 +82,15 @@
}
}
-/*!
- * \brief Marshal a System.Byte object to its native value.
- * \param descriptor The descriptor.
- * \param obj The managed object.
- * \param ptr The pointer to the storage zone that will contain the native object.
- * \param native TRUE if the storage zone has the native type width (direct access)
+/**
+ * @brief Marshal a System.Byte object to its native value.
+ * @param descriptor The descriptor.
+ * @param obj The managed object.
+ * @param ptr The pointer to the storage zone that will contain the native object.
+ * @param native TRUE if the storage zone has the native type width (direct access)
* or FALSE if the zone is at least the size of pointer storage (as FFI requires it).
*
- * \remark This function does not allocate the storage zone. It is up to the caller to allocate it and free it.
+ * @remark This function does not allocate the storage zone. It is up to the caller to allocate it and free it.
*/
static void __marshal_to_native_for_System_Byte(MonobjcTypeDescriptor *descriptor, MonoObject *obj, void *ptr, boolean_t native) {
//LOG_DEBUG(MONOBJC_DOMAIN_MARSHALLING, "__marshal_to_native_for_System_Byte()");
@@ -94,9 +100,9 @@ static void __marshal_to_native_for_System_Byte(MonobjcTypeDescriptor *descripto
*(uint8_t *)ptr = value;
}
-/*!
- * \brief Free the previously allocated storage zone.
- * \param ptr The pointer to the storage zone.
+/**
+ * @brief Free the previously allocated storage zone.
+ * @param ptr The pointer to the storage zone.
*/
static void __free_native_storage_for_System_Byte(void *ptr) {
//LOG_DEBUG(MONOBJC_DOMAIN_MARSHALLING, "__free_native_storage_for_System_Byte(%p)", ptr);
88 native/Monobjc/sources/descriptors/descriptor-System.Char.mm
View
@@ -1,37 +1,43 @@
-//
+//
// This file is part of Monobjc, a .NET/Objective-C bridge
-// Copyright (C) 2007-2012 - Laurent Etiemble
-//
-// Monobjc is free software: you can redistribute it and/or modify
-// it under the terms of the GNU Lesser General Public License as published
-// by the Free Software Foundation, either version 3 of the License, or
-// any later version.
-//
-// Monobjc is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-//
-// You should have received a copy of the GNU Lesser General Public License
-// along with Monobjc. If not, see <http://www.gnu.org/licenses/>.
-//
-/*!
+// Copyright (C) 2007-2013 - Laurent Etiemble
+//
+// 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.
+//
+
+/**
* \file descriptor-System.Char.mm
- * \brief Contains the descriptor code to handle the System.Char type.
+ * @brief Contains the descriptor code to handle the System.Char type.
* \author Laurent Etiemble
* \date 2009-2010
*/
#include "logging.h"
#include "marshal.h"
-/*!
- * \brief Allocates a storage zone large enough to hold a marshalled System.Char.
- * \param descriptor The descriptor.
- * \param native TRUE if the storage zone has the native type width (direct access)
+/**
+ * @brief Allocates a storage zone large enough to hold a marshalled System.Char.
+ * @param descriptor The descriptor.
+ * @param native TRUE if the storage zone has the native type width (direct access)
* or FALSE if the zone is at least the size of pointer storage (as FFI requires it).
- * \return A pointer to the allocated storage.
+ * @return A pointer to the allocated storage.
*
- * \remark The storage zone is at least the size of pointer storage, due to libffi requirement.
+ * @remark The storage zone is at least the size of pointer storage, due to libffi requirement.
*/
static void *__alloc_native_storage_for_System_Char(MonobjcTypeDescriptor *descriptor, boolean_t native) {
//LOG_DEBUG(MONOBJC_DOMAIN_MARSHALLING, "__alloc_native_storage_for_System_Char()");
@@ -47,15 +53,15 @@
}
}
-/*!
- * \brief Marshal a native value into a System.Char object.
- * \param descriptor The descriptor.
- * \param ptr The pointer to the storage zone that contains the native object.
- * \param native TRUE if the storage zone has the native type width (direct access)
+/**
+ * @brief Marshal a native value into a System.Char object.
+ * @param descriptor The descriptor.
+ * @param ptr The pointer to the storage zone that contains the native object.
+ * @param native TRUE if the storage zone has the native type width (direct access)
* or FALSE if the zone is at least the size of pointer storage (as FFI requires it).
- * \return A fully initialized System.Char object.
+ * @return A fully initialized System.Char object.
*
- * \remark This function only use the storage zone. It is up to the caller to free it.
+ * @remark This function only use the storage zone. It is up to the caller to free it.
* Due to libffi requirement, the storage zone used is at least the size of pointer storage.
* This mean that smaller types are promoted before being boxed.
*/
@@ -76,15 +82,15 @@
}
}
-/*!
- * \brief Marshal a System.Char object to its native value.
- * \param descriptor The descriptor.
- * \param obj The managed object.
- * \param ptr The pointer to the storage zone that will contain the native object.
- * \param native TRUE if the storage zone has the native type width (direct access)
+/**
+ * @brief Marshal a System.Char object to its native value.
+ * @param descriptor The descriptor.
+ * @param obj The managed object.
+ * @param ptr The pointer to the storage zone that will contain the native object.
+ * @param native TRUE if the storage zone has the native type width (direct access)
* or FALSE if the zone is at least the size of pointer storage (as FFI requires it).
*
- * \remark This function does not allocate the storage zone. It is up to the caller to allocate it and free it.
+ * @remark This function does not allocate the storage zone. It is up to the caller to allocate it and free it.
*/
static void __marshal_to_native_for_System_Char(MonobjcTypeDescriptor *descriptor, MonoObject *obj, void *ptr, boolean_t native) {
//LOG_DEBUG(MONOBJC_DOMAIN_MARSHALLING, "__marshal_to_native_for_System_Char()");
@@ -94,9 +100,9 @@ static void __marshal_to_native_for_System_Char(MonobjcTypeDescriptor *descripto
*(int16_t *)ptr = value;
}
-/*!
- * \brief Free the previously allocated storage zone.
- * \param ptr The pointer to the storage zone.
+/**
+ * @brief Free the previously allocated storage zone.
+ * @param ptr The pointer to the storage zone.
*/
static void __free_native_storage_for_System_Char(void *ptr) {
//LOG_DEBUG(MONOBJC_DOMAIN_MARSHALLING, "__free_native_storage_for_System_Char(%p)", ptr);
88 native/Monobjc/sources/descriptors/descriptor-System.Int16.mm
View
@@ -1,37 +1,43 @@
-//
+//
// This file is part of Monobjc, a .NET/Objective-C bridge
-// Copyright (C) 2007-2012 - Laurent Etiemble
-//
-// Monobjc is free software: you can redistribute it and/or modify
-// it under the terms of the GNU Lesser General Public License as published
-// by the Free Software Foundation, either version 3 of the License, or
-// any later version.
-//
-// Monobjc is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-//
-// You should have received a copy of the GNU Lesser General Public License
-// along with Monobjc. If not, see <http://www.gnu.org/licenses/>.
-//
-/*!
+// Copyright (C) 2007-2013 - Laurent Etiemble
+//
+// 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.
+//
+
+/**
* \file descriptor-System.Int16.mm
- * \brief Contains the descriptor code to handle the System.Int16 type.
+ * @brief Contains the descriptor code to handle the System.Int16 type.
* \author Laurent Etiemble
* \date 2009-2010
*/
#include "logging.h"
#include "marshal.h"
-/*!
- * \brief Allocates a storage zone large enough to hold a marshalled System.Int16.
- * \param descriptor The descriptor.
- * \param native TRUE if the storage zone has the native type width (direct access)
+/**
+ * @brief Allocates a storage zone large enough to hold a marshalled System.Int16.
+ * @param descriptor The descriptor.
+ * @param native TRUE if the storage zone has the native type width (direct access)
* or FALSE if the zone is at least the size of pointer storage (as FFI requires it).
- * \return A pointer to the allocated storage.
+ * @return A pointer to the allocated storage.
*
- * \remark The storage zone is at least the size of pointer storage, due to libffi requirement.
+ * @remark The storage zone is at least the size of pointer storage, due to libffi requirement.
*/
static void *__alloc_native_storage_for_System_Int16(MonobjcTypeDescriptor *descriptor, boolean_t native) {
//LOG_DEBUG(MONOBJC_DOMAIN_MARSHALLING, "__alloc_native_storage_for_System_Int16()");
@@ -47,15 +53,15 @@
}
}
-/*!
- * \brief Marshal a native value into a System.Int16 object.
- * \param descriptor The descriptor.
- * \param ptr The pointer to the storage zone that contains the native object.
- * \param native TRUE if the storage zone has the native type width (direct access)
+/**
+ * @brief Marshal a native value into a System.Int16 object.
+ * @param descriptor The descriptor.
+ * @param ptr The pointer to the storage zone that contains the native object.
+ * @param native TRUE if the storage zone has the native type width (direct access)
* or FALSE if the zone is at least the size of pointer storage (as FFI requires it).
- * \return A fully initialized System.Int16 object.
+ * @return A fully initialized System.Int16 object.
*
- * \remark This function only use the storage zone. It is up to the caller to free it.
+ * @remark This function only use the storage zone. It is up to the caller to free it.
* Due to libffi requirement, the storage zone used is at least the size of pointer storage.
* This mean that smaller types are promoted before being boxed.
*/
@@ -76,15 +82,15 @@
}
}
-/*!
- * \brief Marshal a System.Int16 object to its native value.
- * \param descriptor The descriptor.
- * \param obj The managed object.
- * \param ptr The pointer to the storage zone that will contain the native object.
- * \param native TRUE if the storage zone has the native type width (direct access)
+/**
+ * @brief Marshal a System.Int16 object to its native value.
+ * @param descriptor The descriptor.
+ * @param obj The managed object.
+ * @param ptr The pointer to the storage zone that will contain the native object.
+ * @param native TRUE if the storage zone has the native type width (direct access)
* or FALSE if the zone is at least the size of pointer storage (as FFI requires it).
*
- * \remark This function does not allocate the storage zone. It is up to the caller to allocate it and free it.
+ * @remark This function does not allocate the storage zone. It is up to the caller to allocate it and free it.
*/
static void __marshal_to_native_for_System_Int16(MonobjcTypeDescriptor *descriptor, MonoObject *obj, void *ptr, boolean_t native) {
//LOG_DEBUG(MONOBJC_DOMAIN_MARSHALLING, "__marshal_to_native_for_System_Int16()");
@@ -94,9 +100,9 @@ static void __marshal_to_native_for_System_Int16(MonobjcTypeDescriptor *descript
*(int16_t *)ptr = value;
}
-/*!
- * \brief Free the previously allocated storage zone.
- * \param ptr The pointer to the storage zone.
+/**
+ * @brief Free the previously allocated storage zone.
+ * @param ptr The pointer to the storage zone.
*/
static void __free_native_storage_for_System_Int16(void *ptr) {
//LOG_DEBUG(MONOBJC_DOMAIN_MARSHALLING, "__free_native_storage_for_System_Int16(%p)", ptr);
88 native/Monobjc/sources/descriptors/descriptor-System.Int32.mm
View
@@ -1,37 +1,43 @@
-//
+//
// This file is part of Monobjc, a .NET/Objective-C bridge
-// Copyright (C) 2007-2012 - Laurent Etiemble
-//
-// Monobjc is free software: you can redistribute it and/or modify
-// it under the terms of the GNU Lesser General Public License as published
-// by the Free Software Foundation, either version 3 of the License, or
-// any later version.
-//
-// Monobjc is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-//
-// You should have received a copy of the GNU Lesser General Public License
-// along with Monobjc. If not, see <http://www.gnu.org/licenses/>.
-//
-/*!
+// Copyright (C) 2007-2013 - Laurent Etiemble
+//
+// 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.
+//
+
+/**
* \file descriptor-System.Int32.mm
- * \brief Contains the descriptor code to handle the System.Int32 type.
+ * @brief Contains the descriptor code to handle the System.Int32 type.
* \author Laurent Etiemble
* \date 2009-2010
*/
#include "logging.h"
#include "marshal.h"
-/*!
- * \brief Allocates a storage zone large enough to hold a marshalled System.Int32.
- * \param descriptor The descriptor.
- * \param native TRUE if the storage zone has the native type width (direct access)
+/**
+ * @brief Allocates a storage zone large enough to hold a marshalled System.Int32.
+ * @param descriptor The descriptor.
+ * @param native TRUE if the storage zone has the native type width (direct access)
* or FALSE if the zone is at least the size of pointer storage (as FFI requires it).
- * \return A pointer to the allocated storage.
+ * @return A pointer to the allocated storage.
*
- * \remark The storage zone is at least the size of pointer storage, due to libffi requirement.
+ * @remark The storage zone is at least the size of pointer storage, due to libffi requirement.
*/
static void *__alloc_native_storage_for_System_Int32(MonobjcTypeDescriptor *descriptor, boolean_t native) {
//LOG_DEBUG(MONOBJC_DOMAIN_MARSHALLING, "__alloc_native_storage_for_System_Int32()");
@@ -41,15 +47,15 @@
return ptr;
}
-/*!
- * \brief Marshal a native value into a System.Int32 object.
- * \param descriptor The descriptor.
- * \param ptr The pointer to the storage zone that contains the native object.
- * \param native TRUE if the storage zone has the native type width (direct access)
+/**
+ * @brief Marshal a native value into a System.Int32 object.
+ * @param descriptor The descriptor.
+ * @param ptr The pointer to the storage zone that contains the native object.
+ * @param native TRUE if the storage zone has the native type width (direct access)
* or FALSE if the zone is at least the size of pointer storage (as FFI requires it).
- * \return A fully initialized System.Int32 object.
+ * @return A fully initialized System.Int32 object.
*
- * \remark This function only use the storage zone. It is up to the caller to free it.
+ * @remark This function only use the storage zone. It is up to the caller to free it.
* Due to libffi requirement, the storage zone used is at least the size of pointer storage.
* This mean that smaller types are promoted before being boxed.
*/
@@ -61,15 +67,15 @@
return obj;
}
-/*!
- * \brief Marshal a System.Int32 object to its native value.
- * \param descriptor The descriptor.
- * \param obj The managed object.
- * \param ptr The pointer to the storage zone that will contain the native object.
- * \param native TRUE if the storage zone has the native type width (direct access)
+/**
+ * @brief Marshal a System.Int32 object to its native value.
+ * @param descriptor The descriptor.
+ * @param obj The managed object.
+ * @param ptr The pointer to the storage zone that will contain the native object.
+ * @param native TRUE if the storage zone has the native type width (direct access)
* or FALSE if the zone is at least the size of pointer storage (as FFI requires it).
*
- * \remark This function does not allocate the storage zone. It is up to the caller to allocate it and free it.
+ * @remark This function does not allocate the storage zone. It is up to the caller to allocate it and free it.
*/
static void __marshal_to_native_for_System_Int32(MonobjcTypeDescriptor *descriptor, MonoObject *obj, void *ptr, boolean_t native) {
//LOG_DEBUG(MONOBJC_DOMAIN_MARSHALLING, "__marshal_to_native_for_System_Int32()");
@@ -79,9 +85,9 @@ static void __marshal_to_native_for_System_Int32(MonobjcTypeDescriptor *descript
*(int32_t *)ptr = value;
}
-/*!
- * \brief Free the previously allocated storage zone.
- * \param ptr The pointer to the storage zone.
+/**
+ * @brief Free the previously allocated storage zone.
+ * @param ptr The pointer to the storage zone.
*/
static void __free_native_storage_for_System_Int32(void *ptr) {
//LOG_DEBUG(MONOBJC_DOMAIN_MARSHALLING, "__free_native_storage_for_System_Int32(%p)", ptr);
88 native/Monobjc/sources/descriptors/descriptor-System.Int64.mm
View
@@ -1,37 +1,43 @@
-//
+//
// This file is part of Monobjc, a .NET/Objective-C bridge
-// Copyright (C) 2007-2012 - Laurent Etiemble
-//
-// Monobjc is free software: you can redistribute it and/or modify
-// it under the terms of the GNU Lesser General Public License as published
-// by the Free Software Foundation, either version 3 of the License, or
-// any later version.
-//
-// Monobjc is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-//
-// You should have received a copy of the GNU Lesser General Public License
-// along with Monobjc. If not, see <http://www.gnu.org/licenses/>.
-//
-/*!
+// Copyright (C) 2007-2013 - Laurent Etiemble
+//
+// 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.
+//
+
+/**
* \file descriptor-System.Int64.mm
- * \brief Contains the descriptor code to handle the System.Int64 type.
+ * @brief Contains the descriptor code to handle the System.Int64 type.
* \author Laurent Etiemble
* \date 2009-2010
*/
#include "logging.h"
#include "marshal.h"
-/*!
- * \brief Allocates a storage zone large enough to hold a marshalled System.Int64.
- * \param descriptor The descriptor.
- * \param native TRUE if the storage zone has the native type width (direct access)
+/**
+ * @brief Allocates a storage zone large enough to hold a marshalled System.Int64.
+ * @param descriptor The descriptor.
+ * @param native TRUE if the storage zone has the native type width (direct access)
* or FALSE if the zone is at least the size of pointer storage (as FFI requires it).
- * \return A pointer to the allocated storage.
+ * @return A pointer to the allocated storage.
*
- * \remark The storage zone is at least the size of pointer storage, due to libffi requirement.
+ * @remark The storage zone is at least the size of pointer storage, due to libffi requirement.
*/
static void *__alloc_native_storage_for_System_Int64(MonobjcTypeDescriptor *descriptor, boolean_t native) {
//LOG_DEBUG(MONOBJC_DOMAIN_MARSHALLING, "__alloc_native_storage_for_System_Int64()");
@@ -41,15 +47,15 @@
return ptr;
}
-/*!
- * \brief Marshal a native value into a System.Int64 object.
- * \param descriptor The descriptor.
- * \param ptr The pointer to the storage zone that contains the native object.
- * \param native TRUE if the storage zone has the native type width (direct access)
+/**
+ * @brief Marshal a native value into a System.Int64 object.
+ * @param descriptor The descriptor.
+ * @param ptr The pointer to the storage zone that contains the native object.
+ * @param native TRUE if the storage zone has the native type width (direct access)
* or FALSE if the zone is at least the size of pointer storage (as FFI requires it).
- * \return A fully initialized System.Int64 object.
+ * @return A fully initialized System.Int64 object.
*
- * \remark This function only use the storage zone. It is up to the caller to free it.
+ * @remark This function only use the storage zone. It is up to the caller to free it.
* Due to libffi requirement, the storage zone used is at least the size of pointer storage.
* This mean that smaller types are promoted before being boxed.
*/
@@ -61,15 +67,15 @@
return obj;
}
-/*!
- * \brief Marshal a System.Int64 object to its native value.
- * \param descriptor The descriptor.
- * \param obj The managed object.
- * \param ptr The pointer to the storage zone that will contain the native object.
- * \param native TRUE if the storage zone has the native type width (direct access)
+/**
+ * @brief Marshal a System.Int64 object to its native value.
+ * @param descriptor The descriptor.
+ * @param obj The managed object.
+ * @param ptr The pointer to the storage zone that will contain the native object.
+ * @param native TRUE if the storage zone has the native type width (direct access)
* or FALSE if the zone is at least the size of pointer storage (as FFI requires it).
*
- * \remark This function does not allocate the storage zone. It is up to the caller to allocate it and free it.
+ * @remark This function does not allocate the storage zone. It is up to the caller to allocate it and free it.
*/
static void __marshal_to_native_for_System_Int64(MonobjcTypeDescriptor *descriptor, MonoObject *obj, void *ptr, boolean_t native) {
//LOG_DEBUG(MONOBJC_DOMAIN_MARSHALLING, "__marshal_to_native_for_System_Int64()");
@@ -79,9 +85,9 @@ static void __marshal_to_native_for_System_Int64(MonobjcTypeDescriptor *descript
*(int64_t *)ptr = value;
}
-/*!
- * \brief Free the previously allocated storage zone.
- * \param ptr The pointer to the storage zone.
+/**
+ * @brief Free the previously allocated storage zone.
+ * @param ptr The pointer to the storage zone.
*/
static void __free_native_storage_for_System_Int64(void *ptr) {
//LOG_DEBUG(MONOBJC_DOMAIN_MARSHALLING, "__free_native_storage_for_System_Int64(%p)", ptr);
88 native/Monobjc/sources/descriptors/descriptor-System.IntPtr.mm
View
@@ -1,37 +1,43 @@
-//
+//
// This file is part of Monobjc, a .NET/Objective-C bridge
-// Copyright (C) 2007-2012 - Laurent Etiemble
-//
-// Monobjc is free software: you can redistribute it and/or modify
-// it under the terms of the GNU Lesser General Public License as published
-// by the Free Software Foundation, either version 3 of the License, or
-// any later version.
-//
-// Monobjc is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-//
-// You should have received a copy of the GNU Lesser General Public License
-// along with Monobjc. If not, see <http://www.gnu.org/licenses/>.
-//
-/*!
+// Copyright (C) 2007-2013 - Laurent Etiemble
+//
+// 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.
+//
+
+/**
* \file descriptor-System.IntPtr.mm
- * \brief Contains the descriptor code to handle the System.IntPtr type.
+ * @brief Contains the descriptor code to handle the System.IntPtr type.
* \author Laurent Etiemble
* \date 2009-2010
*/
#include "logging.h"
#include "marshal.h"
-/*!
- * \brief Allocates a storage zone large enough to hold a marshalled System.IntPtr.
- * \param descriptor The descriptor.
- * \param native TRUE if the storage zone has the native type width (direct access)
+/**
+ * @brief Allocates a storage zone large enough to hold a marshalled System.IntPtr.
+ * @param descriptor The descriptor.
+ * @param native TRUE if the storage zone has the native type width (direct access)
* or FALSE if the zone is at least the size of pointer storage (as FFI requires it).
- * \return A pointer to the allocated storage.
+ * @return A pointer to the allocated storage.
*
- * \remark The storage zone is at least the size of pointer storage, due to libffi requirement.
+ * @remark The storage zone is at least the size of pointer storage, due to libffi requirement.
*/
static void *__alloc_native_storage_for_System_IntPtr(MonobjcTypeDescriptor *descriptor, boolean_t native) {
//LOG_DEBUG(MONOBJC_DOMAIN_MARSHALLING, "__alloc_native_storage_for_System_IntPtr()");
@@ -41,15 +47,15 @@
return ptr;
}
-/*!
- * \brief Marshal a native value into a System.IntPtr object.
- * \param descriptor The descriptor.
- * \param ptr The pointer to the storage zone that contains the native object.
- * \param native TRUE if the storage zone has the native type width (direct access)
+/**
+ * @brief Marshal a native value into a System.IntPtr object.
+ * @param descriptor The descriptor.
+ * @param ptr The pointer to the storage zone that contains the native object.
+ * @param native TRUE if the storage zone has the native type width (direct access)
* or FALSE if the zone is at least the size of pointer storage (as FFI requires it).
- * \return A fully initialized System.IntPtr object.
+ * @return A fully initialized System.IntPtr object.
*
- * \remark This function only use the storage zone. It is up to the caller to free it.
+ * @remark This function only use the storage zone. It is up to the caller to free it.
* Due to libffi requirement, the storage zone used is at least the size of pointer storage.
* This mean that smaller types are promoted before being boxed.
*/
@@ -61,15 +67,15 @@
return obj;
}
-/*!
- * \brief Marshal a System.IntPtr object to its native value.
- * \param descriptor The descriptor.
- * \param obj The managed object.
- * \param ptr The pointer to the storage zone that will contain the native object.
- * \param native TRUE if the storage zone has the native type width (direct access)
+/**
+ * @brief Marshal a System.IntPtr object to its native value.
+ * @param descriptor The descriptor.
+ * @param obj The managed object.
+ * @param ptr The pointer to the storage zone that will contain the native object.
+ * @param native TRUE if the storage zone has the native type width (direct access)
* or FALSE if the zone is at least the size of pointer storage (as FFI requires it).
*
- * \remark This function does not allocate the storage zone. It is up to the caller to allocate it and free it.
+ * @remark This function does not allocate the storage zone. It is up to the caller to allocate it and free it.
*/
static void __marshal_to_native_for_System_IntPtr(MonobjcTypeDescriptor *descriptor, MonoObject *obj, void *ptr, boolean_t native) {
//LOG_DEBUG(MONOBJC_DOMAIN_MARSHALLING, "__marshal_to_native_for_System_IntPtr()");
@@ -79,9 +85,9 @@ static void __marshal_to_native_for_System_IntPtr(MonobjcTypeDescriptor *descrip
*(void * *)ptr = value;
}
-/*!
- * \brief Free the previously allocated storage zone.
- * \param ptr The pointer to the storage zone.
+/**
+ * @brief Free the previously allocated storage zone.
+ * @param ptr The pointer to the storage zone.
*/
static void __free_native_storage_for_System_IntPtr(void *ptr) {
//LOG_DEBUG(MONOBJC_DOMAIN_MARSHALLING, "__free_native_storage_for_System_IntPtr(%p)", ptr);
88 native/Monobjc/sources/descriptors/descriptor-System.SByte.mm
View
@@ -1,37 +1,43 @@
-//
+//
// This file is part of Monobjc, a .NET/Objective-C bridge
-// Copyright (C) 2007-2012 - Laurent Etiemble
-//
-// Monobjc is free software: you can redistribute it and/or modify
-// it under the terms of the GNU Lesser General Public License as published
-// by the Free Software Foundation, either version 3 of the License, or
-// any later version.
-//
-// Monobjc is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-//
-// You should have received a copy of the GNU Lesser General Public License
-// along with Monobjc. If not, see <http://www.gnu.org/licenses/>.
-//
-/*!
+// Copyright (C) 2007-2013 - Laurent Etiemble
+//
+// 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.
+//
+
+/**
* \file descriptor-System.SByte.mm
- * \brief Contains the descriptor code to handle the System.SByte type.
+ * @brief Contains the descriptor code to handle the System.SByte type.
* \author Laurent Etiemble
* \date 2009-2010
*/
#include "logging.h"
#include "marshal.h"
-/*!
- * \brief Allocates a storage zone large enough to hold a marshalled System.SByte.
- * \param descriptor The descriptor.
- * \param native TRUE if the storage zone has the native type width (direct access)
+/**
+ * @brief Allocates a storage zone large enough to hold a marshalled System.SByte.
+ * @param descriptor The descriptor.
+ * @param native TRUE if the storage zone has the native type width (direct access)
* or FALSE if the zone is at least the size of pointer storage (as FFI requires it).
- * \return A pointer to the allocated storage.
+ * @return A pointer to the allocated storage.
*
- * \remark The storage zone is at least the size of pointer storage, due to libffi requirement.
+ * @remark The storage zone is at least the size of pointer storage, due to libffi requirement.
*/
static void *__alloc_native_storage_for_System_SByte(MonobjcTypeDescriptor *descriptor, boolean_t native) {
//LOG_DEBUG(MONOBJC_DOMAIN_MARSHALLING, "__alloc_native_storage_for_System_SByte()");
@@ -47,15 +53,15 @@
}
}
-/*!
- * \brief Marshal a native value into a System.SByte object.
- * \param descriptor The descriptor.
- * \param ptr The pointer to the storage zone that contains the native object.
- * \param native TRUE if the storage zone has the native type width (direct access)
+/**
+ * @brief Marshal a native value into a System.SByte object.
+ * @param descriptor The descriptor.
+ * @param ptr The pointer to the storage zone that contains the native object.
+ * @param native TRUE if the storage zone has the native type width (direct access)
* or FALSE if the zone is at least the size of pointer storage (as FFI requires it).
- * \return A fully initialized System.SByte object.
+ * @return A fully initialized System.SByte object.
*
- * \remark This function only use the storage zone. It is up to the caller to free it.
+ * @remark This function only use the storage zone. It is up to the caller to free it.
* Due to libffi requirement, the storage zone used is at least the size of pointer storage.
* This mean that smaller types are promoted before being boxed.
*/
@@ -76,15 +82,15 @@
}
}
-/*!
- * \brief Marshal a System.SByte object to its native value.
- * \param descriptor The descriptor.
- * \param obj The managed object.
- * \param ptr The pointer to the storage zone that will contain the native object.
- * \param native TRUE if the storage zone has the native type width (direct access)
+/**
+ * @brief Marshal a System.SByte object to its native value.
+ * @param descriptor The descriptor.
+ * @param obj The managed object.
+ * @param ptr The pointer to the storage zone that will contain the native object.
+ * @param native TRUE if the storage zone has the native type width (direct access)
* or FALSE if the zone is at least the size of pointer storage (as FFI requires it).
*
- * \remark This function does not allocate the storage zone. It is up to the caller to allocate it and free it.
+ * @remark This function does not allocate the storage zone. It is up to the caller to allocate it and free it.
*/
static void __marshal_to_native_for_System_SByte(MonobjcTypeDescriptor *descriptor, MonoObject *obj, void *ptr, boolean_t native) {
//LOG_DEBUG(MONOBJC_DOMAIN_MARSHALLING, "__marshal_to_native_for_System_SByte()");
@@ -94,9 +100,9 @@ static void __marshal_to_native_for_System_SByte(MonobjcTypeDescriptor *descript
*(int8_t *)ptr = value;
}
-/*!
- * \brief Free the previously allocated storage zone.
- * \param ptr The pointer to the storage zone.
+/**
+ * @brief Free the previously allocated storage zone.
+ * @param ptr The pointer to the storage zone.
*/
static void __free_native_storage_for_System_SByte(void *ptr) {
//LOG_DEBUG(MONOBJC_DOMAIN_MARSHALLING, "__free_native_storage_for_System_SByte(%p)", ptr);
40 native/Monobjc/sources/descriptors/descriptor-System.String.mm
View
@@ -1,25 +1,31 @@
-//
+//
// This file is part of Monobjc, a .NET/Objective-C bridge
-// Copyright (C) 2007-2012 - Laurent Etiemble
-//
-// Monobjc is free software: you can redistribute it and/or modify
-// it under the terms of the GNU Lesser General Public License as published
-// by the Free Software Foundation, either version 3 of the License, or
-// any later version.
-//
-// Monobjc is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-//
-// You should have received a copy of the GNU Lesser General Public License
-// along with Monobjc. If not, see <http://www.gnu.org/licenses/>.
-//
+// Copyright (C) 2007-2013 - Laurent Etiemble
+//
+// 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.
+//
+
/**
* @file descriptor-System.String.mm
* @brief Contains the descriptor code to handle the System.String type.
* @author Laurent Etiemble <laurent.etiemble@monobjc.net>
- * @date 2009-2012
+ * @date 2009-2013
*/
#include "logging.h"
#include "marshal.h"
40 native/Monobjc/sources/descriptors/descriptor-System.Struct.mm
View
@@ -1,25 +1,31 @@
-//
+//
// This file is part of Monobjc, a .NET/Objective-C bridge
-// Copyright (C) 2007-2012 - Laurent Etiemble
-//
-// Monobjc is free software: you can redistribute it and/or modify
-// it under the terms of the GNU Lesser General Public License as published
-// by the Free Software Foundation, either version 3 of the License, or
-// any later version.
-//
-// Monobjc is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-//
-// You should have received a copy of the GNU Lesser General Public License
-// along with Monobjc. If not, see <http://www.gnu.org/licenses/>.
-//
+// Copyright (C) 2007-2013 - Laurent Etiemble
+//
+// 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.
+//
+
/**
* @file descriptor-System.Struct.mm
* @brief Contains the descriptor code to handle the System.Struct type.
* @author Laurent Etiemble <laurent.etiemble@monobjc.net>
- * @date 2009-2012
+ * @date 2009-2013
*/
#include "logging.h"
#include "marshal.h"
88 native/Monobjc/sources/descriptors/descriptor-System.UInt16.mm
View
@@ -1,37 +1,43 @@
-//
+//
// This file is part of Monobjc, a .NET/Objective-C bridge
-// Copyright (C) 2007-2012 - Laurent Etiemble
-//
-// Monobjc is free software: you can redistribute it and/or modify
-// it under the terms of the GNU Lesser General Public License as published
-// by the Free Software Foundation, either version 3 of the License, or
-// any later version.
-//
-// Monobjc is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-//
-// You should have received a copy of the GNU Lesser General Public License
-// along with Monobjc. If not, see <http://www.gnu.org/licenses/>.
-//
-/*!
+// Copyright (C) 2007-2013 - Laurent Etiemble
+//
+// 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.
+//
+
+/**
* \file descriptor-System.UInt16.mm
- * \brief Contains the descriptor code to handle the System.UInt16 type.
+ * @brief Contains the descriptor code to handle the System.UInt16 type.
* \author Laurent Etiemble
* \date 2009-2010
*/
#include "logging.h"
#include "marshal.h"
-/*!
- * \brief Allocates a storage zone large enough to hold a marshalled System.UInt16.
- * \param descriptor The descriptor.
- * \param native TRUE if the storage zone has the native type width (direct access)
+/**
+ * @brief Allocates a storage zone large enough to hold a marshalled System.UInt16.
+ * @param descriptor The descriptor.
+ * @param native TRUE if the storage zone has the native type width (direct access)
* or FALSE if the zone is at least the size of pointer storage (as FFI requires it).
- * \return A pointer to the allocated storage.
+ * @return A pointer to the allocated storage.
*
- * \remark The storage zone is at least the size of pointer storage, due to libffi requirement.
+ * @remark The storage zone is at least the size of pointer storage, due to libffi requirement.
*/
static void *__alloc_native_storage_for_System_UInt16(MonobjcTypeDescriptor *descriptor, boolean_t native) {
//LOG_DEBUG(MONOBJC_DOMAIN_MARSHALLING, "__alloc_native_storage_for_System_UInt16()");
@@ -47,15 +53,15 @@
}
}
-/*!
- * \brief Marshal a native value into a System.UInt16 object.
- * \param descriptor The descriptor.
- * \param ptr The pointer to the storage zone that contains the native object.
- * \param native TRUE if the storage zone has the native type width (direct access)
+/**
+ * @brief Marshal a native value into a System.UInt16 object.
+ * @param descriptor The descriptor.
+ * @param ptr The pointer to the storage zone that contains the native object.
+ * @param native TRUE if the storage zone has the native type width (direct access)
* or FALSE if the zone is at least the size of pointer storage (as FFI requires it).
- * \return A fully initialized System.UInt16 object.
+ * @return A fully initialized System.UInt16 object.
*
- * \remark This function only use the storage zone. It is up to the caller to free it.
+ * @remark This function only use the storage zone. It is up to the caller to free it.
* Due to libffi requirement, the storage zone used is at least the size of pointer storage.
* This mean that smaller types are promoted before being boxed.
*/
@@ -76,15 +82,15 @@
}
}
-/*!
- * \brief Marshal a System.UInt16 object to its native value.
- * \param descriptor The descriptor.
- * \param obj The managed object.
- * \param ptr The pointer to the storage zone that will contain the native object.
- * \param native TRUE if the storage zone has the native type width (direct access)
+/**
+ * @brief Marshal a System.UInt16 object to its native value.
+ * @param descriptor The descriptor.
+ * @param obj The managed object.
+ * @param ptr The pointer to the storage zone that will contain the native object.
+ * @param native TRUE if the storage zone has the native type width (direct access)
* or FALSE if the zone is at least the size of pointer storage (as FFI requires it).
*
- * \remark This function does not allocate the storage zone. It is up to the caller to allocate it and free it.
+ * @remark This function does not allocate the storage zone. It is up to the caller to allocate it and free it.
*/
static void __marshal_to_native_for_System_UInt16(MonobjcTypeDescriptor *descriptor, MonoObject *obj, void *ptr, boolean_t native) {
//LOG_DEBUG(MONOBJC_DOMAIN_MARSHALLING, "__marshal_to_native_for_System_UInt16()");
@@ -94,9 +100,9 @@ static void __marshal_to_native_for_System_UInt16(MonobjcTypeDescriptor *descrip
*(uint16_t *)ptr = value;
}
-/*!
- * \brief Free the previously allocated storage zone.
- * \param ptr The pointer to the storage zone.
+/**
+ * @brief Free the previously allocated storage zone.
+ * @param ptr The pointer to the storage zone.
*/
static void __free_native_storage_for_System_UInt16(void *ptr) {
//LOG_DEBUG(MONOBJC_DOMAIN_MARSHALLING, "__free_native_storage_for_System_UInt16(%p)", ptr);
88 native/Monobjc/sources/descriptors/descriptor-System.UInt32.mm
View
@@ -1,37 +1,43 @@
-//
+//
// This file is part of Monobjc, a .NET/Objective-C bridge
-// Copyright (C) 2007-2012 - Laurent Etiemble
-//
-// Monobjc is free software: you can redistribute it and/or modify
-// it under the terms of the GNU Lesser General Public License as published
-// by the Free Software Foundation, either version 3 of the License, or
-// any later version.
-//
-// Monobjc is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-//
-// You should have received a copy of the GNU Lesser General Public License
-// along with Monobjc. If not, see <http://www.gnu.org/licenses/>.
-//
-/*!
+// Copyright (C) 2007-2013 - Laurent Etiemble
+//
+// 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.
+//
+
+/**
* \file descriptor-System.UInt32.mm
- * \brief Contains the descriptor code to handle the System.UInt32 type.
+ * @brief Contains the descriptor code to handle the System.UInt32 type.
* \author Laurent Etiemble
* \date 2009-2010
*/
#include "logging.h"
#include "marshal.h"
-/*!
- * \brief Allocates a storage zone large enough to hold a marshalled System.UInt32.
- * \param descriptor The descriptor.
- * \param native TRUE if the storage zone has the native type width (direct access)
+/**
+ * @brief Allocates a storage zone large enough to hold a marshalled System.UInt32.
+ * @param descriptor The descriptor.
+ * @param native TRUE if the storage zone has the native type width (direct access)
* or FALSE if the zone is at least the size of pointer storage (as FFI requires it).
- * \return A pointer to the allocated storage.
+ * @return A pointer to the allocated storage.
*
- * \remark The storage zone is at least the size of pointer storage, due to libffi requirement.
+ * @remark The storage zone is at least the size of pointer storage, due to libffi requirement.
*/
static void *__alloc_native_storage_for_System_UInt32(MonobjcTypeDescriptor *descriptor, boolean_t native) {
//LOG_DEBUG(MONOBJC_DOMAIN_MARSHALLING, "__alloc_native_storage_for_System_UInt32()");
@@ -41,15 +47,15 @@
return ptr;
}
-/*!
- * \brief Marshal a native value into a System.UInt32 object.
- * \param descriptor The descriptor.
- * \param ptr The pointer to the storage zone that contains the native object.
- * \param native TRUE if the storage zone has the native type width (direct access)
+/**
+ * @brief Marshal a native value into a System.UInt32 object.
+ * @param descriptor The descriptor.
+ * @param ptr The pointer to the storage zone that contains the native object.
+ * @param native TRUE if the storage zone has the native type width (direct access)
* or FALSE if the zone is at least the size of pointer storage (as FFI requires it).
- * \return A fully initialized System.UInt32 object.
+ * @return A fully initialized System.UInt32 object.
*
- * \remark This function only use the storage zone. It is up to the caller to free it.
+ * @remark This function only use the storage zone. It is up to the caller to free it.
* Due to libffi requirement, the storage zone used is at least the size of pointer storage.
* This mean that smaller types are promoted before being boxed.
*/
@@ -61,15 +67,15 @@
return obj;
}
-/*!
- * \brief Marshal a System.UInt32 object to its native value.
- * \param descriptor The descriptor.
- * \param obj The managed object.
- * \param ptr The pointer to the storage zone that will contain the native object.
- * \param native TRUE if the storage zone has the native type width (direct access)
+/**
+ * @brief Marshal a System.UInt32 object to its native value.
+ * @param descriptor The descriptor.
+ * @param obj The managed object.
+ * @param ptr The pointer to the storage zone that will contain the native object.
+ * @param native TRUE if the storage zone has the native type width (direct access)
* or FALSE if the zone is at least the size of pointer storage (as FFI requires it).
*
- * \remark This function does not allocate the storage zone. It is up to the caller to allocate it and free it.
+ * @remark This function does not allocate the storage zone. It is up to the caller to allocate it and free it.
*/
static void __marshal_to_native_for_System_UInt32(MonobjcTypeDescriptor *descriptor, MonoObject *obj, void *ptr, boolean_t native) {
//LOG_DEBUG(MONOBJC_DOMAIN_MARSHALLING, "__marshal_to_native_for_System_UInt32()");
@@ -79,9 +85,9 @@ static void __marshal_to_native_for_System_UInt32(MonobjcTypeDescriptor *descrip
*(uint32_t *)ptr = value;
}
-/*!
- * \brief Free the previously allocated storage zone.
- * \param ptr The pointer to the storage zone.
+/**
+ * @brief Free the previously allocated storage zone.
+ * @param ptr The pointer to the storage zone.
*/
static void __free_native_storage_for_System_UInt32(void *ptr) {
//LOG_DEBUG(MONOBJC_DOMAIN_MARSHALLING, "__free_native_storage_for_System_UInt32(%p)", ptr);
88 native/Monobjc/sources/descriptors/descriptor-System.UInt64.mm
View
@@ -1,37 +1,43 @@
-//
+//
// This file is part of Monobjc, a .NET/Objective-C bridge
-// Copyright (C) 2007-2012 - Laurent Etiemble
-//
-// Monobjc is free software: you can redistribute it and/or modify
-// it under the terms of the GNU Lesser General Public License as published
-// by the Free Software Foundation, either version 3 of the License, or
-// any later version.
-//
-// Monobjc is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-//
-// You should have received a copy of the GNU Lesser General Public License
-// along with Monobjc. If not, see <http://www.gnu.org/licenses/>.
-//
-/*!
+// Copyright (C) 2007-2013 - Laurent Etiemble
+//
+// 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.
+//
+
+/**
* \file descriptor-System.UInt64.mm
- * \brief Contains the descriptor code to handle the System.UInt64 type.
+ * @brief Contains the descriptor code to handle the System.UInt64 type.
* \author Laurent Etiemble
* \date 2009-2010
*/
#include "logging.h"
#include "marshal.h"
-/*!
- * \brief Allocates a storage zone large enough to hold a marshalled System.UInt64.
- * \param descriptor The descriptor.
- * \param native TRUE if the storage zone has the native type width (direct access)
+/**
+ * @brief Allocates a storage zone large enough to hold a marshalled System.UInt64.
+ * @param descriptor The descriptor.
+ * @param native TRUE if the storage zone has the native type width (direct access)
* or FALSE if the zone is at least the size of pointer storage (as FFI requires it).
- * \return A pointer to the allocated storage.
+ * @return A pointer to the allocated storage.
*
- * \remark The storage zone is at least the size of pointer storage, due to libffi requirement.
+ * @remark The storage zone is at least the size of pointer storage, due to libffi requirement.
*/
static void *__alloc_native_storage_for_System_UInt64(MonobjcTypeDescriptor *descriptor, boolean_t native) {
//LOG_DEBUG(MONOBJC_DOMAIN_MARSHALLING, "__alloc_native_storage_for_System_UInt64()");
@@ -41,15 +47,15 @@
return ptr;
}
-/*!
- * \brief Marshal a native value into a System.UInt64 object.
- * \param descriptor The descriptor.
- * \param ptr The pointer to the storage zone that contains the native object.
- * \param native TRUE if the storage zone has the native type width (direct access)
+/**
+ * @brief Marshal a native value into a System.UInt64 object.
+ * @param descriptor The descriptor.
+ * @param ptr The pointer to the storage zone that contains the native object.
+ * @param native TRUE if the storage zone has the native type width (direct access)
* or FALSE if the zone is at least the size of pointer storage (as FFI requires it).
- * \return A fully initialized System.UInt64 object.
+ * @return A fully initialized System.UInt64 object.