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

[PATCH] very small cleanup: #undef a macro that isn't used anywhere else

From
FGFrancis Galiegue <fg@one2team.net>
Date
Nov 10, 2008, 18:28 UTC
Message-ID
<200811101928.27207.fg@one2team.net>
In xdiff-interface.c, the FIRST_FEW_BYTES macro is defined, is never used
anwhere else, so we might as well undefine it after we're done with it.
---
 xdiff-interface.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/xdiff-interface.c b/xdiff-interface.c
index e8ef46d..2cf30cd 100644
--- a/xdiff-interface.c
+++ b/xdiff-interface.c
@@ -226,6 +226,7 @@ int buffer_is_binary(const char *ptr, unsigned long size)
                size = FIRST_FEW_BYTES;
        return !!memchr(ptr, 0, size);
 }
+#undef FIRST_FEW_BYTES

 struct ff_regs {
        int nr;
--
1.6.0.3
-- 
fge
Next: Johannes Schindelin
Message 1 of 3 in “very small cleanup: #undef a macro that isn't used anywhere else”
  1. very small cleanup: #undef a macro that isn't used anywhere elseFrancis Galiegue, Nov 10, 2008
  2. Johannes SchindelinNov 10, 2008
  3. Francis GaliegueNov 10, 2008

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.