Skip to content

Commit

Permalink
flint autogen: add warnings about generated files to the templates
Browse files Browse the repository at this point in the history
(it didn't seem worth the trouble modifying the generator itself so that
it inserts the warning in the correct place...)
  • Loading branch information
mezzarobba committed Jan 30, 2024
1 parent 269b063 commit 9c95367
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
# distutils: extra_compile_args = -D_XPG6

# WARNING: src/sage/libs/flint/flint_sage.pyx is generated from
# src/sage_setup/autogen/flint/templates/flint_sage.pyx.template;
# please make sure that you are modifying the correct file!

"""
Flint imports

Expand Down
4 changes: 4 additions & 0 deletions src/sage_setup/autogen/flint/templates/flint_wrap.h.template
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
/* WARNING: src/sage/libs/flint/flint_wrap.h is generated from
* src/sage_setup/autogen/flint/templates/flint_wrap.h.template
* please make sure that you are modifying the correct file! */

#ifndef SAGE_FLINT_WRAP_H
#define SAGE_FLINT_WRAP_H
/* Using flint headers together in the same module as headers from
Expand Down
4 changes: 4 additions & 0 deletions src/sage_setup/autogen/flint/templates/types.pxd.template
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# distutils: depends = {HEADER_LIST}

# WARNING: src/sage/libs/flint/types.pxd is generated from
# src/sage_setup/autogen/flint/templates/types.pxd.template
# please make sure that you are modifying the correct file!

"""
Declarations for FLINT types
"""
Expand Down

0 comments on commit 9c95367

Please sign in to comment.