From 6b67936d168f90a61fa14e20b172fce1a279eacb Mon Sep 17 00:00:00 2001 From: CismonX Date: Tue, 9 Jun 2020 00:30:27 +0800 Subject: [PATCH] update indentation --- src/u6ac.c | 8 ++++---- tests/default/cat.exp | 34 +++++++++++++++++----------------- tests/default/dump.exp | 34 +++++++++++++++++----------------- tests/default/square.exp | 34 +++++++++++++++++----------------- tests/init.exp | 34 +++++++++++++++++----------------- tests/u6a_run | 34 +++++++++++++++++----------------- 6 files changed, 89 insertions(+), 89 deletions(-) diff --git a/src/u6ac.c b/src/u6ac.c index 1f0561e..78f9c32 100644 --- a/src/u6ac.c +++ b/src/u6ac.c @@ -34,10 +34,10 @@ struct arg_options { struct u6a_codegen_options codegen; - FILE* input_file; - char* input_file_name; - char* output_file_prefix; - bool print_only; + FILE* input_file; + char* input_file_name; + char* output_file_prefix; + bool print_only; }; static const char* err_toplevel = "error"; diff --git a/tests/default/cat.exp b/tests/default/cat.exp index 584eeef..8ad633e 100644 --- a/tests/default/cat.exp +++ b/tests/default/cat.exp @@ -1,21 +1,21 @@ ## -## cat.exp - Test whether a "cat" program works on this u6a build -## -## Copyright (C) 2020 CismonX -## -## 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 . -## + # cat.exp - Test whether a "cat" program works on this u6a build + # + # Copyright (C) 2020 CismonX + # + # 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 . + # set tool "default" set timeout 5 diff --git a/tests/default/dump.exp b/tests/default/dump.exp index d7c6db8..723cdae 100644 --- a/tests/default/dump.exp +++ b/tests/default/dump.exp @@ -1,21 +1,21 @@ ## -## dump.exp - Test whether mnemonic dumping works on this u6a build -## -## Copyright (C) 2020 CismonX -## -## 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 . -## + # dump.exp - Test whether mnemonic dumping works on this u6a build + # + # Copyright (C) 2020 CismonX + # + # 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 . + # set tool "default" set timeout 1 diff --git a/tests/default/square.exp b/tests/default/square.exp index 29091b5..25ab8a1 100644 --- a/tests/default/square.exp +++ b/tests/default/square.exp @@ -1,21 +1,21 @@ ## -## square.exp - Test whether a "square" program works on this u6a build -## -## Copyright (C) 2020 CismonX -## -## 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 . -## + # square.exp - Test whether a "square" program works on this u6a build + # + # Copyright (C) 2020 CismonX + # + # 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 . + # set tool "default" set timeout 5 diff --git a/tests/init.exp b/tests/init.exp index b6df7de..26278bf 100644 --- a/tests/init.exp +++ b/tests/init.exp @@ -1,21 +1,21 @@ ## -## init.exp - u6a test init script -## -## Copyright (C) 2020 CismonX -## -## 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 . -## + # init.exp - u6a test init script + # + # Copyright (C) 2020 CismonX + # + # 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 . + # proc u6a_dump_mnemonics { src_code } { global U6AC_BIN diff --git a/tests/u6a_run b/tests/u6a_run index 471dee8..0d21182 100755 --- a/tests/u6a_run +++ b/tests/u6a_run @@ -1,22 +1,22 @@ #!/usr/bin/env bash ## -## u6a_run - helper script for running tests for u6a -## -## Copyright (C) 2020 CismonX -## -## 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 . -## + # u6a_run - helper script for running tests for u6a + # + # Copyright (C) 2020 CismonX + # + # 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 . + # U6A_BYTECODE=`echo $5 | $1 - | base64 $3` test -z $U6A_BYTECODE && exit -1