mirror of
https://gitlab.gnome.org/GNOME/gimp.git
synced 2025-10-06 01:12:40 +02:00
tools, modules: #pragma once
This commit is contained in:
@@ -115,8 +115,7 @@ if __name__ == "__main__":
|
||||
intro_p, items, demos = parse_appdata(infile, args.version)
|
||||
|
||||
if args.header:
|
||||
print('#ifndef __WELCOME_DIALOG_DATA_H__')
|
||||
print('#define __WELCOME_DIALOG_DATA_H__\n\n')
|
||||
print('#pragma once\n\n')
|
||||
|
||||
print('extern gint gimp_welcome_dialog_n_items;')
|
||||
print('extern const gchar * gimp_welcome_dialog_items[];')
|
||||
@@ -125,7 +124,6 @@ if __name__ == "__main__":
|
||||
print('extern gint gimp_welcome_dialog_intro_n_paragraphs;')
|
||||
print('extern const gchar * gimp_welcome_dialog_intro[];')
|
||||
|
||||
print('\n\n#endif /* __WELCOME_DIALOG_DATA_H__ */')
|
||||
else:
|
||||
print('#include "config.h"')
|
||||
print('#include <glib.h>')
|
||||
|
@@ -91,8 +91,7 @@ main (int argc,
|
||||
" * This file was generated using kernelgen as found in the tools dir.\n");
|
||||
printf (" * (threshold = %g)\n", THRESHOLD);
|
||||
printf (" */\n\n");
|
||||
printf ("#ifndef __GIMP_BRUSH_CORE_KERNELS_H__\n");
|
||||
printf ("#define __GIMP_BRUSH_CORE_KERNELS_H__\n\n");
|
||||
printf ("#pragma once\n\n");
|
||||
printf ("#define KERNEL_WIDTH %d\n", KERNEL_WIDTH);
|
||||
printf ("#define KERNEL_HEIGHT %d\n", KERNEL_HEIGHT);
|
||||
printf ("#define KERNEL_SUBSAMPLE %d\n", SUBSAMPLE);
|
||||
@@ -120,9 +119,7 @@ main (int argc,
|
||||
printf (" }%s", j < SUBSAMPLE ? ",\n" : "\n");
|
||||
}
|
||||
|
||||
printf ("};\n\n");
|
||||
|
||||
printf ("#endif /* __GIMP_BRUSH_CORE_KERNELS_H__ */\n");
|
||||
printf ("};\n");
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
Reference in New Issue
Block a user