parse_error.c
来自「ftam等标准协议服务器和客户端的源代码。」· C语言 代码 · 共 83 行
C
83 行
/* parse_error.c - */#ifndef lintstatic char *rcsid = "$Header: /xtel/isode/isode/dsap/common/RCS/parse_error.c,v 9.0 1992/06/16 12:12:39 isode Rel $";#endif/* * $Header: /xtel/isode/isode/dsap/common/RCS/parse_error.c,v 9.0 1992/06/16 12:12:39 isode Rel $ * * * $Log: parse_error.c,v $ * Revision 9.0 1992/06/16 12:12:39 isode * Release 8.0 * *//* * NOTICE * * Acquisition, use, and distribution of this module and related * materials are subject to the restrictions of a license agreement. * Consult the Preface in the User's Manual for the full terms of * this agreement. * *//* LINTLIBRARY */#include "quipu/util.h"#include "psap.h"int print_parse_errors = TRUE;int parse_status = 0;#ifdef TURBO_DISKchar *parse_entry = NULL;#endifPS opt = NULLPS;int parse_line = 1;extern LLog * log_dsap;parse_error (a,b)char *a, *b;{char buffer [LINESIZE]; parse_status++; if (print_parse_errors) { if (opt == NULLPS) { opt = ps_alloc (std_open); if (std_setup (opt,stderr) != OK) { LLOG (log_dsap,LLOG_EXCEPTIONS,("cant open error (parse)...")); LLOG (log_dsap,LLOG_EXCEPTIONS,(a,b)); return; } }#ifdef TURBO_DISK if ( parse_entry != NULL ) ps_printf(opt, "key (%s): ", parse_entry);#else if (parse_line != 0) ps_printf (opt,"line %d: ",parse_line);#endif ps_printf (opt,a,b); ps_printf (opt,"\n"); } else {#ifdef TURBO_DISK if ( parse_entry != NULL ) { (void) sprintf (buffer,"key (%s): ", parse_entry); (void) strcat (buffer,a); LLOG (log_dsap,LLOG_EXCEPTIONS,(buffer,b));#else if (parse_line != 0) { (void) sprintf (buffer,"line %d: ",parse_line); (void) strcat (buffer,a); LLOG (log_dsap,LLOG_EXCEPTIONS,(buffer,b));#endif } else LLOG (log_dsap,LLOG_EXCEPTIONS,(a,b)); }}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?