diff mbox

[lttng-modules] Fix formatting in strutils_star_glob_match_char_cb explanation

Message ID 1489784760-30010-1-git-send-email-francis.deslauriers@efficios.com
State Accepted, archived
Headers show

Commit Message

Francis Deslauriers March 17, 2017, 9:06 p.m. UTC
Replace tabs for spaces in example scenario

Signed-off-by: Francis Deslauriers <francis.deslauriers at efficios.com>
---
 lttng-string-utils.c | 108 +++++++++++++++++++++++++--------------------------
 1 file changed, 54 insertions(+), 54 deletions(-)

Comments

Mathieu Desnoyers March 17, 2017, 9:08 p.m. UTC | #1
merged, thanks!

Mathieu

----- On Mar 17, 2017, at 5:06 PM, Francis Deslauriers francis.deslauriers at efficios.com wrote:

> Replace tabs for spaces in example scenario
> 
> Signed-off-by: Francis Deslauriers <francis.deslauriers at efficios.com>
> ---
> lttng-string-utils.c | 108 +++++++++++++++++++++++++--------------------------
> 1 file changed, 54 insertions(+), 54 deletions(-)
> 
> diff --git a/lttng-string-utils.c b/lttng-string-utils.c
> index 94de1cf..7485380 100644
> --- a/lttng-string-utils.c
> +++ b/lttng-string-utils.c
> @@ -145,139 +145,139 @@ retry:
> 	 * Example:
> 	 *
> 	 *     candidate: hi ev every onyx one
> -	 *		^
> +	 *                ^
> 	 *     pattern:   hi*every*one
> -	 *		^
> +	 *                ^
> 	 *
> 	 *     candidate: hi ev every onyx one
> -	 *		 ^
> +	 *                 ^
> 	 *     pattern:   hi*every*one
> -	 *		 ^
> +	 *                 ^
> 	 *
> 	 *     candidate: hi ev every onyx one
> -	 *		  ^
> +	 *                  ^
> 	 *     pattern:   hi*every*one
> -	 *		  ^
> +	 *                  ^
> 	 *
> 	 *     candidate: hi ev every onyx one
> -	 *		  ^
> +	 *                  ^
> 	 *     pattern:   hi*every*one
> -	 *		   ^ MISMATCH
> +	 *                   ^ MISMATCH
> 	 *
> 	 *     candidate: hi ev every onyx one
> -	 *		   ^
> +	 *                   ^
> 	 *     pattern:   hi*every*one
> -	 *		   ^
> +	 *                   ^
> 	 *
> 	 *     candidate: hi ev every onyx one
> -	 *		   ^^
> +	 *                   ^^
> 	 *     pattern:   hi*every*one
> -	 *		   ^^
> +	 *                   ^^
> 	 *
> 	 *     candidate: hi ev every onyx one
> -	 *		   ^ ^
> +	 *                   ^ ^
> 	 *     pattern:   hi*every*one
> -	 *		   ^ ^ MISMATCH
> +	 *                   ^ ^ MISMATCH
> 	 *
> 	 *     candidate: hi ev every onyx one
> -	 *		    ^
> +	 *                    ^
> 	 *     pattern:   hi*every*one
> -	 *		   ^ MISMATCH
> +	 *                   ^ MISMATCH
> 	 *
> 	 *     candidate: hi ev every onyx one
> -	 *		     ^
> +	 *                     ^
> 	 *     pattern:   hi*every*one
> -	 *		   ^ MISMATCH
> +	 *                   ^ MISMATCH
> 	 *
> 	 *     candidate: hi ev every onyx one
> -	 *		      ^
> +	 *                      ^
> 	 *     pattern:   hi*every*one
> -	 *		   ^
> +	 *                   ^
> 	 *
> 	 *     candidate: hi ev every onyx one
> -	 *		      ^^
> +	 *                      ^^
> 	 *     pattern:   hi*every*one
> -	 *		   ^^
> +	 *                   ^^
> 	 *
> 	 *     candidate: hi ev every onyx one
> -	 *		      ^ ^
> +	 *                      ^ ^
> 	 *     pattern:   hi*every*one
> -	 *		   ^ ^
> +	 *                   ^ ^
> 	 *
> 	 *     candidate: hi ev every onyx one
> -	 *		      ^  ^
> +	 *                      ^  ^
> 	 *     pattern:   hi*every*one
> -	 *		   ^  ^
> +	 *                   ^  ^
> 	 *
> 	 *     candidate: hi ev every onyx one
> -	 *		      ^   ^
> +	 *                      ^   ^
> 	 *     pattern:   hi*every*one
> -	 *		   ^   ^
> +	 *                   ^   ^
> 	 *
> 	 *     candidate: hi ev every onyx one
> -	 *			   ^
> +	 *                           ^
> 	 *     pattern:   hi*every*one
> -	 *			^
> +	 *                        ^
> 	 *
> 	 *     candidate: hi ev every onyx one
> -	 *			   ^
> +	 *                           ^
> 	 *     pattern:   hi*every*one
> -	 *			 ^ MISMATCH
> +	 *                         ^ MISMATCH
> 	 *
> 	 *     candidate: hi ev every onyx one
> -	 *			    ^
> +	 *                            ^
> 	 *     pattern:   hi*every*one
> -	 *			 ^
> +	 *                         ^
> 	 *
> 	 *     candidate: hi ev every onyx one
> -	 *			    ^^
> +	 *                            ^^
> 	 *     pattern:   hi*every*one
> -	 *			 ^^
> +	 *                         ^^
> 	 *
> 	 *     candidate: hi ev every onyx one
> -	 *			    ^ ^
> +	 *                            ^ ^
> 	 *     pattern:   hi*every*one
> -	 *			 ^ ^ MISMATCH
> +	 *                         ^ ^ MISMATCH
> 	 *
> 	 *     candidate: hi ev every onyx one
> -	 *			     ^
> +	 *                             ^
> 	 *     pattern:   hi*every*one
> -	 *			 ^ MISMATCH
> +	 *                         ^ MISMATCH
> 	 *
> 	 *     candidate: hi ev every onyx one
> -	 *			      ^
> +	 *                              ^
> 	 *     pattern:   hi*every*one
> -	 *			 ^ MISMATCH
> +	 *                         ^ MISMATCH
> 	 *
> 	 *     candidate: hi ev every onyx one
> -	 *			       ^
> +	 *                               ^
> 	 *     pattern:   hi*every*one
> -	 *			 ^ MISMATCH
> +	 *                         ^ MISMATCH
> 	 *
> 	 *     candidate: hi ev every onyx one
> -	 *				^
> +	 *                                ^
> 	 *     pattern:   hi*every*one
> -	 *			 ^ MISMATCH
> +	 *                         ^ MISMATCH
> 	 *
> 	 *     candidate: hi ev every onyx one
> -	 *				 ^
> +	 *                                 ^
> 	 *     pattern:   hi*every*one
> -	 *			 ^
> +	 *                         ^
> 	 *
> 	 *     candidate: hi ev every onyx one
> -	 *				 ^^
> +	 *                                 ^^
> 	 *     pattern:   hi*every*one
> -	 *			 ^^
> +	 *                         ^^
> 	 *
> 	 *     candidate: hi ev every onyx one
> -	 *				 ^ ^
> +	 *                                 ^ ^
> 	 *     pattern:   hi*every*one
> -	 *			 ^ ^
> +	 *                         ^ ^
> 	 *
> 	 *     candidate: hi ev every onyx one
> -	 *				 ^  ^
> +	 *                                 ^  ^
> 	 *     pattern:   hi*every*one
> -	 *			 ^  ^ SUCCESS
> +	 *                         ^  ^ SUCCESS
> 	 */
> 	while (c != '\0') {
> 		if (p == '\0') {
> --
> 2.7.4
Philippe Proulx March 17, 2017, 9:24 p.m. UTC | #2
On Fri, Mar 17, 2017 at 5:06 PM, Francis Deslauriers
<francis.deslauriers at efficios.com> wrote:
>
> Replace tabs for spaces in example scenario

Yes, thank you, it looks like my editor replaced all 8 spaces with
tabs in this comment.

Phil

>
> Signed-off-by: Francis Deslauriers <francis.deslauriers at efficios.com>

Signed-off-by: Philippe Proulx <eeppeliteloop at gmail.com>

> ---
>  lttng-string-utils.c | 108 +++++++++++++++++++++++++--------------------------
>  1 file changed, 54 insertions(+), 54 deletions(-)
>
> diff --git a/lttng-string-utils.c b/lttng-string-utils.c
> index 94de1cf..7485380 100644
> --- a/lttng-string-utils.c
> +++ b/lttng-string-utils.c
> @@ -145,139 +145,139 @@ retry:
>          * Example:
>          *
>          *     candidate: hi ev every onyx one
> -        *              ^
> +        *                ^
>          *     pattern:   hi*every*one
> -        *              ^
> +        *                ^
>          *
>          *     candidate: hi ev every onyx one
> -        *               ^
> +        *                 ^
>          *     pattern:   hi*every*one
> -        *               ^
> +        *                 ^
>          *
>          *     candidate: hi ev every onyx one
> -        *                ^
> +        *                  ^
>          *     pattern:   hi*every*one
> -        *                ^
> +        *                  ^
>          *
>          *     candidate: hi ev every onyx one
> -        *                ^
> +        *                  ^
>          *     pattern:   hi*every*one
> -        *                 ^ MISMATCH
> +        *                   ^ MISMATCH
>          *
>          *     candidate: hi ev every onyx one
> -        *                 ^
> +        *                   ^
>          *     pattern:   hi*every*one
> -        *                 ^
> +        *                   ^
>          *
>          *     candidate: hi ev every onyx one
> -        *                 ^^
> +        *                   ^^
>          *     pattern:   hi*every*one
> -        *                 ^^
> +        *                   ^^
>          *
>          *     candidate: hi ev every onyx one
> -        *                 ^ ^
> +        *                   ^ ^
>          *     pattern:   hi*every*one
> -        *                 ^ ^ MISMATCH
> +        *                   ^ ^ MISMATCH
>          *
>          *     candidate: hi ev every onyx one
> -        *                  ^
> +        *                    ^
>          *     pattern:   hi*every*one
> -        *                 ^ MISMATCH
> +        *                   ^ MISMATCH
>          *
>          *     candidate: hi ev every onyx one
> -        *                   ^
> +        *                     ^
>          *     pattern:   hi*every*one
> -        *                 ^ MISMATCH
> +        *                   ^ MISMATCH
>          *
>          *     candidate: hi ev every onyx one
> -        *                    ^
> +        *                      ^
>          *     pattern:   hi*every*one
> -        *                 ^
> +        *                   ^
>          *
>          *     candidate: hi ev every onyx one
> -        *                    ^^
> +        *                      ^^
>          *     pattern:   hi*every*one
> -        *                 ^^
> +        *                   ^^
>          *
>          *     candidate: hi ev every onyx one
> -        *                    ^ ^
> +        *                      ^ ^
>          *     pattern:   hi*every*one
> -        *                 ^ ^
> +        *                   ^ ^
>          *
>          *     candidate: hi ev every onyx one
> -        *                    ^  ^
> +        *                      ^  ^
>          *     pattern:   hi*every*one
> -        *                 ^  ^
> +        *                   ^  ^
>          *
>          *     candidate: hi ev every onyx one
> -        *                    ^   ^
> +        *                      ^   ^
>          *     pattern:   hi*every*one
> -        *                 ^   ^
> +        *                   ^   ^
>          *
>          *     candidate: hi ev every onyx one
> -        *                         ^
> +        *                           ^
>          *     pattern:   hi*every*one
> -        *                      ^
> +        *                        ^
>          *
>          *     candidate: hi ev every onyx one
> -        *                         ^
> +        *                           ^
>          *     pattern:   hi*every*one
> -        *                       ^ MISMATCH
> +        *                         ^ MISMATCH
>          *
>          *     candidate: hi ev every onyx one
> -        *                          ^
> +        *                            ^
>          *     pattern:   hi*every*one
> -        *                       ^
> +        *                         ^
>          *
>          *     candidate: hi ev every onyx one
> -        *                          ^^
> +        *                            ^^
>          *     pattern:   hi*every*one
> -        *                       ^^
> +        *                         ^^
>          *
>          *     candidate: hi ev every onyx one
> -        *                          ^ ^
> +        *                            ^ ^
>          *     pattern:   hi*every*one
> -        *                       ^ ^ MISMATCH
> +        *                         ^ ^ MISMATCH
>          *
>          *     candidate: hi ev every onyx one
> -        *                           ^
> +        *                             ^
>          *     pattern:   hi*every*one
> -        *                       ^ MISMATCH
> +        *                         ^ MISMATCH
>          *
>          *     candidate: hi ev every onyx one
> -        *                            ^
> +        *                              ^
>          *     pattern:   hi*every*one
> -        *                       ^ MISMATCH
> +        *                         ^ MISMATCH
>          *
>          *     candidate: hi ev every onyx one
> -        *                             ^
> +        *                               ^
>          *     pattern:   hi*every*one
> -        *                       ^ MISMATCH
> +        *                         ^ MISMATCH
>          *
>          *     candidate: hi ev every onyx one
> -        *                              ^
> +        *                                ^
>          *     pattern:   hi*every*one
> -        *                       ^ MISMATCH
> +        *                         ^ MISMATCH
>          *
>          *     candidate: hi ev every onyx one
> -        *                               ^
> +        *                                 ^
>          *     pattern:   hi*every*one
> -        *                       ^
> +        *                         ^
>          *
>          *     candidate: hi ev every onyx one
> -        *                               ^^
> +        *                                 ^^
>          *     pattern:   hi*every*one
> -        *                       ^^
> +        *                         ^^
>          *
>          *     candidate: hi ev every onyx one
> -        *                               ^ ^
> +        *                                 ^ ^
>          *     pattern:   hi*every*one
> -        *                       ^ ^
> +        *                         ^ ^
>          *
>          *     candidate: hi ev every onyx one
> -        *                               ^  ^
> +        *                                 ^  ^
>          *     pattern:   hi*every*one
> -        *                       ^  ^ SUCCESS
> +        *                         ^  ^ SUCCESS
>          */
>         while (c != '\0') {
>                 if (p == '\0') {
> --
> 2.7.4
>
> _______________________________________________
> lttng-dev mailing list
> lttng-dev at lists.lttng.org
> https://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev
diff mbox

Patch

diff --git a/lttng-string-utils.c b/lttng-string-utils.c
index 94de1cf..7485380 100644
--- a/lttng-string-utils.c
+++ b/lttng-string-utils.c
@@ -145,139 +145,139 @@  retry:
 	 * Example:
 	 *
 	 *     candidate: hi ev every onyx one
-	 *		^
+	 *                ^
 	 *     pattern:   hi*every*one
-	 *		^
+	 *                ^
 	 *
 	 *     candidate: hi ev every onyx one
-	 *		 ^
+	 *                 ^
 	 *     pattern:   hi*every*one
-	 *		 ^
+	 *                 ^
 	 *
 	 *     candidate: hi ev every onyx one
-	 *		  ^
+	 *                  ^
 	 *     pattern:   hi*every*one
-	 *		  ^
+	 *                  ^
 	 *
 	 *     candidate: hi ev every onyx one
-	 *		  ^
+	 *                  ^
 	 *     pattern:   hi*every*one
-	 *		   ^ MISMATCH
+	 *                   ^ MISMATCH
 	 *
 	 *     candidate: hi ev every onyx one
-	 *		   ^
+	 *                   ^
 	 *     pattern:   hi*every*one
-	 *		   ^
+	 *                   ^
 	 *
 	 *     candidate: hi ev every onyx one
-	 *		   ^^
+	 *                   ^^
 	 *     pattern:   hi*every*one
-	 *		   ^^
+	 *                   ^^
 	 *
 	 *     candidate: hi ev every onyx one
-	 *		   ^ ^
+	 *                   ^ ^
 	 *     pattern:   hi*every*one
-	 *		   ^ ^ MISMATCH
+	 *                   ^ ^ MISMATCH
 	 *
 	 *     candidate: hi ev every onyx one
-	 *		    ^
+	 *                    ^
 	 *     pattern:   hi*every*one
-	 *		   ^ MISMATCH
+	 *                   ^ MISMATCH
 	 *
 	 *     candidate: hi ev every onyx one
-	 *		     ^
+	 *                     ^
 	 *     pattern:   hi*every*one
-	 *		   ^ MISMATCH
+	 *                   ^ MISMATCH
 	 *
 	 *     candidate: hi ev every onyx one
-	 *		      ^
+	 *                      ^
 	 *     pattern:   hi*every*one
-	 *		   ^
+	 *                   ^
 	 *
 	 *     candidate: hi ev every onyx one
-	 *		      ^^
+	 *                      ^^
 	 *     pattern:   hi*every*one
-	 *		   ^^
+	 *                   ^^
 	 *
 	 *     candidate: hi ev every onyx one
-	 *		      ^ ^
+	 *                      ^ ^
 	 *     pattern:   hi*every*one
-	 *		   ^ ^
+	 *                   ^ ^
 	 *
 	 *     candidate: hi ev every onyx one
-	 *		      ^  ^
+	 *                      ^  ^
 	 *     pattern:   hi*every*one
-	 *		   ^  ^
+	 *                   ^  ^
 	 *
 	 *     candidate: hi ev every onyx one
-	 *		      ^   ^
+	 *                      ^   ^
 	 *     pattern:   hi*every*one
-	 *		   ^   ^
+	 *                   ^   ^
 	 *
 	 *     candidate: hi ev every onyx one
-	 *			   ^
+	 *                           ^
 	 *     pattern:   hi*every*one
-	 *			^
+	 *                        ^
 	 *
 	 *     candidate: hi ev every onyx one
-	 *			   ^
+	 *                           ^
 	 *     pattern:   hi*every*one
-	 *			 ^ MISMATCH
+	 *                         ^ MISMATCH
 	 *
 	 *     candidate: hi ev every onyx one
-	 *			    ^
+	 *                            ^
 	 *     pattern:   hi*every*one
-	 *			 ^
+	 *                         ^
 	 *
 	 *     candidate: hi ev every onyx one
-	 *			    ^^
+	 *                            ^^
 	 *     pattern:   hi*every*one
-	 *			 ^^
+	 *                         ^^
 	 *
 	 *     candidate: hi ev every onyx one
-	 *			    ^ ^
+	 *                            ^ ^
 	 *     pattern:   hi*every*one
-	 *			 ^ ^ MISMATCH
+	 *                         ^ ^ MISMATCH
 	 *
 	 *     candidate: hi ev every onyx one
-	 *			     ^
+	 *                             ^
 	 *     pattern:   hi*every*one
-	 *			 ^ MISMATCH
+	 *                         ^ MISMATCH
 	 *
 	 *     candidate: hi ev every onyx one
-	 *			      ^
+	 *                              ^
 	 *     pattern:   hi*every*one
-	 *			 ^ MISMATCH
+	 *                         ^ MISMATCH
 	 *
 	 *     candidate: hi ev every onyx one
-	 *			       ^
+	 *                               ^
 	 *     pattern:   hi*every*one
-	 *			 ^ MISMATCH
+	 *                         ^ MISMATCH
 	 *
 	 *     candidate: hi ev every onyx one
-	 *				^
+	 *                                ^
 	 *     pattern:   hi*every*one
-	 *			 ^ MISMATCH
+	 *                         ^ MISMATCH
 	 *
 	 *     candidate: hi ev every onyx one
-	 *				 ^
+	 *                                 ^
 	 *     pattern:   hi*every*one
-	 *			 ^
+	 *                         ^
 	 *
 	 *     candidate: hi ev every onyx one
-	 *				 ^^
+	 *                                 ^^
 	 *     pattern:   hi*every*one
-	 *			 ^^
+	 *                         ^^
 	 *
 	 *     candidate: hi ev every onyx one
-	 *				 ^ ^
+	 *                                 ^ ^
 	 *     pattern:   hi*every*one
-	 *			 ^ ^
+	 *                         ^ ^
 	 *
 	 *     candidate: hi ev every onyx one
-	 *				 ^  ^
+	 *                                 ^  ^
 	 *     pattern:   hi*every*one
-	 *			 ^  ^ SUCCESS
+	 *                         ^  ^ SUCCESS
 	 */
 	while (c != '\0') {
 		if (p == '\0') {