emit.c (92922) | emit.c (165628) |
---|---|
1/* $NetBSD: emit.c,v 1.2 1995/07/03 21:24:00 cgd Exp $ */ 2 3/* 4 * Copyright (c) 1994, 1995 Jochen Pohl 5 * All Rights Reserved. 6 * 7 * Redistribution and use in source and binary forms, with or without 8 * modification, are permitted provided that the following conditions --- 16 unchanged lines hidden (view full) --- 25 * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, 26 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 27 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 28 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 29 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 30 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 31 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 32 * | 1/* $NetBSD: emit.c,v 1.2 1995/07/03 21:24:00 cgd Exp $ */ 2 3/* 4 * Copyright (c) 1994, 1995 Jochen Pohl 5 * All Rights Reserved. 6 * 7 * Redistribution and use in source and binary forms, with or without 8 * modification, are permitted provided that the following conditions --- 16 unchanged lines hidden (view full) --- 25 * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, 26 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 27 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 28 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 29 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 30 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 31 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 32 * |
33 * $FreeBSD: head/usr.bin/xlint/lint1/emit.c 92922 2002-03-22 01:42:45Z imp $ | 33 * $FreeBSD: head/usr.bin/xlint/lint1/emit.c 165628 2006-12-29 13:08:46Z yar $ |
34 */ 35 36#ifndef lint 37static char rcsid[] = "$NetBSD: emit.c,v 1.2 1995/07/03 21:24:00 cgd Exp $"; 38#endif 39 40#include <stdio.h> 41#include <string.h> --- 171 unchanged lines hidden (view full) --- 213{ 214 if ((ob.o_end - ob.o_nxt) < 3 * sizeof (int)) 215 outxbuf(); 216 ob.o_nxt += sprintf(ob.o_nxt, "%d", i); 217} 218 219/* 220 * write the name of a symbol to the output buffer | 34 */ 35 36#ifndef lint 37static char rcsid[] = "$NetBSD: emit.c,v 1.2 1995/07/03 21:24:00 cgd Exp $"; 38#endif 39 40#include <stdio.h> 41#include <string.h> --- 171 unchanged lines hidden (view full) --- 213{ 214 if ((ob.o_end - ob.o_nxt) < 3 * sizeof (int)) 215 outxbuf(); 216 ob.o_nxt += sprintf(ob.o_nxt, "%d", i); 217} 218 219/* 220 * write the name of a symbol to the output buffer |
221 * the name is preceeded by its length | 221 * the name is preceded by its length |
222 */ 223void 224outname(name) 225 const char *name; 226{ 227 if (name == NULL) 228 errx(1, "internal error: outname() 1"); 229 outint((int)strlen(name)); --- 14 unchanged lines hidden --- | 222 */ 223void 224outname(name) 225 const char *name; 226{ 227 if (name == NULL) 228 errx(1, "internal error: outname() 1"); 229 outint((int)strlen(name)); --- 14 unchanged lines hidden --- |