Lines Matching defs:notice
1523 { "notice",sizeof( "notice")-1,0},
1606 comment __PARAM__((Notice_t* notice, register Buffer_t* b, register char* s, register int n, int u), (notice, b, s, n, u)) __OTORP__(Notice_t* notice; register Buffer_t* b; register char* s; register int n; int u;){
1612 cc = notice->cc[1];
1617 ((( b)->nxt<( b)->end)?(*( b)->nxt++=( notice->cc[n > 0 ? 0 : 1])):(( notice->cc[n > 0 ? 0 : 1]),(-1)));
1620 ((( b)->nxt<( b)->end)?(*( b)->nxt++=( notice->cc[n > 0 ? 1 : 2])):(( notice->cc[n > 0 ? 1 : 2]),(-1)));
1654 expand __PARAM__((Notice_t* notice, register Buffer_t* b, const Item_t* item), (notice, b, item)) __OTORP__(Notice_t* notice; register Buffer_t* b; const Item_t* item;){
1689 if ((c = lookup(key, x, t - x - 1)) >= 0 && (x = notice->item[c].data))
1691 z = x + notice->item[c].size;
1732 copyright __PARAM__((Notice_t* notice, register Buffer_t* b), (notice, b)) __OTORP__(Notice_t* notice; register Buffer_t* b;){
1738 if (notice->test)
1743 else if (!(t = notice->item[18].data))
1748 if ((x = notice->item[19].data) && sstrncmp( t, x, 4) < 0)
1750 if ((x = notice->item[17].data) && sstrncmp( x, t, 4) < 0)
1752 expand(notice, b, ¬ice->item[17]);
1756 if (notice->item[15].data)
1759 expand(notice, b, ¬ice->item[15]);
1761 if (notice->item[5].data)
1764 expand(notice, b, ¬ice->item[5]);
1765 if (notice->item[8].data)
1768 expand(notice, b, ¬ice->item[8]);
1771 else if (notice->item[2].data)
1774 expand(notice, b, ¬ice->item[2]);
1873 Notice_t notice;
1899 notice.test = 0;
1900 notice.type = 0;
1901 notice.verbose = 0;
1902 notice.ids = 0;
1903 notice.cc[0] = cc1;
1904 notice.cc[1] = cc2;
1905 notice.cc[2] = cc3;
1907 notice.item[i].data = 0;
1908 notice.item[20] = notice.item[1] = lic[notice.type];
1909 notice.item[20].quote = notice.item[1].quote = 0;
2034 for (i = 0; i < notice.ids; i++)
2035 if (n == notice.id[i].name.size && !sstrncmp( x, notice.id[i].name.data, n))
2039 notice.id[i].name.data = x;
2040 notice.id[i].name.size = n;
2041 notice.id[i].name.quote = 0;
2042 notice.id[i].value.data = v;
2043 notice.id[i].value.size = s - v;
2044 notice.id[i].value.quote = quote;
2045 if (notice.ids <= i)
2046 notice.ids = i + 1;
2054 if (notice.item[i].size)
2056 expand(¬ice, &buf, &key[i]);
2059 if (h >= notice.item[i].size)
2064 else if (notice.item[i].data[h] == ' ' || notice.item[i].data[h] == '\t')
2068 expand(¬ice, &buf, ¬ice.item[i]);
2081 expand(¬ice, &buf, &item);
2084 expand(¬ice, &buf, ¬ice.item[h]);
2097 notice.test = 1;
2101 notice.verbose = 1;
2105 notice.type = c;
2112 notice.type = c;
2113 notice.item[1].data = lic[lic[c].quote].data;
2114 notice.item[1].size = lic[lic[c].quote].size;
2115 if (notice.item[20].data != lic[0].data)
2121 notice.item[h].data = (notice.item[h].size = s - v) ? v : (char*)0;
2122 notice.item[h].quote = quote;
2155 if (notice.type == 1 && (!notice.verbose || !notice.item[12].data))
2157 if (notice.type != 4)
2159 if (!notice.type)
2160 notice.type = 12;
2161 comment(¬ice, &buf, ((char*)0), 1, 0);
2162 comment(¬ice, &buf, ((char*)0), 0, 0);
2163 if (notice.item[14].data)
2166 expand(¬ice, &tmp, ¬ice.item[14]);
2168 comment(¬ice, &buf, (( &tmp)->buf), (( &tmp)->siz=( &tmp)->nxt-( &tmp)->buf,( &tmp)->nxt=( &tmp)->buf,( &tmp)->siz), 0);
2170 if (notice.type >= 5)
2172 copyright(¬ice, &tmp);
2173 comment(¬ice, &buf, (( &tmp)->buf), (( &tmp)->siz=( &tmp)->nxt-( &tmp)->buf,( &tmp)->nxt=( &tmp)->buf,( &tmp)->siz), 0);
2174 if (notice.type >= 12)
2175 comment( ¬ice, &buf, "All Rights Reserved",sizeof( "All Rights Reserved")-1, 0);
2177 if (notice.type == 6 || notice.type == 7)
2179 copy(&tmp, notice.item[14].data ? "and": "This software", -1);
2181 comment(¬ice, &buf, (( &tmp)->buf), (( &tmp)->siz=( &tmp)->nxt-( &tmp)->buf,( &tmp)->nxt=( &tmp)->buf,( &tmp)->siz), 0);
2182 if (notice.type == 7)
2186 if (notice.item[23].data)
2189 expand(¬ice, &tmp, ¬ice.item[23]);
2191 comment(¬ice, &buf, (( &tmp)->buf), (( &tmp)->siz=( &tmp)->nxt-( &tmp)->buf,( &tmp)->nxt=( &tmp)->buf,( &tmp)->siz), 0);
2192 if (notice.item[5].data || notice.item[2].data)
2195 if (notice.item[15].data)
2197 expand(¬ice, &tmp, ¬ice.item[15]);
2200 if (notice.item[5].data)
2202 expand(¬ice, &tmp, ¬ice.item[5]);
2203 if (notice.item[8].data)
2206 expand(¬ice, &tmp, ¬ice.item[8]);
2209 else if (notice.item[2].data)
2210 expand(¬ice, &tmp, ¬ice.item[2]);
2211 comment(¬ice, &buf, (( &tmp)->buf), (( &tmp)->siz=( &tmp)->nxt-( &tmp)->buf,( &tmp)->nxt=( &tmp)->buf,( &tmp)->siz), 0);
2213 comment(¬ice, &buf, ((char*)0), 0, 0);
2214 comment( ¬ice, &buf, "A copy of the License is available at",sizeof( "A copy of the License is available at")-1, 0);
2215 if (notice.item[21].data)
2217 expand(¬ice, &tmp, ¬ice.item[21]);
2218 comment(¬ice, &buf, (( &tmp)->buf), (( &tmp)->siz=( &tmp)->nxt-( &tmp)->buf,( &tmp)->nxt=( &tmp)->buf,( &tmp)->siz), 0);
2219 if (notice.item[22].data)
2222 expand(¬ice, &tmp, ¬ice.item[22]);
2224 comment(¬ice, &buf, (( &tmp)->buf), (( &tmp)->siz=( &tmp)->nxt-( &tmp)->buf,( &tmp)->nxt=( &tmp)->buf,( &tmp)->siz), 0);
2227 else if (notice.type == 7)
2228 comment( ¬ice, &buf, "http://www.eclipse.org/org/documents/epl-v10.html",sizeof( "http://www.eclipse.org/org/documents/epl-v10.html")-1, 0);
2230 comment( ¬ice, &buf, "http://www.opensource.org/licenses/cpl",sizeof( "http://www.opensource.org/licenses/cpl")-1, 0);
2231 comment(¬ice, &buf, ((char*)0), 0, 0);
2233 else if (notice.type == 5)
2235 copy(&tmp, notice.item[14].data ? "and it": "This software", -1);
2237 comment(¬ice, &buf, (( &tmp)->buf), (( &tmp)->siz=( &tmp)->nxt-( &tmp)->buf,( &tmp)->nxt=( &tmp)->buf,( &tmp)->siz), 0);
2238 if (notice.item[i = 5].data)
2240 if (notice.item[15].data)
2242 expand(¬ice, &tmp, ¬ice.item[i = 15]);
2245 expand(¬ice, &tmp, ¬ice.item[5]);
2246 comment(¬ice, &buf, (( &tmp)->buf), (( &tmp)->siz=( &tmp)->nxt-( &tmp)->buf,( &tmp)->nxt=( &tmp)->buf,( &tmp)->siz), 0);
2248 else if (notice.item[i = 2].data)
2250 if (notice.item[15].data)
2252 expand(¬ice, &tmp, ¬ice.item[i = 15]);
2255 expand(¬ice, &tmp, ¬ice.item[2]);
2256 comment(¬ice, &buf, (( &tmp)->buf), (( &tmp)->siz=( &tmp)->nxt-( &tmp)->buf,( &tmp)->nxt=( &tmp)->buf,( &tmp)->siz), 0);
2260 if (notice.item[21].data)
2262 comment( ¬ice, &buf, "A copy of the Source Code Agreement is available",sizeof( "A copy of the Source Code Agreement is available")-1, 0);
2265 expand(¬ice, &tmp, ¬ice.item[i]);
2267 comment(¬ice, &buf, (( &tmp)->buf), (( &tmp)->siz=( &tmp)->nxt-( &tmp)->buf,( &tmp)->nxt=( &tmp)->buf,( &tmp)->siz), 0);
2268 comment(¬ice, &buf, ((char*)0), 0, 0);
2269 expand(¬ice, &tmp, ¬ice.item[21]);
2270 comment(¬ice, &buf, (( &tmp)->buf), (( &tmp)->siz=( &tmp)->nxt-( &tmp)->buf,( &tmp)->nxt=( &tmp)->buf,( &tmp)->siz), 0);
2271 if (notice.item[22].data)
2274 expand(¬ice, &tmp, ¬ice.item[22]);
2276 comment(¬ice, &buf, (( &tmp)->buf), (( &tmp)->siz=( &tmp)->nxt-( &tmp)->buf,( &tmp)->nxt=( &tmp)->buf,( &tmp)->siz), 0);
2278 comment(¬ice, &buf, ((char*)0), 0, 0);
2280 comment( ¬ice, &buf, "If you have copied or used this software without agreeing",sizeof( "If you have copied or used this software without agreeing")-1, 0);
2281 comment( ¬ice, &buf, "to the terms of the license you are infringing on",sizeof( "to the terms of the license you are infringing on")-1, 0);
2282 comment( ¬ice, &buf, "the license and copyright and are violating",sizeof( "the license and copyright and are violating")-1, 0);
2284 expand(¬ice, &tmp, ¬ice.item[i]);
2287 comment(¬ice, &buf, (( &tmp)->buf), (( &tmp)->siz=( &tmp)->nxt-( &tmp)->buf,( &tmp)->nxt=( &tmp)->buf,( &tmp)->siz), 0);
2291 comment(¬ice, &buf, (( &tmp)->buf), (( &tmp)->siz=( &tmp)->nxt-( &tmp)->buf,( &tmp)->nxt=( &tmp)->buf,( &tmp)->siz), 0);
2292 comment(¬ice, &buf, ((char*)0), 0, 0);
2294 else if (notice.type == 11)
2296 comment(¬ice, &buf, ((char*)0), 0, 0);
2297 comment( ¬ice, &buf, "This is free software; you can redistribute it and/or",sizeof( "This is free software; you can redistribute it and/or")-1, 0);
2298 comment( ¬ice, &buf, "modify it under the terms of the GNU General Public License",sizeof( "modify it under the terms of the GNU General Public License")-1, 0);
2299 comment( ¬ice, &buf, "as published by the Free Software Foundation;",sizeof( "as published by the Free Software Foundation;")-1, 0);
2300 comment( ¬ice, &buf, "either version 2, or (at your option) any later version.",sizeof( "either version 2, or (at your option) any later version.")-1, 0);
2301 comment(¬ice, &buf, ((char*)0), 0, 0);
2302 comment( ¬ice, &buf, "This software is distributed in the hope that it",sizeof( "This software is distributed in the hope that it")-1, 0);
2303 comment( ¬ice, &buf, "will be useful, but WITHOUT ANY WARRANTY;",sizeof( "will be useful, but WITHOUT ANY WARRANTY;")-1, 0);
2304 comment( ¬ice, &buf, "without even the implied warranty of MERCHANTABILITY",sizeof( "without even the implied warranty of MERCHANTABILITY")-1, 0);
2305 comment( ¬ice, &buf, "or FITNESS FOR A PARTICULAR PURPOSE.",sizeof( "or FITNESS FOR A PARTICULAR PURPOSE.")-1, 0);
2306 comment( ¬ice, &buf, "See the GNU General Public License for more details.",sizeof( "See the GNU General Public License for more details.")-1, 0);
2307 comment(¬ice, &buf, ((char*)0), 0, 0);
2308 comment( ¬ice, &buf, "You should have received a copy of the",sizeof( "You should have received a copy of the")-1, 0);
2309 comment( ¬ice, &buf, "GNU General Public License",sizeof( "GNU General Public License")-1, 0);
2310 comment( ¬ice, &buf, "along with this software (see the file COPYING.)",sizeof( "along with this software (see the file COPYING.)")-1, 0);
2311 comment( ¬ice, &buf, "If not, a copy is available at",sizeof( "If not, a copy is available at")-1, 0);
2312 comment( ¬ice, &buf, "http://www.gnu.org/copyleft/gpl.html",sizeof( "http://www.gnu.org/copyleft/gpl.html")-1, 0);
2313 comment(¬ice, &buf, ((char*)0), 0, 0);
2315 else if (notice.type == 8)
2317 comment(¬ice, &buf, ((char*)0), 0, 0);
2318 comment( ¬ice, &buf, "Redistribution and use in source and binary forms, with or",sizeof( "Redistribution and use in source and binary forms, with or")-1, -1);
2319 comment( ¬ice, &buf, "without modification, are permitted provided that the following",sizeof( "without modification, are permitted provided that the following")-1, -1);
2320 comment( ¬ice, &buf, "conditions are met:",sizeof( "conditions are met:")-1, -1);
2321 comment(¬ice, &buf, ((char*)0), 0, 0);
2322 comment( ¬ice, &buf, " 1. Redistributions of source code must retain the above",sizeof( " 1. Redistributions of source code must retain the above")-1, -1);
2323 comment( ¬ice, &buf, " copyright notice, this list of conditions and the",sizeof( " copyright notice, this list of conditions and the")-1, -1);
2324 comment( ¬ice, &buf, " following disclaimer.",sizeof( " following disclaimer.")-1, -1);
2325 comment(¬ice, &buf, ((char*)0), 0, 0);
2326 comment( ¬ice, &buf, " 2. Redistributions in binary form must reproduce the above",sizeof( " 2. Redistributions in binary form must reproduce the above")-1, -1);
2327 comment( ¬ice, &buf, " copyright notice, this list of conditions and the",sizeof( " copyright notice, this list of conditions and the")-1, -1);
2328 comment( ¬ice, &buf, " following disclaimer in the documentation and/or other",sizeof( " following disclaimer in the documentation and/or other")-1, -1);
2329 comment( ¬ice, &buf, " materials provided with the distribution.",sizeof( " materials provided with the distribution.")-1, -1);
2330 comment(¬ice, &buf, ((char*)0), 0, 0);
2332 if (notice.item[i = 15].data || notice.item[i = 5].data || notice.item[i = 2].data)
2333 expand(¬ice, &tmp, ¬ice.item[i]);
2337 comment(¬ice, &buf, (( &tmp)->buf), (( &tmp)->siz=( &tmp)->nxt-( &tmp)->buf,( &tmp)->nxt=( &tmp)->buf,( &tmp)->siz), -1);
2338 comment( ¬ice, &buf, " names of its contributors may be used to endorse or",sizeof( " names of its contributors may be used to endorse or")-1, -1);
2339 comment( ¬ice, &buf, " promote products derived from this software without",sizeof( " promote products derived from this software without")-1, -1);
2340 comment( ¬ice, &buf, " specific prior written permission.",sizeof( " specific prior written permission.")-1, -1);
2341 comment(¬ice, &buf, ((char*)0), 0, 0);
2342 comment( ¬ice, &buf, "THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND",sizeof( "THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND")-1, -1);
2343 comment( ¬ice, &buf, "CONTRIBUTORS \"AS IS\" AND ANY EXPRESS OR IMPLIED WARRANTIES,",sizeof( "CONTRIBUTORS \"AS IS\" AND ANY EXPRESS OR IMPLIED WARRANTIES,")-1, -1);
2344 comment( ¬ice, &buf, "INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF",sizeof( "INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF")-1, -1);
2345 comment( ¬ice, &buf, "MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE",sizeof( "MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE")-1, -1);
2346 comment( ¬ice, &buf, "DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS",sizeof( "DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS")-1, -1);
2347 comment( ¬ice, &buf, "BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,",sizeof( "BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,")-1, -1);
2348 comment( ¬ice, &buf, "EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED",sizeof( "EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED")-1, -1);
2349 comment( ¬ice, &buf, "TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,",sizeof( "TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,")-1, -1);
2350 comment( ¬ice, &buf, "DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON",sizeof( "DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON")-1, -1);
2351 comment( ¬ice, &buf, "ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,",sizeof( "ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,")-1, -1);
2352 comment( ¬ice, &buf, "OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY",sizeof( "OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY")-1, -1);
2353 comment( ¬ice, &buf, "OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE",sizeof( "OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE")-1, -1);
2354 comment( ¬ice, &buf, "POSSIBILITY OF SUCH DAMAGE.",sizeof( "POSSIBILITY OF SUCH DAMAGE.")-1, -1);
2355 comment(¬ice, &buf, ((char*)0), 0, 0);
2357 else if (notice.type == 9)
2359 comment(¬ice, &buf, ((char*)0), 0, 0);
2360 comment( ¬ice, &buf, "This software is provided 'as-is', without any express or implied",sizeof( "This software is provided 'as-is', without any express or implied")-1, -1);
2361 comment( ¬ice, &buf, "warranty. In no event will the authors be held liable for any",sizeof( "warranty. In no event will the authors be held liable for any")-1, -1);
2362 comment( ¬ice, &buf, "damages arising from the use of this software.",sizeof( "damages arising from the use of this software.")-1, -1);
2363 comment(¬ice, &buf, ((char*)0), 0, 0);
2364 comment( ¬ice, &buf, "Permission is granted to anyone to use this software for any",sizeof( "Permission is granted to anyone to use this software for any")-1, -1);
2365 comment( ¬ice, &buf, "purpose, including commercial applications, and to alter it and",sizeof( "purpose, including commercial applications, and to alter it and")-1, -1);
2366 comment( ¬ice, &buf, "redistribute it freely, subject to the following restrictions:",sizeof( "redistribute it freely, subject to the following restrictions:")-1, -1);
2367 comment(¬ice, &buf, ((char*)0), 0, 0);
2368 comment( ¬ice, &buf, " 1. The origin of this software must not be misrepresented;",sizeof( " 1. The origin of this software must not be misrepresented;")-1, -1);
2369 comment( ¬ice, &buf, " you must not claim that you wrote the original software. If",sizeof( " you must not claim that you wrote the original software. If")-1, -1);
2370 comment( ¬ice, &buf, " you use this software in a product, an acknowledgment in the",sizeof( " you use this software in a product, an acknowledgment in the")-1, -1);
2371 comment( ¬ice, &buf, " product documentation would be appreciated but is not",sizeof( " product documentation would be appreciated but is not")-1, -1);
2372 comment( ¬ice, &buf, " required.",sizeof( " required.")-1, -1);
2373 comment(¬ice, &buf, ((char*)0), 0, 0);
2374 comment( ¬ice, &buf, " 2. Altered source versions must be plainly marked as such,",sizeof( " 2. Altered source versions must be plainly marked as such,")-1, -1);
2375 comment( ¬ice, &buf, " and must not be misrepresented as being the original",sizeof( " and must not be misrepresented as being the original")-1, -1);
2376 comment( ¬ice, &buf, " software.",sizeof( " software.")-1, -1);
2377 comment(¬ice, &buf, ((char*)0), 0, 0);
2378 comment( ¬ice, &buf, " 3. This notice may not be removed or altered from any source",sizeof( " 3. This notice may not be removed or altered from any source")-1, -1);
2379 comment( ¬ice, &buf, " distribution.",sizeof( " distribution.")-1, -1);
2380 comment(¬ice, &buf, ((char*)0), 0, 0);
2382 else if (notice.type == 10)
2384 comment(¬ice, &buf, ((char*)0), 0, 0);
2385 comment( ¬ice, &buf, "Permission is hereby granted, free of charge, to any person",sizeof( "Permission is hereby granted, free of charge, to any person")-1, 0);
2386 comment( ¬ice, &buf, "obtaining a copy of this software and associated",sizeof( "obtaining a copy of this software and associated")-1, 0);
2387 comment( ¬ice, &buf, "documentation files (the \"Software\"), to deal in the",sizeof( "documentation files (the \"Software\"), to deal in the")-1, 0);
2388 comment( ¬ice, &buf, "Software without restriction, including without limitation",sizeof( "Software without restriction, including without limitation")-1, 0);
2389 comment( ¬ice, &buf, "the rights to use, copy, modify, merge, publish, distribute,",sizeof( "the rights to use, copy, modify, merge, publish, distribute,")-1, 0);
2390 comment( ¬ice, &buf, "sublicense, and/or sell copies of the Software, and to",sizeof( "sublicense, and/or sell copies of the Software, and to")-1, 0);
2391 comment( ¬ice, &buf, "permit persons to whom the Software is furnished to do so,",sizeof( "permit persons to whom the Software is furnished to do so,")-1, 0);
2392 comment( ¬ice, &buf, "subject to the following conditions:",sizeof( "subject to the following conditions:")-1, 0);
2393 comment(¬ice, &buf, ((char*)0), 0, 0);
2394 comment( ¬ice, &buf, "The above copyright notice and this permission notice shall",sizeof( "The above copyright notice and this permission notice shall")-1, 0);
2395 comment( ¬ice, &buf, "be included in all copies or substantial portions of the",sizeof( "be included in all copies or substantial portions of the")-1, 0);
2396 comment( ¬ice, &buf, "Software.",sizeof( "Software.")-1, 0);
2397 comment(¬ice, &buf, ((char*)0), 0, 0);
2398 comment( ¬ice, &buf, "THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY",sizeof( "THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY")-1, 0);
2399 comment( ¬ice, &buf, "KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE",sizeof( "KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE")-1, 0);
2400 comment( ¬ice, &buf, "WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR",sizeof( "WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR")-1, 0);
2401 comment( ¬ice, &buf, "PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS",sizeof( "PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS")-1, 0);
2402 comment( ¬ice, &buf, "OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR",sizeof( "OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR")-1, 0);
2403 comment( ¬ice, &buf, "OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR",sizeof( "OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR")-1, 0);
2404 comment( ¬ice, &buf, "OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE",sizeof( "OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE")-1, 0);
2405 comment( ¬ice, &buf, "SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.",sizeof( "SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.")-1, 0);
2406 comment(¬ice, &buf, ((char*)0), 0, 0);
2410 if (notice.type == 15)
2412 if (notice.item[i = 15].data || notice.item[i = 5].data || notice.item[i = 2].data)
2414 expand(¬ice, &tmp, ¬ice.item[i]);
2420 comment(¬ice, &buf, (( &tmp)->buf), (( &tmp)->siz=( &tmp)->nxt-( &tmp)->buf,( &tmp)->nxt=( &tmp)->buf,( &tmp)->siz), 1);
2421 comment(¬ice, &buf, ((char*)0), 0, 0);
2422 if (notice.item[21].data)
2427 comment(¬ice, &buf, (( &tmp)->buf), (( &tmp)->siz=( &tmp)->nxt-( &tmp)->buf,( &tmp)->nxt=( &tmp)->buf,( &tmp)->siz), 1);
2428 if (notice.item[15].data)
2430 expand(¬ice, &tmp, ¬ice.item[15]);
2433 if (notice.item[5].data)
2435 expand(¬ice, &tmp, ¬ice.item[5]);
2436 comment(¬ice, &buf, (( &tmp)->buf), (( &tmp)->siz=( &tmp)->nxt-( &tmp)->buf,( &tmp)->nxt=( &tmp)->buf,( &tmp)->siz), 1);
2438 else if (notice.item[2].data)
2440 expand(¬ice, &tmp, ¬ice.item[2]);
2441 comment(¬ice, &buf, (( &tmp)->buf), (( &tmp)->siz=( &tmp)->nxt-( &tmp)->buf,( &tmp)->nxt=( &tmp)->buf,( &tmp)->siz), 1);
2449 comment(¬ice, &buf, (( &tmp)->buf), (( &tmp)->siz=( &tmp)->nxt-( &tmp)->buf,( &tmp)->nxt=( &tmp)->buf,( &tmp)->siz), 1);
2450 if (notice.item[i = 15].data || notice.item[i = 5].data)
2451 expand(¬ice, &tmp, ¬ice.item[i]);
2452 if (notice.item[2].data)
2456 expand(¬ice, &tmp, ¬ice.item[2]);
2459 comment(¬ice, &buf, (( &tmp)->buf), (( &tmp)->siz=( &tmp)->nxt-( &tmp)->buf,( &tmp)->nxt=( &tmp)->buf,( &tmp)->siz), 1);
2460 comment( ¬ice, &buf, "and is not to be disclosed or used except in",sizeof( "and is not to be disclosed or used except in")-1, 1);
2461 comment( ¬ice, &buf, "accordance with applicable agreements",sizeof( "accordance with applicable agreements")-1, 1);
2463 comment(¬ice, &buf, ((char*)0), 0, 0);
2465 else if (notice.type == 13)
2467 comment( ¬ice, &buf, "For nonexclusive individual use",sizeof( "For nonexclusive individual use")-1, 1);
2468 comment(¬ice, &buf, ((char*)0), 0, 0);
2470 else if (notice.type == 14)
2472 comment( ¬ice, &buf, "For noncommercial use",sizeof( "For noncommercial use")-1, 1);
2473 comment(¬ice, &buf, ((char*)0), 0, 0);
2475 if (notice.type >= 15 && !notice.item[21].data)
2477 comment( ¬ice, &buf, "Unpublished & Not for Publication",sizeof( "Unpublished & Not for Publication")-1, 0);
2478 comment(¬ice, &buf, ((char*)0), 0, 0);
2480 if (notice.item[21].data)
2483 if (notice.item[5].data || notice.item[2].data)
2486 if ((notice.item[15].size + (notice.item[5].data ? (notice.item[5].size + notice.item[8].size) : notice.item[2].size)) >= ((70-32) - 6))
2487 comment(¬ice, &buf, (( &tmp)->buf), (( &tmp)->siz=( &tmp)->nxt-( &tmp)->buf,( &tmp)->nxt=( &tmp)->buf,( &tmp)->siz), 0);
2490 if (notice.item[15].data)
2492 expand(¬ice, &tmp, ¬ice.item[15]);
2495 if (notice.item[5].data)
2497 expand(¬ice, &tmp, ¬ice.item[5]);
2498 if (notice.item[8].data)
2501 expand(¬ice, &tmp, ¬ice.item[8]);
2504 else if (notice.item[2].data)
2505 expand(¬ice, &tmp, ¬ice.item[2]);
2507 comment(¬ice, &buf, (( &tmp)->buf), (( &tmp)->siz=( &tmp)->nxt-( &tmp)->buf,( &tmp)->nxt=( &tmp)->buf,( &tmp)->siz), 0);
2508 comment( ¬ice, &buf, "under the terms and conditions of the license in",sizeof( "under the terms and conditions of the license in")-1, 0);
2509 expand(¬ice, &tmp, ¬ice.item[21]);
2510 comment(¬ice, &buf, (( &tmp)->buf), (( &tmp)->siz=( &tmp)->nxt-( &tmp)->buf,( &tmp)->nxt=( &tmp)->buf,( &tmp)->siz), 0);
2511 if (notice.item[22].data)
2514 expand(¬ice, &tmp, ¬ice.item[22]);
2516 comment(¬ice, &buf, (( &tmp)->buf), (( &tmp)->siz=( &tmp)->nxt-( &tmp)->buf,( &tmp)->nxt=( &tmp)->buf,( &tmp)->siz), 0);
2518 comment(¬ice, &buf, ((char*)0), 0, 0);
2520 else if (notice.type == 15)
2522 comment( ¬ice, &buf, "The copyright notice above does not evidence any",sizeof( "The copyright notice above does not evidence any")-1, 0);
2523 comment( ¬ice, &buf, "actual or intended publication of such source code",sizeof( "actual or intended publication of such source code")-1, 0);
2524 comment(¬ice, &buf, ((char*)0), 0, 0);
2527 if (v = notice.item[12].data)
2529 x = v + notice.item[12].size;
2532 item.quote = notice.item[12].quote;
2544 expand(¬ice, &tmp, &item);
2545 comment(¬ice, &buf, (( &tmp)->buf), (( &tmp)->siz=( &tmp)->nxt-( &tmp)->buf,( &tmp)->nxt=( &tmp)->buf,( &tmp)->siz), h);
2548 comment(¬ice, &buf, ((char*)0), 0, 0);
2550 if (notice.item[13].data)
2552 expand(¬ice, &tmp, ¬ice.item[13]);
2553 comment(¬ice, &buf, (( &tmp)->buf), (( &tmp)->siz=( &tmp)->nxt-( &tmp)->buf,( &tmp)->nxt=( &tmp)->buf,( &tmp)->siz), 0);
2554 if (notice.item[i = 15].data || notice.item[i = 5].data)
2555 expand(¬ice, &tmp, ¬ice.item[i]);
2556 if (notice.item[2].data)
2560 expand(¬ice, &tmp, ¬ice.item[2]);
2563 comment(¬ice, &buf, (( &tmp)->buf), (( &tmp)->siz=( &tmp)->nxt-( &tmp)->buf,( &tmp)->nxt=( &tmp)->buf,( &tmp)->siz), 0);
2564 if (notice.item[10].data)
2566 expand(¬ice, &tmp, ¬ice.item[10]);
2567 comment(¬ice, &buf, (( &tmp)->buf), (( &tmp)->siz=( &tmp)->nxt-( &tmp)->buf,( &tmp)->nxt=( &tmp)->buf,( &tmp)->siz), 0);
2569 comment(¬ice, &buf, ((char*)0), 0, 0);
2572 if (v = notice.item[0].data)
2574 x = v + notice.item[0].size;
2576 k = q && notice.type != 4 ? -1 : 0;
2588 item.quote = notice.item[0].quote;
2591 for (i = 0; i < notice.ids; i++)
2592 if (q || item.size == notice.id[i].name.size && !sstrncmp( item.data, notice.id[i].name.data, item.size))
2595 if (notice.type == 4)
2598 expand(¬ice, &buf, ¬ice.id[i].value);
2605 comment( ¬ice, &buf, "CONTRIBUTORS",sizeof( "CONTRIBUTORS")-1, 0);
2606 comment(¬ice, &buf, ((char*)0), 0, 0);
2609 expand(¬ice, &tmp, ¬ice.id[i].value);
2610 comment(¬ice, &buf, (( &tmp)->buf), (( &tmp)->siz=( &tmp)->nxt-( &tmp)->buf,( &tmp)->nxt=( &tmp)->buf,( &tmp)->siz), 0);
2619 if (notice.type == 4)
2622 expand(¬ice, &buf, &item);
2629 comment( ¬ice, &buf, "CONTRIBUTORS",sizeof( "CONTRIBUTORS")-1, 0);
2630 comment(¬ice, &buf, ((char*)0), 0, 0);
2633 expand(¬ice, &tmp, &item);
2634 comment(¬ice, &buf, (( &tmp)->buf), (( &tmp)->siz=( &tmp)->nxt-( &tmp)->buf,( &tmp)->nxt=( &tmp)->buf,( &tmp)->siz), 0);
2639 comment(¬ice, &buf, ((char*)0), 0, 0);
2641 if (notice.type == 4)
2644 copyright(¬ice, &buf);
2646 if (notice.item[21].data)
2649 expand(¬ice, &buf, ¬ice.item[21]);
2655 comment(¬ice, &buf, ((char*)0), -1, 0);
4423 pppopen __PARAM__((char* file, int fd, char* notice, char* options, char* package, char* comment, int flags), (file, fd, notice, options, package, comment, flags)) __OTORP__(char* file; int fd; char* notice; char* options; char* package; char* comment; int flags;){
4496 notice = options = 0;
4521 if (!notice && !options || (comlen = astlicense(com, sizeof(com), ((char*)0), "type=check", proto->cc[0], proto->cc[1], proto->cc[2])) <= 0)
4524 hit = (notice || options) ? 0 : 0x02;
4553 notice = options = 0;
4583 notice = options = 0;
4598 notice = options = 0;
4604 notice = options = 0;
4640 if (notice || options)
4654 if ((comlen = astlicense(proto->op, proto->oz, notice, options, proto->cc[0], proto->cc[1], proto->cc[2])) < 0)
4677 if (notice || options || (flags & ((1<<4)|(1<<5))))
4680 if (notice || options)
4682 if ((comlen = astlicense(proto->op, proto->oz, notice, options, proto->cc[0], proto->cc[1], proto->cc[2])) < 0)
4715 proto->op = strcopy(proto->op, "\n%{\n"+ !notice);
4721 if (n || notice || options)