git/list[1] front-page[2] threads[3] people[4] search[5] about
 

[PATCH v2 2/3] {apply,alias}: convert pre-processor macros to enums

From
Vinayak Dev <vinayakdev.sci@gmail.com>
Date
Feb 10, 2023, 17:13 UTC
Message-ID
<20230210171338.81906-3-vinayakdev.sci@gmail.com>
In-Reply-To
<20230210171338.81906-1-vinayakdev.sci@gmail.com>
Revert the changes made to alias.c in v1.
Signed-off-by: Vinayak Dev <vinayakdev.sci@gmail.com>
---
 alias.c | 11 +++--------
 1 file changed, 3 insertions(+), 8 deletions(-)
diff --git a/alias.c b/alias.c
index 61ef2c0c54..deb871d59c 100644
--- a/alias.c
+++ b/alias.c
@@ -44,14 +44,9 @@ void list_aliases(struct string_list *list)
 	read_early_config(config_alias_cb, &data);
 }
 
-/* #define SPLIT_CMDLINE_BAD_ENDING 1 */
-/* #define SPLIT_CMDLINE_UNCLOSED_QUOTE 2 */
-/* #define SPLIT_CMDLINE_ARGC_OVERFLOW 3 */
-enum split_cmdline_error {
-	SPLIT_CMDLINE_BAD_ENDING = 1,
-	SPLIT_CMDLINE_UNCLOSED_QUOTE,
-	SPLIT_CMDLINE_ARGC_OVERFLOW
-};
+#define SPLIT_CMDLINE_BAD_ENDING 1
+#define SPLIT_CMDLINE_UNCLOSED_QUOTE 2
+#define SPLIT_CMDLINE_ARGC_OVERFLOW 3
 
 static const char *split_cmdline_errors[] = {
 	N_("cmdline ends with \\"),
-- 
2.39.1
Previous: Vinayak DevNext: Vinayak Dev
Message 3 of 8 in “{apply,alias}: convert pre-processor macros to enums”
  1. 0/3 {apply,alias}: convert pre-processor macros to enumsVinayak Dev, Feb 10, 2023
  2. 1/3 {apply,alias}: convert pre-processor macros to enumsVinayak Dev, Feb 10, 2023
  3. 2/3 {apply,alias}: convert pre-processor macros to enumsVinayak Dev, Feb 10, 2023
  4. 3/3 {apply,alias}: convert pre-processor macros to enumsVinayak Dev, Feb 10, 2023
  5. Junio C HamanoFeb 10, 2023
  6. Vinayak DevFeb 11, 2023
  7. Eric SunshineFeb 15, 2023
  8. Vinayak DevFeb 15, 2023

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.