• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /macosx-10.10.1/ksh-23/ksh/src/lib/libast/port/

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