资源简介
Diff 是 Linux 下用于文件比较的工具,使用起来比较方便,该资源是开发diff工具的源码。
代码片段和文件信息
/* -*- buffer-read-only: t -*- vi: set ro: */
/* DO NOT EDIT! GENERATED AUTOMATICALLY! */
/* argmatch.c -- find a match for a string in an array
Copyright (C) 1990 1998 1999 2001 2002 2003 2004 2005 2006 2007
2009 2010 Free Software Foundation Inc.
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 3 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 see . */
/* Written by David MacKenzie
Modified by Akim Demaille */
#include
/* Specification. */
#include “argmatch.h“
#include
#include
#include
#include
#include “gettext.h“
#define _(msgid) gettext (msgid)
#include “error.h“
#include “quotearg.h“
#include “quote.h“
#if USE_UNLOCKED_IO
# include “unlocked-io.h“
#endif
/* When reporting an invalid argument show nonprinting characters
by using the quoting style ARGMATCH_QUOTING_style. Do not use
literal_quoting_style. */
#ifndef ARGMATCH_QUOTING_style
# define ARGMATCH_QUOTING_style locale_quoting_style
#endif
/* Non failing version of argmatch call this function after failing. */
#ifndef ARGMATCH_DIE
# include “exitfail.h“
# define ARGMATCH_DIE exit (exit_failure)
#endif
#ifdef ARGMATCH_DIE_DECL
ARGMATCH_DIE_DECL;
#endif
static void
__argmatch_die (void)
{
ARGMATCH_DIE;
}
/* Used by XARGMATCH and XARGCASEMATCH. See description in argmatch.h.
Default to __argmatch_die but allow caller to change this at run-time. */
argmatch_exit_fn argmatch_die = __argmatch_die;
/* If ARG is an unambiguous match for an element of the
NULL-terminated array ARGLIST return the index in ARGLIST
of the matched element else -1 if it does not match any element
or -2 if it is ambiguous (is a prefix of more than one element).
If VALLIST is none null use it to resolve ambiguities limited to
synonyms i.e. for
“yes“ “yop“ -> 0
“no“ “nope“ -> 1
“y“ is a valid argument for ‘0‘ and “n“ for ‘1‘. */
ptrdiff_t
argmatch (const char *arg const char *const *arglist
const char *vallist size_t valsize)
{
size_t i; /* Temporary index in ARGLIST. */
size_t arglen; /* Length of ARG. */
ptrdiff_t matchind = -1; /* Index of first nonexact match. */
bool ambiguous = false; /* If true multiple nonexact match(es). */
arglen = strlen (arg);
/* Test all elements for either exact match or abbreviated matches. */
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 5782 2010-04-15 20:58 diffutils-3.0\diffutils-3.0\configure.ac
文件 5711 2010-04-16 03:53 diffutils-3.0\diffutils-3.0\man\diff.1
文件 1247 2010-04-15 20:58 diffutils-3.0\diffutils-3.0\man\Makefile.am
文件 39050 2010-05-04 00:43 diffutils-3.0\diffutils-3.0\man\Makefile.in
文件 2090 2010-04-15 21:52 diffutils-3.0\diffutils-3.0\man\cmp.1
文件 2198 2010-04-15 21:52 diffutils-3.0\diffutils-3.0\man\diff3.1
文件 2645 2010-04-15 21:52 diffutils-3.0\diffutils-3.0\man\sdiff.1
文件 3055 2010-04-15 20:58 diffutils-3.0\diffutils-3.0\exgettext
文件 11623 2010-05-04 00:49 diffutils-3.0\diffutils-3.0\NEWS
文件 15584 2010-04-15 21:40 diffutils-3.0\diffutils-3.0\INSTALL
文件 1624 2010-04-15 20:58 diffutils-3.0\diffutils-3.0\tests\function-line-vs-leading-space
文件 0 2010-04-15 20:58 diffutils-3.0\diffutils-3.0\tests\t-local.sh
文件 1958 2010-04-17 14:15 diffutils-3.0\diffutils-3.0\tests\Makefile.am
文件 379 2010-04-15 20:58 diffutils-3.0\diffutils-3.0\tests\stdin
文件 11179 2010-05-03 14:53 diffutils-3.0\diffutils-3.0\tests\init.sh
文件 1025 2010-04-17 14:18 diffutils-3.0\diffutils-3.0\tests\no-newline-at-eof
文件 467 2010-04-15 20:58 diffutils-3.0\diffutils-3.0\tests\label-vs-func
文件 46547 2010-05-04 00:43 diffutils-3.0\diffutils-3.0\tests\Makefile.in
文件 553 2010-04-15 20:58 diffutils-3.0\diffutils-3.0\tests\basic
文件 369 2010-04-15 20:58 diffutils-3.0\diffutils-3.0\tests\binary
文件 8116 2010-04-15 20:58 diffutils-3.0\diffutils-3.0\tests\help-version
文件 161667 2010-04-15 20:58 diffutils-3.0\diffutils-3.0\ChangeLog-2008
文件 1555 2010-04-15 20:58 diffutils-3.0\diffutils-3.0\Makefile.am
文件 14058 2010-04-16 03:53 diffutils-3.0\diffutils-3.0\src\context.c
文件 27486 2010-04-15 20:58 diffutils-3.0\diffutils-3.0\src\sdiff.c
文件 7872 2010-04-15 20:58 diffutils-3.0\diffutils-3.0\src\dir.c
文件 19739 2010-04-16 03:53 diffutils-3.0\diffutils-3.0\src\util.c
文件 19981 2010-04-15 20:58 diffutils-3.0\diffutils-3.0\src\analyze.c
文件 18999 2010-04-15 20:58 diffutils-3.0\diffutils-3.0\src\cmp.c
文件 1645 2010-04-15 20:58 diffutils-3.0\diffutils-3.0\src\Makefile.am
............此处省略634个文件信息
相关资源
- Geometrical Theory of Diffraction
- Advances In Differential Evolution.pdf
- Elementary Differential Equations and Boundary
- Differential geometry
- Stochastic Differential Equations And Applicat
- An Introduction to Differentiable Manifolds an
- Matrix Differential Calculus With Applications
- diffutils对比软件的安装使用
- Difference of Gaussian DoG
- Matrix Differential Calculus with Applications
- The Algorithmic Foundations of Differential Pr
- Linux下的BT软件源码,包含详细讲解
- 完整清晰的《Partial Differential Equatio
- Scale-space and edge detection using anisotrop
- RunnerHorizonBendingDiffuse By SqueakyOak
- Differential Geometry Connections Curvature an
- Differential equations. An introduction to mod
- 信息安全实习 基于Diffle-Human的密钥交
- 一款可以识别图片相似度的绿色软件
- 有限元 Numerical solution of partial differ
- 偏微分方程数值解法 第3版
- PartialDifferentialEquations+SecondEdition+201
- Differential geometry curves surfaces manifold
- Differential Equations and Linear Algebra 4th
- Differential Equations and Linear Algebra(4t
- Zynamics BinDiff v4.0.1 Incl Keyfilemaker and
- chrome无头版 浏览器配合selenium使用 文
- Stochastic Differential Equations And Applicat
- Git GitExtensions KDiff3
- Diff-FSPM-master.zip
评论
共有 条评论