summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFlorent Le Coz <louiz@louiz.org>2013-06-25 01:18:28 +0200
committerFlorent Le Coz <louiz@louiz.org>2013-06-25 01:18:28 +0200
commit1ae7ff10d3a57d40449c0457843f92cdc32c7b19 (patch)
tree4ab4ebd36749e9c6b48a76392ea70fe0515fc38b
parentb7fbfb7f478905d9f8778d272861b501b9f88d2a (diff)
downloadpoezio-1ae7ff10d3a57d40449c0457843f92cdc32c7b19.tar.gz
poezio-1ae7ff10d3a57d40449c0457843f92cdc32c7b19.tar.bz2
poezio-1ae7ff10d3a57d40449c0457843f92cdc32c7b19.tar.xz
poezio-1ae7ff10d3a57d40449c0457843f92cdc32c7b19.zip
Nicer comments
-rw-r--r--src/pooptmodule.c11
1 files changed, 7 insertions, 4 deletions
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);