diff options
Diffstat (limited to 'sunrpc/rpc_scan.c')
-rw-r--r-- | sunrpc/rpc_scan.c | 42 |
1 files changed, 21 insertions, 21 deletions
diff --git a/sunrpc/rpc_scan.c b/sunrpc/rpc_scan.c index e46a1b5f2b..41049b69ca 100644 --- a/sunrpc/rpc_scan.c +++ b/sunrpc/rpc_scan.c @@ -6,23 +6,23 @@ * may copy or modify Sun RPC without charge, but are not authorized * to license or distribute it to anyone else except as part of a product or * program developed by the user. - * + * * SUN RPC IS PROVIDED AS IS WITH NO WARRANTIES OF ANY KIND INCLUDING THE * WARRANTIES OF DESIGN, MERCHANTIBILITY AND FITNESS FOR A PARTICULAR * PURPOSE, OR ARISING FROM A COURSE OF DEALING, USAGE OR TRADE PRACTICE. - * + * * Sun RPC is provided with no support and without any obligation on the * part of Sun Microsystems, Inc. to assist in its use, correction, * modification or enhancement. - * + * * SUN MICROSYSTEMS, INC. SHALL HAVE NO LIABILITY WITH RESPECT TO THE * INFRINGEMENT OF COPYRIGHTS, TRADE SECRETS OR ANY PATENTS BY SUN RPC * OR ANY PART THEREOF. - * + * * In no event will Sun Microsystems, Inc. be liable for any lost revenue * or profits or other special, indirect and consequential damages, even if * Sun has been advised of the possibility of such damages. - * + * * Sun Microsystems, Inc. * 2550 Garcia Avenue * Mountain View, California 94043 @@ -32,8 +32,8 @@ static char sccsid[] = "@(#)rpc_scan.c 1.6 87/06/24 (C) 1987 SMI"; #endif /* - * rpc_scan.c, Scanner for the RPC protocol compiler - * Copyright (C) 1987, Sun Microsystems, Inc. + * rpc_scan.c, Scanner for the RPC protocol compiler + * Copyright (C) 1987, Sun Microsystems, Inc. */ #include <stdio.h> #include <ctype.h> @@ -48,7 +48,7 @@ static int pushed = 0; /* is a token pushed */ static token lasttok; /* last token, if pushed */ /* - * scan expecting 1 given token + * scan expecting 1 given token */ void scan(expect, tokp) @@ -62,7 +62,7 @@ scan(expect, tokp) } /* - * scan expecting 2 given tokens + * scan expecting 2 given tokens */ void scan2(expect1, expect2, tokp) @@ -77,7 +77,7 @@ scan2(expect1, expect2, tokp) } /* - * scan expecting 3 given token + * scan expecting 3 given token */ void scan3(expect1, expect2, expect3, tokp) @@ -95,7 +95,7 @@ scan3(expect1, expect2, expect3, tokp) /* - * scan expecting a constant, possibly symbolic + * scan expecting a constant, possibly symbolic */ void scan_num(tokp) @@ -106,13 +106,13 @@ scan_num(tokp) case TOK_IDENT: break; default: - error("constant or identifier expected"); + error(_("constant or identifier expected")); } } /* - * Peek at the next token + * Peek at the next token */ void peek(tokp) @@ -124,7 +124,7 @@ peek(tokp) /* - * Peek at the next token and scan it if it matches what you expect + * Peek at the next token and scan it if it matches what you expect */ int peekscan(expect, tokp) @@ -142,7 +142,7 @@ peekscan(expect, tokp) /* - * Get the next token, printing out any directive that are encountered. + * Get the next token, printing out any directive that are encountered. */ void get_token(tokp) @@ -168,7 +168,7 @@ get_token(tokp) if (commenting) { break; } else if (cppline(curline)) { - docppline(curline, &linenum, + docppline(curline, &linenum, &infilename); } else if (directive(curline)) { printdirective(curline); @@ -196,7 +196,7 @@ get_token(tokp) } /* - * 'where' is not whitespace, comment or directive Must be a token! + * 'where' is not whitespace, comment or directive Must be a token! */ switch (*where) { case ':': @@ -278,7 +278,7 @@ get_token(tokp) char buf[100]; char *p; - s_print(buf, "illegal character in file: "); + s_print(buf, _("illegal character in file: ")); p = buf + strlen(buf); if (isprint(*where)) { s_print(p, "%c", *where); @@ -316,7 +316,7 @@ findstrconst(str, val) *p++; } while (*p && *p != '"'); if (*p == 0) { - error("unterminated string constant"); + error(_("unterminated string constant")); } p++; size = p - *str; @@ -453,7 +453,7 @@ docppline(line, lineno, fname) line++; } if (*line != '"') { - error("preprocessor error"); + error(_("preprocessor error")); } line++; p = file = alloc(strlen(line) + 1); @@ -461,7 +461,7 @@ docppline(line, lineno, fname) *p++ = *line++; } if (*line == 0) { - error("preprocessor error"); + error(_("preprocessor error")); } *p = 0; if (*file == 0) { |