forked from osmocom/wireshark
Get rid of unused routine (which gets errors when compiled on Win64).
svn path=/trunk/; revision=27740
This commit is contained in:
parent
c3265c9fdf
commit
f0c55f2856
|
@ -35,7 +35,6 @@ NONGENERATED_C_FILES = \
|
|||
dfvm.c \
|
||||
drange.c \
|
||||
gencode.c \
|
||||
glib-util.c \
|
||||
semcheck.c \
|
||||
sttype-function.c \
|
||||
sttype-integer.c \
|
||||
|
@ -54,7 +53,6 @@ NONGENERATED_HEADER_FILES = \
|
|||
dfvm.h \
|
||||
drange.h \
|
||||
gencode.h \
|
||||
glib-util.h \
|
||||
semcheck.h \
|
||||
sttype-function.h \
|
||||
sttype-range.h \
|
||||
|
|
|
@ -1,47 +0,0 @@
|
|||
/* $Id$ */
|
||||
|
||||
#include <string.h>
|
||||
#include <glib.h>
|
||||
|
||||
|
||||
#include <glib-util.h>
|
||||
|
||||
char*
|
||||
g_substrdup(const char *s, int start, int len)
|
||||
{
|
||||
int s_len, abs_start, abs_len;
|
||||
char *newstring;
|
||||
|
||||
|
||||
s_len = strlen(s);
|
||||
|
||||
if (start < 0) {
|
||||
abs_start = s_len + start;
|
||||
if (abs_start < 0) {
|
||||
return NULL;
|
||||
}
|
||||
}
|
||||
else {
|
||||
abs_start = start;
|
||||
}
|
||||
|
||||
if (len < 0) {
|
||||
abs_len = s_len + len + 1 - abs_start;
|
||||
if (abs_len < 0) {
|
||||
return NULL;
|
||||
}
|
||||
}
|
||||
else {
|
||||
abs_len = len;
|
||||
}
|
||||
|
||||
|
||||
if (abs_start + abs_len > s_len) {
|
||||
return NULL;
|
||||
}
|
||||
|
||||
newstring = g_strndup(s + abs_start, abs_len + 1);
|
||||
newstring[abs_len] = 0;
|
||||
|
||||
return newstring;
|
||||
}
|
|
@ -1,4 +0,0 @@
|
|||
/* $Id$ */
|
||||
|
||||
char*
|
||||
g_substrdup(const char *s, int start, int len);
|
|
@ -44,7 +44,6 @@
|
|||
#include <stdlib.h>
|
||||
#include <errno.h>
|
||||
|
||||
#include "glib-util.h"
|
||||
#include "dfilter-int.h"
|
||||
#include "syntax-tree.h"
|
||||
#include "grammar.h"
|
||||
|
|
Loading…
Reference in New Issue