/* * Generate random C declarations for testing. * Copyright © 2012, 2022-2024 Nick Bowler * * 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, either version 3 of the License, or * (at your option) any later version. * * 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 CDECL_DECLGEN_H_ #define CDECL_DECLGEN_H_ enum { GEN_NO_FUNCTION = 0x01, GEN_NO_STORAGE = 0x02, GEN_NO_VOID = 0x04, GEN_ONLY_REGISTER = 0x08 }; struct test_rng; struct cdecl_declspec *gen_declspecs(struct test_rng *rng, unsigned flags); struct cdecl_declarator *gen_declarators(struct test_rng *rng); void gen_free_declspecs(struct cdecl_declspec *x); void gen_free_declarators(struct cdecl_declarator *x); #endif