From 1ae7ff10d3a57d40449c0457843f92cdc32c7b19 Mon Sep 17 00:00:00 2001 From: Florent Le Coz Date: Tue, 25 Jun 2013 01:18:28 +0200 Subject: Nicer comments --- src/pooptmodule.c | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to 'src/pooptmodule.c') diff --git a/src/pooptmodule.c b/src/pooptmodule.c index 364d568f..815c8f0e 100644 --- a/src/pooptmodule.c +++ b/src/pooptmodule.c @@ -17,14 +17,17 @@ python functions that are too slow. */ PyObject *ErrorObject; +/*** + Internal functions + ***/ + /** - * Internal functions - */ -/* Just checking if the return value is -1. In some (all?) implementations, + Just checking if the return value is -1. In some (all?) implementations, wcwidth("😆") returns -1 while it should return 1. In these cases, we return 1 instead because this is by far the most probable real value. As for \n, \t and their friends, they are not supposed to be passed in this - function, ever. */ + function, ever. +*/ static int xwcwidth(wchar_t c) { const int res = wcwidth(c); -- cgit v1.2.3