Last change
on this file was
7,
checked in by willem, 11 years ago
|
willem
|
-
Property svn:executable set to
*
|
File size:
463 bytes
|
Line | |
---|
1 | #!/bin/bash |
---|
2 | # gdbm.h gives the following warning: |
---|
3 | # warning: ‘gdbm_pool’ has a field ‘gdbm_pool::dbf’ whose type |
---|
4 | # uses the anonymous namespace [enabled by default] |
---|
5 | # this is because the typedef of GDBM_FILE contains a nameless |
---|
6 | # struct. |
---|
7 | # this script adds a name to this struct |
---|
8 | sed '/typedef struct.*GDBM_FILE/s/struct/struct gdbmfilestruct/' /usr/include/gdbm.h | |
---|
9 | sed 's/char \*dptr/void *dptr/' > gdbm.h |
---|
10 | exit |
---|
11 | | sed 's/P((char/P((void/' > gdbm.h |
---|
Note: See
TracBrowser
for help on using the repository browser.