|
55 | 55 |
|
56 | 56 | #ifndef SWIFTPARSE_PUBLIC
|
57 | 57 | # ifdef _WIN32
|
58 |
| -# ifdef SwiftSyntaxParser_EXPORTS |
| 58 | +# ifdef libSwiftSyntaxParser_EXPORTS |
59 | 59 | # define SWIFTPARSE_PUBLIC __declspec(dllexport)
|
60 | 60 | # else
|
61 | 61 | # define SWIFTPARSE_PUBLIC __declspec(dllimport)
|
@@ -126,7 +126,6 @@ typedef struct {
|
126 | 126 | //=== Parser Functions ----------------------------------------------------===//
|
127 | 127 |
|
128 | 128 | typedef void *swiftparse_parser_t;
|
129 |
| -typedef void *swiftparse_alloc_t; |
130 | 129 |
|
131 | 130 | SWIFTPARSE_PUBLIC swiftparse_parser_t
|
132 | 131 | swiftparse_parser_create(void);
|
@@ -168,13 +167,13 @@ typedef swiftparse_lookup_result_t
|
168 | 167 | /// It is not required to set a \c swiftparse_node_lookup_t block before calling
|
169 | 168 | /// \c swiftparse_parse_string. Not setting a \c swiftparse_node_lookup_t block
|
170 | 169 | /// has same semantics as never skipping any source regions.
|
171 |
| -/// \c swiftparse_node_lookup_t can be called multiple times to change the block |
172 |
| -/// before subsequent parses. |
| 170 | +/// \c swiftparse_parser_set_node_lookup can be called multiple times to change |
| 171 | +/// the block before subsequent parses. |
173 | 172 | SWIFTPARSE_PUBLIC void
|
174 | 173 | swiftparse_parser_set_node_lookup(swiftparse_parser_t,
|
175 | 174 | swiftparse_node_lookup_t);
|
176 | 175 |
|
177 |
| -/// Parse the provided \c source and invoke the callback that was set via |
| 176 | +/// Parse the provided \p source and invoke the callback that was set via |
178 | 177 | /// \c swiftparse_parser_set_node_handler as each syntax node is parsed.
|
179 | 178 | ///
|
180 | 179 | /// Syntax nodes are provided in a top-bottom, depth-first order. For example,
|
|
0 commit comments