Skip to content

fix: add function prototypes #31

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/context.c
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ struct _msym_context {
* Public API
***********************/

msym_context msymCreateContext(){
msym_context msymCreateContext(void){
msym_context ctx = malloc(sizeof(struct _msym_context));
msym_thresholds_t *threshols = malloc(sizeof(msym_thresholds_t));

Expand All @@ -90,7 +90,7 @@ msym_context msymCreateContext(){
return NULL;
}

const msym_thresholds_t *msymGetDefaultThresholds(){
const msym_thresholds_t *msymGetDefaultThresholds(void){
return &default_thresholds;
}

Expand Down
4 changes: 2 additions & 2 deletions src/msym.h
Original file line number Diff line number Diff line change
Expand Up @@ -162,10 +162,10 @@ extern "C" {
} msym_character_table_t;


msym_context MSYM_EXPORT msymCreateContext();
msym_context MSYM_EXPORT msymCreateContext(void);
msym_error_t MSYM_EXPORT msymReleaseContext(msym_context ctx);

const msym_thresholds_t MSYM_EXPORT *msymGetDefaultThresholds();
const msym_thresholds_t MSYM_EXPORT *msymGetDefaultThresholds(void);
msym_error_t MSYM_EXPORT msymSetThresholds(msym_context ctx, const msym_thresholds_t *thresholds);
msym_error_t MSYM_EXPORT msymGetThresholds(msym_context ctx, const msym_thresholds_t **thresholds);
msym_error_t MSYM_EXPORT msymSetElements(msym_context ctx, int length, msym_element_t *elements);
Expand Down
2 changes: 1 addition & 1 deletion src/msym_error.c
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ void msymSetErrorDetails(const char *format, ...){
va_end(args);
}

const char MSYM_EXPORT *msymGetErrorDetails(){
const char MSYM_EXPORT *msymGetErrorDetails(void){
snprintf(err_details_ext, sizeof(err_details_ext), "%s",err_details); // Not really necessary
msymSetErrorDetails("");
return err_details_ext;
Expand Down
2 changes: 1 addition & 1 deletion src/msym_error.h
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ extern "C" {

const char *msymErrorString(msym_error_t error);
void msymSetErrorDetails(const char *format, ...);
const char *msymGetErrorDetails();
const char *msymGetErrorDetails(void);


#ifdef __cplusplus
Expand Down