Browse Source

Use new class interface and update copyright information

1.0.0
Georg Hopp 12 years ago
parent
commit
da66d5df84
  1. 3
      include/tr/cbuf.h
  2. 3
      include/tr/hash.h
  3. 3
      include/tr/hash_value.h
  4. 2
      include/tr/interface/hashable.h
  5. 3
      include/tr/queue.h
  6. 3
      include/tr/tree.h
  7. 2
      src/cbuf/addr_index.c
  8. 4
      src/cbuf/cbuf.c
  9. 2
      src/cbuf/empty.c
  10. 2
      src/cbuf/get_data.c
  11. 2
      src/cbuf/get_free.c
  12. 2
      src/cbuf/get_line.c
  13. 2
      src/cbuf/get_read.c
  14. 2
      src/cbuf/get_write.c
  15. 2
      src/cbuf/inc_read.c
  16. 2
      src/cbuf/inc_write.c
  17. 2
      src/cbuf/is_empty.c
  18. 2
      src/cbuf/is_locked.c
  19. 2
      src/cbuf/lock.c
  20. 2
      src/cbuf/memchr.c
  21. 2
      src/cbuf/read.c
  22. 2
      src/cbuf/release.c
  23. 2
      src/cbuf/set_data.c
  24. 2
      src/cbuf/skip_non_alpha.c
  25. 2
      src/hash/add.c
  26. 2
      src/hash/cleanup.c
  27. 2
      src/hash/delete.c
  28. 2
      src/hash/each.c
  29. 2
      src/hash/get.c
  30. 2
      src/hash/get_first.c
  31. 4
      src/hash/hash.c
  32. 4
      src/hash/value.c
  33. 2
      src/queue/get.c
  34. 2
      src/queue/put.c
  35. 4
      src/queue/queue.c
  36. 2
      src/tree/delete.c
  37. 2
      src/tree/destroy.c
  38. 2
      src/tree/find.c
  39. 2
      src/tree/insert.c
  40. 4
      src/tree/tree.c
  41. 2
      src/tree/walk.c
  42. 4
      trdata.h

3
include/tr/cbuf.h

@ -11,7 +11,7 @@
* \author Georg Hopp
*
* \copyright
* Copyright © 2012 Georg Hopp
* Copyright © 2014 Georg Hopp
*
* 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
@ -53,6 +53,7 @@ TR_CLASS(TR_Cbuf) {
size_t read;
};
TR_INSTANCE_INIT(TR_Cbuf);
TR_CLASSVARS_DECL(TR_Cbuf) {};
ssize_t TR_cbufRead(TR_Cbuf, TR_Stream);
ssize_t TR_cbufWrite(TR_Cbuf, TR_Stream);

3
include/tr/hash.h

@ -4,7 +4,7 @@
* \author Georg Hopp
*
* \copyright
* Copyright © 2012 Georg Hopp
* Copyright © 2014 Georg Hopp
*
* 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
@ -34,6 +34,7 @@ TR_CLASS(TR_Hash) {
TR_Tree root;
};
TR_INSTANCE_INIT(TR_Hash);
TR_CLASSVARS_DECL(TR_Hash) {};
void * TR_hashAdd(TR_Hash, void *);
void * TR_hashDelete(TR_Hash, const char *, size_t);

3
include/tr/hash_value.h

@ -4,7 +4,7 @@
* \author Georg Hopp
*
* \copyright
* Copyright © 2012 Georg Hopp
* Copyright © 2014 Georg Hopp
*
* 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
@ -37,6 +37,7 @@ TR_CLASS(TR_HashValue) {
size_t nvalue;
};
TR_INSTANCE_INIT(TR_HashValue);
TR_CLASSVARS_DECL(TR_HashValue) {};
#endif // __TR_HASH_VALUE_H__

2
include/tr/interface/hashable.h

@ -4,7 +4,7 @@
* \author Georg Hopp
*
* \copyright
* Copyright © 2012 Georg Hopp
* Copyright © 2014 Georg Hopp
*
* 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

3
include/tr/queue.h

@ -7,7 +7,7 @@
* \author Georg Hopp
*
* \copyright
* Copyright © 2012 Georg Hopp
* Copyright © 2014 Georg Hopp
*
* 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
@ -48,6 +48,7 @@ TR_CLASS(TR_Queue) {
size_t nmsg;
};
TR_INSTANCE_INIT(TR_Queue);
TR_CLASSVARS_DECL(TR_Queue) {};
void TR_queuePut(TR_Queue, void *);
void * TR_queueGet(TR_Queue);

3
include/tr/tree.h

@ -4,7 +4,7 @@
* \author Georg Hopp
*
* \copyright
* Copyright © 2012 Georg Hopp
* Copyright © 2014 Georg Hopp
*
* 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
@ -36,6 +36,7 @@ TR_CLASS(TR_Tree) {
TR_Tree right;
};
TR_INSTANCE_INIT(TR_Tree);
TR_CLASSVARS_DECL(TR_Tree) {};
typedef int (*TR_TreeComp)(const void *, const void *);
typedef void (*TR_TreeAction)(const void *, const int);

2
src/cbuf/addr_index.c

@ -4,7 +4,7 @@
* \author Georg Hopp
*
* \copyright
* Copyright © 2012 Georg Hopp
* Copyright © 2014 Georg Hopp
*
* 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

4
src/cbuf/cbuf.c

@ -4,7 +4,7 @@
* \author Georg Hopp
*
* \copyright
* Copyright © 2012 Georg Hopp
* Copyright © 2014 Georg Hopp
*
* 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
@ -118,6 +118,6 @@ cbufDtor(void * _this)
}
TR_INIT_IFACE(TR_Class, cbufCtor, cbufDtor, NULL);
TR_CREATE_CLASS(TR_Cbuf, NULL, TR_IF(TR_Class));
TR_CREATE_CLASS(TR_Cbuf, NULL, NULL, TR_IF(TR_Class));
// vim: set ts=4 sw=4:

2
src/cbuf/empty.c

@ -4,7 +4,7 @@
* \author Georg Hopp
*
* \copyright
* Copyright © 2012 Georg Hopp
* Copyright © 2014 Georg Hopp
*
* 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

2
src/cbuf/get_data.c

@ -4,7 +4,7 @@
* \author Georg Hopp
*
* \copyright
* Copyright © 2012 Georg Hopp
* Copyright © 2014 Georg Hopp
*
* 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

2
src/cbuf/get_free.c

@ -4,7 +4,7 @@
* \author Georg Hopp
*
* \copyright
* Copyright © 2012 Georg Hopp
* Copyright © 2014 Georg Hopp
*
* 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

2
src/cbuf/get_line.c

@ -4,7 +4,7 @@
* \author Georg Hopp
*
* \copyright
* Copyright © 2012 Georg Hopp
* Copyright © 2014 Georg Hopp
*
* 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

2
src/cbuf/get_read.c

@ -4,7 +4,7 @@
* \author Georg Hopp
*
* \copyright
* Copyright © 2012 Georg Hopp
* Copyright © 2014 Georg Hopp
*
* 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

2
src/cbuf/get_write.c

@ -4,7 +4,7 @@
* \author Georg Hopp
*
* \copyright
* Copyright © 2012 Georg Hopp
* Copyright © 2014 Georg Hopp
*
* 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

2
src/cbuf/inc_read.c

@ -4,7 +4,7 @@
* \author Georg Hopp
*
* \copyright
* Copyright © 2012 Georg Hopp
* Copyright © 2014 Georg Hopp
*
* 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

2
src/cbuf/inc_write.c

@ -4,7 +4,7 @@
* \author Georg Hopp
*
* \copyright
* Copyright © 2012 Georg Hopp
* Copyright © 2014 Georg Hopp
*
* 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

2
src/cbuf/is_empty.c

@ -4,7 +4,7 @@
* \author Georg Hopp
*
* \copyright
* Copyright © 2012 Georg Hopp
* Copyright © 2014 Georg Hopp
*
* 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

2
src/cbuf/is_locked.c

@ -4,7 +4,7 @@
* \author Georg Hopp
*
* \copyright
* Copyright © 2012 Georg Hopp
* Copyright © 2014 Georg Hopp
*
* 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

2
src/cbuf/lock.c

@ -4,7 +4,7 @@
* \author Georg Hopp
*
* \copyright
* Copyright © 2012 Georg Hopp
* Copyright © 2014 Georg Hopp
*
* 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

2
src/cbuf/memchr.c

@ -4,7 +4,7 @@
* \author Georg Hopp
*
* \copyright
* Copyright © 2012 Georg Hopp
* Copyright © 2014 Georg Hopp
*
* 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

2
src/cbuf/read.c

@ -4,7 +4,7 @@
* \author Georg Hopp
*
* \copyright
* Copyright © 2012 Georg Hopp
* Copyright © 2014 Georg Hopp
*
* 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

2
src/cbuf/release.c

@ -4,7 +4,7 @@
* \author Georg Hopp
*
* \copyright
* Copyright © 2012 Georg Hopp
* Copyright © 2014 Georg Hopp
*
* 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

2
src/cbuf/set_data.c

@ -4,7 +4,7 @@
* \author Georg Hopp
*
* \copyright
* Copyright © 2012 Georg Hopp
* Copyright © 2014 Georg Hopp
*
* 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

2
src/cbuf/skip_non_alpha.c

@ -4,7 +4,7 @@
* \author Georg Hopp
*
* \copyright
* Copyright © 2012 Georg Hopp
* Copyright © 2014 Georg Hopp
*
* 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

2
src/hash/add.c

@ -4,7 +4,7 @@
* \author Georg Hopp
*
* \copyright
* Copyright © 2012 Georg Hopp
* Copyright © 2014 Georg Hopp
*
* 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

2
src/hash/cleanup.c

@ -4,7 +4,7 @@
* \author Georg Hopp
*
* \copyright
* Copyright © 2012 Georg Hopp
* Copyright © 2014 Georg Hopp
*
* 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

2
src/hash/delete.c

@ -4,7 +4,7 @@
* \author Georg Hopp
*
* \copyright
* Copyright © 2012 Georg Hopp
* Copyright © 2014 Georg Hopp
*
* 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

2
src/hash/each.c

@ -4,7 +4,7 @@
* \author Georg Hopp
*
* \copyright
* Copyright © 2012 Georg Hopp
* Copyright © 2014 Georg Hopp
*
* 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

2
src/hash/get.c

@ -4,7 +4,7 @@
* \author Georg Hopp
*
* \copyright
* Copyright © 2012 Georg Hopp
* Copyright © 2014 Georg Hopp
*
* 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

2
src/hash/get_first.c

@ -4,7 +4,7 @@
* \author Georg Hopp
*
* \copyright
* Copyright © 2012 Georg Hopp
* Copyright © 2014 Georg Hopp
*
* 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

4
src/hash/hash.c

@ -4,7 +4,7 @@
* \author Georg Hopp
*
* \copyright
* Copyright © 2012 Georg Hopp
* Copyright © 2014 Georg Hopp
*
* 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
@ -44,6 +44,6 @@ hashDtor(void * _this)
}
TR_INIT_IFACE(TR_Class, hashCtor, hashDtor, NULL);
TR_CREATE_CLASS(TR_Hash, NULL, TR_IF(TR_Class));
TR_CREATE_CLASS(TR_Hash, NULL, NULL, TR_IF(TR_Class));
// vim: set ts=4 sw=4:

4
src/hash/value.c

@ -4,7 +4,7 @@
* \author Georg Hopp
*
* \copyright
* Copyright © 2012 Georg Hopp
* Copyright © 2014 Georg Hopp
*
* 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
@ -102,6 +102,6 @@ hashValueHandleDouble(void * _this, void * _double)
TR_INIT_IFACE(TR_Class, hashValueCtor, hashValueDtor, NULL);
TR_INIT_IFACE(TR_Hashable, hashValueGetHash, hashValueHandleDouble);
TR_CREATE_CLASS(TR_HashValue, NULL, TR_IF(TR_Class), TR_IF(TR_Hashable));
TR_CREATE_CLASS(TR_HashValue, NULL, NULL, TR_IF(TR_Class), TR_IF(TR_Hashable));
// vim: set ts=4 sw=4:

2
src/queue/get.c

@ -4,7 +4,7 @@
* \author Georg Hopp
*
* \copyright
* Copyright © 2012 Georg Hopp
* Copyright © 2014 Georg Hopp
*
* 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

2
src/queue/put.c

@ -4,7 +4,7 @@
* \author Georg Hopp
*
* \copyright
* Copyright © 2012 Georg Hopp
* Copyright © 2014 Georg Hopp
*
* 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

4
src/queue/queue.c

@ -4,7 +4,7 @@
* \author Georg Hopp
*
* \copyright
* Copyright © 2012 Georg Hopp
* Copyright © 2014 Georg Hopp
*
* 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
@ -48,6 +48,6 @@ queueDtor(void * _this)
}
TR_INIT_IFACE(TR_Class, queueCtor, queueDtor, NULL);
TR_CREATE_CLASS(TR_Queue, NULL, TR_IF(TR_Class));
TR_CREATE_CLASS(TR_Queue, NULL, NULL, TR_IF(TR_Class));
// vim: set ts=4 sw=4:

2
src/tree/delete.c

@ -4,7 +4,7 @@
* \author Georg Hopp
*
* \copyright
* Copyright © 2012 Georg Hopp
* Copyright © 2014 Georg Hopp
*
* 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

2
src/tree/destroy.c

@ -4,7 +4,7 @@
* \author Georg Hopp
*
* \copyright
* Copyright © 2012 Georg Hopp
* Copyright © 2014 Georg Hopp
*
* 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

2
src/tree/find.c

@ -4,7 +4,7 @@
* \author Georg Hopp
*
* \copyright
* Copyright © 2012 Georg Hopp
* Copyright © 2014 Georg Hopp
*
* 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

2
src/tree/insert.c

@ -4,7 +4,7 @@
* \author Georg Hopp
*
* \copyright
* Copyright © 2012 Georg Hopp
* Copyright © 2014 Georg Hopp
*
* 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

4
src/tree/tree.c

@ -4,7 +4,7 @@
* \author Georg Hopp
*
* \copyright
* Copyright © 2012 Georg Hopp
* Copyright © 2014 Georg Hopp
*
* 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
@ -49,6 +49,6 @@ treeDtor(void * _this)
}
TR_INIT_IFACE(TR_Class, treeCtor, treeDtor, NULL);
TR_CREATE_CLASS(TR_Tree, NULL, TR_IF(TR_Class));
TR_CREATE_CLASS(TR_Tree, NULL, NULL, TR_IF(TR_Class));
// vim: set ts=4 sw=4:

2
src/tree/walk.c

@ -4,7 +4,7 @@
* \author Georg Hopp
*
* \copyright
* Copyright © 2012 Georg Hopp
* Copyright © 2014 Georg Hopp
*
* 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

4
trdata.h

@ -11,13 +11,13 @@
#define HAVE_MEMORY_H 1
/* Define to 1 if you have the `memset' function. */
/* #undef HAVE_MEMSET */
#define HAVE_MEMSET 1
/* Define to 1 if you have the <stdarg.h> header file. */
#define HAVE_STDARG_H 1
/* Define to 1 if stdbool.h conforms to C99. */
/* #undef HAVE_STDBOOL_H */
#define HAVE_STDBOOL_H 1
/* Define to 1 if you have the <stdint.h> header file. */
#define HAVE_STDINT_H 1

Loading…
Cancel
Save