added padding.

Sun Mar  3 02:30:05 2002  Tim Janik  <timj@gtk.org>

        * glib/gscanner.h (_GScannerConfig): added padding.

        * glib/ghook.h (struct _GHook): add two padding pointers.
This commit is contained in:
Tim Janik
2002-03-03 03:15:10 +00:00
committed by Tim Janik
parent d7dd9aefd8
commit c467e0fef2
13 changed files with 54 additions and 0 deletions

View File

@@ -1,3 +1,9 @@
Sun Mar 3 02:30:05 2002 Tim Janik <timj@gtk.org>
* glib/gscanner.h (_GScannerConfig): added padding.
* glib/ghook.h (struct _GHook): add two padding pointers.
Thu Feb 28 11:13:49 2002 Owen Taylor <otaylor@redhat.com>
* glib/gshell.c (g_shell_unquote): Fix memory leak.

View File

@@ -1,3 +1,9 @@
Sun Mar 3 02:30:05 2002 Tim Janik <timj@gtk.org>
* glib/gscanner.h (_GScannerConfig): added padding.
* glib/ghook.h (struct _GHook): add two padding pointers.
Thu Feb 28 11:13:49 2002 Owen Taylor <otaylor@redhat.com>
* glib/gshell.c (g_shell_unquote): Fix memory leak.

View File

@@ -1,3 +1,9 @@
Sun Mar 3 02:30:05 2002 Tim Janik <timj@gtk.org>
* glib/gscanner.h (_GScannerConfig): added padding.
* glib/ghook.h (struct _GHook): add two padding pointers.
Thu Feb 28 11:13:49 2002 Owen Taylor <otaylor@redhat.com>
* glib/gshell.c (g_shell_unquote): Fix memory leak.

View File

@@ -1,3 +1,9 @@
Sun Mar 3 02:30:05 2002 Tim Janik <timj@gtk.org>
* glib/gscanner.h (_GScannerConfig): added padding.
* glib/ghook.h (struct _GHook): add two padding pointers.
Thu Feb 28 11:13:49 2002 Owen Taylor <otaylor@redhat.com>
* glib/gshell.c (g_shell_unquote): Fix memory leak.

View File

@@ -1,3 +1,9 @@
Sun Mar 3 02:30:05 2002 Tim Janik <timj@gtk.org>
* glib/gscanner.h (_GScannerConfig): added padding.
* glib/ghook.h (struct _GHook): add two padding pointers.
Thu Feb 28 11:13:49 2002 Owen Taylor <otaylor@redhat.com>
* glib/gshell.c (g_shell_unquote): Fix memory leak.

View File

@@ -1,3 +1,9 @@
Sun Mar 3 02:30:05 2002 Tim Janik <timj@gtk.org>
* glib/gscanner.h (_GScannerConfig): added padding.
* glib/ghook.h (struct _GHook): add two padding pointers.
Thu Feb 28 11:13:49 2002 Owen Taylor <otaylor@redhat.com>
* glib/gshell.c (g_shell_unquote): Fix memory leak.

View File

@@ -1,3 +1,9 @@
Sun Mar 3 02:30:05 2002 Tim Janik <timj@gtk.org>
* glib/gscanner.h (_GScannerConfig): added padding.
* glib/ghook.h (struct _GHook): add two padding pointers.
Thu Feb 28 11:13:49 2002 Owen Taylor <otaylor@redhat.com>
* glib/gshell.c (g_shell_unquote): Fix memory leak.

View File

@@ -1,3 +1,9 @@
Sun Mar 3 02:30:05 2002 Tim Janik <timj@gtk.org>
* glib/gscanner.h (_GScannerConfig): added padding.
* glib/ghook.h (struct _GHook): add two padding pointers.
Thu Feb 28 11:13:49 2002 Owen Taylor <otaylor@redhat.com>
* glib/gshell.c (g_shell_unquote): Fix memory leak.

View File

@@ -30,6 +30,7 @@ list of hook functions.
@hook_memchunk: the #GMemChunk used for allocating the #GHook elements.
@finalize_hook: the function to call to finalize a #GHook element. The
default behaviour is to call the hooks <function>destroy</function> function.
@dummy:
<!-- ##### USER_FUNCTION GHookFinalizeFunc ##### -->
<para>

View File

@@ -214,6 +214,7 @@ is searched for in the default scope in addition to the current scope
@char_2_token:
@symbol_2_token:
@scope_0_fallback:
@padding_dummy:
<!-- ##### FUNCTION g_scanner_input_file ##### -->
<para>

View File

@@ -69,6 +69,8 @@ g_hook_list_init (GHookList *hook_list,
hook_size * G_HOOKS_PREALLOC,
G_ALLOC_AND_FREE);
hook_list->finalize_hook = default_finalize_hook;
hook_list->dummy[0] = NULL;
hook_list->dummy[1] = NULL;
}
void

View File

@@ -66,6 +66,7 @@ struct _GHookList
GHook *hooks;
GMemChunk *hook_memchunk;
GHookFinalizeFunc finalize_hook;
gpointer dummy[2];
};
struct _GHook
{

View File

@@ -154,6 +154,7 @@ struct _GScannerConfig
guint char_2_token : 1; /* return G_TOKEN_CHAR? */
guint symbol_2_token : 1;
guint scope_0_fallback : 1; /* try scope 0 on lookups? */
guint padding_dummy;
};
struct _GScanner