Skip to content

Commit

Permalink
Added more comments and some code clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
pzaino committed Nov 19, 2023
1 parent 3320157 commit bd42e09
Show file tree
Hide file tree
Showing 6 changed files with 312 additions and 6 deletions.
53 changes: 52 additions & 1 deletion src/dtblib/c/dtblib
Original file line number Diff line number Diff line change
@@ -1,5 +1,56 @@
/*
*/
* DTBLib: Device Tree Blob Parsing Library
*
* Copyright (c) 2023 by Paolo Fabio Zaino, all rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
* implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
* Limitations:
* - Redistribution and use of this software in source and binary
* forms, with or without modification, are permitted provided that
* the following conditions are met:
* - Redistributions of source code must retain the above copyright
* notice, this list of conditions, and the following disclaimer.
* - Redistributions in binary form must reproduce the above
* copyright notice, this list of conditions, and the following
* disclaimer in the documentation and/or other materials
* provided with the distribution.
* - Neither the name of Paolo Fabio Zaino, nor the names
* of its contributors may be used to endorse or promote products
* derived from this software without specific prior written
* permission.
* - Users of this software are prohibited from misrepresenting
* themselves as the authors or original contributors of this
* software.
*
* This software is provided by the copyright holders and contributors
* "as is" and any express or implied warranties, including, but not
* limited to, the implied warranties of merchantability and fitness
* for a particular purpose are disclaimed. In no event shall the
* copyright owner or contributors be liable for any direct,
* indirect, incidental, special, exemplary, or consequential damages
* (including, but not limited to, procurement of substitute goods or
* services; loss of use, data, or profits; or business interruption)
* however caused and on any theory of liability, whether in
* contract, strict liability, or tort (including negligence or
* otherwise) arising in any way out of the use of this software,
* even if advised of the possibility of such damage.
*
* For more details and the full text of the license, refer to the
* Apache 2.0 License file included with this project or available at
* the above URL.
*/

#include "krnllib.h"
#include "strlib.h"
Expand Down
53 changes: 52 additions & 1 deletion src/dtblib/c/krnllib
Original file line number Diff line number Diff line change
@@ -1,5 +1,56 @@
/*
*/
* DTBLib: Device Tree Blob Parsing Library
*
* Copyright (c) 2023 by Paolo Fabio Zaino, all rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
* implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
* Limitations:
* - Redistribution and use of this software in source and binary
* forms, with or without modification, are permitted provided that
* the following conditions are met:
* - Redistributions of source code must retain the above copyright
* notice, this list of conditions, and the following disclaimer.
* - Redistributions in binary form must reproduce the above
* copyright notice, this list of conditions, and the following
* disclaimer in the documentation and/or other materials
* provided with the distribution.
* - Neither the name of Paolo Fabio Zaino, nor the names
* of its contributors may be used to endorse or promote products
* derived from this software without specific prior written
* permission.
* - Users of this software are prohibited from misrepresenting
* themselves as the authors or original contributors of this
* software.
*
* This software is provided by the copyright holders and contributors
* "as is" and any express or implied warranties, including, but not
* limited to, the implied warranties of merchantability and fitness
* for a particular purpose are disclaimed. In no event shall the
* copyright owner or contributors be liable for any direct,
* indirect, incidental, special, exemplary, or consequential damages
* (including, but not limited to, procurement of substitute goods or
* services; loss of use, data, or profits; or business interruption)
* however caused and on any theory of liability, whether in
* contract, strict liability, or tort (including negligence or
* otherwise) arising in any way out of the use of this software,
* even if advised of the possibility of such damage.
*
* For more details and the full text of the license, refer to the
* Apache 2.0 License file included with this project or available at
* the above URL.
*/

#include "krnllib.h"

Expand Down
53 changes: 52 additions & 1 deletion src/dtblib/c/strlib
Original file line number Diff line number Diff line change
@@ -1,5 +1,56 @@
/*
*/
* DTBLib: Device Tree Blob Parsing Library
*
* Copyright (c) 2023 by Paolo Fabio Zaino, all rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
* implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
* Limitations:
* - Redistribution and use of this software in source and binary
* forms, with or without modification, are permitted provided that
* the following conditions are met:
* - Redistributions of source code must retain the above copyright
* notice, this list of conditions, and the following disclaimer.
* - Redistributions in binary form must reproduce the above
* copyright notice, this list of conditions, and the following
* disclaimer in the documentation and/or other materials
* provided with the distribution.
* - Neither the name of Paolo Fabio Zaino, nor the names
* of its contributors may be used to endorse or promote products
* derived from this software without specific prior written
* permission.
* - Users of this software are prohibited from misrepresenting
* themselves as the authors or original contributors of this
* software.
*
* This software is provided by the copyright holders and contributors
* "as is" and any express or implied warranties, including, but not
* limited to, the implied warranties of merchantability and fitness
* for a particular purpose are disclaimed. In no event shall the
* copyright owner or contributors be liable for any direct,
* indirect, incidental, special, exemplary, or consequential damages
* (including, but not limited to, procurement of substitute goods or
* services; loss of use, data, or profits; or business interruption)
* however caused and on any theory of liability, whether in
* contract, strict liability, or tort (including negligence or
* otherwise) arising in any way out of the use of this software,
* even if advised of the possibility of such damage.
*
* For more details and the full text of the license, refer to the
* Apache 2.0 License file included with this project or available at
* the above URL.
*/

#include "krnllib.h"
// #include "strlib.h"
Expand Down
53 changes: 52 additions & 1 deletion src/dtblib/h/dtblib
Original file line number Diff line number Diff line change
@@ -1,5 +1,56 @@
/*
*/
* DTBLib: Device Tree Blob Parsing Library
*
* Copyright (c) 2023 by Paolo Fabio Zaino, all rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
* implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
* Limitations:
* - Redistribution and use of this software in source and binary
* forms, with or without modification, are permitted provided that
* the following conditions are met:
* - Redistributions of source code must retain the above copyright
* notice, this list of conditions, and the following disclaimer.
* - Redistributions in binary form must reproduce the above
* copyright notice, this list of conditions, and the following
* disclaimer in the documentation and/or other materials
* provided with the distribution.
* - Neither the name of Paolo Fabio Zaino, nor the names
* of its contributors may be used to endorse or promote products
* derived from this software without specific prior written
* permission.
* - Users of this software are prohibited from misrepresenting
* themselves as the authors or original contributors of this
* software.
*
* This software is provided by the copyright holders and contributors
* "as is" and any express or implied warranties, including, but not
* limited to, the implied warranties of merchantability and fitness
* for a particular purpose are disclaimed. In no event shall the
* copyright owner or contributors be liable for any direct,
* indirect, incidental, special, exemplary, or consequential damages
* (including, but not limited to, procurement of substitute goods or
* services; loss of use, data, or profits; or business interruption)
* however caused and on any theory of liability, whether in
* contract, strict liability, or tort (including negligence or
* otherwise) arising in any way out of the use of this software,
* even if advised of the possibility of such damage.
*
* For more details and the full text of the license, refer to the
* Apache 2.0 License file included with this project or available at
* the above URL.
*/

#ifndef DTBLIB_H_
#define DTBLIB_H_
Expand Down
53 changes: 52 additions & 1 deletion src/dtblib/h/krnllib
Original file line number Diff line number Diff line change
@@ -1,5 +1,56 @@
/*
*/
* DTBLib: Device Tree Blob Parsing Library
*
* Copyright (c) 2023 by Paolo Fabio Zaino, all rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
* implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
* Limitations:
* - Redistribution and use of this software in source and binary
* forms, with or without modification, are permitted provided that
* the following conditions are met:
* - Redistributions of source code must retain the above copyright
* notice, this list of conditions, and the following disclaimer.
* - Redistributions in binary form must reproduce the above
* copyright notice, this list of conditions, and the following
* disclaimer in the documentation and/or other materials
* provided with the distribution.
* - Neither the name of Paolo Fabio Zaino, nor the names
* of its contributors may be used to endorse or promote products
* derived from this software without specific prior written
* permission.
* - Users of this software are prohibited from misrepresenting
* themselves as the authors or original contributors of this
* software.
*
* This software is provided by the copyright holders and contributors
* "as is" and any express or implied warranties, including, but not
* limited to, the implied warranties of merchantability and fitness
* for a particular purpose are disclaimed. In no event shall the
* copyright owner or contributors be liable for any direct,
* indirect, incidental, special, exemplary, or consequential damages
* (including, but not limited to, procurement of substitute goods or
* services; loss of use, data, or profits; or business interruption)
* however caused and on any theory of liability, whether in
* contract, strict liability, or tort (including negligence or
* otherwise) arising in any way out of the use of this software,
* even if advised of the possibility of such damage.
*
* For more details and the full text of the license, refer to the
* Apache 2.0 License file included with this project or available at
* the above URL.
*/

#ifndef KRNLLIB_H_
#define KRNLLIB_H_
Expand Down
53 changes: 52 additions & 1 deletion src/dtblib/h/strlib
Original file line number Diff line number Diff line change
@@ -1,5 +1,56 @@
/*
*/
* DTBLib: Device Tree Blob Parsing Library
*
* Copyright (c) 2023 by Paolo Fabio Zaino, all rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
* implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
* Limitations:
* - Redistribution and use of this software in source and binary
* forms, with or without modification, are permitted provided that
* the following conditions are met:
* - Redistributions of source code must retain the above copyright
* notice, this list of conditions, and the following disclaimer.
* - Redistributions in binary form must reproduce the above
* copyright notice, this list of conditions, and the following
* disclaimer in the documentation and/or other materials
* provided with the distribution.
* - Neither the name of Paolo Fabio Zaino, nor the names
* of its contributors may be used to endorse or promote products
* derived from this software without specific prior written
* permission.
* - Users of this software are prohibited from misrepresenting
* themselves as the authors or original contributors of this
* software.
*
* This software is provided by the copyright holders and contributors
* "as is" and any express or implied warranties, including, but not
* limited to, the implied warranties of merchantability and fitness
* for a particular purpose are disclaimed. In no event shall the
* copyright owner or contributors be liable for any direct,
* indirect, incidental, special, exemplary, or consequential damages
* (including, but not limited to, procurement of substitute goods or
* services; loss of use, data, or profits; or business interruption)
* however caused and on any theory of liability, whether in
* contract, strict liability, or tort (including negligence or
* otherwise) arising in any way out of the use of this software,
* even if advised of the possibility of such damage.
*
* For more details and the full text of the license, refer to the
* Apache 2.0 License file included with this project or available at
* the above URL.
*/

#ifndef STRLIB_H_
#define STRLIB_H_
Expand Down

0 comments on commit bd42e09

Please sign in to comment.