[PATCH wayland 2/2] scanner: wrap few long lines

Marek Chalupa mchqwerty at gmail.com
Thu Jul 16 04:59:05 PDT 2015


Wrap few long lines to the length around 80 chars

Signed-off-by: Marek Chalupa <mchqwerty at gmail.com>
---
 src/scanner.c | 15 +++++++++++----
 1 file changed, 11 insertions(+), 4 deletions(-)

diff --git a/src/scanner.c b/src/scanner.c
index c652612..ac511f1 100644
--- a/src/scanner.c
+++ b/src/scanner.c
@@ -597,7 +597,8 @@ start_element(void *data, const char *element_name, const char **atts)
 		message->since = version;
 
 		if (strcmp(name, "destroy") == 0 && !message->destructor)
-			fail(&ctx->loc, "destroy request should be destructor type");
+			fail(&ctx->loc,
+			     "destroy request should be destructor type");
 
 		ctx->message = message;
 	} else if (strcmp(element_name, "arg") == 0) {
@@ -620,7 +621,9 @@ start_element(void *data, const char *element_name, const char **atts)
 			break;
 		default:
 			if (interface_name != NULL)
-				fail(&ctx->loc, "interface attribute not allowed for type %s", type);
+				fail(&ctx->loc,
+				     "interface attribute not allowed for type"
+				     " %s", type);
 			break;
 		}
 
@@ -629,10 +632,14 @@ start_element(void *data, const char *element_name, const char **atts)
 		else if (strcmp(allow_null, "true") == 0)
 			arg->nullable = 1;
 		else
-			fail(&ctx->loc, "invalid value for allow-null attribute (%s)", allow_null);
+			fail(&ctx->loc,
+			     "invalid value for allow-null attribute (%s)",
+			     allow_null);
 
 		if (allow_null != NULL && !is_nullable_type(arg))
-			fail(&ctx->loc, "allow-null is only valid for objects, strings, and arrays");
+			fail(&ctx->loc,
+			     "allow-null is only valid for objects, strings,"
+			     " and arrays");
 
 		if (summary)
 			arg->summary = xstrdup(summary);
-- 
2.4.3



More information about the wayland-devel mailing list