Skip to content

Commit

Permalink
C89 fixes/cleanups
Browse files Browse the repository at this point in the history
  • Loading branch information
inactive123 committed Jun 26, 2015
1 parent a5e7028 commit 6fb7e4c
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 11 deletions.
4 changes: 2 additions & 2 deletions database_info.h
Original file line number Diff line number Diff line change
Expand Up @@ -36,15 +36,15 @@ enum database_status
DATABASE_STATUS_ITERATE_BEGIN,
DATABASE_STATUS_ITERATE_START,
DATABASE_STATUS_ITERATE_NEXT,
DATABASE_STATUS_FREE,
DATABASE_STATUS_FREE
};

enum database_type
{
DATABASE_TYPE_NONE = 0,
DATABASE_TYPE_ITERATE,
DATABASE_TYPE_ITERATE_ZIP,
DATABASE_TYPE_CRC_LOOKUP,
DATABASE_TYPE_CRC_LOOKUP
};

typedef struct
Expand Down
3 changes: 2 additions & 1 deletion menu/menu.h
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ typedef enum
MENU_SETTING_GROUP,
MENU_SETTING_SUBGROUP,
MENU_SETTING_HORIZONTAL_MENU,
MENU_FILE_TYPE_T_LAST,
MENU_FILE_TYPE_T_LAST
} menu_file_type_t;

typedef enum
Expand Down Expand Up @@ -146,6 +146,7 @@ typedef enum
MENU_SETTINGS_CHEAT_END = MENU_SETTINGS_CHEAT_BEGIN + (MAX_CHEAT_COUNTERS - 1),
MENU_SETTINGS_INPUT_DESC_BEGIN,
MENU_SETTINGS_INPUT_DESC_END = MENU_SETTINGS_INPUT_DESC_BEGIN + (MAX_USERS * (RARCH_FIRST_CUSTOM_BIND + 4)),
MENU_SETTINGS_LAST
} menu_settings_t;

/**
Expand Down
3 changes: 2 additions & 1 deletion retroarch.c
Original file line number Diff line number Diff line change
Expand Up @@ -341,7 +341,8 @@ void set_paths_redirect(const char *path)
info->info.library_name,
sizeof(global->savefile_dir));

// if path doesn't exist try to create it, if everything fails revert to the original path
/* If path doesn't exist, try to create it,
* if everything fails revert to the original path. */
if(!path_is_directory(global->savefile_dir))
if(!path_mkdir(global->savefile_dir))
strlcpy(global->savefile_dir,
Expand Down
6 changes: 3 additions & 3 deletions retroarch.h
Original file line number Diff line number Diff line change
Expand Up @@ -37,21 +37,21 @@ enum action_state
RARCH_ACTION_STATE_MENU_RUNNING,
RARCH_ACTION_STATE_MENU_RUNNING_FINISHED,
RARCH_ACTION_STATE_QUIT,
RARCH_ACTION_STATE_FORCE_QUIT,
RARCH_ACTION_STATE_FORCE_QUIT
};

enum rarch_content_type
{
RARCH_CONTENT_NONE = 0,
RARCH_CONTENT_MOVIE,
RARCH_CONTENT_MUSIC,
RARCH_CONTENT_MUSIC
};

enum rarch_capabilities
{
RARCH_CAPABILITIES_NONE = 0,
RARCH_CAPABILITIES_CPU,
RARCH_CAPABILITIES_COMPILER,
RARCH_CAPABILITIES_COMPILER
};

struct rarch_main_wrap
Expand Down
8 changes: 4 additions & 4 deletions runloop_data.h
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ enum runloop_data_type
DATA_TYPE_IMAGE,
DATA_TYPE_HTTP,
DATA_TYPE_OVERLAY,
DATA_TYPE_DB,
DATA_TYPE_DB
};

#ifdef HAVE_NETWORKING
Expand All @@ -53,7 +53,7 @@ enum http_status_enum
HTTP_STATUS_CONNECTION_TRANSFER_PARSE,
HTTP_STATUS_TRANSFER,
HTTP_STATUS_TRANSFER_PARSE,
HTTP_STATUS_TRANSFER_PARSE_FREE,
HTTP_STATUS_TRANSFER_PARSE_FREE
};

typedef struct http_handle
Expand Down Expand Up @@ -97,15 +97,15 @@ enum nbio_image_status_enum
NBIO_IMAGE_STATUS_TRANSFER_PARSE,
NBIO_IMAGE_STATUS_PROCESS_TRANSFER,
NBIO_IMAGE_STATUS_PROCESS_TRANSFER_PARSE,
NBIO_IMAGE_STATUS_TRANSFER_PARSE_FREE,
NBIO_IMAGE_STATUS_TRANSFER_PARSE_FREE
};

enum nbio_status_enum
{
NBIO_STATUS_POLL = 0,
NBIO_STATUS_TRANSFER,
NBIO_STATUS_TRANSFER_PARSE,
NBIO_STATUS_TRANSFER_PARSE_FREE,
NBIO_STATUS_TRANSFER_PARSE_FREE
};

typedef struct nbio_handle
Expand Down

0 comments on commit 6fb7e4c

Please sign in to comment.