summaryrefslogtreecommitdiff
path: root/bdb
diff options
context:
space:
mode:
authorunknown <gluh@gluh.mysql.r18.ru>2004-08-11 21:49:23 +0400
committerunknown <gluh@gluh.mysql.r18.ru>2004-08-11 21:49:23 +0400
commit25a453493b38a5d5ff3bbe001ee2119a6c3da11a (patch)
treeae542fd1085963730ebb0dd471a9e7e811651505 /bdb
parentec5c569103aca010816834426b9f56752f33a1c1 (diff)
downloadmariadb-git-25a453493b38a5d5ff3bbe001ee2119a6c3da11a.tar.gz
Fix for bug #4307: bdb will not compile on FreeBSD 5 because of ancient awk
and some code clean up bdb/dist/gen_inc.awk: Fix for bug #4307: bdb will not compile on FreeBSD 5 because of ancient awk ndb/src/mgmapi/Makefile.am: Removed unused wrong macros ndb/src/ndbapi/NdbScanOperation.cpp: Removed unnesessary wrong variable assignment
Diffstat (limited to 'bdb')
-rw-r--r--bdb/dist/gen_inc.awk22
1 files changed, 11 insertions, 11 deletions
diff --git a/bdb/dist/gen_inc.awk b/bdb/dist/gen_inc.awk
index 4d245623bee..2f5b491cda1 100644
--- a/bdb/dist/gen_inc.awk
+++ b/bdb/dist/gen_inc.awk
@@ -18,20 +18,20 @@
# i_pfile include file that contains internal (PUBLIC) prototypes
/PUBLIC:/ {
sub("^.*PUBLIC:[ ][ ]*", "")
- if ($0 ~ "^#if|^#ifdef|^#ifndef|^#else|^#endif") {
+ if ($0 ~ /^#(if|ifdef|ifndef|else|endif)/) {
print $0 >> i_pfile
print $0 >> i_dfile
next
}
pline = sprintf("%s %s", pline, $0)
- if (pline ~ "));") {
+ if (pline ~ /\)\);/) {
sub("^[ ]*", "", pline)
print pline >> i_pfile
if (pline !~ db_version_unique_name) {
- def = gensub("[ ][ ]*__P.*", "", 1, pline)
- sub("^.*[ ][*]*", "", def)
+ sub("[ ][ ]*__P.*", "", pline)
+ sub("^.*[ ][*]*", "", pline)
printf("#define %s %s@DB_VERSION_UNIQUE_NAME@\n",
- def, def) >> i_dfile
+ pline, pline) >> i_dfile
}
pline = ""
}
@@ -53,20 +53,20 @@
# functions in libraries built with that configuration option.
/EXTERN:/ {
sub("^.*EXTERN:[ ][ ]*", "")
- if ($0 ~ "^#if|^#ifdef|^#ifndef|^#else|^#endif") {
+ if ($0 ~ /^#(if|ifdef|ifndef|else|endif)/) {
print $0 >> e_pfile
print $0 >> e_dfile
next
}
eline = sprintf("%s %s", eline, $0)
- if (eline ~ "));") {
+ if (eline ~ /\)\);/) {
sub("^[ ]*", "", eline)
print eline >> e_pfile
- if (eline !~ db_version_unique_name && eline !~ "^int txn_") {
- def = gensub("[ ][ ]*__P.*", "", 1, eline)
- sub("^.*[ ][*]*", "", def)
+ if (eline !~ db_version_unique_name && eline !~ /^int txn_/) {
+ sub("[ ][ ]*__P.*", "", eline)
+ sub("^.*[ ][*]*", "", eline)
printf("#define %s %s@DB_VERSION_UNIQUE_NAME@\n",
- def, def) >> e_dfile
+ eline, eline) >> e_dfile
}
eline = ""
}