From 83329a0e8607f2e93b69097fdcad6c1f9fa1bc8c Mon Sep 17 00:00:00 2001 From: Natalia Portillo Date: Tue, 22 Sep 2015 05:27:10 +0100 Subject: [PATCH] Code clean up. --- ChangeLog | 7 +++++++ Program.cs | 28 +++++++++++++++++++++++++--- SubChannelDecoder.sln | 12 ++++++++++++ Subchannel.cs | 39 ++++++++++++++++++++++++++++++--------- 4 files changed, 74 insertions(+), 12 deletions(-) diff --git a/ChangeLog b/ChangeLog index 48fab43..4117fcd 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2015-09-22 Natalia Portillo + + * Program.cs: + * Subchannel.cs: + * SubChannelDecoder.sln: + Code clean up. + 2015-09-22 Natalia Portillo * Program.cs: diff --git a/Program.cs b/Program.cs index 3106e84..7fcd569 100644 --- a/Program.cs +++ b/Program.cs @@ -1,6 +1,28 @@ -using System; +// +// Program.cs +// +// Author: +// Natalia Portillo +// +// Copyright (c) 2015 © Claunia.com +// +// 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 2 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, write to the Free Software +// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA +// + +using System; using System.IO; -using System.Text; namespace SubChannelDecoder { @@ -16,7 +38,7 @@ namespace SubChannelDecoder const int QMode5 = 0x05; static readonly char[] ISRCTable = - { + { '0', '1', '2', '3', '4', '5', '6', '7', '8', '9', 'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', diff --git a/SubChannelDecoder.sln b/SubChannelDecoder.sln index 6b62d78..8d979c9 100644 --- a/SubChannelDecoder.sln +++ b/SubChannelDecoder.sln @@ -14,4 +14,16 @@ Global {F596C10C-76EB-43BA-859D-C34191B02A2C}.Release|x86.ActiveCfg = Release|x86 {F596C10C-76EB-43BA-859D-C34191B02A2C}.Release|x86.Build.0 = Release|x86 EndGlobalSection + GlobalSection(MonoDevelopProperties) = preSolution + Policies = $0 + $0.StandardHeader = $1 + $1.Text = @\n ${FileName}\n \n Author:\n ${AuthorName} <${AuthorEmail}>\n\n Copyright (c) ${Year} ${CopyrightHolder}\n\n This program is free software; you can redistribute it and/or modify\n it under the terms of the GNU General Public License as published by\n the Free Software Foundation; either version 2 of the License, or\n (at your option) any later version.\n\n This program is distributed in the hope that it will be useful,\n but WITHOUT ANY WARRANTY; without even the implied warranty of\n MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n GNU General Public License for more details.\n \n You should have received a copy of the GNU General Public License\n along with this program; if not, write to the Free Software\n Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA\n + $1.IncludeInNewFiles = True + $0.ChangeLogPolicy = $2 + $2.UpdateMode = ProjectRoot + $2.MessageStyle = $3 + $3.LastFilePostfix = "@:\n " + $3.IncludeDirectoryPaths = True + $2.inheritsSet = Mono + EndGlobalSection EndGlobal diff --git a/Subchannel.cs b/Subchannel.cs index 6a945c5..e0751ea 100644 --- a/Subchannel.cs +++ b/Subchannel.cs @@ -1,4 +1,25 @@ -using System; +// +// Subchannel.cs +// +// Author: +// Natalia Portillo +// +// Copyright (c) 2015 © Claunia.com +// +// 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 2 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, write to the Free Software +// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA +// namespace SubChannelDecoder { @@ -15,14 +36,14 @@ namespace SubChannelDecoder public Subchannel() { - this.p = new byte[12]; - this.q = new byte[12]; - this.r = new byte[12]; - this.s = new byte[12]; - this.t = new byte[12]; - this.u = new byte[12]; - this.v = new byte[12]; - this.w = new byte[12]; + p = new byte[12]; + q = new byte[12]; + r = new byte[12]; + s = new byte[12]; + t = new byte[12]; + u = new byte[12]; + v = new byte[12]; + w = new byte[12]; } } }