update code style

This commit is contained in:
vcaesar 2018-03-02 23:08:12 +08:00
parent a62a48767d
commit 8b1854cac7
3 changed files with 7 additions and 5 deletions

View File

@ -155,7 +155,9 @@ MMBitmapRef bitmap_from_string(const char *str){
MMBitmapRef bitmap; MMBitmapRef bitmap;
MMBMPStringError err; MMBMPStringError err;
if ((bitmap = createMMBitmapFromString((unsigned char*)str, len, &err)) == NULL) { if ((bitmap = createMMBitmapFromString(
(unsigned char*)str, len, &err))
== NULL) {
return NULL; return NULL;
} }

View File

@ -11,7 +11,7 @@
/* Displays alert with given attributes, and blocks execution until the user /* Displays alert with given attributes, and blocks execution until the user
* responds. Returns 0 if defaultButton was pressed, 1 if cancelButton was * responds. Returns 0 if defaultButton was pressed, 1 if cancelButton was
* pressed, or -1 if an error occurred. */ * pressed, or -1 if an error occurred. */
int showAlert(const char *title, const char *msg, const char *defaultButton, int showAlert(const char *title, const char *msg,
const char *cancelButton); const char *defaultButton, const char *cancelButton);
#endif /* ALERT_H */ #endif /* ALERT_H */

View File

@ -11,8 +11,8 @@
#include "alert_c.h" #include "alert_c.h"
#include "window.h" #include "window.h"
int show_alert(const char *title, const char *msg, const char *defaultButton, int show_alert(const char *title, const char *msg,
const char *cancelButton){ const char *defaultButton, const char *cancelButton){
int alert = showAlert(title, msg, defaultButton, cancelButton); int alert = showAlert(title, msg, defaultButton, cancelButton);
return alert; return alert;