refactor: migrate comment style (#20012)

Done automatically using the following perl command:

  perl -pi -0777pe 's#\n\K */\*\n(.+?)\s*\*/\n#join("\n", map { $_ =~ s:^\s*\K \*://:; $_ } split("\n", $1)) . "\n"#sge' src/nvim/**/*.c

Co-authored-by: zeertzjq <zeertzjq@outlook.com>

Co-authored-by: zeertzjq <zeertzjq@outlook.com>
This commit is contained in:
Lewis Russell
2022-09-02 17:39:49 +01:00
committed by GitHub
parent 69456f3414
commit 1ffd527c83
38 changed files with 3494 additions and 5838 deletions

View File

@@ -11,33 +11,31 @@
#define COPYID_INC 2
#define COPYID_MASK (~0x1)
/*
* Structure returned by get_lval() and used by set_var_lval().
* For a plain name:
* "name" points to the variable name.
* "exp_name" is NULL.
* "tv" is NULL
* For a magic braces name:
* "name" points to the expanded variable name.
* "exp_name" is non-NULL, to be freed later.
* "tv" is NULL
* For an index in a list:
* "name" points to the (expanded) variable name.
* "exp_name" NULL or non-NULL, to be freed later.
* "tv" points to the (first) list item value
* "li" points to the (first) list item
* "range", "n1", "n2" and "empty2" indicate what items are used.
* For an existing Dict item:
* "name" points to the (expanded) variable name.
* "exp_name" NULL or non-NULL, to be freed later.
* "tv" points to the dict item value
* "newkey" is NULL
* For a non-existing Dict item:
* "name" points to the (expanded) variable name.
* "exp_name" NULL or non-NULL, to be freed later.
* "tv" points to the Dictionary typval_T
* "newkey" is the key for the new item.
*/
// Structure returned by get_lval() and used by set_var_lval().
// For a plain name:
// "name" points to the variable name.
// "exp_name" is NULL.
// "tv" is NULL
// For a magic braces name:
// "name" points to the expanded variable name.
// "exp_name" is non-NULL, to be freed later.
// "tv" is NULL
// For an index in a list:
// "name" points to the (expanded) variable name.
// "exp_name" NULL or non-NULL, to be freed later.
// "tv" points to the (first) list item value
// "li" points to the (first) list item
// "range", "n1", "n2" and "empty2" indicate what items are used.
// For an existing Dict item:
// "name" points to the (expanded) variable name.
// "exp_name" NULL or non-NULL, to be freed later.
// "tv" points to the dict item value
// "newkey" is NULL
// For a non-existing Dict item:
// "name" points to the (expanded) variable name.
// "exp_name" NULL or non-NULL, to be freed later.
// "tv" points to the Dictionary typval_T
// "newkey" is the key for the new item.
typedef struct lval_S {
const char *ll_name; ///< Start of variable name (can be NULL).
size_t ll_name_len; ///< Length of the .ll_name.