Add preamble to generated file and fix gen-config.py filename

This commit is contained in:
pagedown 2022-02-03 21:38:24 +08:00
parent 90b54c5f7f
commit 80a62c8d71
No known key found for this signature in database
GPG Key ID: E921CF18AC8FF6EB
2 changed files with 3 additions and 1 deletions

View File

@ -292,6 +292,8 @@ def generate_wrappers(glfw_header: str) -> None:
f.write(header)
code = '''
// generated by glfw.py DO NOT edit
#define GFW_EXTERN
#include "data-types.h"
#include "glfw-wrapper.h"

View File

@ -36,7 +36,7 @@ def patch_conf(raw: str, theme_name: str) -> str:
nraw = raw + addition
# comment out all existing color definitions
color_conf_items = ( # {{{
# generated by gen_config.py do not EDIT
# generated by gen-config.py DO NOT edit
# ALL_COLORS_START
'active_border_color',
'active_tab_background',