1 /* 2 Copyright (c) 2008 KJK::Hyperion 3 4 Permission is hereby granted, free of charge, to any person obtaining a 5 copy of this software and associated documentation files (the "Software"), 6 to deal in the Software without restriction, including without limitation 7 the rights to use, copy, modify, merge, publish, distribute, sublicense, 8 and/or sell copies of the Software, and to permit persons to whom the 9 Software is furnished to do so, subject to the following conditions: 10 11 The above copyright notice and this permission notice shall be included in 12 all copies or substantial portions of the Software. 13 14 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 15 IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 16 FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 17 AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 18 LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 19 FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER 20 DEALINGS IN THE SOFTWARE. 21 */ 22 23 extern 24 int return_arg(int arg) 25 { 26 return arg; 27 } 28 29 extern 30 void no_op(void) 31 { 32 } 33 34 extern 35 int return_zero(void) 36 { 37 return 0; 38 } 39 40 extern 41 int return_positive(void) 42 { 43 return 1234; 44 } 45 46 extern 47 int return_negative(void) 48 { 49 return -1234; 50 } 51 52 extern 53 int return_one(void) 54 { 55 return 1; 56 } 57 58 extern 59 int return_minusone(void) 60 { 61 return -1; 62 } 63 64 extern 65 int return_zero_2(void * p) 66 { 67 return 0; 68 } 69 70 extern 71 int return_positive_2(void * p) 72 { 73 return 1234; 74 } 75 76 extern 77 int return_negative_2(void * p) 78 { 79 return -1234; 80 } 81 82 extern 83 int return_one_2(void * p) 84 { 85 return 1; 86 } 87 88 extern 89 int return_minusone_2(void * p) 90 { 91 return -1; 92 } 93 94 extern 95 int return_zero_3(int n) 96 { 97 return 0; 98 } 99 100 extern 101 int return_positive_3(int n) 102 { 103 return 1234; 104 } 105 106 extern 107 int return_negative_3(int n) 108 { 109 return -1234; 110 } 111 112 extern 113 int return_one_3(int n) 114 { 115 return 1; 116 } 117 118 extern 119 int return_minusone_3(int n) 120 { 121 return -1; 122 } 123 124 extern 125 int return_zero_4(void * p, int n) 126 { 127 return 0; 128 } 129 130 extern 131 int return_positive_4(void * p, int n) 132 { 133 return 1234; 134 } 135 136 extern 137 int return_negative_4(void * p, int n) 138 { 139 return -1234; 140 } 141 142 extern 143 int return_one_4(void * p, int n) 144 { 145 return 1; 146 } 147 148 extern 149 int return_minusone_4(void * p, int n) 150 { 151 return -1; 152 } 153 154 extern 155 void set_positive(int * p) 156 { 157 *p = 1234; 158 } 159 160 /* EOF */ 161