Fix improper characters after reading Escape code for switching extension table in SMS
[project/uqmi.git] / data / gen-common.pm
index 38691fb..6c3492f 100644 (file)
@@ -14,6 +14,7 @@ our %tlv_types = (
        guint32 => "uint32_t",
        gint64 => "int64_t",
        guint64 => "uint64_t",
+       gfloat => "float",
        gboolean => "bool",
 );
 
@@ -22,7 +23,7 @@ $prefix eq 'ctl_' and $ctl = 1;
 sub get_json() {
        local $/;
        my $json = <>;
-       $json =~ s/^\s*\/\/ .*$//mg;
+       $json =~ s/^\s*\/\/.*$//mg;
        return decode_json($json);
 }