#ifndef lint
#endif
/*
* Copyright (c) 2002 Japan Network Information Center. All rights reserved.
*
* By using this file, you agree to the terms and conditions set forth bellow.
*
* LICENSE TERMS AND CONDITIONS
*
* The following License Terms and Conditions apply, unless a different
* license is obtained from Japan Network Information Center ("JPNIC"),
* a Japanese association, Kokusai-Kougyou-Kanda Bldg 6F, 2-3-4 Uchi-Kanda,
* Chiyoda-ku, Tokyo 101-0047, Japan.
*
* 1. Use, Modification and Redistribution (including distribution of any
* under this License Terms and Conditions.
*
* 2. Redistribution of source code must retain the copyright notices as they
* appear in each source code file, this License Terms and Conditions.
*
* 3. Redistribution in binary form must reproduce the Copyright Notice,
* materials provided with the distribution. For the purposes of binary
* distribution the "Copyright Notice" refers to the following language:
* "Copyright (c) 2000-2002 Japan Network Information Center. All rights reserved."
*
* 4. The name of JPNIC may not be used to endorse or promote products
* derived from this Software without specific prior written approval of
* JPNIC.
*
* 5. Disclaimer/Limitation of Liability: THIS SOFTWARE IS PROVIDED BY JPNIC
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
* LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
* PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL JPNIC BE LIABLE
* FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
* SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
* BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
* WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
* OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
* ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
*/
#include <config.h>
#include <stddef.h>
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <ctype.h>
#include <idn/aliaslist.h>
#include <idn/logmacro.h>
struct aliasitem {
};
struct idn__aliaslist {
};
static idn_result_t
static idn_result_t
aliasitem_t *itemp);
#ifdef DEBUG
#endif
TRACE(("idn__aliaslist_create()\n"));
return (idn_nomemory);
}
return (idn_success);
}
void
TRACE(("idn__aliaslist_destroy()\n"));
}
}
}
}
int line_no;
idn_result_t r = idn_success;
return (idn_nofile);
}
unsigned char *p = (unsigned char *)line;
p++;
if (*p == '#' || *p == '\n')
continue;
if (r != idn_success)
break;
} else {
INFO(("idn__aliaslist_aliasfile: file %s has "
"invalid contents at line %d\n",
r = idn_invalid_syntax;
break;
}
}
#ifdef DEBUG
#endif
return (r);
}
int first_item) {
if (first_item) {
} else {
}
}
static idn_result_t
idn_result_t r;
TRACE(("additem_to_top()\n"));
!= idn_success) {
WARNING(("additem_to_top: malloc failed\n"));
return (r);
}
#ifdef DEBUG
#endif
return (idn_success);
}
static idn_result_t
idn_result_t r;
TRACE(("additem_to_bottom()\n"));
if (r != idn_success) {
WARNING(("additem_to_bottom: malloc failed\n"));
return r;
}
} else {
for (;;) {
break;
}
}
}
return (idn_success);
}
TRACE(("idn__aliaslist_find()\n"));
#ifdef DEBUG
#endif
#ifdef DEBUG
DUMP(("current pattern: %s, encoding: %s\n",
#endif
return (idn_success);
}
}
TRACE(("idn__aliaslist_find(): not found\n"));
return (idn_notfound);
}
/*
* Wild card matching function that supports only '*'.
*/
static int
for (;;) {
int c;
switch (c = *pattern++) {
case '\0':
return (*str == '\0');
case '*':
if (*str == '\0')
return (0);
str++;
}
return (1);
break;
default:
if (*str++ != c)
return (0);
break;
}
}
}
/*
* List item creation.
* pattern and encoding must not be NULL.
*/
static idn_result_t
aliasitem_t *itemp) {
return (idn_nomemory);
return (idn_nomemory);
}
return (idn_nomemory);
}
return (idn_success);
}
#ifdef DEBUG
static void
int i;
TRACE(("dump_list()\n"));
TRACE(("list is NULL\n"));
return;
}
i = 0;
i++;
}
}
#endif