summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorTyge Løvset <[email protected]>2020-10-08 14:29:36 +0200
committerTyge Løvset <[email protected]>2020-10-08 14:29:36 +0200
commitb68672ec603ade58fc880c7a95ad854de040ad3e (patch)
treebf3d7bb4f94a3f3ac19b39506b6cd09b49d8c5e2
parentab81979f713c71ec164f6bce033038ba09e1e829 (diff)
downloadSTC-modified-b68672ec603ade58fc880c7a95ad854de040ad3e.tar.gz
STC-modified-b68672ec603ade58fc880c7a95ad854de040ad3e.zip
Renamed cdefs.h to ccommon.h
-rw-r--r--README.md2
-rw-r--r--stc/carray.h2
-rw-r--r--stc/ccommon.h (renamed from stc/cdefs.h)4
-rw-r--r--stc/clist.h2
-rw-r--r--stc/cmap.h2
-rw-r--r--stc/cptr.h2
-rw-r--r--stc/crandom.h2
-rw-r--r--stc/cstr.h2
-rw-r--r--stc/cvec.h2
9 files changed, 10 insertions, 10 deletions
diff --git a/README.md b/README.md
index 4f2c0161..af7cdf8e 100644
--- a/README.md
+++ b/README.md
@@ -18,7 +18,7 @@ An elegant, fully typesafe, generic, customizable, user-friendly, consistent, an
- **stc/cptr.h** - Support for pointers in containers, and a reference counted shared pointer **csptr**.
- **stc/coption.h** - Implementation of a **getopt_long()**-like function, *coption_get()*, to parse command line arguments.
- **stc/crandom.h** - A few very efficent modern random number generators *pcg32* and my own *64-bit PRNG* inspired by *sfc64*. Both uniform and normal distributions.
-- **stc/cdefs.h** - A common include file with a few general definitions.
+- **stc/ccommon.h** - A common include file with a few general definitions.
The usage of the containers is vert similar to the C++ standard containers, so it should be easy if you are familiar with them.
diff --git a/stc/carray.h b/stc/carray.h
index cf46bbba..5858b004 100644
--- a/stc/carray.h
+++ b/stc/carray.h
@@ -24,7 +24,7 @@
#define CARRAY__H__
#include <stdlib.h>
-#include "cdefs.h"
+#include "ccommon.h"
/*
Multi-dimensional generic array allocated as one block of heap-memory.
diff --git a/stc/cdefs.h b/stc/ccommon.h
index 7bfccd3e..f9e3d871 100644
--- a/stc/cdefs.h
+++ b/stc/ccommon.h
@@ -20,8 +20,8 @@
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
* SOFTWARE.
*/
-#ifndef CDEFS__H__
-#define CDEFS__H__
+#ifndef CCOMMON__H__
+#define CCOMMON__H__
#include <stdint.h>
#include <stddef.h>
diff --git a/stc/clist.h b/stc/clist.h
index ef894cb3..874cb7e5 100644
--- a/stc/clist.h
+++ b/stc/clist.h
@@ -24,7 +24,7 @@
#define CLIST__H__
#include <stdlib.h>
-#include "cdefs.h"
+#include "ccommon.h"
/* Circular Singly-linked Lists.
diff --git a/stc/cmap.h b/stc/cmap.h
index b602f6f4..9c377177 100644
--- a/stc/cmap.h
+++ b/stc/cmap.h
@@ -51,7 +51,7 @@ int main(void) {
#include <stdlib.h>
#include <string.h>
-#include "cdefs.h"
+#include "ccommon.h"
#define cmap_INIT {NULL, NULL, 0, 0, 0.85f, 0.15f}
#define cmap_empty(m) ((m).size == 0)
diff --git a/stc/cptr.h b/stc/cptr.h
index 19543c96..8b3be064 100644
--- a/stc/cptr.h
+++ b/stc/cptr.h
@@ -23,7 +23,7 @@
#ifndef CPTR__H__
#define CPTR__H__
-#include "cdefs.h"
+#include "ccommon.h"
/* cptr: std::unique_ptr -like type: */
/*
diff --git a/stc/crandom.h b/stc/crandom.h
index d0d9df36..89793c94 100644
--- a/stc/crandom.h
+++ b/stc/crandom.h
@@ -24,7 +24,7 @@
#ifndef CRANDOM__H__
#define CRANDOM__H__
-#include "cdefs.h"
+#include "ccommon.h"
#include <string.h>
#include <math.h>
/*
diff --git a/stc/cstr.h b/stc/cstr.h
index 41d479e9..b227e55f 100644
--- a/stc/cstr.h
+++ b/stc/cstr.h
@@ -27,7 +27,7 @@
#include <string.h>
#include <stdarg.h>
#include <stdio.h> /* vsnprintf */
-#include "cdefs.h"
+#include "ccommon.h"
typedef struct cstr { char* str; } cstr_t;
typedef struct { char *val; } cstr_iter_t;
diff --git a/stc/cvec.h b/stc/cvec.h
index a5cd97ab..037b33ab 100644
--- a/stc/cvec.h
+++ b/stc/cvec.h
@@ -25,7 +25,7 @@
#include <stdlib.h>
#include <string.h>
-#include "cdefs.h"
+#include "ccommon.h"
#define cvec_INIT {NULL}
#define cvec_size(v) _cvec_safe_size((v).data)