Skip to content

Commit

Permalink
Licence and comments gardening.
Browse files Browse the repository at this point in the history
  • Loading branch information
BlockoS committed Oct 11, 2023
1 parent 800b57e commit 99397b4
Show file tree
Hide file tree
Showing 37 changed files with 628 additions and 771 deletions.
49 changes: 18 additions & 31 deletions cd.c
Original file line number Diff line number Diff line change
@@ -1,28 +1,24 @@
/*
This file is part of Etripator,
copyright (c) 2009--2023 Vincent Cruz.
Etripator 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.
Etripator 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 Etripator. If not, see <http://www.gnu.org/licenses/>.
*/
* This file is part of Etripator,
* copyright (c) 2009--2023 Vincent Cruz.
*
* Etripator 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.
*
* Etripator 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 Etripator. If not, see <http://www.gnu.org/licenses/>.
*/
#include "cd.h"
#include "message.h"

/**
* Adds CD RAM to memory map.
* \param map Memory map.
* \return 1 upon success, 0 if an error occured.
*/
/* Adds CD RAM to memory map. */
int cd_memmap(memmap_t *map) {
int i, ret = 0;
/* Allocate CD RAM */
Expand All @@ -48,16 +44,7 @@ int cd_memmap(memmap_t *map) {
}
return ret;
}
/**
* Load CDROM data from file.
* \param [in] filename CDROM data filename.
* \param [in] start CDROM data offset.
* \param [in] len CDROM data length (in bytes).
* \param [in] page Memory page.
* \param [in] offset memory page offset.
* \param [out] memmap Memory map.
* \return 1 upon success, 0 if an error occured.
*/
/* Load CDROM data from file. */
int cd_load(const char* filename, size_t start, size_t len, uint8_t page, size_t offset, memmap_t* map) {
int ret = 0;
FILE *in = fopen(filename, "rb");
Expand Down
32 changes: 16 additions & 16 deletions cd.h
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
/*
This file is part of Etripator,
copyright (c) 2009--2023 Vincent Cruz.
Etripator 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.
Etripator 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 Etripator. If not, see <http://www.gnu.org/licenses/>.
*/
* This file is part of Etripator,
* copyright (c) 2009--2023 Vincent Cruz.
*
* Etripator 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.
*
* Etripator 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 Etripator. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef ETRIPATOR_CD_H
#define ETRIPATOR_CD_H

Expand Down
32 changes: 16 additions & 16 deletions comment.c
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
/*
This file is part of Etripator,
copyright (c) 2009--2023 Vincent Cruz.
Etripator 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.
Etripator 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 Etripator. If not, see <http://www.gnu.org/licenses/>.
*/
* This file is part of Etripator,
* copyright (c) 2009--2023 Vincent Cruz.
*
* Etripator 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.
*
* Etripator 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 Etripator. If not, see <http://www.gnu.org/licenses/>.
*/
#include "comment.h"
#include "message.h"

Expand Down
32 changes: 16 additions & 16 deletions comment.h
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
/*
This file is part of Etripator,
copyright (c) 2009--2023 Vincent Cruz.
Etripator 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.
Etripator 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 Etripator. If not, see <http://www.gnu.org/licenses/>.
*/
* This file is part of Etripator,
* copyright (c) 2009--2023 Vincent Cruz.
*
* Etripator 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.
*
* Etripator 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 Etripator. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef ETRIPATOR_COMMENT_H
#define ETRIPATOR_COMMENT_H

Expand Down
32 changes: 16 additions & 16 deletions config.h
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
/*
This file is part of Etripator,
copyright (c) 2009--2023 Vincent Cruz.
Etripator 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.
Etripator 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 Etripator. If not, see <http://www.gnu.org/licenses/>.
*/
* This file is part of Etripator,
* copyright (c) 2009--2023 Vincent Cruz.
*
* Etripator 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.
*
* Etripator 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 Etripator. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef ETRIPATOR_CONFIG_H
#define ETRIPATOR_CONFIG_H

Expand Down
32 changes: 16 additions & 16 deletions decode.c
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
/*
This file is part of Etripator,
copyright (c) 2009--2023 Vincent Cruz.
Etripator 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.
Etripator 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 Etripator. If not, see <http://www.gnu.org/licenses/>.
*/
* This file is part of Etripator,
* copyright (c) 2009--2023 Vincent Cruz.
*
* Etripator 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.
*
* Etripator 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 Etripator. If not, see <http://www.gnu.org/licenses/>.
*/
#include "decode.h"
#include "message.h"
#include "opcodes.h"
Expand Down
32 changes: 16 additions & 16 deletions decode.h
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
/*
This file is part of Etripator,
copyright (c) 2009--2023 Vincent Cruz.
Etripator 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.
Etripator 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 Etripator. If not, see <http://www.gnu.org/licenses/>.
*/
* This file is part of Etripator,
* copyright (c) 2009--2023 Vincent Cruz.
*
* Etripator 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.
*
* Etripator 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 Etripator. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef ETRIPATOR_DECODE_H
#define ETRIPATOR_DECODE_H

Expand Down
48 changes: 18 additions & 30 deletions ipl.c
Original file line number Diff line number Diff line change
@@ -1,21 +1,20 @@
/*
This file is part of Etripator,
copyright (c) 2009--2023 Vincent Cruz.
Etripator 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.
Etripator 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 Etripator. If not, see <http://www.gnu.org/licenses/>.
*/

* This file is part of Etripator,
* copyright (c) 2009--2023 Vincent Cruz.
*
* Etripator 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.
*
* Etripator 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 Etripator. If not, see <http://www.gnu.org/licenses/>.
*/
#include "ipl.h"
#include "message.h"

Expand Down Expand Up @@ -111,12 +110,7 @@ void ipl_print(ipl_t *in) {
}
}

/**
* Read IPL data from file.
* \param [out] out IPL infos.
* \param [in] filename Input filename.
* \return 0 on error, 1 otherwise.
*/
/* Read IPL data from file. */
int ipl_read(ipl_t *out, const char *filename) {
FILE *in = fopen(filename, "rb");
int ret = 0;
Expand All @@ -134,13 +128,7 @@ int ipl_read(ipl_t *out, const char *filename) {
return ret;
}

/**
* Get irq code offsets from IPL.
* \param [in] in IPL infos.
* \param [out] section Sections.
* \param [out] count Section count.
* \return 0 on error, 1 otherwise.
*/
/* Get irq code offsets from IPL. */
int ipl_sections(ipl_t *in, section_t **out, int *count) {
int i, j, k, extra;
section_t *section;
Expand Down
32 changes: 16 additions & 16 deletions ipl.h
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
/*
This file is part of Etripator,
copyright (c) 2009--2023 Vincent Cruz.
Etripator 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.
Etripator 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 Etripator. If not, see <http://www.gnu.org/licenses/>.
*/
* This file is part of Etripator,
* copyright (c) 2009--2023 Vincent Cruz.
*
* Etripator 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.
*
* Etripator 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 Etripator. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef IPL_H
#define IPL_H

Expand Down
Loading

0 comments on commit 99397b4

Please sign in to comment.