summaryrefslogtreecommitdiff
path: root/storage/ndb/src/common/debugger/signaldata/print.awk
diff options
context:
space:
mode:
authorSergei Golubchik <serg@mariadb.org>2014-08-21 18:11:46 +0200
committerSergei Golubchik <serg@mariadb.org>2014-10-11 18:53:06 +0200
commit7f5e51b940d65cf541403a50af74163b9aed5cb8 (patch)
treee540d3cd4d678cd276a9d496490ac5e527f30a78 /storage/ndb/src/common/debugger/signaldata/print.awk
parent57dd1f6f3fcbc7a46e1b3e71257987315f7aa687 (diff)
downloadmariadb-git-7f5e51b940d65cf541403a50af74163b9aed5cb8.tar.gz
MDEV-34 delete storage/ndb and sql/*ndb* (and collateral changes)
remove: * NDB from everywhere * IM from mtr-v1 * packaging/rpm-oel and packaging/rpm-uln * few unused spec files * plug.in file * .bzrignore
Diffstat (limited to 'storage/ndb/src/common/debugger/signaldata/print.awk')
-rw-r--r--storage/ndb/src/common/debugger/signaldata/print.awk71
1 files changed, 0 insertions, 71 deletions
diff --git a/storage/ndb/src/common/debugger/signaldata/print.awk b/storage/ndb/src/common/debugger/signaldata/print.awk
deleted file mode 100644
index ac65348170e..00000000000
--- a/storage/ndb/src/common/debugger/signaldata/print.awk
+++ /dev/null
@@ -1,71 +0,0 @@
-# Copyright (C) 2004 MySQL AB
-# Use is subject to license terms
-#
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; version 2 of the License.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
-
-BEGIN {
- m_curr="";
- m_count=0;
- m_level=0;
-}
-/^[ ]*class[ ]+.*{/ {
- if(m_curr != ""){
- print;
- print "ERROR: " m_curr;
- exit;
- }
- m_curr = $2;
-}
-/{/ {
- m_level++;
-}
-/bool print/{
- m_print=$3;
- i=index($3, "(");
- if(i > 0){
- m_print=substr($3, 0, i-1);
- }
-}
-
-/[ ]+Uint32[ ]+[^)]*;/ {
- if(m_level >= 0){
- m=$2;
- i=index($2, ";");
- if(i > 0){
- m=substr($2, 0, i-1);
- }
- m_members[m_count]=m;
- m_count++;
- }
-}
-/^[ ]*}[ ]*;/ {
- m_level--;
- if(m_level == 0){
- if(m_count > 0 && m_print != ""){
- print "bool";
- print m_print "(FILE * output, const Uint32 * theData, ";
- print "Uint32 len, Uint16 receiverBlockNo) {";
- print "const " m_curr " * const sig = (" m_curr " *)theData;";
- for(i = 0; i<m_count; i++){
- print "fprintf(output, \" " m_members[i] ": %x\\n\", sig->" m_members[i] ");";
- }
- print "return true;";
- print "}";
- print "";
- }
- m_curr="";
- m_print="";
- m_count=0;
- }
-}