From f4af1d69ea5bac9b7d9d3e3d6859e1fe920d4e65 Mon Sep 17 00:00:00 2001 From: Eric House Date: Wed, 2 Oct 2024 12:08:38 -0700 Subject: [PATCH] for emacs: move compile-command into directory-scoped file --- xwords4/common/.dir-locals.el | 2 ++ xwords4/common/board.c | 1 - xwords4/common/boarddrw.c | 1 - xwords4/common/bufqueue.c | 1 - xwords4/common/comms.c | 4 +--- xwords4/common/comms.h | 1 - xwords4/common/commstyp.h | 1 - xwords4/common/dbgutil.c | 1 - xwords4/common/device.c | 1 - xwords4/common/dictiter.c | 1 - xwords4/common/dictiter.h | 1 - xwords4/common/dictmgr.c | 1 - xwords4/common/dictnry.c | 1 - xwords4/common/dictnry.h | 1 - xwords4/common/dllist.c | 1 - xwords4/common/dragdrpp.c | 1 - xwords4/common/draw.c | 1 - xwords4/common/engine.c | 1 - xwords4/common/game.c | 1 - xwords4/common/game.h | 1 - xwords4/common/gameinfo.h | 1 - xwords4/common/knownplyr.c | 1 - xwords4/common/knownplyr.h | 1 - xwords4/common/mempool.c | 1 - xwords4/common/memstream.c | 1 - xwords4/common/model.c | 1 - xwords4/common/model.h | 1 - xwords4/common/modelp.h | 1 - xwords4/common/movestak.c | 1 - xwords4/common/mscore.c | 1 - xwords4/common/nli.c | 3 +-- xwords4/common/nwgamest.c | 1 - xwords4/common/pool.c | 1 - xwords4/common/scorebdp.c | 1 - xwords4/common/server.c | 1 - xwords4/common/smsproto.c | 1 - xwords4/common/smsproto.h | 3 +-- xwords4/common/stats.c | 1 - xwords4/common/strutils.c | 1 - xwords4/common/tray.c | 1 - xwords4/common/xwmutex.c | 1 - 41 files changed, 5 insertions(+), 44 deletions(-) create mode 100644 xwords4/common/.dir-locals.el diff --git a/xwords4/common/.dir-locals.el b/xwords4/common/.dir-locals.el new file mode 100644 index 000000000..0ee6f0a8f --- /dev/null +++ b/xwords4/common/.dir-locals.el @@ -0,0 +1,2 @@ +;; See https://emacs.stackexchange.com/questions/691/how-can-i-customize-the-compile-command +((nil . ((compile-command . "cd ../linux && make MEMDEBUG=TRUE -j9")))) diff --git a/xwords4/common/board.c b/xwords4/common/board.c index 6118b93e5..9a5baceec 100644 --- a/xwords4/common/board.c +++ b/xwords4/common/board.c @@ -1,4 +1,3 @@ -/* -*- compile-command: "cd ../linux && make -j5 MEMDEBUG=TRUE"; -*- */ /* * Copyright 1997 - 2014 by Eric House (xwords@eehouse.org). All rights * reserved. diff --git a/xwords4/common/boarddrw.c b/xwords4/common/boarddrw.c index 582eacfcb..0e71a222a 100644 --- a/xwords4/common/boarddrw.c +++ b/xwords4/common/boarddrw.c @@ -1,4 +1,3 @@ -/* -*- compile-command: "cd ../linux && make MEMDEBUG=TRUE -j3"; -*- */ /* * Copyright 1997 - 2021 by Eric House (xwords@eehouse.org). All rights * reserved. diff --git a/xwords4/common/bufqueue.c b/xwords4/common/bufqueue.c index 33d9cd216..994130719 100644 --- a/xwords4/common/bufqueue.c +++ b/xwords4/common/bufqueue.c @@ -1,4 +1,3 @@ -/* -*-mode: C; compile-command: "cd ../linux && make MEMDEBUG=TRUE"; -*- */ /* * Copyright 2009 by Eric House (xwords@eehouse.org). All rights reserved. * diff --git a/xwords4/common/comms.c b/xwords4/common/comms.c index 89965c3db..6b302a7fb 100644 --- a/xwords4/common/comms.c +++ b/xwords4/common/comms.c @@ -1,6 +1,4 @@ -/* -*- compile-command: "cd ../linux && make MEMDEBUG=TRUE -j3"; -*- */ -/* - * Copyright 2001 - 2024 by Eric House (xwords@eehouse.org). All rights +/* Copyright 2001 - 2024 by Eric House (xwords@eehouse.org). All rights * reserved. * * This program is free software; you can redistribute it and/or diff --git a/xwords4/common/comms.h b/xwords4/common/comms.h index a434037be..d721cf617 100644 --- a/xwords4/common/comms.h +++ b/xwords4/common/comms.h @@ -1,4 +1,3 @@ -/* -*- compile-command: "cd ../linux && make MEMDEBUG=TRUE -j3"; -*- */ /* * Copyright 2001 - 2022 by Eric House (xwords@eehouse.org). All rights * reserved. diff --git a/xwords4/common/commstyp.h b/xwords4/common/commstyp.h index bf42f8925..8d37c6a8c 100644 --- a/xwords4/common/commstyp.h +++ b/xwords4/common/commstyp.h @@ -1,4 +1,3 @@ -/* -*- compile-command: "cd ../linux && make MEMDEBUG=TRUE -j3"; -*- */ /* * Copyright 2001 - 2020 by Eric House (xwords@eehouse.org). All rights * reserved. diff --git a/xwords4/common/dbgutil.c b/xwords4/common/dbgutil.c index f561d92ab..4b22c2689 100644 --- a/xwords4/common/dbgutil.c +++ b/xwords4/common/dbgutil.c @@ -1,4 +1,3 @@ -/* -*- compile-command: "cd ../linux && make -j3 MEMDEBUG=TRUE"; -*- */ /* * Copyright 2006-2012 by Eric House (xwords@eehouse.org). All rights * reserved. diff --git a/xwords4/common/device.c b/xwords4/common/device.c index 475321c78..2989ee576 100644 --- a/xwords4/common/device.c +++ b/xwords4/common/device.c @@ -1,4 +1,3 @@ -/* -*- compile-command: "cd ../linux && make MEMDEBUG=TRUE -j3"; -*- */ /* * Copyright 2020 by Eric House (xwords@eehouse.org). All rights reserved. * diff --git a/xwords4/common/dictiter.c b/xwords4/common/dictiter.c index d464c71dd..536e37f82 100644 --- a/xwords4/common/dictiter.c +++ b/xwords4/common/dictiter.c @@ -1,4 +1,3 @@ -/* -*- compile-command: "cd ../linux && make MEMDEBUG=TRUE -j3"; -*- */ /* * Copyright 1997-2020 by Eric House (xwords@eehouse.org). All rights * reserved. diff --git a/xwords4/common/dictiter.h b/xwords4/common/dictiter.h index fe1c2e44f..6cb4b2f16 100644 --- a/xwords4/common/dictiter.h +++ b/xwords4/common/dictiter.h @@ -1,4 +1,3 @@ -/* -*- compile-command: "cd ../linux && make MEMDEBUG=TRUE -j3"; -*- */ /* * Copyright 1997 - 2020 by Eric House (xwords@eehouse.org). All rights * reserved. diff --git a/xwords4/common/dictmgr.c b/xwords4/common/dictmgr.c index f769bed91..705cfdaa4 100644 --- a/xwords4/common/dictmgr.c +++ b/xwords4/common/dictmgr.c @@ -1,4 +1,3 @@ -/* -*- compile-command: "cd ../linux && make -j5 MEMDEBUG=TRUE"; -*- */ /* * Copyright 2014 by Eric House (xwords@eehouse.org). All rights reserved. * diff --git a/xwords4/common/dictnry.c b/xwords4/common/dictnry.c index 9e536afe3..2db17f28b 100644 --- a/xwords4/common/dictnry.c +++ b/xwords4/common/dictnry.c @@ -1,4 +1,3 @@ -/* -*- compile-command: "cd ../linux && make MEMDEBUG=TRUE -j3"; -*- */ /* * Copyright 1997 - 2022 by Eric House (xwords@eehouse.org). All rights * reserved. diff --git a/xwords4/common/dictnry.h b/xwords4/common/dictnry.h index 7bd42eb07..bcda45f48 100644 --- a/xwords4/common/dictnry.h +++ b/xwords4/common/dictnry.h @@ -1,4 +1,3 @@ -/* -*- compile-command: "cd ../linux && make MEMDEBUG=TRUE -j3"; -*- */ /* * Copyright 1997 - 2020 by Eric House (xwords@eehouse.org). All rights * reserved. diff --git a/xwords4/common/dllist.c b/xwords4/common/dllist.c index 05da0d912..2e3650afb 100644 --- a/xwords4/common/dllist.c +++ b/xwords4/common/dllist.c @@ -1,4 +1,3 @@ -/* -*- compile-command: "cd ../linux && make MEMDEBUG=TRUE -j3"; -*- */ /* * Copyright 2024 by Eric House (xwords@eehouse.org). All rights * reserved. diff --git a/xwords4/common/dragdrpp.c b/xwords4/common/dragdrpp.c index 36daab324..4237951bd 100644 --- a/xwords4/common/dragdrpp.c +++ b/xwords4/common/dragdrpp.c @@ -1,4 +1,3 @@ -/* -*-mode: C; fill-column: 78; compile-command: "cd ../linux && make MEMDEBUG=TRUE -j3"; -*- */ /* * Copyright 1997 - 2020 by Eric House (xwords@eehouse.org). All rights * reserved. diff --git a/xwords4/common/draw.c b/xwords4/common/draw.c index 49c952a2a..34c537b98 100644 --- a/xwords4/common/draw.c +++ b/xwords4/common/draw.c @@ -1,4 +1,3 @@ -/* -*- compile-command: "cd ../linux && make -j5 MEMDEBUG=TRUE"; -*- */ /* * Copyright 1997 - 2022 by Eric House (xwords@eehouse.org). All rights * reserved. diff --git a/xwords4/common/engine.c b/xwords4/common/engine.c index dcc24fe83..c46f71fe6 100644 --- a/xwords4/common/engine.c +++ b/xwords4/common/engine.c @@ -1,4 +1,3 @@ -/* -*- compile-command: "cd ../linux && make -j3 MEMDEBUG=TRUE"; -*- */ /* * Copyright 1997 - 2015 by Eric House (xwords@eehouse.org). All rights * reserved. diff --git a/xwords4/common/game.c b/xwords4/common/game.c index 8b306bf16..fb03a5c0e 100644 --- a/xwords4/common/game.c +++ b/xwords4/common/game.c @@ -1,4 +1,3 @@ -/* -*- compile-command: "cd ../linux && make -j3 MEMDEBUG=TRUE"; -*- */ /* * Copyright 2001-2011 by Eric House (xwords@eehouse.org). All rights * reserved. diff --git a/xwords4/common/game.h b/xwords4/common/game.h index ccade8569..3e107ce74 100644 --- a/xwords4/common/game.h +++ b/xwords4/common/game.h @@ -1,4 +1,3 @@ -/* -*- compile-command: "cd ../linux && make -j3 MEMDEBUG=TRUE"; -*- */ /* * Copyright 2001 - 2022 by Eric House (xwords@eehouse.org). All rights * reserved. diff --git a/xwords4/common/gameinfo.h b/xwords4/common/gameinfo.h index 09205bf5f..b64980b7a 100644 --- a/xwords4/common/gameinfo.h +++ b/xwords4/common/gameinfo.h @@ -1,4 +1,3 @@ -/* -*- compile-command: "cd ../linux && make -j3 MEMDEBUG=TRUE"; -*- */ /* * Copyright 2001-2013 by Eric House (xwords@eehouse.org). All rights * reserved. diff --git a/xwords4/common/knownplyr.c b/xwords4/common/knownplyr.c index 7a8e3d984..70bcf6695 100644 --- a/xwords4/common/knownplyr.c +++ b/xwords4/common/knownplyr.c @@ -1,4 +1,3 @@ -/* -*- compile-command: "cd ../linux && make MEMDEBUG=TRUE -j3"; -*- */ /* * Copyright 2020-2024 by Eric House (xwords@eehouse.org). All rights * reserved. diff --git a/xwords4/common/knownplyr.h b/xwords4/common/knownplyr.h index f85a3489d..f7520c631 100644 --- a/xwords4/common/knownplyr.h +++ b/xwords4/common/knownplyr.h @@ -1,4 +1,3 @@ -/* -*- compile-command: "cd ../linux && make MEMDEBUG=TRUE -j3"; -*- */ /* * Copyright 2020 by Eric House (xwords@eehouse.org). All rights reserved. * diff --git a/xwords4/common/mempool.c b/xwords4/common/mempool.c index 03c4df138..cbe093dc8 100644 --- a/xwords4/common/mempool.c +++ b/xwords4/common/mempool.c @@ -1,4 +1,3 @@ -/* -*- compile-command: "cd ../linux && make MEMDEBUG=TRUE -j3"; -*- */ /* * Copyright 2001-2009 by Eric House (xwords@eehouse.org). All rights * reserved. diff --git a/xwords4/common/memstream.c b/xwords4/common/memstream.c index 878bcd4d3..37529421c 100644 --- a/xwords4/common/memstream.c +++ b/xwords4/common/memstream.c @@ -1,4 +1,3 @@ -/* -*- compile-command: "cd ../linux && make MEMDEBUG=TRUE -j3"; -*- */ /* * Copyright 2001 - 2023 by Eric House (xwords@eehouse.org). All rights * reserved. diff --git a/xwords4/common/model.c b/xwords4/common/model.c index a4162eeb4..f3f25c0d8 100644 --- a/xwords4/common/model.c +++ b/xwords4/common/model.c @@ -1,4 +1,3 @@ -/* -*- compile-command: "cd ../linux && make -j3 MEMDEBUG=TRUE"; -*- */ /* * Copyright 2000 - 2022 by Eric House (xwords@eehouse.org). All rights * reserved. diff --git a/xwords4/common/model.h b/xwords4/common/model.h index abf246aa1..6fa5868d1 100644 --- a/xwords4/common/model.h +++ b/xwords4/common/model.h @@ -1,4 +1,3 @@ -/* -*- fill-column: 78; compile-command: "cd ../linux && make -j3 MEMDEBUG=TRUE"; -*- */ /* * Copyright 1997 - 2009 by Eric House (xwords@eehouse.org). All rights * reserved. diff --git a/xwords4/common/modelp.h b/xwords4/common/modelp.h index a9bb2c058..f9d06d4c1 100644 --- a/xwords4/common/modelp.h +++ b/xwords4/common/modelp.h @@ -1,4 +1,3 @@ -/* -*- compile-command: "cd ../linux && make -j3 MEMDEBUG=TRUE"; -*- */ /* * Copyright 2000 - 2011 by Eric House (xwords@eehouse.org). All rights * reserved. diff --git a/xwords4/common/movestak.c b/xwords4/common/movestak.c index 1477595ea..5438335c3 100644 --- a/xwords4/common/movestak.c +++ b/xwords4/common/movestak.c @@ -1,4 +1,3 @@ -/* -*- compile-command: "cd ../linux && make -j5 MEMDEBUG=TRUE"; -*- */ /* * Copyright 2001 - 2019 by Eric House (xwords@eehouse.org). All rights * reserved. diff --git a/xwords4/common/mscore.c b/xwords4/common/mscore.c index 659b4388f..7a43327cf 100644 --- a/xwords4/common/mscore.c +++ b/xwords4/common/mscore.c @@ -1,4 +1,3 @@ -/* -*- compile-command: "cd ../linux && make -j3 MEMDEBUG=TRUE"; -*- */ /* * Copyright 1998 - 2020 by Eric House (xwords@eehouse.org). All rights * reserved. diff --git a/xwords4/common/nli.c b/xwords4/common/nli.c index 2d82b852c..001e525da 100644 --- a/xwords4/common/nli.c +++ b/xwords4/common/nli.c @@ -1,4 +1,3 @@ -/* -*- compile-command: "cd ../linux && make MEMDEBUG=TRUE -j3"; -*- */ /* * Copyright 2001 - 2019 by Eric House (xwords@eehouse.org). All rights * reserved. @@ -216,7 +215,7 @@ nli_makeFromStream( NetLaunchInfo* nli, XWStreamCtxt* stream ) LOG_FUNC(); XP_MEMSET( nli, 0, sizeof(*nli) ); XP_U16 version = stream_getU8( stream ); - XP_LOGF( "%s(): read version: %d", __func__, version ); + XP_LOGFF( "read version: %d", version ); nli->_conTypes = stream_getU16( stream ); if ( version == NLI_VERSION_LC ) { diff --git a/xwords4/common/nwgamest.c b/xwords4/common/nwgamest.c index 1d8b27e42..acdc263a3 100644 --- a/xwords4/common/nwgamest.c +++ b/xwords4/common/nwgamest.c @@ -1,4 +1,3 @@ -/* -*- compile-command: "cd ../linux && make MEMDEBUG=TRUE"; -*- */ /* * Copyright 1997 - 2009 by Eric House (xwords@eehouse.org). All rights * reserved. diff --git a/xwords4/common/pool.c b/xwords4/common/pool.c index 8d2df996a..109de2812 100644 --- a/xwords4/common/pool.c +++ b/xwords4/common/pool.c @@ -1,4 +1,3 @@ -/* -*- compile-command: "cd ../linux && make -j3 MEMDEBUG=TRUE"; -*- */ /* * Copyright 2000 by Eric House (xwords@eehouse.org). All rights reserved. * diff --git a/xwords4/common/scorebdp.c b/xwords4/common/scorebdp.c index b73ea6acb..47dd62dbb 100644 --- a/xwords4/common/scorebdp.c +++ b/xwords4/common/scorebdp.c @@ -1,4 +1,3 @@ -/* -*-mode: C; fill-column: 78; compile-command: "cd ../linux && make MEMDEBUG=TRUE"; -*- */ /* * Copyright 1997 - 2007 by Eric House (xwords@eehouse.org). All rights reserved. * diff --git a/xwords4/common/server.c b/xwords4/common/server.c index 4730c7409..87a00fb7c 100644 --- a/xwords4/common/server.c +++ b/xwords4/common/server.c @@ -1,4 +1,3 @@ -/* -*- compile-command: "cd ../linux && make -j3 MEMDEBUG=TRUE"; -*- */ /* * Copyright 1997 - 2023 by Eric House (xwords@eehouse.org). All rights * reserved. diff --git a/xwords4/common/smsproto.c b/xwords4/common/smsproto.c index 02936224c..ccf0245e5 100644 --- a/xwords4/common/smsproto.c +++ b/xwords4/common/smsproto.c @@ -1,4 +1,3 @@ -/* -*- compile-command: "cd ../linux && make MEMDEBUG=TRUE -j3"; -*- */ /* * Copyright 2018 by Eric House (xwords@eehouse.org). All rights reserved. * diff --git a/xwords4/common/smsproto.h b/xwords4/common/smsproto.h index 882116ead..1ea16a89e 100644 --- a/xwords4/common/smsproto.h +++ b/xwords4/common/smsproto.h @@ -1,6 +1,5 @@ -/* -*- compile-command: "cd ../linux && make MEMDEBUG=TRUE -j3"; -*- */ /* - * Copyright 2018 by Eric House (xwords@eehouse.org). All rights reserved. + * Copyright 2018 by Eric House (xwords@eehouse.org). All rights reserved. * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License diff --git a/xwords4/common/stats.c b/xwords4/common/stats.c index ec77f3790..8c46aa350 100644 --- a/xwords4/common/stats.c +++ b/xwords4/common/stats.c @@ -1,4 +1,3 @@ -/* -*- compile-command: "cd ../linux && make MEMDEBUG=TRUE -j3"; -*- */ /* * Copyright 2024 by Eric House (xwords@eehouse.org). All rights reserved. * diff --git a/xwords4/common/strutils.c b/xwords4/common/strutils.c index a298f9e7b..fa8c13faa 100644 --- a/xwords4/common/strutils.c +++ b/xwords4/common/strutils.c @@ -1,4 +1,3 @@ -/* -*-mode: C; compile-command: "cd ../linux && make MEMDEBUG=TRUE"; -*- */ /* * Copyright 2001-2009 by Eric House (xwords@eehouse.org). All rights * reserved. diff --git a/xwords4/common/tray.c b/xwords4/common/tray.c index 93bb7afdf..c4025acb6 100644 --- a/xwords4/common/tray.c +++ b/xwords4/common/tray.c @@ -1,4 +1,3 @@ -/* -*- compile-command: "cd ../linux && make MEMDEBUG=TRUE -j3"; -*- */ /* * Copyright 1997 - 2011 by Eric House (xwords@eehouse.org). All rights * reserved. diff --git a/xwords4/common/xwmutex.c b/xwords4/common/xwmutex.c index ff9dd516b..b328a8964 100644 --- a/xwords4/common/xwmutex.c +++ b/xwords4/common/xwmutex.c @@ -1,4 +1,3 @@ -/* -*- compile-command: "cd ../linux && make MEMDEBUG=TRUE -j3"; -*- */ /* * Copyright 2024 by Eric House (xwords@eehouse.org). All rights reserved. *