]> git.ipfire.org Git - thirdparty/vectorscan.git/commitdiff
dynamic compression: add HS_CDECL to implementation
authorAlex Coyte <a.coyte@intel.com>
Mon, 7 Aug 2017 03:50:21 +0000 (13:50 +1000)
committerMatthew Barr <matthew.barr@intel.com>
Mon, 21 Aug 2017 01:24:52 +0000 (11:24 +1000)
src/runtime.c

index 8e3a4def20ca1bad2c79ad8e58585088b06b4484..c384c0318252f7b04f860ca982f0ec9013efd70b 100644 (file)
@@ -1096,8 +1096,8 @@ hs_error_t HS_CDECL hs_scan_vector(const hs_database_t *db,
 }
 
 HS_PUBLIC_API
-hs_error_t hs_compress_stream(const hs_stream_t *stream, char *buf,
-                              size_t buf_space, size_t *used_space) {
+hs_error_t HS_CDECL hs_compress_stream(const hs_stream_t *stream, char *buf,
+                                       size_t buf_space, size_t *used_space) {
     if (unlikely(!stream || !used_space)) {
         return HS_INVALID;
     }
@@ -1123,8 +1123,9 @@ hs_error_t hs_compress_stream(const hs_stream_t *stream, char *buf,
 }
 
 HS_PUBLIC_API
-hs_error_t hs_expand_stream(const hs_database_t *db, hs_stream_t **stream,
-                            const char *buf, size_t buf_size) {
+hs_error_t HS_CDECL hs_expand_stream(const hs_database_t *db,
+                                     hs_stream_t **stream,
+                                     const char *buf, size_t buf_size) {
     if (unlikely(!stream || !buf)) {
         return HS_INVALID;
     }
@@ -1162,11 +1163,11 @@ hs_error_t hs_expand_stream(const hs_database_t *db, hs_stream_t **stream,
 }
 
 HS_PUBLIC_API
-hs_error_t hs_reset_and_expand_stream(hs_stream_t *to_stream,
-                                      const char *buf, size_t buf_size,
-                                      hs_scratch_t *scratch,
-                                      match_event_handler onEvent,
-                                      void *context) {
+hs_error_t HS_CDECL hs_reset_and_expand_stream(hs_stream_t *to_stream,
+                                               const char *buf, size_t buf_size,
+                                               hs_scratch_t *scratch,
+                                               match_event_handler onEvent,
+                                               void *context) {
     if (unlikely(!to_stream || !buf)) {
         return HS_INVALID;
     }