Lines Matching refs:buf

91 #define BUF(b)			((b)->buf)
92 #define USE(b) ((b)->siz=(b)->nxt-(b)->buf,(b)->nxt=(b)->buf,(b)->siz)
93 #define SIZ(b) ((b)->nxt-(b)->buf)
94 #define END(b) (*((b)->nxt>=(b)->end?((b)->nxt=(b)->end-1):(b)->nxt)=0,(b)->nxt-(b)->buf)
102 char* buf;
398 Buffer_t buf;
401 buf.end = (buf.buf = buf.nxt = p) + size;
402 tmp.end = (tmp.buf = tmp.nxt = tmpbuf) + sizeof(tmpbuf);
407 copy(&buf, file, -1);
408 copy(&buf, ": cannot open", -1);
409 PUT(&buf, 0);
416 copy(&buf, file, -1);
417 copy(&buf, ": cannot read", -1);
418 PUT(&buf, 0);
570 expand(&notice, &buf, &key[i]);
571 PUT(&buf, '=');
581 PUT(&buf, '\'');
582 expand(&notice, &buf, &notice.item[i]);
584 PUT(&buf, '\'');
585 PUT(&buf, '\n');
595 expand(&notice, &buf, &item);
598 expand(&notice, &buf, &notice.item[h]);
599 PUT(&buf, '\n');
601 return END(&buf);
643 copy(&buf, "\"", -1);
644 copy(&buf, file, -1);
645 copy(&buf, "\", line ", -1);
650 copy(&buf, x, -1);
651 copy(&buf, ": ", -1);
653 copy(&buf, "option error: assignment expected", -1);
654 PUT(&buf, 0);
673 comment(&notice, &buf, NiL, 1, 0);
674 comment(&notice, &buf, NiL, 0, 0);
680 comment(&notice, &buf, BUF(&tmp), USE(&tmp), 0);
685 comment(&notice, &buf, BUF(&tmp), USE(&tmp), 0);
687 COMMENT(&notice, &buf, "All Rights Reserved", 0);
693 comment(&notice, &buf, BUF(&tmp), USE(&tmp), 0);
703 comment(&notice, &buf, BUF(&tmp), USE(&tmp), 0);
723 comment(&notice, &buf, BUF(&tmp), USE(&tmp), 0);
725 comment(&notice, &buf, NiL, 0, 0);
726 COMMENT(&notice, &buf, "A copy of the License is available at", 0);
730 comment(&notice, &buf, BUF(&tmp), USE(&tmp), 0);
736 comment(&notice, &buf, BUF(&tmp), USE(&tmp), 0);
740 COMMENT(&notice, &buf, "http://www.eclipse.org/org/documents/epl-v10.html", 0);
742 COMMENT(&notice, &buf, "http://www.opensource.org/licenses/cpl", 0);
743 comment(&notice, &buf, NiL, 0, 0);
749 comment(&notice, &buf, BUF(&tmp), USE(&tmp), 0);
758 comment(&notice, &buf, BUF(&tmp), USE(&tmp), 0);
768 comment(&notice, &buf, BUF(&tmp), USE(&tmp), 0);
774 COMMENT(&notice, &buf, "A copy of the Source Code Agreement is available", 0);
779 comment(&notice, &buf, BUF(&tmp), USE(&tmp), 0);
780 comment(&notice, &buf, NiL, 0, 0);
782 comment(&notice, &buf, BUF(&tmp), USE(&tmp), 0);
788 comment(&notice, &buf, BUF(&tmp), USE(&tmp), 0);
790 comment(&notice, &buf, NiL, 0, 0);
792 COMMENT(&notice, &buf, "If you have copied or used this software without agreeing", 0);
793 COMMENT(&notice, &buf, "to the terms of the license you are infringing on", 0);
794 COMMENT(&notice, &buf, "the license and copyright and are violating", 0);
799 comment(&notice, &buf, BUF(&tmp), USE(&tmp), 0);
803 comment(&notice, &buf, BUF(&tmp), USE(&tmp), 0);
804 comment(&notice, &buf, NiL, 0, 0);
808 comment(&notice, &buf, NiL, 0, 0);
809 COMMENT(&notice, &buf, "This is free software; you can redistribute it and/or", 0);
810 COMMENT(&notice, &buf, "modify it under the terms of the GNU General Public License", 0);
811 COMMENT(&notice, &buf, "as published by the Free Software Foundation;", 0);
812 COMMENT(&notice, &buf, "either version 2, or (at your option) any later version.", 0);
813 comment(&notice, &buf, NiL, 0, 0);
814 COMMENT(&notice, &buf, "This software is distributed in the hope that it", 0);
815 COMMENT(&notice, &buf, "will be useful, but WITHOUT ANY WARRANTY;", 0);
816 COMMENT(&notice, &buf, "without even the implied warranty of MERCHANTABILITY", 0);
817 COMMENT(&notice, &buf, "or FITNESS FOR A PARTICULAR PURPOSE.", 0);
818 COMMENT(&notice, &buf, "See the GNU General Public License for more details.", 0);
819 comment(&notice, &buf, NiL, 0, 0);
820 COMMENT(&notice, &buf, "You should have received a copy of the", 0);
821 COMMENT(&notice, &buf, "GNU General Public License", 0);
822 COMMENT(&notice, &buf, "along with this software (see the file COPYING.)", 0);
823 COMMENT(&notice, &buf, "If not, a copy is available at", 0);
824 COMMENT(&notice, &buf, "http://www.gnu.org/copyleft/gpl.html", 0);
825 comment(&notice, &buf, NiL, 0, 0);
829 comment(&notice, &buf, NiL, 0, 0);
830 COMMENT(&notice, &buf, "Redistribution and use in source and binary forms, with or", -1);
831 COMMENT(&notice, &buf, "without modification, are permitted provided that the following", -1);
832 COMMENT(&notice, &buf, "conditions are met:", -1);
833 comment(&notice, &buf, NiL, 0, 0);
834 COMMENT(&notice, &buf, " 1. Redistributions of source code must retain the above", -1);
835 COMMENT(&notice, &buf, " copyright notice, this list of conditions and the", -1);
836 COMMENT(&notice, &buf, " following disclaimer.", -1);
837 comment(&notice, &buf, NiL, 0, 0);
838 COMMENT(&notice, &buf, " 2. Redistributions in binary form must reproduce the above", -1);
839 COMMENT(&notice, &buf, " copyright notice, this list of conditions and the", -1);
840 COMMENT(&notice, &buf, " following disclaimer in the documentation and/or other", -1);
841 COMMENT(&notice, &buf, " materials provided with the distribution.", -1);
842 comment(&notice, &buf, NiL, 0, 0);
849 comment(&notice, &buf, BUF(&tmp), USE(&tmp), -1);
850 COMMENT(&notice, &buf, " names of its contributors may be used to endorse or", -1);
851 COMMENT(&notice, &buf, " promote products derived from this software without", -1);
852 COMMENT(&notice, &buf, " specific prior written permission.", -1);
853 comment(&notice, &buf, NiL, 0, 0);
854 COMMENT(&notice, &buf, "THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND", -1);
855 COMMENT(&notice, &buf, "CONTRIBUTORS \"AS IS\" AND ANY EXPRESS OR IMPLIED WARRANTIES,", -1);
856 COMMENT(&notice, &buf, "INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF", -1);
857 COMMENT(&notice, &buf, "MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE", -1);
858 COMMENT(&notice, &buf, "DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS", -1);
859 COMMENT(&notice, &buf, "BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,", -1);
860 COMMENT(&notice, &buf, "EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED", -1);
861 COMMENT(&notice, &buf, "TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,", -1);
862 COMMENT(&notice, &buf, "DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON", -1);
863 COMMENT(&notice, &buf, "ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,", -1);
864 COMMENT(&notice, &buf, "OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY", -1);
865 COMMENT(&notice, &buf, "OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE", -1);
866 COMMENT(&notice, &buf, "POSSIBILITY OF SUCH DAMAGE.", -1);
867 comment(&notice, &buf, NiL, 0, 0);
871 comment(&notice, &buf, NiL, 0, 0);
872 COMMENT(&notice, &buf, "This software is provided 'as-is', without any express or implied", -1);
873 COMMENT(&notice, &buf, "warranty. In no event will the authors be held liable for any", -1);
874 COMMENT(&notice, &buf, "damages arising from the use of this software.", -1);
875 comment(&notice, &buf, NiL, 0, 0);
876 COMMENT(&notice, &buf, "Permission is granted to anyone to use this software for any", -1);
877 COMMENT(&notice, &buf, "purpose, including commercial applications, and to alter it and", -1);
878 COMMENT(&notice, &buf, "redistribute it freely, subject to the following restrictions:", -1);
879 comment(&notice, &buf, NiL, 0, 0);
880 COMMENT(&notice, &buf, " 1. The origin of this software must not be misrepresented;", -1);
881 COMMENT(&notice, &buf, " you must not claim that you wrote the original software. If", -1);
882 COMMENT(&notice, &buf, " you use this software in a product, an acknowledgment in the", -1);
883 COMMENT(&notice, &buf, " product documentation would be appreciated but is not", -1);
884 COMMENT(&notice, &buf, " required.", -1);
885 comment(&notice, &buf, NiL, 0, 0);
886 COMMENT(&notice, &buf, " 2. Altered source versions must be plainly marked as such,", -1);
887 COMMENT(&notice, &buf, " and must not be misrepresented as being the original", -1);
888 COMMENT(&notice, &buf, " software.", -1);
889 comment(&notice, &buf, NiL, 0, 0);
890 COMMENT(&notice, &buf, " 3. This notice may not be removed or altered from any source", -1);
891 COMMENT(&notice, &buf, " distribution.", -1);
892 comment(&notice, &buf, NiL, 0, 0);
896 comment(&notice, &buf, NiL, 0, 0);
897 COMMENT(&notice, &buf, "Permission is hereby granted, free of charge, to any person", 0);
898 COMMENT(&notice, &buf, "obtaining a copy of this software and associated", 0);
899 COMMENT(&notice, &buf, "documentation files (the \"Software\"), to deal in the", 0);
900 COMMENT(&notice, &buf, "Software without restriction, including without limitation", 0);
901 COMMENT(&notice, &buf, "the rights to use, copy, modify, merge, publish, distribute,", 0);
902 COMMENT(&notice, &buf, "sublicense, and/or sell copies of the Software, and to", 0);
903 COMMENT(&notice, &buf, "permit persons to whom the Software is furnished to do so,", 0);
904 COMMENT(&notice, &buf, "subject to the following conditions:", 0);
905 comment(&notice, &buf, NiL, 0, 0);
906 COMMENT(&notice, &buf, "The above copyright notice and this permission notice shall", 0);
907 COMMENT(&notice, &buf, "be included in all copies or substantial portions of the", 0);
908 COMMENT(&notice, &buf, "Software.", 0);
909 comment(&notice, &buf, NiL, 0, 0);
910 COMMENT(&notice, &buf, "THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY", 0);
911 COMMENT(&notice, &buf, "KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE", 0);
912 COMMENT(&notice, &buf, "WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR", 0);
913 COMMENT(&notice, &buf, "PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS", 0);
914 COMMENT(&notice, &buf, "OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR", 0);
915 COMMENT(&notice, &buf, "OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR", 0);
916 COMMENT(&notice, &buf, "OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE", 0);
917 COMMENT(&notice, &buf, "SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.", 0);
918 comment(&notice, &buf, NiL, 0, 0);
932 comment(&notice, &buf, BUF(&tmp), USE(&tmp), 1);
933 comment(&notice, &buf, NiL, 0, 0);
939 comment(&notice, &buf, BUF(&tmp), USE(&tmp), 1);
948 comment(&notice, &buf, BUF(&tmp), USE(&tmp), 1);
953 comment(&notice, &buf, BUF(&tmp), USE(&tmp), 1);
961 comment(&notice, &buf, BUF(&tmp), USE(&tmp), 1);
971 comment(&notice, &buf, BUF(&tmp), USE(&tmp), 1);
972 COMMENT(&notice, &buf, "and is not to be disclosed or used except in", 1);
973 COMMENT(&notice, &buf, "accordance with applicable agreements", 1);
975 comment(&notice, &buf, NiL, 0, 0);
979 COMMENT(&notice, &buf, "For nonexclusive individual use", 1);
980 comment(&notice, &buf, NiL, 0, 0);
984 COMMENT(&notice, &buf, "For noncommercial use", 1);
985 comment(&notice, &buf, NiL, 0, 0);
989 COMMENT(&notice, &buf, "Unpublished & Not for Publication", 0);
990 comment(&notice, &buf, NiL, 0, 0);
999 comment(&notice, &buf, BUF(&tmp), USE(&tmp), 0);
1019 comment(&notice, &buf, BUF(&tmp), USE(&tmp), 0);
1020 COMMENT(&notice, &buf, "under the terms and conditions of the license in", 0);
1022 comment(&notice, &buf, BUF(&tmp), USE(&tmp), 0);
1028 comment(&notice, &buf, BUF(&tmp), USE(&tmp), 0);
1030 comment(&notice, &buf, NiL, 0, 0);
1034 COMMENT(&notice, &buf, "The copyright notice above does not evidence any", 0);
1035 COMMENT(&notice, &buf, "actual or intended publication of such source code", 0);
1036 comment(&notice, &buf, NiL, 0, 0);
1057 comment(&notice, &buf, BUF(&tmp), USE(&tmp), h);
1060 comment(&notice, &buf, NiL, 0, 0);
1065 comment(&notice, &buf, BUF(&tmp), USE(&tmp), 0);
1075 comment(&notice, &buf, BUF(&tmp), USE(&tmp), 0);
1079 comment(&notice, &buf, BUF(&tmp), USE(&tmp), 0);
1081 comment(&notice, &buf, NiL, 0, 0);
1109 copy(&buf, "[-author?", -1);
1110 expand(&notice, &buf, &notice.id[i].value);
1111 PUT(&buf, ']');
1117 COMMENT(&notice, &buf, "CONTRIBUTORS", 0);
1118 comment(&notice, &buf, NiL, 0, 0);
1122 comment(&notice, &buf, BUF(&tmp), USE(&tmp), 0);
1133 copy(&buf, "[-author?", -1);
1134 expand(&notice, &buf, &item);
1135 PUT(&buf, ']');
1141 COMMENT(&notice, &buf, "CONTRIBUTORS", 0);
1142 comment(&notice, &buf, NiL, 0, 0);
1146 comment(&notice, &buf, BUF(&tmp), USE(&tmp), 0);
1151 comment(&notice, &buf, NiL, 0, 0);
1155 copy(&buf, "[-copyright?", -1);
1156 copyright(&notice, &buf);
1157 PUT(&buf, ']');
1160 copy(&buf, "[-license?", -1);
1161 expand(&notice, &buf, &notice.item[URL]);
1162 PUT(&buf, ']');
1164 PUT(&buf, '\n');
1167 comment(&notice, &buf, NiL, -1, 0);
1168 return END(&buf);