Skip to content

Commit

Permalink
Fix the build format check
Browse files Browse the repository at this point in the history
  • Loading branch information
amontoison committed Nov 3, 2024
1 parent 5771899 commit 5f15879
Show file tree
Hide file tree
Showing 3 changed files with 1,285 additions and 549 deletions.
17 changes: 1 addition & 16 deletions gen/generate_wrapper.jl
Original file line number Diff line number Diff line change
Expand Up @@ -17,19 +17,4 @@ ctx = create_context(headers, args, options)
build!(ctx)

path = options["general"]["output_file_path"]
format_file(path, YASStyle())

str = read(path, String)
str =
"""
# Copyright (c) 2016: Ng Yee Sian, Miles Lubin, other contributors
#
# Use of this source code is governed by an MIT-style license that can be found
# in the LICENSE.md file or at https://opensource.org/licenses/MIT.
#!format:off
""" * str *
"""
#!format:on
"""
write(path, str)
format_file(path)
5 changes: 5 additions & 0 deletions gen/prologue.jl
Original file line number Diff line number Diff line change
@@ -1 +1,6 @@
# Copyright (c) 2016: Ng Yee Sian, Miles Lubin, other contributors
#
# Use of this source code is governed by an MIT-style license that can be found
# in the LICENSE.md file or at https://opensource.org/licenses/MIT.

const DBL_MAX = Float64(0x1.fffffffffffffp+1023)
Loading

0 comments on commit 5f15879

Please sign in to comment.