From 2c1912fe84d110d4c8cccc207827a154c09dd09a Mon Sep 17 00:00:00 2001 From: Brian Paul Date: Sun, 16 Feb 2003 23:07:34 +0000 Subject: more work on DEFINE/DECLARATION statements, symbol tables --- src/mesa/main/nvprogram.h | 24 ++++++++++++++++++++++-- 1 file changed, 22 insertions(+), 2 deletions(-) (limited to 'src/mesa/main/nvprogram.h') diff --git a/src/mesa/main/nvprogram.h b/src/mesa/main/nvprogram.h index 3ede705722..5d31ebba3b 100644 --- a/src/mesa/main/nvprogram.h +++ b/src/mesa/main/nvprogram.h @@ -1,10 +1,10 @@ -/* $Id: nvprogram.h,v 1.1 2003/01/14 04:55:46 brianp Exp $ */ +/* $Id: nvprogram.h,v 1.2 2003/02/16 23:07:36 brianp Exp $ */ /* * Mesa 3-D graphics library * Version: 5.1 * - * Copyright (C) 1999-2001 Brian Paul All Rights Reserved. + * Copyright (C) 1999-2003 Brian Paul All Rights Reserved. * * Permission is hereby granted, free of charge, to any person obtaining a * copy of this software and associated documentation files (the "Software"), @@ -32,6 +32,26 @@ #define NVPROGRAM_H +enum symbol_type +{ + Definition, + Declaration +}; + + +extern void +_mesa_add_symbol(struct symbol_table *symbolTable, + const char *name, enum symbol_type type, + const GLfloat *value); + +extern GLboolean +_mesa_lookup_symbol(const struct symbol_table *symbolTable, + const char *name, GLfloat *value); + +extern void +_mesa_assign_program_registers(struct symbol_table *symbolTable); + + extern void _mesa_set_program_error(GLcontext *ctx, GLint pos, const char *string); -- cgit v1.2.3