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;
MMBMPStringError err;
if ((bitmap = createMMBitmapFromString((unsigned char*)str, len, &err)) == NULL) {
if ((bitmap = createMMBitmapFromString(
(unsigned char*)str, len, &err))
== NULL) {
return NULL;
}

View File

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

View File

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