/
index
/
libcext.git
/ blobdiff
commit
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
switch the "namespace" to "lce"
[libcext.git]
/
README.md
diff --git
a/README.md
b/README.md
index 8324035f51400315c5fa93d0fd44fadc2e8a7d93..e9373ec148bad174de9ad7184505b45adbb0d39b 100644
(file)
--- a/
README.md
+++ b/
README.md
@@
-7,26
+7,26
@@
All functions are implemented as macros expanding to an internal function refere
Include the header in every file needed as usual:
```
Include the header in every file needed as usual:
```
-#include "
<ext-func-name>
.h"
+#include "
${function}
.h"
```
In the file chosen for the function implementation:
```
```
In the file chosen for the function implementation:
```
-#define
<EXT-FUNC-NAME>
_IMPLEMENTATION
-#include "
<ext-func-name
.h>"
+#define
LCE_${FUNCTION}
_IMPLEMENTATION
+#include "
${function}
.h>"
```
By default, the header won't have any stdlib includes, change that with:
```
```
By default, the header won't have any stdlib includes, change that with:
```
-#define
<EXT-FUNC-NAME>
_INCLUDE_LIBC
+#define
LCE_${FUNCTION}
_INCLUDE_LIBC
```
Or disable function, type and variable override with:
```
```
Or disable function, type and variable override with:
```
-#define HAVE_
<EXT-FUNC-NAME>
+#define HAVE_
${FUNCTION}
```
### Specifics
```
### Specifics
@@
-53,9
+53,9
@@
includes `getopt()`, `getsubopt()`, `getopt_long()` and `getopt_long_only()`
permuting, defining those enables it per function (GNU behaviour, can still be disabled at runtime by setting `$POSIXLY_CORRECT`):
```
permuting, defining those enables it per function (GNU behaviour, can still be disabled at runtime by setting `$POSIXLY_CORRECT`):
```
-#define GETOPT_PERMUTE_ARGS
-#define GETOPT_LONG_PERMUTE_ARGS
-#define GETOPT_LONG_ONLY_PERMUTE_ARGS
+#define
LCE_
GETOPT_PERMUTE_ARGS
+#define
LCE_
GETOPT_LONG_PERMUTE_ARGS
+#define
LCE_
GETOPT_LONG_ONLY_PERMUTE_ARGS
```
---
```
---