Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

rename unibi_init to unibi_from_mem

  • Loading branch information...
commit 759f40303a53da9bbbf14c7d59c173850d7c74a2 1 parent 4cac573
@mauke authored
Showing with 7 additions and 7 deletions.
  1. +2 −2 unibilium.c
  2. +2 −2 unibilium.h
  3. +3 −3 uniutil.c
View
4 unibilium.c
@@ -1,4 +1,4 @@
-/* Copyright 2010, Lukas Mai.
+/* Copyright 2008, 2010, Lukas Mai.
*
* This library is under the GNU Lesser General Public License;
* see the file LGPLv3 for details.
@@ -134,7 +134,7 @@ static size_t mcount(const char *p, size_t n, char c) {
#define DEL_FAIL_IF(c, e, x) FAIL_IF_(c, e, unibi_destroy(x))
#define SOFT_FAIL_IF(c) if (!(c)) ; else break
-unibi_term *unibi_init(const char *p, size_t n) {
+unibi_term *unibi_from_mem(const char *p, size_t n) {
unibi_term *t = NULL;
unsigned short magic, namlen, boollen, numlen, strslen, tablsz;
char *strp, *namp;
View
4 unibilium.h
@@ -1,7 +1,7 @@
#ifndef GUARD_UNIBILIUM_H_
#define GUARD_UNIBILIUM_H_
-/* Copyright 2008, Lukas Mai.
+/* Copyright 2008, 2010, Lukas Mai.
*
* This library is under the GNU Lesser General Public License;
* see the file LGPLv3 for details.
@@ -524,7 +524,7 @@ enum unibi_string {
typedef struct unibi_term unibi_term;
unibi_term *unibi_dummy(void);
-unibi_term *unibi_init(const char *, size_t);
+unibi_term *unibi_from_mem(const char *, size_t);
void unibi_destroy(unibi_term *);
size_t unibi_dump(const unibi_term *, char *, size_t);
View
6 uniutil.c
@@ -1,4 +1,4 @@
-/* Copyright 2008, Lukas Mai.
+/* Copyright 2008, 2010, Lukas Mai.
*
* This library is under the GNU Lesser General Public License;
* see the file LGPLv3 for details.
@@ -40,7 +40,7 @@ unibi_term *unibi_from_fp(FILE *fp) {
return NULL;
}
- return unibi_init(buf, n);
+ return unibi_from_mem(buf, n);
}
unibi_term *unibi_from_fd(int fd) {
@@ -56,7 +56,7 @@ unibi_term *unibi_from_fd(int fd) {
return NULL;
}
- return unibi_init(buf, n);
+ return unibi_from_mem(buf, n);
}
unibi_term *unibi_from_file(const char *file) {
Please sign in to comment.
Something went wrong with that request. Please try again.