fix #define for generated headers

This commit is contained in:
shaver%netscape.com 1999-02-09 15:30:31 +00:00
Родитель 1a0d9e7cb8
Коммит a91d4ad6d2
2 изменённых файлов: 4 добавлений и 2 удалений

Просмотреть файл

@ -66,11 +66,12 @@ static gboolean
pass_1(TreeState *state)
{
if (state->tree) {
char *define = g_basename(state->basename);
fprintf(state->file, "/*\n * DO NOT EDIT. THIS FILE IS GENERATED FROM"
" %s.idl\n */\n", state->basename);
fprintf(state->file, "\n#ifndef __gen_%s_h__\n"
"#define __gen_%s_h__\n\n",
state->basename, state->basename);
define, define);
if (g_hash_table_size(state->includes)) {
g_hash_table_foreach(state->includes, write_header, state);
fputc('\n', state->file);

Просмотреть файл

@ -66,11 +66,12 @@ static gboolean
pass_1(TreeState *state)
{
if (state->tree) {
char *define = g_basename(state->basename);
fprintf(state->file, "/*\n * DO NOT EDIT. THIS FILE IS GENERATED FROM"
" %s.idl\n */\n", state->basename);
fprintf(state->file, "\n#ifndef __gen_%s_h__\n"
"#define __gen_%s_h__\n\n",
state->basename, state->basename);
define, define);
if (g_hash_table_size(state->includes)) {
g_hash_table_foreach(state->includes, write_header, state);
fputc('\n', state->file);