diff options
author | Michal Krol <michal@vmware.com> | 2009-06-22 09:14:14 +0200 |
---|---|---|
committer | Michal Krol <michal@vmware.com> | 2009-09-07 10:11:48 +0200 |
commit | 2dad8ed9d68289ba25a4023da12fc5ddf6a621dd (patch) | |
tree | 28a141fb7ae18ce6402c0079d9391aecaeb5b118 /src/glsl/pp/sl_pp_macro.h | |
parent | 6a11d4150cfcdd646c17f8b365b5481c2c583208 (diff) | |
download | external_mesa3d-2dad8ed9d68289ba25a4023da12fc5ddf6a621dd.zip external_mesa3d-2dad8ed9d68289ba25a4023da12fc5ddf6a621dd.tar.gz external_mesa3d-2dad8ed9d68289ba25a4023da12fc5ddf6a621dd.tar.bz2 |
glsl: Centralise sl_pp_macro constructor.
Diffstat (limited to 'src/glsl/pp/sl_pp_macro.h')
-rw-r--r-- | src/glsl/pp/sl_pp_macro.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/glsl/pp/sl_pp_macro.h b/src/glsl/pp/sl_pp_macro.h index eeb338e..63edd21 100644 --- a/src/glsl/pp/sl_pp_macro.h +++ b/src/glsl/pp/sl_pp_macro.h @@ -38,12 +38,15 @@ struct sl_pp_macro_formal_arg { struct sl_pp_macro { int name; - int num_args; + int num_args; /* -1 means no args, 0 means `()' */ struct sl_pp_macro_formal_arg *arg; struct sl_pp_token_info *body; struct sl_pp_macro *next; }; +struct sl_pp_macro * +sl_pp_macro_new(void); + void sl_pp_macro_free(struct sl_pp_macro *macro); |