projects
/
yaz-moved-to-github.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Update to latest m4 master.
[yaz-moved-to-github.git]
/
src
/
advancegreek.c
diff --git
a/src/advancegreek.c
b/src/advancegreek.c
index
56f3dc0
..
5a01489
100644
(file)
--- a/
src/advancegreek.c
+++ b/
src/advancegreek.c
@@
-1,5
+1,5
@@
-/*
- * Copyright (C) 1995-2008, Index Data ApS
+/* This file is part of the YAZ toolkit.
+ * Copyright (C) 1995-2008 Index Data
* See the file LICENSE for details.
*/
/**
* See the file LICENSE for details.
*/
/**
@@
-18,8
+18,9
@@
#include "iconv-p.h"
#include "iconv-p.h"
-unsigned long yaz_read_advancegreek(yaz_iconv_t cd, unsigned char *inp,
- size_t inbytesleft, size_t *no_read)
+static unsigned long read_advancegreek(yaz_iconv_t cd, yaz_iconv_decoder_t d,
+ unsigned char *inp,
+ size_t inbytesleft, size_t *no_read)
{
unsigned long x = 0;
int shift = 0;
{
unsigned long x = 0;
int shift = 0;
@@
-384,6
+385,17
@@
yaz_iconv_encoder_t yaz_advancegreek_encoder(const char *name,
return 0;
}
return 0;
}
+yaz_iconv_decoder_t yaz_advancegreek_decoder(const char *name,
+ yaz_iconv_decoder_t d)
+{
+ if (!yaz_matchstr(name, "advancegreek"))
+ {
+ d->read_handle = read_advancegreek;
+ return d;
+ }
+ return 0;
+}
+
/*
* Local variables:
* c-basic-offset: 4
/*
* Local variables:
* c-basic-offset: 4