diff options
| author | David M. Syzdek <david@syzdek.net> | 2023-11-11 13:53:02 -0900 |
|---|---|---|
| committer | David M. Syzdek <david@syzdek.net> | 2023-11-11 13:53:02 -0900 |
| commit | 3f00dd506d8c8136de4363ea6838f397842bede9 (patch) | |
| tree | 5babb57ee441efc2c16142ae8f8a1ce31997d7d5 | |
| parent | b498650ba3c8076f98f408ff9fe51d5a3a50bf33 (diff) | |
| download | bindletools-3f00dd506d8c8136de4363ea6838f397842bede9.tar.gz bindletools-3f00dd506d8c8136de4363ea6838f397842bede9.tar.bz2 bindletools-3f00dd506d8c8136de4363ea6838f397842bede9.tar.xz bindletools-3f00dd506d8c8136de4363ea6838f397842bede9.zip | |
bindletools: replacing '#pragma mark' with '// MARK:'
| -rw-r--r-- | src/bindletools.c | 18 | ||||
| -rw-r--r-- | src/bindletools.h | 22 | ||||
| -rw-r--r-- | src/widget-encodings.c | 14 | ||||
| -rw-r--r-- | src/widget-expand.c | 6 | ||||
| -rw-r--r-- | src/widget-urldesc.c | 16 |
5 files changed, 38 insertions, 38 deletions
diff --git a/src/bindletools.c b/src/bindletools.c index d383111..3a113f7 100644 --- a/src/bindletools.c +++ b/src/bindletools.c | |||
| @@ -37,7 +37,7 @@ | |||
| 37 | // Headers // | 37 | // Headers // |
| 38 | // // | 38 | // // |
| 39 | /////////////// | 39 | /////////////// |
| 40 | #pragma mark - Headers | 40 | // MARK: - Headers |
| 41 | 41 | ||
| 42 | #include <stdio.h> | 42 | #include <stdio.h> |
| 43 | #include <string.h> | 43 | #include <string.h> |
| @@ -50,7 +50,7 @@ | |||
| 50 | // Macros // | 50 | // Macros // |
| 51 | // // | 51 | // // |
| 52 | ////////////// | 52 | ////////////// |
| 53 | #pragma mark - Macros | 53 | // MARK: - Macros |
| 54 | 54 | ||
| 55 | 55 | ||
| 56 | /////////////////// | 56 | /////////////////// |
| @@ -58,7 +58,7 @@ | |||
| 58 | // Definitions // | 58 | // Definitions // |
| 59 | // // | 59 | // // |
| 60 | /////////////////// | 60 | /////////////////// |
| 61 | #pragma mark - Definitions | 61 | // MARK: - Definitions |
| 62 | 62 | ||
| 63 | 63 | ||
| 64 | ////////////////// | 64 | ////////////////// |
| @@ -66,7 +66,7 @@ | |||
| 66 | // Data Types // | 66 | // Data Types // |
| 67 | // // | 67 | // // |
| 68 | ////////////////// | 68 | ////////////////// |
| 69 | #pragma mark - Data Types | 69 | // MARK: - Data Types |
| 70 | 70 | ||
| 71 | 71 | ||
| 72 | ///////////////// | 72 | ///////////////// |
| @@ -74,9 +74,9 @@ | |||
| 74 | // Variables // | 74 | // Variables // |
| 75 | // // | 75 | // // |
| 76 | ///////////////// | 76 | ///////////////// |
| 77 | #pragma mark - Variables | 77 | // MARK: - Variables |
| 78 | 78 | ||
| 79 | #pragma mark bindle_options[] | 79 | // MARK: bindle_options[] |
| 80 | const char * const bindle_options[] = | 80 | const char * const bindle_options[] = |
| 81 | { | 81 | { |
| 82 | " -D level, --debug=level set debug level", | 82 | " -D level, --debug=level set debug level", |
| @@ -88,7 +88,7 @@ const char * const bindle_options[] = | |||
| 88 | }; | 88 | }; |
| 89 | 89 | ||
| 90 | 90 | ||
| 91 | #pragma mark bindle_widget_map[] | 91 | // MARK: bindle_widget_map[] |
| 92 | const bindle_widget_t bindle_widget_map[] = | 92 | const bindle_widget_t bindle_widget_map[] = |
| 93 | { | 93 | { |
| 94 | { | 94 | { |
| @@ -208,7 +208,7 @@ const bindle_widget_t bindle_widget_map[] = | |||
| 208 | // Prototypes // | 208 | // Prototypes // |
| 209 | // // | 209 | // // |
| 210 | ////////////////// | 210 | ////////////////// |
| 211 | #pragma mark - Prototypes | 211 | // MARK: - Prototypes |
| 212 | 212 | ||
| 213 | static int | 213 | static int |
| 214 | bindle_usage_cmp( | 214 | bindle_usage_cmp( |
| @@ -233,7 +233,7 @@ main( | |||
| 233 | // Functions // | 233 | // Functions // |
| 234 | // // | 234 | // // |
| 235 | ///////////////// | 235 | ///////////////// |
| 236 | #pragma mark - Functions | 236 | // MARK: - Functions |
| 237 | 237 | ||
| 238 | int | 238 | int |
| 239 | bindle_getopt( | 239 | bindle_getopt( |
diff --git a/src/bindletools.h b/src/bindletools.h index 328760a..f2934a5 100644 --- a/src/bindletools.h +++ b/src/bindletools.h | |||
| @@ -37,7 +37,7 @@ | |||
| 37 | // Headers // | 37 | // Headers // |
| 38 | // // | 38 | // // |
| 39 | /////////////// | 39 | /////////////// |
| 40 | #pragma mark - Headers | 40 | // MARK: - Headers |
| 41 | 41 | ||
| 42 | // defined in the Single UNIX Specification | 42 | // defined in the Single UNIX Specification |
| 43 | #ifndef _XOPEN_SOURCE | 43 | #ifndef _XOPEN_SOURCE |
| @@ -62,7 +62,7 @@ | |||
| 62 | // Macros // | 62 | // Macros // |
| 63 | // // | 63 | // // |
| 64 | ////////////// | 64 | ////////////// |
| 65 | #pragma mark - Macros | 65 | // MARK: - Macros |
| 66 | 66 | ||
| 67 | 67 | ||
| 68 | /////////////////// | 68 | /////////////////// |
| @@ -70,7 +70,7 @@ | |||
| 70 | // Definitions // | 70 | // Definitions // |
| 71 | // // | 71 | // // |
| 72 | /////////////////// | 72 | /////////////////// |
| 73 | #pragma mark - Definitions | 73 | // MARK: - Definitions |
| 74 | 74 | ||
| 75 | #undef PROGRAM_NAME | 75 | #undef PROGRAM_NAME |
| 76 | #define PROGRAM_NAME "bindletools" | 76 | #define PROGRAM_NAME "bindletools" |
| @@ -107,7 +107,7 @@ | |||
| 107 | // Data Types // | 107 | // Data Types // |
| 108 | // // | 108 | // // |
| 109 | ////////////////// | 109 | ////////////////// |
| 110 | #pragma mark - Data Types | 110 | // MARK: - Data Types |
| 111 | 111 | ||
| 112 | typedef struct bindle_config bindle_conf_t; | 112 | typedef struct bindle_config bindle_conf_t; |
| 113 | typedef struct bindle_widget bindle_widget_t; | 113 | typedef struct bindle_widget bindle_widget_t; |
| @@ -143,9 +143,9 @@ struct bindle_widget | |||
| 143 | // Variables // | 143 | // Variables // |
| 144 | // // | 144 | // // |
| 145 | ///////////////// | 145 | ///////////////// |
| 146 | #pragma mark - Variables | 146 | // MARK: - Variables |
| 147 | 147 | ||
| 148 | #pragma mark tinyrad_cmdmap[] | 148 | // MARK: tinyrad_cmdmap[] |
| 149 | extern const bindle_widget_t bindle_widget_map[]; | 149 | extern const bindle_widget_t bindle_widget_map[]; |
| 150 | 150 | ||
| 151 | 151 | ||
| @@ -154,12 +154,12 @@ extern const bindle_widget_t bindle_widget_map[]; | |||
| 154 | // Prototypes // | 154 | // Prototypes // |
| 155 | // // | 155 | // // |
| 156 | ////////////////// | 156 | ////////////////// |
| 157 | #pragma mark - Prototypes | 157 | // MARK: - Prototypes |
| 158 | 158 | ||
| 159 | //-----------------// | 159 | //-----------------// |
| 160 | // core prototypes // | 160 | // core prototypes // |
| 161 | //-----------------// | 161 | //-----------------// |
| 162 | #pragma mark core prototypes | 162 | // MARK: core prototypes |
| 163 | 163 | ||
| 164 | extern int | 164 | extern int |
| 165 | bindle_getopt( | 165 | bindle_getopt( |
| @@ -184,7 +184,7 @@ bindle_version( | |||
| 184 | //---------------// | 184 | //---------------// |
| 185 | // encodings widget // | 185 | // encodings widget // |
| 186 | //---------------// | 186 | //---------------// |
| 187 | #pragma mark encodings widget | 187 | // MARK: encodings widget |
| 188 | 188 | ||
| 189 | extern const char * const bindle_widget_encodings_options[]; | 189 | extern const char * const bindle_widget_encodings_options[]; |
| 190 | 190 | ||
| @@ -222,7 +222,7 @@ bindle_widget_pctenc( | |||
| 222 | //---------------// | 222 | //---------------// |
| 223 | // expand widget // | 223 | // expand widget // |
| 224 | //---------------// | 224 | //---------------// |
| 225 | #pragma mark expand widget | 225 | // MARK: expand widget |
| 226 | 226 | ||
| 227 | extern int | 227 | extern int |
| 228 | bindle_widget_expand( | 228 | bindle_widget_expand( |
| @@ -237,7 +237,7 @@ bindle_widget_expand_usage( | |||
| 237 | //----------------// | 237 | //----------------// |
| 238 | // urldesc widget // | 238 | // urldesc widget // |
| 239 | //----------------// | 239 | //----------------// |
| 240 | #pragma mark urldesc widget | 240 | // MARK: urldesc widget |
| 241 | 241 | ||
| 242 | extern const char * const bindle_widget_urldesc_options[]; | 242 | extern const char * const bindle_widget_urldesc_options[]; |
| 243 | 243 | ||
diff --git a/src/widget-encodings.c b/src/widget-encodings.c index e0c9867..0ffa200 100644 --- a/src/widget-encodings.c +++ b/src/widget-encodings.c | |||
| @@ -37,7 +37,7 @@ | |||
| 37 | // Headers // | 37 | // Headers // |
| 38 | // // | 38 | // // |
| 39 | /////////////// | 39 | /////////////// |
| 40 | #pragma mark - Headers | 40 | // MARK: - Headers |
| 41 | 41 | ||
| 42 | #include <stdio.h> | 42 | #include <stdio.h> |
| 43 | #include <string.h> | 43 | #include <string.h> |
| @@ -55,7 +55,7 @@ | |||
| 55 | // Definitions // | 55 | // Definitions // |
| 56 | // // | 56 | // // |
| 57 | /////////////////// | 57 | /////////////////// |
| 58 | #pragma mark - Definitions | 58 | // MARK: - Definitions |
| 59 | 59 | ||
| 60 | #define BINDLE_BUFF_SIZE (40*3) | 60 | #define BINDLE_BUFF_SIZE (40*3) |
| 61 | 61 | ||
| @@ -84,7 +84,7 @@ | |||
| 84 | // Data Types // | 84 | // Data Types // |
| 85 | // // | 85 | // // |
| 86 | ////////////////// | 86 | ////////////////// |
| 87 | #pragma mark - Data Types | 87 | // MARK: - Data Types |
| 88 | 88 | ||
| 89 | struct bindle_state | 89 | struct bindle_state |
| 90 | { | 90 | { |
| @@ -106,9 +106,9 @@ struct bindle_state | |||
| 106 | // Variables // | 106 | // Variables // |
| 107 | // // | 107 | // // |
| 108 | ///////////////// | 108 | ///////////////// |
| 109 | #pragma mark - Variables | 109 | // MARK: - Variables |
| 110 | 110 | ||
| 111 | #pragma mark bindle_widget_encodings_options[] | 111 | // MARK: bindle_widget_encodings_options[] |
| 112 | const char * const bindle_widget_encodings_options[] = | 112 | const char * const bindle_widget_encodings_options[] = |
| 113 | { | 113 | { |
| 114 | " -d, --decode decode string", | 114 | " -d, --decode decode string", |
| @@ -129,7 +129,7 @@ const char * const bindle_widget_encodings_options[] = | |||
| 129 | // Prototypes // | 129 | // Prototypes // |
| 130 | // // | 130 | // // |
| 131 | ////////////////// | 131 | ////////////////// |
| 132 | #pragma mark - Prototypes | 132 | // MARK: - Prototypes |
| 133 | 133 | ||
| 134 | static int | 134 | static int |
| 135 | bindle_widget_encodings( | 135 | bindle_widget_encodings( |
| @@ -167,7 +167,7 @@ bindle_encodings_src_string( | |||
| 167 | // Functions // | 167 | // Functions // |
| 168 | // // | 168 | // // |
| 169 | ///////////////// | 169 | ///////////////// |
| 170 | #pragma mark - Functions | 170 | // MARK: - Functions |
| 171 | 171 | ||
| 172 | int | 172 | int |
| 173 | bindle_widget_base16( | 173 | bindle_widget_base16( |
diff --git a/src/widget-expand.c b/src/widget-expand.c index 9d8d74c..6c879e6 100644 --- a/src/widget-expand.c +++ b/src/widget-expand.c | |||
| @@ -37,7 +37,7 @@ | |||
| 37 | // Headers // | 37 | // Headers // |
| 38 | // // | 38 | // // |
| 39 | /////////////// | 39 | /////////////// |
| 40 | #pragma mark - Headers | 40 | // MARK: - Headers |
| 41 | 41 | ||
| 42 | #include <stdio.h> | 42 | #include <stdio.h> |
| 43 | #include <string.h> | 43 | #include <string.h> |
| @@ -55,7 +55,7 @@ | |||
| 55 | // Definitions // | 55 | // Definitions // |
| 56 | // // | 56 | // // |
| 57 | /////////////////// | 57 | /////////////////// |
| 58 | #pragma mark - Definitions | 58 | // MARK: - Definitions |
| 59 | 59 | ||
| 60 | #define BINDLE_BUFF_SIZE 4096 | 60 | #define BINDLE_BUFF_SIZE 4096 |
| 61 | 61 | ||
| @@ -65,7 +65,7 @@ | |||
| 65 | // Functions // | 65 | // Functions // |
| 66 | // // | 66 | // // |
| 67 | ///////////////// | 67 | ///////////////// |
| 68 | #pragma mark - Functions | 68 | // MARK: - Functions |
| 69 | 69 | ||
| 70 | int | 70 | int |
| 71 | bindle_widget_expand( | 71 | bindle_widget_expand( |
diff --git a/src/widget-urldesc.c b/src/widget-urldesc.c index b5e9c7e..48e3aeb 100644 --- a/src/widget-urldesc.c +++ b/src/widget-urldesc.c | |||
| @@ -37,7 +37,7 @@ | |||
| 37 | // Headers // | 37 | // Headers // |
| 38 | // // | 38 | // // |
| 39 | /////////////// | 39 | /////////////// |
| 40 | #pragma mark - Headers | 40 | // MARK: - Headers |
| 41 | 41 | ||
| 42 | #include <stdio.h> | 42 | #include <stdio.h> |
| 43 | #include <string.h> | 43 | #include <string.h> |
| @@ -51,7 +51,7 @@ | |||
| 51 | // Macros // | 51 | // Macros // |
| 52 | // // | 52 | // // |
| 53 | ////////////// | 53 | ////////////// |
| 54 | #pragma mark - Macros | 54 | // MARK: - Macros |
| 55 | 55 | ||
| 56 | 56 | ||
| 57 | /////////////////// | 57 | /////////////////// |
| @@ -59,7 +59,7 @@ | |||
| 59 | // Definitions // | 59 | // Definitions // |
| 60 | // // | 60 | // // |
| 61 | /////////////////// | 61 | /////////////////// |
| 62 | #pragma mark - Definitions | 62 | // MARK: - Definitions |
| 63 | 63 | ||
| 64 | #define BINDLE_FLG_IPV4 0x00000100UL | 64 | #define BINDLE_FLG_IPV4 0x00000100UL |
| 65 | #define BINDLE_FLG_IPV6 0x00000200UL | 65 | #define BINDLE_FLG_IPV6 0x00000200UL |
| @@ -90,7 +90,7 @@ | |||
| 90 | // Data Types // | 90 | // Data Types // |
| 91 | // // | 91 | // // |
| 92 | ////////////////// | 92 | ////////////////// |
| 93 | #pragma mark - Data Types | 93 | // MARK: - Data Types |
| 94 | 94 | ||
| 95 | 95 | ||
| 96 | ///////////////// | 96 | ///////////////// |
| @@ -98,9 +98,9 @@ | |||
| 98 | // Variables // | 98 | // Variables // |
| 99 | // // | 99 | // // |
| 100 | ///////////////// | 100 | ///////////////// |
| 101 | #pragma mark - Variables | 101 | // MARK: - Variables |
| 102 | 102 | ||
| 103 | #pragma mark bindle_widget_urldesc_options[] | 103 | // MARK: bindle_widget_urldesc_options[] |
| 104 | const char * const bindle_widget_urldesc_options[] = | 104 | const char * const bindle_widget_urldesc_options[] = |
| 105 | { | 105 | { |
| 106 | " -4 resolve host to IPv4 address", | 106 | " -4 resolve host to IPv4 address", |
| @@ -127,7 +127,7 @@ const char * const bindle_widget_urldesc_options[] = | |||
| 127 | // Prototypes // | 127 | // Prototypes // |
| 128 | // // | 128 | // // |
| 129 | ////////////////// | 129 | ////////////////// |
| 130 | #pragma mark - Prototypes | 130 | // MARK: - Prototypes |
| 131 | 131 | ||
| 132 | static void | 132 | static void |
| 133 | bindle_widget_urldesc_print( | 133 | bindle_widget_urldesc_print( |
| @@ -158,7 +158,7 @@ bindle_widget_urldesc_unsigned( | |||
| 158 | // Functions // | 158 | // Functions // |
| 159 | // // | 159 | // // |
| 160 | ///////////////// | 160 | ///////////////// |
| 161 | #pragma mark - Functions | 161 | // MARK: - Functions |
| 162 | 162 | ||
| 163 | int | 163 | int |
| 164 | bindle_widget_urldesc( | 164 | bindle_widget_urldesc( |
