From: John Darrington Date: Sun, 14 Jun 2020 15:07:27 +0000 (+0200) Subject: Remove trailing whitespace at end of lines X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6cbd13aef6c8f5f7c363a6ebc5468863b558c4d3;p=pspp Remove trailing whitespace at end of lines --- diff --git a/src/output/spv/automake.mk b/src/output/spv/automake.mk index 198e8df7e5..78dae86130 100644 --- a/src/output/spv/automake.mk +++ b/src/output/spv/automake.mk @@ -1,19 +1,19 @@ # PSPP - a program for statistical analysis. # Copyright (C) 2017 Free Software Foundation, Inc. -# +# # 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, either version 3 of the License, or # (at your option) any later version. -# +# # 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, see . -# +# ## Process this file with automake to produce Makefile.in -*- makefile -*- src_output_liboutput_la_SOURCES += \ diff --git a/src/output/spv/binary-parser-generator b/src/output/spv/binary-parser-generator index a62456c4b3..820cf23d89 100644 --- a/src/output/spv/binary-parser-generator +++ b/src/output/spv/binary-parser-generator @@ -326,7 +326,7 @@ def print_members(p, indent): array_suffix = '[%d]' % item.n else: n_stars += 1 - + print("%s%s %s%s%s;" % (indent, typename, '*' * n_stars, name_to_id(item.name), array_suffix)) @@ -391,7 +391,7 @@ class Parser_Context(object): indent, '_be' if endian == 'big' else '', limit, indent, self.bail)) return limit - + def print_parser_items(name, production, indent, accessor, ctx): for item_idx in range(len(production)): @@ -547,7 +547,7 @@ def print_parser_items(name, production, indent, accessor, ctx): indent, accessor, item.name, choice_name[-2:])) print('') choice = choice[1:] - + print_parser_items(name, choice, indent + ' ', accessor + choice_name + '.', ctx) i += 1 @@ -641,7 +641,7 @@ def print_free_items(name, production, indent, accessor, ctx): print('%s%sif (p->%s%s == %s) {' % ( indent, '} else ' if i else '', accessor, item.name, value_name)) - + print_free_items(name, choice, indent + ' ', accessor + choice_name + '.', ctx) i += 1 @@ -764,7 +764,7 @@ def print_print_items(name, production, indent, accessor, ctx): print('%s%sif (p->%s%s == %s) {' % ( indent, '} else ' if i else '', accessor, item.name, value_name)) - + print_print_items(name, choice, indent + ' ', accessor + choice_name + '.', ctx) i += 1 @@ -797,7 +797,7 @@ void def name_to_id(s): return s[0].lower() + ''.join(['_%c' % x.lower() if x.isupper() else x for x in s[1:]]).replace('-', '_') - + if __name__ == "__main__": argv0 = sys.argv[0] diff --git a/src/output/spv/spv-legacy-data.c b/src/output/spv/spv-legacy-data.c index da9293ce48..8985f35979 100644 --- a/src/output/spv/spv-legacy-data.c +++ b/src/output/spv/spv-legacy-data.c @@ -281,7 +281,7 @@ decode_variable_map (const char *source_name, #endif } #endif - + value->width = strlen (label->label); value->s = xmemdup0 (label->label, value->width); } diff --git a/src/output/spv/xml-parser-generator b/src/output/spv/xml-parser-generator index e85be59171..a0d0081db3 100644 --- a/src/output/spv/xml-parser-generator +++ b/src/output/spv/xml-parser-generator @@ -617,7 +617,7 @@ def generate_content_parser(nonterminal, rhs, function, ctx, state, seq_name): function.code += [ 'p->%s = xrealloc (p->%s, sizeof *p->%s * (p->n_%s + 1));' % (member, member, member, member), - 'p->%s[p->n_%s++] = %s;' % (member, member, + 'p->%s[p->n_%s++] = %s;' % (member, member, '&%s->node_' % member if state == STATE_GENERAL else member)] @@ -924,7 +924,7 @@ void 'prefix': prefix, 'name': name, 'ref_type': name_to_id(value[1])}) - + print_recurse_members(attributes, rhs, 'resolve_refs')