/* error message can only be set only once */
if (error_message != NULL)
{
- mem_free (¶m);
+ mem_free ((void **) ¶m);
return;
}
returns pointer to the element with the specified key if it exists
returns NULL otherwise
*/
-map_byte *map_byte_locate (map_byte **ma, const byte *key)
+static map_byte *map_byte_locate (map_byte **ma, const byte *key)
{
while (*ma)
{
while (temp)
{
- if (temp->m_emit_dest == ed_output)
+ if (temp->m_emit_dest == ed_output) {
if (temp->m_emit_type == et_position)
count += 4; /* position is a 32-bit unsigned integer */
else
count++;
-
+ }
temp = temp->m_next;
}
(**ba).data[(**ba).len - count--] = em->m_byte;
else if (em->m_emit_type == et_stream)
(**ba).data[(**ba).len - count--] = c;
- else // em->type == et_position
+ else /* em->type == et_position */
(**ba).data[(**ba).len - count--] = (byte) pos,
(**ba).data[(**ba).len - count--] = (byte) (pos >> 8),
(**ba).data[(**ba).len - count--] = (byte) (pos >> 16),
}
/*
- returns 1 if text points to C-style comment start string "/*",
+ returns 1 if text points to C-style comment start string,
returns 0 otherwise
*/
static int is_comment_start (const byte *text)
main/api_noop.c \
main/api_validate.c \
main/accum.c \
- main/arbparse.c \
- main/arbprogram.c \
- main/arbfragparse.c \
- main/arbvertparse.c \
main/attrib.c \
main/blend.c \
main/bufferobj.c \
main/light.c \
main/lines.c \
main/matrix.c \
- main/nvprogram.c \
- main/nvfragparse.c \
- main/nvvertexec.c \
- main/nvvertparse.c \
main/occlude.c \
main/pixel.c \
main/points.c \
main/polygon.c \
- main/program.c \
main/rastpos.c \
main/state.c \
main/stencil.c \
tnl/t_vtx_eval.c \
tnl/t_vtx_exec.c
+SHADER_SOURCES = \
+ shader/arbfragparse.c \
+ shader/arbprogparse.c \
+ shader/arbprogram.c \
+ shader/arbvertparse.c \
+ shader/grammar_mesa.c \
+ shader/nvfragparse.c \
+ shader/nvprogram.c \
+ shader/nvvertexec.c \
+ shader/nvvertparse.c \
+ shader/program.c
+
ASM_C_SOURCES = \
x86/common_x86.c \
x86/x86.c \
$(MATH_SOURCES) \
$(ARRAY_CACHE_SOURCES) \
$(TNL_SOURCES) \
+ $(SHADER_SOURCES) \
$(SWRAST_SOURCES) \
$(SWRAST_SETUP_SOURCES) \
$(ASM_C_SOURCES)
-I$(TOP)/src/mesa/glapi \
-I$(TOP)/src/mesa/math \
-I$(TOP)/src/mesa/tnl \
+ -I$(TOP)/src/mesa/shader \
-I$(TOP)/src/mesa/swrast \
-I$(TOP)/src/mesa/swrast_setup