diff options
| author | Tyge Løvset <[email protected]> | 2020-10-08 14:29:36 +0200 |
|---|---|---|
| committer | Tyge Løvset <[email protected]> | 2020-10-08 14:29:36 +0200 |
| commit | b68672ec603ade58fc880c7a95ad854de040ad3e (patch) | |
| tree | bf3d7bb4f94a3f3ac19b39506b6cd09b49d8c5e2 | |
| parent | ab81979f713c71ec164f6bce033038ba09e1e829 (diff) | |
| download | STC-modified-b68672ec603ade58fc880c7a95ad854de040ad3e.tar.gz STC-modified-b68672ec603ade58fc880c7a95ad854de040ad3e.zip | |
Renamed cdefs.h to ccommon.h
| -rw-r--r-- | README.md | 2 | ||||
| -rw-r--r-- | stc/carray.h | 2 | ||||
| -rw-r--r-- | stc/ccommon.h (renamed from stc/cdefs.h) | 4 | ||||
| -rw-r--r-- | stc/clist.h | 2 | ||||
| -rw-r--r-- | stc/cmap.h | 2 | ||||
| -rw-r--r-- | stc/cptr.h | 2 | ||||
| -rw-r--r-- | stc/crandom.h | 2 | ||||
| -rw-r--r-- | stc/cstr.h | 2 | ||||
| -rw-r--r-- | stc/cvec.h | 2 |
9 files changed, 10 insertions, 10 deletions
@@ -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.
@@ -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)
@@ -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>
/*
@@ -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;
@@ -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)
|
