资源简介
截止2017.8.15最新swigwin压缩包,供windows平台使用swig
代码片段和文件信息
/*
convenient routines for argument list handling
Copyright (C) Andrew Tridgell 2002
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License or
(at your option) any later version.
This program is distributed in the hope that it will be useful
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not write to the Free Software
Foundation Inc. 675 Mass Ave Cambridge MA 02139 USA.
*/
#include “ccache.h“
ARGS *args_init(int init_argc char **init_args)
{
ARGS *args;
int i;
args = (ARGS *)x_malloc(sizeof(ARGS));
args->argc = 0;
args->argv = (char **)x_malloc(sizeof(char *));
args->argv[0] = NULL;
for (i=0;i args_add(args init_args[i]);
}
return args;
}
void args_add(ARGS *args const char *s)
{
args->argv = (char**)x_realloc(args->argv (args->argc + 2) * sizeof(char *));
args->argv[args->argc] = x_strdup(s);
args->argc++;
args->argv[args->argc] = NULL;
}
/* pop the last element off the args list */
void args_pop(ARGS *args int n)
{
while (n--) {
args->argc--;
free(args->argv[args->argc]);
args->argv[args->argc] = NULL;
}
}
/* remove the first element of the argument list */
void args_remove_first(ARGS *args)
{
free(args->argv[0]);
memmove(&args->argv[0]
&args->argv[1]
args->argc * sizeof(args->argv[0]));
args->argc--;
}
/* add an argument into the front of the argument list */
void args_add_prefix(ARGS *args const char *s)
{
args->argv = (char**)x_realloc(args->argv (args->argc + 2) * sizeof(char *));
memmove(&args->argv[1] &args->argv[0]
(args->argc+1) * sizeof(args->argv[0]));
args->argv[0] = x_strdup(s);
args->argc++;
}
/* strip any arguments beginning with the specified prefix */
void args_strip(ARGS *args const char *prefix)
{
int i;
for (i=0; iargc; ) {
if (strncmp(args->argv[i] prefix strlen(prefix)) == 0) {
free(args->argv[i]);
memmove(&args->argv[i]
&args->argv[i+1]
args->argc * sizeof(args->argv[i]));
args->argc--;
} else {
i++;
}
}
}
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
目录 0 2017-07-10 11:30 swigwin-3.0.12\
文件 9594 2017-01-28 07:52 swigwin-3.0.12\.travis.yml
文件 1334 2017-01-28 07:52 swigwin-3.0.12\ANNOUNCE
目录 0 2017-07-10 11:29 swigwin-3.0.12\CCache\
文件 17982 2017-01-28 07:52 swigwin-3.0.12\CCache\COPYING
文件 2825 2017-01-28 07:52 swigwin-3.0.12\CCache\Makefile.in
文件 685 2017-01-28 07:52 swigwin-3.0.12\CCache\README
文件 464 2017-01-28 07:52 swigwin-3.0.12\CCache\README.swig
文件 2400 2017-01-28 07:52 swigwin-3.0.12\CCache\args.c
文件 183499 2017-01-28 07:55 swigwin-3.0.12\CCache\ccache-swig.exe
文件 34806 2017-01-28 07:52 swigwin-3.0.12\CCache\ccache.c
文件 4647 2017-01-28 07:52 swigwin-3.0.12\CCache\ccache.h
文件 17431 2017-01-28 07:52 swigwin-3.0.12\CCache\ccache.yo
文件 41 2017-01-28 07:52 swigwin-3.0.12\CCache\ccache_swig_config.h.in
文件 5161 2017-01-28 07:52 swigwin-3.0.12\CCache\cleanup.c
文件 3143 2017-01-28 07:54 swigwin-3.0.12\CCache\config.h.in
文件 150244 2017-01-28 07:54 swigwin-3.0.12\CCache\configure
文件 2436 2017-01-28 07:52 swigwin-3.0.12\CCache\configure.ac
目录 0 2017-07-10 11:29 swigwin-3.0.12\CCache\debian\
文件 930 2017-01-28 07:52 swigwin-3.0.12\CCache\debian\NEWS
文件 2056 2017-01-28 07:52 swigwin-3.0.12\CCache\debian\README.Debian
文件 7423 2017-01-28 07:52 swigwin-3.0.12\CCache\debian\changelog
文件 2 2017-01-28 07:52 swigwin-3.0.12\CCache\debian\compat
文件 718 2017-01-28 07:52 swigwin-3.0.12\CCache\debian\control
文件 1286 2017-01-28 07:52 swigwin-3.0.12\CCache\debian\copyright
文件 42 2017-01-28 07:52 swigwin-3.0.12\CCache\debian\dirs
文件 7 2017-01-28 07:52 swigwin-3.0.12\CCache\debian\docs
文件 37 2017-01-28 07:52 swigwin-3.0.12\CCache\debian\examples
目录 0 2017-07-10 11:29 swigwin-3.0.12\CCache\debian\patches\
文件 2146 2017-01-28 07:52 swigwin-3.0.12\CCache\debian\patches\01_no_home.diff
文件 30713 2017-01-28 07:52 swigwin-3.0.12\CCache\debian\patches\02_ccache-compressed.diff
............此处省略5919个文件信息
- 上一篇:信息化战争与国防建设
- 下一篇:网易UU加速器v2.9.17绿色破解版.7z
相关资源
- 免费双机热备软件 windows平台 64位
- windows平台下的HDFS文件浏览器
- Xshell3b0281Windows平台下中文版SSH连接工
- Windows平台LabelImgv1.5.1 直接运行工具
- windows平台LabelImg v1.3.3 直接运行工具
- windows平台下socket编程之TCP
- Windows平台下的网络调试助手
- 基于QT的换肤整体解决方案(QSkinst<
- windows平台抓屏源代码
- SVNwindows平台自动备份脚本
- unity讯飞语音识别demowindows平台
- Windows平台西门子PLC仿真软件含modsca
- Windows平台下gflags库(已编译好的)
- mp4v2在windows平台缺失文件
- unity接科大讯飞语音识别Windows平台包
- windows平台curl 64位静态库和动态库
- RawCap,Windows平台抓本地包
- libharu windows平台
评论
共有 条评论