资源简介
可用于c#版的GDAL编译,技术指导请浏览 https://blog.csdn.net/wenming111/article/details/100901088 关于如何使用swig编译c#版的gdal。(文明)
代码片段和文件信息
/*
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++;
}
}
}
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 9594 2017-01-27 23:52 swigwin3\.travis.yml
文件 42429 2017-01-27 23:54 swigwin3\aclocal.m4
文件 1334 2017-01-27 23:52 swigwin3\ANNOUNCE
文件 2756 2017-01-27 23:52 swigwin3\appveyor.yml
文件 586 2017-01-27 23:52 swigwin3\autogen.sh
文件 2400 2017-01-27 23:52 swigwin3\CCache\args.c
文件 183499 2017-01-27 23:55 swigwin3\CCache\ccache-swig.exe
文件 34806 2017-01-27 23:52 swigwin3\CCache\ccache.c
文件 4647 2017-01-27 23:52 swigwin3\CCache\ccache.h
文件 17431 2017-01-27 23:52 swigwin3\CCache\ccache.yo
文件 41 2017-01-27 23:52 swigwin3\CCache\ccache_swig_config.h.in
文件 5161 2017-01-27 23:52 swigwin3\CCache\cleanup.c
文件 3143 2017-01-27 23:54 swigwin3\CCache\config.h.in
文件 150244 2017-01-27 23:54 swigwin3\CCache\configure
文件 2436 2017-01-27 23:52 swigwin3\CCache\configure.ac
文件 17982 2017-01-27 23:52 swigwin3\CCache\COPYING
文件 7423 2017-01-27 23:52 swigwin3\CCache\debian\changelog
文件 2 2017-01-27 23:52 swigwin3\CCache\debian\compat
文件 718 2017-01-27 23:52 swigwin3\CCache\debian\control
文件 1286 2017-01-27 23:52 swigwin3\CCache\debian\copyright
文件 42 2017-01-27 23:52 swigwin3\CCache\debian\dirs
文件 7 2017-01-27 23:52 swigwin3\CCache\debian\docs
文件 37 2017-01-27 23:52 swigwin3\CCache\debian\examples
文件 930 2017-01-27 23:52 swigwin3\CCache\debian\NEWS
文件 2146 2017-01-27 23:52 swigwin3\CCache\debian\patches\01_no_home.diff
文件 30713 2017-01-27 23:52 swigwin3\CCache\debian\patches\02_ccache-compressed.diff
文件 4932 2017-01-27 23:52 swigwin3\CCache\debian\patches\03_long_options.diff
文件 511 2017-01-27 23:52 swigwin3\CCache\debian\patches\04_ignore_profile.diff
文件 1223 2017-01-27 23:52 swigwin3\CCache\debian\patches\05_nfs_fix.diff
文件 2197 2017-01-27 23:52 swigwin3\CCache\debian\patches\06_md.diff
............此处省略5923个文件信息
- 上一篇:C# SQL Server 人事工资管理系统
- 下一篇:吃豆豆c#游戏程序源码
评论
共有 条评论