<p>ptrkrysik would like vvvelichkov to <strong>review</strong> this change.</p><p><a href="https://gerrit.osmocom.org/c/gr-gsm/+/24079">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">Remove build_utils.py and build_utils_codes.py<br><br>These two files are no longer used<br><br>Change-Id: I80a364c729e75681a0afd926ea3ecd0eb2d65381<br>---<br>D python/build_utils.py<br>D python/build_utils_codes.py<br>2 files changed, 0 insertions(+), 278 deletions(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">git pull ssh://gerrit.osmocom.org:29418/gr-gsm refs/changes/79/24079/1</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/python/build_utils.py b/python/build_utils.py</span><br><span>deleted file mode 100644</span><br><span>index cf58a97..0000000</span><br><span>--- a/python/build_utils.py</span><br><span>+++ /dev/null</span><br><span>@@ -1,226 +0,0 @@</span><br><span style="color: hsl(0, 100%, 40%);">-#</span><br><span style="color: hsl(0, 100%, 40%);">-# Copyright 2004,2009,2012 Free Software Foundation, Inc.</span><br><span style="color: hsl(0, 100%, 40%);">-#</span><br><span style="color: hsl(0, 100%, 40%);">-# This file is part of GNU Radio</span><br><span style="color: hsl(0, 100%, 40%);">-#</span><br><span style="color: hsl(0, 100%, 40%);">-# GNU Radio is free software; you can redistribute it and/or modify</span><br><span style="color: hsl(0, 100%, 40%);">-# it under the terms of the GNU General Public License as published by</span><br><span style="color: hsl(0, 100%, 40%);">-# the Free Software Foundation; either version 3, or (at your option)</span><br><span style="color: hsl(0, 100%, 40%);">-# any later version.</span><br><span style="color: hsl(0, 100%, 40%);">-#</span><br><span style="color: hsl(0, 100%, 40%);">-# GNU Radio is distributed in the hope that it will be useful,</span><br><span style="color: hsl(0, 100%, 40%);">-# but WITHOUT ANY WARRANTY; without even the implied warranty of</span><br><span style="color: hsl(0, 100%, 40%);">-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the</span><br><span style="color: hsl(0, 100%, 40%);">-# GNU General Public License for more details.</span><br><span style="color: hsl(0, 100%, 40%);">-#</span><br><span style="color: hsl(0, 100%, 40%);">-# You should have received a copy of the GNU General Public License</span><br><span style="color: hsl(0, 100%, 40%);">-# along with GNU Radio; see the file COPYING.  If not, write to</span><br><span style="color: hsl(0, 100%, 40%);">-# the Free Software Foundation, Inc., 51 Franklin Street,</span><br><span style="color: hsl(0, 100%, 40%);">-# Boston, MA 02110-1301, USA.</span><br><span style="color: hsl(0, 100%, 40%);">-#</span><br><span style="color: hsl(0, 100%, 40%);">-</span><br><span style="color: hsl(0, 100%, 40%);">-"""Misc utilities used at build time</span><br><span style="color: hsl(0, 100%, 40%);">-"""</span><br><span style="color: hsl(0, 100%, 40%);">-</span><br><span style="color: hsl(0, 100%, 40%);">-import re, os, os.path</span><br><span style="color: hsl(0, 100%, 40%);">-from build_utils_codes import *</span><br><span style="color: hsl(0, 100%, 40%);">-</span><br><span style="color: hsl(0, 100%, 40%);">-</span><br><span style="color: hsl(0, 100%, 40%);">-# set srcdir to the directory that contains Makefile.am</span><br><span style="color: hsl(0, 100%, 40%);">-try:</span><br><span style="color: hsl(0, 100%, 40%);">-    srcdir = os.environ['srcdir']</span><br><span style="color: hsl(0, 100%, 40%);">-except KeyError, e:</span><br><span style="color: hsl(0, 100%, 40%);">-    srcdir = "."</span><br><span style="color: hsl(0, 100%, 40%);">-srcdir = srcdir + '/'</span><br><span style="color: hsl(0, 100%, 40%);">-</span><br><span style="color: hsl(0, 100%, 40%);">-# set do_makefile to either true or false dependeing on the environment</span><br><span style="color: hsl(0, 100%, 40%);">-try:</span><br><span style="color: hsl(0, 100%, 40%);">-    if os.environ['do_makefile'] == '0':</span><br><span style="color: hsl(0, 100%, 40%);">-        do_makefile = False</span><br><span style="color: hsl(0, 100%, 40%);">-    else:</span><br><span style="color: hsl(0, 100%, 40%);">-        do_makefile = True</span><br><span style="color: hsl(0, 100%, 40%);">-except KeyError, e:</span><br><span style="color: hsl(0, 100%, 40%);">-    do_makefile = False</span><br><span style="color: hsl(0, 100%, 40%);">-</span><br><span style="color: hsl(0, 100%, 40%);">-# set do_sources to either true or false dependeing on the environment</span><br><span style="color: hsl(0, 100%, 40%);">-try:</span><br><span style="color: hsl(0, 100%, 40%);">-    if os.environ['do_sources'] == '0':</span><br><span style="color: hsl(0, 100%, 40%);">-        do_sources = False</span><br><span style="color: hsl(0, 100%, 40%);">-    else:</span><br><span style="color: hsl(0, 100%, 40%);">-        do_sources = True</span><br><span style="color: hsl(0, 100%, 40%);">-except KeyError, e:</span><br><span style="color: hsl(0, 100%, 40%);">-    do_sources = True</span><br><span style="color: hsl(0, 100%, 40%);">-</span><br><span style="color: hsl(0, 100%, 40%);">-name_dict = {}</span><br><span style="color: hsl(0, 100%, 40%);">-</span><br><span style="color: hsl(0, 100%, 40%);">-def log_output_name (name):</span><br><span style="color: hsl(0, 100%, 40%);">-    (base, ext) = os.path.splitext (name)</span><br><span style="color: hsl(0, 100%, 40%);">-    ext = ext[1:]                       # drop the leading '.'</span><br><span style="color: hsl(0, 100%, 40%);">-</span><br><span style="color: hsl(0, 100%, 40%);">-    entry = name_dict.setdefault (ext, [])</span><br><span style="color: hsl(0, 100%, 40%);">-    entry.append (name)</span><br><span style="color: hsl(0, 100%, 40%);">-</span><br><span style="color: hsl(0, 100%, 40%);">-def open_and_log_name (name, dir):</span><br><span style="color: hsl(0, 100%, 40%);">-    global do_sources</span><br><span style="color: hsl(0, 100%, 40%);">-    if do_sources:</span><br><span style="color: hsl(0, 100%, 40%);">-        f = open (name, dir)</span><br><span style="color: hsl(0, 100%, 40%);">-    else:</span><br><span style="color: hsl(0, 100%, 40%);">-        f = None</span><br><span style="color: hsl(0, 100%, 40%);">-    log_output_name (name)</span><br><span style="color: hsl(0, 100%, 40%);">-    return f</span><br><span style="color: hsl(0, 100%, 40%);">-</span><br><span style="color: hsl(0, 100%, 40%);">-def expand_template (d, template_filename, extra = ""):</span><br><span style="color: hsl(0, 100%, 40%);">-    '''Given a dictionary D and a TEMPLATE_FILENAME, expand template into output file</span><br><span style="color: hsl(0, 100%, 40%);">-    '''</span><br><span style="color: hsl(0, 100%, 40%);">-    global do_sources</span><br><span style="color: hsl(0, 100%, 40%);">-    output_extension = extract_extension (template_filename)</span><br><span style="color: hsl(0, 100%, 40%);">-    template = open_src (template_filename, 'r')</span><br><span style="color: hsl(0, 100%, 40%);">-    output_name = d['NAME'] + extra + '.' + output_extension</span><br><span style="color: hsl(0, 100%, 40%);">-    log_output_name (output_name)</span><br><span style="color: hsl(0, 100%, 40%);">-    if do_sources:</span><br><span style="color: hsl(0, 100%, 40%);">-        output = open (output_name, 'w')</span><br><span style="color: hsl(0, 100%, 40%);">-        do_substitution (d, template, output)</span><br><span style="color: hsl(0, 100%, 40%);">-        output.close ()</span><br><span style="color: hsl(0, 100%, 40%);">-    template.close ()</span><br><span style="color: hsl(0, 100%, 40%);">-</span><br><span style="color: hsl(0, 100%, 40%);">-def output_glue (dirname):</span><br><span style="color: hsl(0, 100%, 40%);">-    output_makefile_fragment ()</span><br><span style="color: hsl(0, 100%, 40%);">-    output_ifile_include (dirname)</span><br><span style="color: hsl(0, 100%, 40%);">-</span><br><span style="color: hsl(0, 100%, 40%);">-def output_makefile_fragment ():</span><br><span style="color: hsl(0, 100%, 40%);">-    global do_makefile</span><br><span style="color: hsl(0, 100%, 40%);">-    if not do_makefile:</span><br><span style="color: hsl(0, 100%, 40%);">-        return</span><br><span style="color: hsl(0, 100%, 40%);">-# overwrite the source, which must be writable; this should have been</span><br><span style="color: hsl(0, 100%, 40%);">-# checked for beforehand in the top-level Makefile.gen.gen .</span><br><span style="color: hsl(0, 100%, 40%);">-    f = open (os.path.join (os.environ.get('gendir', os.environ.get('srcdir', '.')), 'Makefile.gen'), 'w')</span><br><span style="color: hsl(0, 100%, 40%);">-    f.write ('#\n# This file is machine generated.  All edits will be overwritten\n#\n')</span><br><span style="color: hsl(0, 100%, 40%);">-    output_subfrag (f, 'h')</span><br><span style="color: hsl(0, 100%, 40%);">-    output_subfrag (f, 'i')</span><br><span style="color: hsl(0, 100%, 40%);">-    output_subfrag (f, 'cc')</span><br><span style="color: hsl(0, 100%, 40%);">-    f.close ()</span><br><span style="color: hsl(0, 100%, 40%);">-</span><br><span style="color: hsl(0, 100%, 40%);">-def output_ifile_include (dirname):</span><br><span style="color: hsl(0, 100%, 40%);">-    global do_sources</span><br><span style="color: hsl(0, 100%, 40%);">-    if do_sources:</span><br><span style="color: hsl(0, 100%, 40%);">-        f = open ('%s_generated.i' % (dirname,), 'w')</span><br><span style="color: hsl(0, 100%, 40%);">-        f.write ('//\n// This file is machine generated.  All edits will be overwritten\n//\n')</span><br><span style="color: hsl(0, 100%, 40%);">-        files = name_dict.setdefault ('i', [])</span><br><span style="color: hsl(0, 100%, 40%);">-        files.sort ()</span><br><span style="color: hsl(0, 100%, 40%);">-        f.write ('%{\n')</span><br><span style="color: hsl(0, 100%, 40%);">-        for file in files:</span><br><span style="color: hsl(0, 100%, 40%);">-            f.write ('#include <%s>\n' % (file[0:-1] + 'h',))</span><br><span style="color: hsl(0, 100%, 40%);">-        f.write ('%}\n\n')</span><br><span style="color: hsl(0, 100%, 40%);">-        for file in files:</span><br><span style="color: hsl(0, 100%, 40%);">-            f.write ('%%include <%s>\n' % (file,))</span><br><span style="color: hsl(0, 100%, 40%);">-</span><br><span style="color: hsl(0, 100%, 40%);">-def output_subfrag (f, ext):</span><br><span style="color: hsl(0, 100%, 40%);">-    files = name_dict.setdefault (ext, [])</span><br><span style="color: hsl(0, 100%, 40%);">-    files.sort ()</span><br><span style="color: hsl(0, 100%, 40%);">-    f.write ("GENERATED_%s =" % (ext.upper ()))</span><br><span style="color: hsl(0, 100%, 40%);">-    for file in files:</span><br><span style="color: hsl(0, 100%, 40%);">-        f.write (" \\\n\t%s" % (file,))</span><br><span style="color: hsl(0, 100%, 40%);">-    f.write ("\n\n")</span><br><span style="color: hsl(0, 100%, 40%);">-</span><br><span style="color: hsl(0, 100%, 40%);">-def extract_extension (template_name):</span><br><span style="color: hsl(0, 100%, 40%);">-    # template name is something like: GrFIRfilterXXX.h.t</span><br><span style="color: hsl(0, 100%, 40%);">-    # we return everything between the penultimate . and .t</span><br><span style="color: hsl(0, 100%, 40%);">-    mo = re.search (r'\.([a-z]+)\.t$', template_name)</span><br><span style="color: hsl(0, 100%, 40%);">-    if not mo:</span><br><span style="color: hsl(0, 100%, 40%);">-        raise ValueError, "Incorrectly formed template_name '%s'" % (template_name,)</span><br><span style="color: hsl(0, 100%, 40%);">-    return mo.group (1)</span><br><span style="color: hsl(0, 100%, 40%);">-</span><br><span style="color: hsl(0, 100%, 40%);">-def open_src (name, mode):</span><br><span style="color: hsl(0, 100%, 40%);">-    global srcdir</span><br><span style="color: hsl(0, 100%, 40%);">-    return open (os.path.join (srcdir, name), mode)</span><br><span style="color: hsl(0, 100%, 40%);">-</span><br><span style="color: hsl(0, 100%, 40%);">-def do_substitution (d, in_file, out_file):</span><br><span style="color: hsl(0, 100%, 40%);">-    def repl (match_obj):</span><br><span style="color: hsl(0, 100%, 40%);">-        key = match_obj.group (1)</span><br><span style="color: hsl(0, 100%, 40%);">-        # print key</span><br><span style="color: hsl(0, 100%, 40%);">-        return d[key]</span><br><span style="color: hsl(0, 100%, 40%);">-</span><br><span style="color: hsl(0, 100%, 40%);">-    inp = in_file.read ()</span><br><span style="color: hsl(0, 100%, 40%);">-    out = re.sub (r"@([a-zA-Z0-9_]+)@", repl, inp)</span><br><span style="color: hsl(0, 100%, 40%);">-    out_file.write (out)</span><br><span style="color: hsl(0, 100%, 40%);">-</span><br><span style="color: hsl(0, 100%, 40%);">-</span><br><span style="color: hsl(0, 100%, 40%);">-</span><br><span style="color: hsl(0, 100%, 40%);">-copyright = '''/* -*- c++ -*- */</span><br><span style="color: hsl(0, 100%, 40%);">-/*</span><br><span style="color: hsl(0, 100%, 40%);">- * Copyright 2003,2004 Free Software Foundation, Inc.</span><br><span style="color: hsl(0, 100%, 40%);">- *</span><br><span style="color: hsl(0, 100%, 40%);">- * This file is part of GNU Radio</span><br><span style="color: hsl(0, 100%, 40%);">- *</span><br><span style="color: hsl(0, 100%, 40%);">- * GNU Radio is free software; you can redistribute it and/or modify</span><br><span style="color: hsl(0, 100%, 40%);">- * it under the terms of the GNU General Public License as published by</span><br><span style="color: hsl(0, 100%, 40%);">- * the Free Software Foundation; either version 3, or (at your option)</span><br><span style="color: hsl(0, 100%, 40%);">- * any later version.</span><br><span style="color: hsl(0, 100%, 40%);">- *</span><br><span style="color: hsl(0, 100%, 40%);">- * GNU Radio is distributed in the hope that it will be useful,</span><br><span style="color: hsl(0, 100%, 40%);">- * but WITHOUT ANY WARRANTY; without even the implied warranty of</span><br><span style="color: hsl(0, 100%, 40%);">- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the</span><br><span style="color: hsl(0, 100%, 40%);">- * GNU General Public License for more details.</span><br><span style="color: hsl(0, 100%, 40%);">- *</span><br><span style="color: hsl(0, 100%, 40%);">- * You should have received a copy of the GNU General Public License</span><br><span style="color: hsl(0, 100%, 40%);">- * along with GNU Radio; see the file COPYING.  If not, write to</span><br><span style="color: hsl(0, 100%, 40%);">- * the Free Software Foundation, Inc., 51 Franklin Street,</span><br><span style="color: hsl(0, 100%, 40%);">- * Boston, MA 02110-1301, USA.</span><br><span style="color: hsl(0, 100%, 40%);">- */</span><br><span style="color: hsl(0, 100%, 40%);">-'''</span><br><span style="color: hsl(0, 100%, 40%);">-</span><br><span style="color: hsl(0, 100%, 40%);">-def is_complex (code3):</span><br><span style="color: hsl(0, 100%, 40%);">-    if i_code (code3) == 'c' or o_code (code3) == 'c':</span><br><span style="color: hsl(0, 100%, 40%);">-        return '1'</span><br><span style="color: hsl(0, 100%, 40%);">-    else:</span><br><span style="color: hsl(0, 100%, 40%);">-        return '0'</span><br><span style="color: hsl(0, 100%, 40%);">-</span><br><span style="color: hsl(0, 100%, 40%);">-</span><br><span style="color: hsl(0, 100%, 40%);">-def standard_dict (name, code3, package='gr'):</span><br><span style="color: hsl(0, 100%, 40%);">-    d = {}</span><br><span style="color: hsl(0, 100%, 40%);">-    d['NAME'] = name</span><br><span style="color: hsl(0, 100%, 40%);">-    d['NAME_IMPL'] = name+'_impl'</span><br><span style="color: hsl(0, 100%, 40%);">-    d['GUARD_NAME'] = 'INCLUDED_%s_%s_H' % (package.upper(), name.upper())</span><br><span style="color: hsl(0, 100%, 40%);">-    d['GUARD_NAME_IMPL'] = 'INCLUDED_%s_%s_IMPL_H' % (package.upper(), name.upper())</span><br><span style="color: hsl(0, 100%, 40%);">-    d['BASE_NAME'] = re.sub ('^' + package + '_', '', name)</span><br><span style="color: hsl(0, 100%, 40%);">-    d['SPTR_NAME'] = '%s_sptr' % name</span><br><span style="color: hsl(0, 100%, 40%);">-    d['WARNING'] = 'WARNING: this file is machine generated. Edits will be overwritten'</span><br><span style="color: hsl(0, 100%, 40%);">-    d['COPYRIGHT'] = copyright</span><br><span style="color: hsl(0, 100%, 40%);">-    d['TYPE'] = i_type (code3)</span><br><span style="color: hsl(0, 100%, 40%);">-    d['I_TYPE'] = i_type (code3)</span><br><span style="color: hsl(0, 100%, 40%);">-    d['O_TYPE'] = o_type (code3)</span><br><span style="color: hsl(0, 100%, 40%);">-    d['TAP_TYPE'] = tap_type (code3)</span><br><span style="color: hsl(0, 100%, 40%);">-    d['IS_COMPLEX'] = is_complex (code3)</span><br><span style="color: hsl(0, 100%, 40%);">-    return d</span><br><span style="color: hsl(0, 100%, 40%);">-</span><br><span style="color: hsl(0, 100%, 40%);">-</span><br><span style="color: hsl(0, 100%, 40%);">-def standard_dict2 (name, code3, package):</span><br><span style="color: hsl(0, 100%, 40%);">-    d = {}</span><br><span style="color: hsl(0, 100%, 40%);">-    d['NAME'] = name</span><br><span style="color: hsl(0, 100%, 40%);">-    d['BASE_NAME'] = name</span><br><span style="color: hsl(0, 100%, 40%);">-    d['GUARD_NAME'] = 'INCLUDED_%s_%s_H' % (package.upper(), name.upper())</span><br><span style="color: hsl(0, 100%, 40%);">-    d['WARNING'] = 'WARNING: this file is machine generated. Edits will be overwritten'</span><br><span style="color: hsl(0, 100%, 40%);">-    d['COPYRIGHT'] = copyright</span><br><span style="color: hsl(0, 100%, 40%);">-    d['TYPE'] = i_type (code3)</span><br><span style="color: hsl(0, 100%, 40%);">-    d['I_TYPE'] = i_type (code3)</span><br><span style="color: hsl(0, 100%, 40%);">-    d['O_TYPE'] = o_type (code3)</span><br><span style="color: hsl(0, 100%, 40%);">-    d['TAP_TYPE'] = tap_type (code3)</span><br><span style="color: hsl(0, 100%, 40%);">-    d['IS_COMPLEX'] = is_complex (code3)</span><br><span style="color: hsl(0, 100%, 40%);">-    return d</span><br><span style="color: hsl(0, 100%, 40%);">-</span><br><span style="color: hsl(0, 100%, 40%);">-def standard_impl_dict2 (name, code3, package):</span><br><span style="color: hsl(0, 100%, 40%);">-    d = {}</span><br><span style="color: hsl(0, 100%, 40%);">-    d['NAME'] = name</span><br><span style="color: hsl(0, 100%, 40%);">-    d['IMPL_NAME'] = name</span><br><span style="color: hsl(0, 100%, 40%);">-    d['BASE_NAME'] = name.rstrip("impl").rstrip("_")</span><br><span style="color: hsl(0, 100%, 40%);">-    d['GUARD_NAME'] = 'INCLUDED_%s_%s_H' % (package.upper(), name.upper())</span><br><span style="color: hsl(0, 100%, 40%);">-    d['WARNING'] = 'WARNING: this file is machine generated. Edits will be overwritten'</span><br><span style="color: hsl(0, 100%, 40%);">-    d['COPYRIGHT'] = copyright</span><br><span style="color: hsl(0, 100%, 40%);">-    d['FIR_TYPE'] = "fir_filter_" + code3</span><br><span style="color: hsl(0, 100%, 40%);">-    d['CFIR_TYPE'] = "fir_filter_" + code3[0:2] + 'c'</span><br><span style="color: hsl(0, 100%, 40%);">-    d['TYPE'] = i_type (code3)</span><br><span style="color: hsl(0, 100%, 40%);">-    d['I_TYPE'] = i_type (code3)</span><br><span style="color: hsl(0, 100%, 40%);">-    d['O_TYPE'] = o_type (code3)</span><br><span style="color: hsl(0, 100%, 40%);">-    d['TAP_TYPE'] = tap_type (code3)</span><br><span style="color: hsl(0, 100%, 40%);">-    d['IS_COMPLEX'] = is_complex (code3)</span><br><span style="color: hsl(0, 100%, 40%);">-    return d</span><br><span>diff --git a/python/build_utils_codes.py b/python/build_utils_codes.py</span><br><span>deleted file mode 100644</span><br><span>index 9ea96ba..0000000</span><br><span>--- a/python/build_utils_codes.py</span><br><span>+++ /dev/null</span><br><span>@@ -1,52 +0,0 @@</span><br><span style="color: hsl(0, 100%, 40%);">-#</span><br><span style="color: hsl(0, 100%, 40%);">-# Copyright 2004 Free Software Foundation, Inc.</span><br><span style="color: hsl(0, 100%, 40%);">-#</span><br><span style="color: hsl(0, 100%, 40%);">-# This file is part of GNU Radio</span><br><span style="color: hsl(0, 100%, 40%);">-#</span><br><span style="color: hsl(0, 100%, 40%);">-# GNU Radio is free software; you can redistribute it and/or modify</span><br><span style="color: hsl(0, 100%, 40%);">-# it under the terms of the GNU General Public License as published by</span><br><span style="color: hsl(0, 100%, 40%);">-# the Free Software Foundation; either version 3, or (at your option)</span><br><span style="color: hsl(0, 100%, 40%);">-# any later version.</span><br><span style="color: hsl(0, 100%, 40%);">-#</span><br><span style="color: hsl(0, 100%, 40%);">-# GNU Radio is distributed in the hope that it will be useful,</span><br><span style="color: hsl(0, 100%, 40%);">-# but WITHOUT ANY WARRANTY; without even the implied warranty of</span><br><span style="color: hsl(0, 100%, 40%);">-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the</span><br><span style="color: hsl(0, 100%, 40%);">-# GNU General Public License for more details.</span><br><span style="color: hsl(0, 100%, 40%);">-#</span><br><span style="color: hsl(0, 100%, 40%);">-# You should have received a copy of the GNU General Public License</span><br><span style="color: hsl(0, 100%, 40%);">-# along with GNU Radio; see the file COPYING.  If not, write to</span><br><span style="color: hsl(0, 100%, 40%);">-# the Free Software Foundation, Inc., 51 Franklin Street,</span><br><span style="color: hsl(0, 100%, 40%);">-# Boston, MA 02110-1301, USA.</span><br><span style="color: hsl(0, 100%, 40%);">-#</span><br><span style="color: hsl(0, 100%, 40%);">-</span><br><span style="color: hsl(0, 100%, 40%);">-def i_code (code3):</span><br><span style="color: hsl(0, 100%, 40%);">-    return code3[0]</span><br><span style="color: hsl(0, 100%, 40%);">-</span><br><span style="color: hsl(0, 100%, 40%);">-def o_code (code3):</span><br><span style="color: hsl(0, 100%, 40%);">-    if len (code3) >= 2:</span><br><span style="color: hsl(0, 100%, 40%);">-        return code3[1]</span><br><span style="color: hsl(0, 100%, 40%);">-    else:</span><br><span style="color: hsl(0, 100%, 40%);">-        return code3[0]</span><br><span style="color: hsl(0, 100%, 40%);">-</span><br><span style="color: hsl(0, 100%, 40%);">-def tap_code (code3):</span><br><span style="color: hsl(0, 100%, 40%);">-    if len (code3) >= 3:</span><br><span style="color: hsl(0, 100%, 40%);">-        return code3[2]</span><br><span style="color: hsl(0, 100%, 40%);">-    else:</span><br><span style="color: hsl(0, 100%, 40%);">-        return code3[0]</span><br><span style="color: hsl(0, 100%, 40%);">-</span><br><span style="color: hsl(0, 100%, 40%);">-def i_type (code3):</span><br><span style="color: hsl(0, 100%, 40%);">-    return char_to_type[i_code (code3)]</span><br><span style="color: hsl(0, 100%, 40%);">-</span><br><span style="color: hsl(0, 100%, 40%);">-def o_type (code3):</span><br><span style="color: hsl(0, 100%, 40%);">-    return char_to_type[o_code (code3)]</span><br><span style="color: hsl(0, 100%, 40%);">-</span><br><span style="color: hsl(0, 100%, 40%);">-def tap_type (code3):</span><br><span style="color: hsl(0, 100%, 40%);">-    return char_to_type[tap_code (code3)]</span><br><span style="color: hsl(0, 100%, 40%);">-</span><br><span style="color: hsl(0, 100%, 40%);">-</span><br><span style="color: hsl(0, 100%, 40%);">-char_to_type = {}</span><br><span style="color: hsl(0, 100%, 40%);">-char_to_type['s'] = 'short'</span><br><span style="color: hsl(0, 100%, 40%);">-char_to_type['i'] = 'int'</span><br><span style="color: hsl(0, 100%, 40%);">-char_to_type['f'] = 'float'</span><br><span style="color: hsl(0, 100%, 40%);">-char_to_type['c'] = 'gr_complex'</span><br><span style="color: hsl(0, 100%, 40%);">-char_to_type['b'] = 'unsigned char'</span><br><span></span><br></pre><p>To view, visit <a href="https://gerrit.osmocom.org/c/gr-gsm/+/24079">change 24079</a>. To unsubscribe, or for help writing mail filters, visit <a href="https://gerrit.osmocom.org/settings">settings</a>.</p><div itemscope itemtype="http://schema.org/EmailMessage"><div itemscope itemprop="action" itemtype="http://schema.org/ViewAction"><link itemprop="url" href="https://gerrit.osmocom.org/c/gr-gsm/+/24079"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: gr-gsm </div>
<div style="display:none"> Gerrit-Branch: master </div>
<div style="display:none"> Gerrit-Change-Id: I80a364c729e75681a0afd926ea3ecd0eb2d65381 </div>
<div style="display:none"> Gerrit-Change-Number: 24079 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: ptrkrysik <ptrkrysik@gmail.com> </div>
<div style="display:none"> Gerrit-Reviewer: vvvelichkov <vvvelichkov@gmail.com> </div>
<div style="display:none"> Gerrit-MessageType: newchange </div>