rubyfb 0.5.5 → 0.5.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/ext/Common.c CHANGED
@@ -3,20 +3,20 @@
3
3
  *----------------------------------------------------------------------------*/
4
4
  /**
5
5
  * Copyright � Peter Wood, 2005
6
- *
6
+ *
7
7
  * The contents of this file are subject to the Mozilla Public License Version
8
8
  * 1.1 (the "License"); you may not use this file except in compliance with the
9
- * License. You may obtain a copy of the License at
9
+ * License. You may obtain a copy of the License at
10
10
  *
11
11
  * http://www.mozilla.org/MPL/
12
- *
12
+ *
13
13
  * Software distributed under the License is distributed on an "AS IS" basis,
14
14
  * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for
15
15
  * the specificlanguage governing rights and limitations under the License.
16
- *
16
+ *
17
17
  * The Original Code is the FireRuby extension for the Ruby language.
18
- *
19
- * The Initial Developer of the Original Code is Peter Wood. All Rights
18
+ *
19
+ * The Initial Developer of the Original Code is Peter Wood. All Rights
20
20
  * Reserved.
21
21
  *
22
22
  * @author Peter Wood
@@ -38,17 +38,16 @@
38
38
  * @return Never returns as an exception is always generated.
39
39
  *
40
40
  */
41
- VALUE forbidObjectCopy(VALUE copy, VALUE original)
42
- {
43
- VALUE message = rb_str_new2("Copying of CLASS_NAME objects is forbidden."),
44
- value = rb_funcall(original, rb_intern("class"), 0),
45
- array[2];
41
+ VALUE forbidObjectCopy(VALUE copy, VALUE original) {
42
+ VALUE message = rb_str_new2("Copying of CLASS_NAME objects is forbidden."),
43
+ value = rb_funcall(original, rb_intern("class"), 0),
44
+ array[2];
45
+
46
+ array[0] = rb_str_new2("CLASS_NAME");
47
+ array[1] = rb_funcall(value, rb_intern("name"), 0);
48
+ message = rb_funcall(message, rb_intern("gsub"), 2, array);
49
+
50
+ rb_fireruby_raise(NULL, StringValuePtr(message));
46
51
 
47
- array[0] = rb_str_new2("CLASS_NAME");
48
- array[1] = rb_funcall(value, rb_intern("name"), 0);
49
- message = rb_funcall(message, rb_intern("gsub"), 2, array);
50
-
51
- rb_fireruby_raise(NULL, StringValuePtr(message));
52
-
53
- return(Qnil);
52
+ return(Qnil);
54
53
  }
data/ext/Common.h CHANGED
@@ -3,20 +3,20 @@
3
3
  *----------------------------------------------------------------------------*/
4
4
  /**
5
5
  * Copyright � Peter Wood, 2005
6
- *
6
+ *
7
7
  * The contents of this file are subject to the Mozilla Public License Version
8
8
  * 1.1 (the "License"); you may not use this file except in compliance with the
9
- * License. You may obtain a copy of the License at
9
+ * License. You may obtain a copy of the License at
10
10
  *
11
11
  * http://www.mozilla.org/MPL/
12
- *
12
+ *
13
13
  * Software distributed under the License is distributed on an "AS IS" basis,
14
14
  * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for
15
15
  * the specificlanguage governing rights and limitations under the License.
16
- *
16
+ *
17
17
  * The Original Code is the FireRuby extension for the Ruby language.
18
- *
19
- * The Initial Developer of the Original Code is Peter Wood. All Rights
18
+ *
19
+ * The Initial Developer of the Original Code is Peter Wood. All Rights
20
20
  * Reserved.
21
21
  *
22
22
  * @author Peter Wood
@@ -25,13 +25,13 @@
25
25
  #ifndef FIRERUBY_COMMON_H
26
26
  #define FIRERUBY_COMMON_H
27
27
 
28
- /* Includes. */
28
+ /* Includes. */
29
29
  #ifndef RUBY_H_INCLUDED
30
30
  #include "ruby.h"
31
31
  #define RUBY_H_INCLUDED
32
32
  #endif
33
-
34
- /* Function prototypes. */
35
- VALUE forbidObjectCopy(VALUE, VALUE);
33
+
34
+ /* Function prototypes. */
35
+ VALUE forbidObjectCopy(VALUE, VALUE);
36
36
 
37
37
  #endif /* FIRERUBY_COMMON_H */