Repository navigation
Use non-reserved names for header include guards - #5
Merged
Merged
Conversation
Template counterpart of xiaoyeli/superlu#189. Identifiers beginning with two underscores are reserved for the implementation in C and C++, so the include guards in slu_xcomplex.h.base and slu_xdefs.h.base become SUPERLU_<PRE>COMPLEX_H and SUPERLU_<pre>SP_DEFS_H, matching the extracted slu_{s,d}complex.h and slu_{s,d,c,z}defs.h on superlu master. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01VjnVBdsXEM3c41ssQ3hFAM
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Template counterpart of xiaoyeli/superlu#189. Identifiers that begin with two underscores are reserved for the implementation in C and C++, so the include guards in the two template headers are renamed:
SRC/slu_xcomplex.h.base__SUPERLU_@(MOD_PRE)COMPLEXSUPERLU_@(MOD_PRE)COMPLEX_HSRC/slu_xdefs.h.base__SUPERLU_@(pre)SP_DEFSSUPERLU_@(pre)SP_DEFS_HEach guard changes in three places: the
#ifndef, the#define, and the closing#endifcomment.Scope
Upstream PR 189 touched 11 headers. Only
slu_{s,d}complex.handslu_{s,d,c,z}defs.hare generated from templates in this repository, and those are covered here. The other headers it changed (slu_Cnames.h,slu_util.h,superlu_enum_consts.h,supermatrix.h,CBLAS/slu_Cnames.h) have no template in superlu_base, so nothing further is needed for them.Not touched: the legacy
SRC/dcomplex.h(guard__SUPERLU_dCOMPLEX) and the Doxygen copy underSRC/html/. Neither is extracted by the Makefile and neither corresponds to a file in the upstream PR.Verification
With
@(MOD_PRE)substituted byDand@(pre)byd, the changed lines are identical to the upstream diff ofSRC/slu_dcomplex.handSRC/slu_ddefs.hat merge commit a8d98be.Generated by Claude Code