Lines Matching refs:buf

104 #define BUF(b)			((b)->buf)
105 #define USE(b) ((b)->siz=(b)->nxt-(b)->buf,(b)->nxt=(b)->buf,(b)->siz)
106 #define SIZ(b) ((b)->nxt-(b)->buf)
107 #define END(b) (*((b)->nxt>=(b)->end?((b)->nxt=(b)->end-1):(b)->nxt)=0,(b)->nxt-(b)->buf)
115 char* buf; member
431 push(Stack_t* sp, char* file, char* parent, char* info, int size, Buffer_t* buf) in push() argument
441 copy(buf, file, -1); in push()
442 copy(buf, ": no space", -1); in push()
443 PUT(buf, 0); in push()
470 copy(buf, file, -1); in push()
471 copy(buf, ": cannot open", -1); in push()
472 PUT(buf, 0); in push()
480 copy(buf, file, -1); in push()
481 copy(buf, ": cannot read", -1); in push()
482 PUT(buf, 0); in push()
521 Buffer_t buf; in astlicense() local
524 buf.end = (buf.buf = buf.nxt = p) + size; in astlicense()
525 tmp.end = (tmp.buf = tmp.nxt = tmpbuf) + sizeof(tmpbuf); in astlicense()
538 if (push(&input[++level], file, 0, data, &info[sizeof(info)] - data, &buf)) in astlicense()
586 …put[0])) || push(&input[level], file, input[level-1].file, data, &info[sizeof(info)] - data, &buf)) in astlicense()
702 expand(&notice, &buf, &key[i]); in astlicense()
703 PUT(&buf, '='); in astlicense()
713 PUT(&buf, '\''); in astlicense()
714 expand(&notice, &buf, &notice.item[i]); in astlicense()
716 PUT(&buf, '\''); in astlicense()
717 PUT(&buf, '\n'); in astlicense()
727 expand(&notice, &buf, &item); in astlicense()
730 expand(&notice, &buf, &notice.item[h]); in astlicense()
731 PUT(&buf, '\n'); in astlicense()
733 return END(&buf); in astlicense()
777 copy(&buf, "\"", -1); in astlicense()
778 copy(&buf, input[level].file, -1); in astlicense()
779 copy(&buf, "\", line ", -1); in astlicense()
784 copy(&buf, x, -1); in astlicense()
785 copy(&buf, ": ", -1); in astlicense()
787 copy(&buf, "option error: assignment expected", -1); in astlicense()
788 PUT(&buf, 0); in astlicense()
807 comment(&notice, &buf, NiL, 1, 0); in astlicense()
808 comment(&notice, &buf, NiL, 0, 0); in astlicense()
814 comment(&notice, &buf, BUF(&tmp), USE(&tmp), 0); in astlicense()
819 comment(&notice, &buf, BUF(&tmp), USE(&tmp), 0); in astlicense()
821 COMMENT(&notice, &buf, "All Rights Reserved", 0); in astlicense()
827 comment(&notice, &buf, BUF(&tmp), USE(&tmp), 0); in astlicense()
837 comment(&notice, &buf, BUF(&tmp), USE(&tmp), 0); in astlicense()
857 comment(&notice, &buf, BUF(&tmp), USE(&tmp), 0); in astlicense()
859 comment(&notice, &buf, NiL, 0, 0); in astlicense()
860 COMMENT(&notice, &buf, "A copy of the License is available at", 0); in astlicense()
864 comment(&notice, &buf, BUF(&tmp), USE(&tmp), 0); in astlicense()
870 comment(&notice, &buf, BUF(&tmp), USE(&tmp), 0); in astlicense()
874 COMMENT(&notice, &buf, "http://www.eclipse.org/org/documents/epl-v10.html", 0); in astlicense()
876 COMMENT(&notice, &buf, "http://www.opensource.org/licenses/cpl", 0); in astlicense()
877 comment(&notice, &buf, NiL, 0, 0); in astlicense()
883 comment(&notice, &buf, BUF(&tmp), USE(&tmp), 0); in astlicense()
892 comment(&notice, &buf, BUF(&tmp), USE(&tmp), 0); in astlicense()
902 comment(&notice, &buf, BUF(&tmp), USE(&tmp), 0); in astlicense()
908 COMMENT(&notice, &buf, "A copy of the Source Code Agreement is available", 0); in astlicense()
913 comment(&notice, &buf, BUF(&tmp), USE(&tmp), 0); in astlicense()
914 comment(&notice, &buf, NiL, 0, 0); in astlicense()
916 comment(&notice, &buf, BUF(&tmp), USE(&tmp), 0); in astlicense()
922 comment(&notice, &buf, BUF(&tmp), USE(&tmp), 0); in astlicense()
924 comment(&notice, &buf, NiL, 0, 0); in astlicense()
926 COMMENT(&notice, &buf, "If you have copied or used this software without agreeing", 0); in astlicense()
927 COMMENT(&notice, &buf, "to the terms of the license you are infringing on", 0); in astlicense()
928 COMMENT(&notice, &buf, "the license and copyright and are violating", 0); in astlicense()
933 comment(&notice, &buf, BUF(&tmp), USE(&tmp), 0); in astlicense()
937 comment(&notice, &buf, BUF(&tmp), USE(&tmp), 0); in astlicense()
938 comment(&notice, &buf, NiL, 0, 0); in astlicense()
942 comment(&notice, &buf, NiL, 0, 0); in astlicense()
943 COMMENT(&notice, &buf, "This is free software; you can redistribute it and/or", 0); in astlicense()
944 COMMENT(&notice, &buf, "modify it under the terms of the GNU General Public License", 0); in astlicense()
945 COMMENT(&notice, &buf, "as published by the Free Software Foundation;", 0); in astlicense()
946 COMMENT(&notice, &buf, "either version 2, or (at your option) any later version.", 0); in astlicense()
947 comment(&notice, &buf, NiL, 0, 0); in astlicense()
948 COMMENT(&notice, &buf, "This software is distributed in the hope that it", 0); in astlicense()
949 COMMENT(&notice, &buf, "will be useful, but WITHOUT ANY WARRANTY;", 0); in astlicense()
950 COMMENT(&notice, &buf, "without even the implied warranty of MERCHANTABILITY", 0); in astlicense()
951 COMMENT(&notice, &buf, "or FITNESS FOR A PARTICULAR PURPOSE.", 0); in astlicense()
952 COMMENT(&notice, &buf, "See the GNU General Public License for more details.", 0); in astlicense()
953 comment(&notice, &buf, NiL, 0, 0); in astlicense()
954 COMMENT(&notice, &buf, "You should have received a copy of the", 0); in astlicense()
955 COMMENT(&notice, &buf, "GNU General Public License", 0); in astlicense()
956 COMMENT(&notice, &buf, "along with this software (see the file COPYING.)", 0); in astlicense()
957 COMMENT(&notice, &buf, "If not, a copy is available at", 0); in astlicense()
958 COMMENT(&notice, &buf, "http://www.gnu.org/copyleft/gpl.html", 0); in astlicense()
959 comment(&notice, &buf, NiL, 0, 0); in astlicense()
963 comment(&notice, &buf, NiL, 0, 0); in astlicense()
964 COMMENT(&notice, &buf, "Redistribution and use in source and binary forms, with or", -1); in astlicense()
965 COMMENT(&notice, &buf, "without modification, are permitted provided that the following", -1); in astlicense()
966 COMMENT(&notice, &buf, "conditions are met:", -1); in astlicense()
967 comment(&notice, &buf, NiL, 0, 0); in astlicense()
968 COMMENT(&notice, &buf, " 1. Redistributions of source code must retain the above", -1); in astlicense()
969 COMMENT(&notice, &buf, " copyright notice, this list of conditions and the", -1); in astlicense()
970 COMMENT(&notice, &buf, " following disclaimer.", -1); in astlicense()
971 comment(&notice, &buf, NiL, 0, 0); in astlicense()
972 COMMENT(&notice, &buf, " 2. Redistributions in binary form must reproduce the above", -1); in astlicense()
973 COMMENT(&notice, &buf, " copyright notice, this list of conditions and the", -1); in astlicense()
974 COMMENT(&notice, &buf, " following disclaimer in the documentation and/or other", -1); in astlicense()
975 COMMENT(&notice, &buf, " materials provided with the distribution.", -1); in astlicense()
976 comment(&notice, &buf, NiL, 0, 0); in astlicense()
983 comment(&notice, &buf, BUF(&tmp), USE(&tmp), -1); in astlicense()
984 COMMENT(&notice, &buf, " names of its contributors may be used to endorse or", -1); in astlicense()
985 COMMENT(&notice, &buf, " promote products derived from this software without", -1); in astlicense()
986 COMMENT(&notice, &buf, " specific prior written permission.", -1); in astlicense()
987 comment(&notice, &buf, NiL, 0, 0); in astlicense()
988 COMMENT(&notice, &buf, "THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND", -1); in astlicense()
989 COMMENT(&notice, &buf, "CONTRIBUTORS \"AS IS\" AND ANY EXPRESS OR IMPLIED WARRANTIES,", -1); in astlicense()
990 COMMENT(&notice, &buf, "INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF", -1); in astlicense()
991 COMMENT(&notice, &buf, "MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE", -1); in astlicense()
992 COMMENT(&notice, &buf, "DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS", -1); in astlicense()
993 COMMENT(&notice, &buf, "BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,", -1); in astlicense()
994 COMMENT(&notice, &buf, "EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED", -1); in astlicense()
995 COMMENT(&notice, &buf, "TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,", -1); in astlicense()
996 COMMENT(&notice, &buf, "DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON", -1); in astlicense()
997 COMMENT(&notice, &buf, "ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,", -1); in astlicense()
998 COMMENT(&notice, &buf, "OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY", -1); in astlicense()
999 COMMENT(&notice, &buf, "OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE", -1); in astlicense()
1000 COMMENT(&notice, &buf, "POSSIBILITY OF SUCH DAMAGE.", -1); in astlicense()
1001 comment(&notice, &buf, NiL, 0, 0); in astlicense()
1005 comment(&notice, &buf, NiL, 0, 0); in astlicense()
1006 COMMENT(&notice, &buf, "This software is provided 'as-is', without any express or implied", -1); in astlicense()
1007 COMMENT(&notice, &buf, "warranty. In no event will the authors be held liable for any", -1); in astlicense()
1008 COMMENT(&notice, &buf, "damages arising from the use of this software.", -1); in astlicense()
1009 comment(&notice, &buf, NiL, 0, 0); in astlicense()
1010 COMMENT(&notice, &buf, "Permission is granted to anyone to use this software for any", -1); in astlicense()
1011 COMMENT(&notice, &buf, "purpose, including commercial applications, and to alter it and", -1); in astlicense()
1012 COMMENT(&notice, &buf, "redistribute it freely, subject to the following restrictions:", -1); in astlicense()
1013 comment(&notice, &buf, NiL, 0, 0); in astlicense()
1014 COMMENT(&notice, &buf, " 1. The origin of this software must not be misrepresented;", -1); in astlicense()
1015 COMMENT(&notice, &buf, " you must not claim that you wrote the original software. If", -1); in astlicense()
1016 COMMENT(&notice, &buf, " you use this software in a product, an acknowledgment in the", -1); in astlicense()
1017 COMMENT(&notice, &buf, " product documentation would be appreciated but is not", -1); in astlicense()
1018 COMMENT(&notice, &buf, " required.", -1); in astlicense()
1019 comment(&notice, &buf, NiL, 0, 0); in astlicense()
1020 COMMENT(&notice, &buf, " 2. Altered source versions must be plainly marked as such,", -1); in astlicense()
1021 COMMENT(&notice, &buf, " and must not be misrepresented as being the original", -1); in astlicense()
1022 COMMENT(&notice, &buf, " software.", -1); in astlicense()
1023 comment(&notice, &buf, NiL, 0, 0); in astlicense()
1024 COMMENT(&notice, &buf, " 3. This notice may not be removed or altered from any source", -1); in astlicense()
1025 COMMENT(&notice, &buf, " distribution.", -1); in astlicense()
1026 comment(&notice, &buf, NiL, 0, 0); in astlicense()
1030 comment(&notice, &buf, NiL, 0, 0); in astlicense()
1031 COMMENT(&notice, &buf, "Permission is hereby granted, free of charge, to any person", 0); in astlicense()
1032 COMMENT(&notice, &buf, "obtaining a copy of this software and associated", 0); in astlicense()
1033 COMMENT(&notice, &buf, "documentation files (the \"Software\"), to deal in the", 0); in astlicense()
1034 COMMENT(&notice, &buf, "Software without restriction, including without limitation", 0); in astlicense()
1035 COMMENT(&notice, &buf, "the rights to use, copy, modify, merge, publish, distribute,", 0); in astlicense()
1036 COMMENT(&notice, &buf, "sublicense, and/or sell copies of the Software, and to", 0); in astlicense()
1037 COMMENT(&notice, &buf, "permit persons to whom the Software is furnished to do so,", 0); in astlicense()
1038 COMMENT(&notice, &buf, "subject to the following conditions:", 0); in astlicense()
1039 comment(&notice, &buf, NiL, 0, 0); in astlicense()
1040 COMMENT(&notice, &buf, "The above copyright notice and this permission notice shall", 0); in astlicense()
1041 COMMENT(&notice, &buf, "be included in all copies or substantial portions of the", 0); in astlicense()
1042 COMMENT(&notice, &buf, "Software.", 0); in astlicense()
1043 comment(&notice, &buf, NiL, 0, 0); in astlicense()
1044 COMMENT(&notice, &buf, "THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY", 0); in astlicense()
1045 COMMENT(&notice, &buf, "KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE", 0); in astlicense()
1046 COMMENT(&notice, &buf, "WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR", 0); in astlicense()
1047 COMMENT(&notice, &buf, "PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS", 0); in astlicense()
1048 COMMENT(&notice, &buf, "OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR", 0); in astlicense()
1049 COMMENT(&notice, &buf, "OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR", 0); in astlicense()
1050 COMMENT(&notice, &buf, "OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE", 0); in astlicense()
1051 COMMENT(&notice, &buf, "SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.", 0); in astlicense()
1052 comment(&notice, &buf, NiL, 0, 0); in astlicense()
1066 comment(&notice, &buf, BUF(&tmp), USE(&tmp), 1); in astlicense()
1067 comment(&notice, &buf, NiL, 0, 0); in astlicense()
1073 comment(&notice, &buf, BUF(&tmp), USE(&tmp), 1); in astlicense()
1082 comment(&notice, &buf, BUF(&tmp), USE(&tmp), 1); in astlicense()
1087 comment(&notice, &buf, BUF(&tmp), USE(&tmp), 1); in astlicense()
1095 comment(&notice, &buf, BUF(&tmp), USE(&tmp), 1); in astlicense()
1105 comment(&notice, &buf, BUF(&tmp), USE(&tmp), 1); in astlicense()
1106 COMMENT(&notice, &buf, "and is not to be disclosed or used except in", 1); in astlicense()
1107 COMMENT(&notice, &buf, "accordance with applicable agreements", 1); in astlicense()
1109 comment(&notice, &buf, NiL, 0, 0); in astlicense()
1113 COMMENT(&notice, &buf, "For nonexclusive individual use", 1); in astlicense()
1114 comment(&notice, &buf, NiL, 0, 0); in astlicense()
1118 COMMENT(&notice, &buf, "For noncommercial use", 1); in astlicense()
1119 comment(&notice, &buf, NiL, 0, 0); in astlicense()
1123 COMMENT(&notice, &buf, "Unpublished & Not for Publication", 0); in astlicense()
1124 comment(&notice, &buf, NiL, 0, 0); in astlicense()
1133 comment(&notice, &buf, BUF(&tmp), USE(&tmp), 0); in astlicense()
1153 comment(&notice, &buf, BUF(&tmp), USE(&tmp), 0); in astlicense()
1154 COMMENT(&notice, &buf, "under the terms and conditions of the license in", 0); in astlicense()
1156 comment(&notice, &buf, BUF(&tmp), USE(&tmp), 0); in astlicense()
1162 comment(&notice, &buf, BUF(&tmp), USE(&tmp), 0); in astlicense()
1164 comment(&notice, &buf, NiL, 0, 0); in astlicense()
1168 COMMENT(&notice, &buf, "The copyright notice above does not evidence any", 0); in astlicense()
1169 COMMENT(&notice, &buf, "actual or intended publication of such source code", 0); in astlicense()
1170 comment(&notice, &buf, NiL, 0, 0); in astlicense()
1191 comment(&notice, &buf, BUF(&tmp), USE(&tmp), h); in astlicense()
1194 comment(&notice, &buf, NiL, 0, 0); in astlicense()
1199 comment(&notice, &buf, BUF(&tmp), USE(&tmp), 0); in astlicense()
1209 comment(&notice, &buf, BUF(&tmp), USE(&tmp), 0); in astlicense()
1213 comment(&notice, &buf, BUF(&tmp), USE(&tmp), 0); in astlicense()
1215 comment(&notice, &buf, NiL, 0, 0); in astlicense()
1243 copy(&buf, "[-author?", -1); in astlicense()
1244 expand(&notice, &buf, &notice.id[i].value); in astlicense()
1245 PUT(&buf, ']'); in astlicense()
1251 COMMENT(&notice, &buf, "CONTRIBUTORS", 0); in astlicense()
1252 comment(&notice, &buf, NiL, 0, 0); in astlicense()
1256 comment(&notice, &buf, BUF(&tmp), USE(&tmp), 0); in astlicense()
1267 copy(&buf, "[-author?", -1); in astlicense()
1268 expand(&notice, &buf, &item); in astlicense()
1269 PUT(&buf, ']'); in astlicense()
1275 COMMENT(&notice, &buf, "CONTRIBUTORS", 0); in astlicense()
1276 comment(&notice, &buf, NiL, 0, 0); in astlicense()
1280 comment(&notice, &buf, BUF(&tmp), USE(&tmp), 0); in astlicense()
1285 comment(&notice, &buf, NiL, 0, 0); in astlicense()
1289 copy(&buf, "[-copyright?", -1); in astlicense()
1290 copyright(&notice, &buf); in astlicense()
1291 PUT(&buf, ']'); in astlicense()
1294 copy(&buf, "[-license?", -1); in astlicense()
1295 expand(&notice, &buf, &notice.item[URL]); in astlicense()
1296 PUT(&buf, ']'); in astlicense()
1298 PUT(&buf, '\n'); in astlicense()
1301 comment(&notice, &buf, NiL, -1, 0); in astlicense()
1302 return END(&buf); in astlicense()