?? soapcpp2.c.bak
字號(hào):
/* soapcpp2.c Main programThe contents of this file are subject to the Mozilla Public License Version 1.1(the "License"); you may not use this file except in compliance with theLicense. You may obtain a copy of the License athttp://www.cs.fsu.edu/~engelen/gsoapcompilerlicense.htmlSoftware distributed under the License is distributed on an "AS IS" basis,WITHOUT WARRANTY OF ANY KIND, either express or implied. See the Licensefor the specific language governing rights and limitations under the License.The Original Code is ''gSOAP compiler'' consisting of:error2.c, error2.h, init2.c, soapcpp2.c, soapcpp2.h, soapcpp2.l, soapcpp2.y, symbol2.c.The Initial Developer of the Original Code is Robert A. van Engelen.Copyright (C) 2000-2002 Robert A. van Engelen. All Rights Reserved.*/#include "soapcpp2.h"extern int init();extern int yyparse();extern FILE *yyin;int cflag = 0; /* when set, generate files with .c extension */int mflag = 0; /* when set, generate code that requires array/binary classes to explicitly remove malloced array */char *dirpath = ""; /* directory path for generated source files */char *prefix = "soap"; /* file name prefix for generated source files *//*IMPORTANT:The terms and conditions of use of this software do not allow for the removalof the copyright notice from the main program for visual display. Forintegrations with other software, a similar copyright notice must be producedthat is visible to users of the software.*/intmain(int argc, char **argv){ int i, g; char *a; fprintf(stderr, "\n** The gSOAP Stub and Skeleton Compiler for C and C++ "VERSION"\n** Copyright (C) 2001-2002 Robert A. van Engelen, Florida State University\n** This product is provided \"as is\", without any warranty\n\n"); for (i = 1; i < argc; i++) { a = argv[i]; if (*a == '-'#ifdef WIN32 || *a == '/'#endif ) { g = 1; while (g && *++a) switch (*a) { case 'c': cflag = 1; break; case 'm': mflag = 1; break; case 'd': a++; g = 0; if (*a) dirpath = a; else if (argv[++i]) dirpath = argv[i]; else execerror("Option -d requires a directory path"); break; case 'p': a++; g = 0; if (*a) prefix = a; else if (argv[++i]) prefix = argv[i]; else execerror("Option -p requires an output file name prefix"); break; case '?': case 'h': fprintf(stderr, "Usage: soapcpp [-d<path>] [-p<name>] [-c] [-m] [file]\n"); exit(0); default: execerror("Unknown option"); } } else if (!(yyin = fopen(argv[i], "r"))) { sprintf(errbuf, "Cannot open file \"%s\" for reading", argv[i]); execerror(errbuf); } } init(); if (yyparse()) synerror("skipping the remaining part of the file"); errstat(); return 0;}
?? 快捷鍵說(shuō)明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -