@@ -66,7 +66,7 @@ typedef enum {
6666 * @param length The length of the source data in bytes.
6767 * @returns A new source. Aborts on allocation failure.
6868 */
69- PRISM_EXPORTED_FUNCTION pm_source_t * pm_source_constant_new (const uint8_t * data , size_t length ) PRISM_NODISCARD ;
69+ PRISM_EXPORTED_FUNCTION PRISM_NODISCARD pm_source_t * pm_source_constant_new (const uint8_t * data , size_t length );
7070
7171/**
7272 * Create a new source that wraps existing shared memory. The memory is not
@@ -76,7 +76,7 @@ PRISM_EXPORTED_FUNCTION pm_source_t * pm_source_constant_new(const uint8_t *data
7676 * @param length The length of the source data in bytes.
7777 * @returns A new source. Aborts on allocation failure.
7878 */
79- PRISM_EXPORTED_FUNCTION pm_source_t * pm_source_shared_new (const uint8_t * data , size_t length ) PRISM_NODISCARD ;
79+ PRISM_EXPORTED_FUNCTION PRISM_NODISCARD pm_source_t * pm_source_shared_new (const uint8_t * data , size_t length );
8080
8181/**
8282 * Create a new source that owns its memory. The memory will be freed with
@@ -86,7 +86,7 @@ PRISM_EXPORTED_FUNCTION pm_source_t * pm_source_shared_new(const uint8_t *data,
8686 * @param length The length of the source data in bytes.
8787 * @returns A new source. Aborts on allocation failure.
8888 */
89- PRISM_EXPORTED_FUNCTION pm_source_t * pm_source_owned_new (uint8_t * data , size_t length ) PRISM_NODISCARD ;
89+ PRISM_EXPORTED_FUNCTION PRISM_NODISCARD pm_source_t * pm_source_owned_new (uint8_t * data , size_t length );
9090
9191/**
9292 * Create a new source by reading a file into a heap-allocated buffer.
@@ -95,7 +95,7 @@ PRISM_EXPORTED_FUNCTION pm_source_t * pm_source_owned_new(uint8_t *data, size_t
9595 * @param result Out parameter for the result of the initialization.
9696 * @returns A new source, or NULL on error (with result written to out param).
9797 */
98- PRISM_EXPORTED_FUNCTION pm_source_t * pm_source_file_new (const char * filepath , pm_source_init_result_t * result ) PRISM_NODISCARD PRISM_NONNULL (1 , 2 );
98+ PRISM_EXPORTED_FUNCTION PRISM_NODISCARD pm_source_t * pm_source_file_new (const char * filepath , pm_source_init_result_t * result ) PRISM_NONNULL (1 , 2 );
9999
100100/**
101101 * Create a new source by memory-mapping a file. Falls back to file reading on
@@ -110,7 +110,7 @@ PRISM_EXPORTED_FUNCTION pm_source_t * pm_source_file_new(const char *filepath, p
110110 * @param result Out parameter for the result of the initialization.
111111 * @returns A new source, or NULL on error (with result written to out param).
112112 */
113- PRISM_EXPORTED_FUNCTION pm_source_t * pm_source_mapped_new (const char * filepath , int open_flags , pm_source_init_result_t * result ) PRISM_NODISCARD PRISM_NONNULL (1 , 3 );
113+ PRISM_EXPORTED_FUNCTION PRISM_NODISCARD pm_source_t * pm_source_mapped_new (const char * filepath , int open_flags , pm_source_init_result_t * result ) PRISM_NONNULL (1 , 3 );
114114
115115/**
116116 * Create a new source by reading from a stream using the provided callbacks.
@@ -120,7 +120,7 @@ PRISM_EXPORTED_FUNCTION pm_source_t * pm_source_mapped_new(const char *filepath,
120120 * @param feof The function to use to check if the stream is at EOF.
121121 * @returns A new source. Aborts on allocation failure.
122122 */
123- PRISM_EXPORTED_FUNCTION pm_source_t * pm_source_stream_new (void * stream , pm_source_stream_fgets_t * fgets , pm_source_stream_feof_t * feof ) PRISM_NODISCARD ;
123+ PRISM_EXPORTED_FUNCTION PRISM_NODISCARD pm_source_t * pm_source_stream_new (void * stream , pm_source_stream_fgets_t * fgets , pm_source_stream_feof_t * feof );
124124
125125/**
126126 * Free the given source and any memory it owns.
0 commit comments