/* $Id$ */ /* Copyright (c) 2011 Pierre Pronchery */ /* This file is part of DeforaOS Devel c99 */ /* This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, version 3 of the License. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see . */ #ifndef _C99_TARGET_TARGET_H # define _C99_TARGET_TARGET_H # include "c99.h" /* Target */ /* public */ /* types */ typedef struct _TargetPlugin { C99Helper * helper; C99Option * options; int (*init)(char const * outfile, int optlevel); int (*exit)(void); int (*token)(Token * token); int (*section)(char const * name); int (*function_begin)(char const * name); int (*function_call)(char const * name); int (*function_end)(void); int (*label_set)(char const * name); } TargetPlugin; #endif /* !_C99_TARGET_TARGET_H */