X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=include%2Flibfirm%2Firhooks.h;h=595551f4dd8e7cbc0665d150e74f10a4aee8037c;hb=f7a0dee11313faad6f2ff54edc8eaadabd03e433;hp=73de5277258c4d391e89ee54472ff6270e12a613;hpb=9f5d925a2e6e2a8f1512e2ee4355cb12eb26ffd1;p=libfirm diff --git a/include/libfirm/irhooks.h b/include/libfirm/irhooks.h index 73de52772..595551f4d 100644 --- a/include/libfirm/irhooks.h +++ b/include/libfirm/irhooks.h @@ -1,5 +1,5 @@ /* - * Copyright (C) 1995-2007 University of Karlsruhe. All right reserved. + * Copyright (C) 1995-2008 University of Karlsruhe. All right reserved. * * This file is part of libFirm. * @@ -236,12 +236,12 @@ extern hook_entry_t *hooks[hook_last]; * execute the hook what with the args args * Do not use this macro directly. */ -#define hook_exec(what, args) do { \ - hook_entry_t *p; \ - for (p = hooks[what]; p; p = p->next){ \ - void *ctx = p->context; \ - p->hook._##what args; \ - } \ +#define hook_exec(what, args) do { \ + hook_entry_t *_p; \ + for (_p = hooks[what]; _p; _p = _p->next){ \ + void *ctx = _p->context; \ + _p->hook._##what args; \ + } \ } while (0) #else