ライセンス表記を追加 (MIT License)
| @@ -1,5 +1,7 @@ | ||
| 1 | 1 | /** |
| 2 | 2 | * @file pack.c |
| 3 | + * @author Ryosuke Tajima | |
| 4 | + * @license The MIT License | |
| 3 | 5 | * |
| 4 | 6 | * データのpack/unpackライブラリ。 |
| 5 | 7 | * |
| @@ -30,8 +32,6 @@ | ||
| 30 | 32 | */ |
| 31 | 33 | #include "pack.h" |
| 32 | 34 | |
| 33 | -#define INLINE inline | |
| 34 | - | |
| 35 | 35 | /** |
| 36 | 36 | * @brief charをsaveする内部関数 |
| 37 | 37 | * @param p save先へのポインタ |
| @@ -625,7 +625,7 @@ | ||
| 625 | 625 | * @param buffer データ領域の先頭へのポインタ |
| 626 | 626 | * @param format 書式文字列 |
| 627 | 627 | * @param ... loadする変数列(可変引数) |
| 628 | - * @revtal buffer内からloadされた領域の直後へのポインタ | |
| 628 | + * @retval buffer内からloadされた領域の直後へのポインタ | |
| 629 | 629 | */ |
| 630 | 630 | char* |
| 631 | 631 | pack_load (char *buffer, char *format, ...) |
| @@ -0,0 +1,21 @@ | ||
| 1 | +The MIT License | |
| 2 | + | |
| 3 | +Copyright (c) 2009 Ryosuke Tajima | |
| 4 | + | |
| 5 | +Permission is hereby granted, free of charge, to any person obtaining a copy | |
| 6 | +of this software and associated documentation files (the "Software"), to deal | |
| 7 | +in the Software without restriction, including without limitation the rights | |
| 8 | +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
| 9 | +copies of the Software, and to permit persons to whom the Software is | |
| 10 | +furnished to do so, subject to the following conditions: | |
| 11 | + | |
| 12 | +The above copyright notice and this permission notice shall be included in | |
| 13 | +all copies or substantial portions of the Software. | |
| 14 | + | |
| 15 | +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | |
| 16 | +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | |
| 17 | +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | |
| 18 | +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | |
| 19 | +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | |
| 20 | +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN | |
| 21 | +THE SOFTWARE. | |
| \ No newline at end of file |
| @@ -1,6 +1,9 @@ | ||
| 1 | 1 | /** |
| 2 | 2 | * @file pack.h |
| 3 | 3 | * @defgroup pack |
| 4 | + * @author Ryosuke Tajima | |
| 5 | + * @license The MIT License | |
| 6 | + * | |
| 4 | 7 | * packライブラリの関数宣言 |
| 5 | 8 | */ |
| 6 | 9 | #ifndef __PACK_H__ |
| @@ -9,6 +12,8 @@ | ||
| 9 | 12 | #include <stdlib.h> |
| 10 | 13 | #include <stdarg.h> |
| 11 | 14 | |
| 15 | +#define INLINE inline | |
| 16 | + | |
| 12 | 17 | int pack_size (char *format, ...); |
| 13 | 18 | char* pack_save (char *buffer, char *format, ...); |
| 14 | 19 | char* pack_load (char* self, char* format, ...); |