From d5f4f09e76504876e62d9a3510fbd1480716035d Mon Sep 17 00:00:00 2001 From: Ian Romanick Date: Mon, 22 Feb 2010 18:43:08 -0800 Subject: [PATCH] Rename .cc files to .cpp --- Makefile | 24 +++++++++---------- ast_to_hir.cc => ast_to_hir.cpp | 0 ...parser_extras.cc => glsl_parser_extras.cpp | 0 ...ld_selection.cc => hir_field_selection.cpp | 0 ir.cc => ir.cpp | 0 5 files changed, 12 insertions(+), 12 deletions(-) rename ast_to_hir.cc => ast_to_hir.cpp (100%) rename glsl_parser_extras.cc => glsl_parser_extras.cpp (100%) rename hir_field_selection.cc => hir_field_selection.cpp (100%) rename ir.cc => ir.cpp (100%) diff --git a/Makefile b/Makefile index 2f2142ed131..0d9017c3069 100644 --- a/Makefile +++ b/Makefile @@ -1,7 +1,7 @@ CSRCS = symbol_table.c hash_table.c glsl_types.c -CCSRCS = glsl_parser.tab.cc glsl_lexer.cc glsl_parser_extras.cc -# ast_to_hir.cc ir.cc hir_field_selection.cc -OBJS = $(CSRCS:.c=.o) $(CCSRCS:.cc=.o) +CCSRCS = glsl_parser.tab.cpp glsl_lexer.cpp glsl_parser_extras.cpp +# ast_to_hir.cpp ir.cpp hir_field_selection.cpp +OBJS = $(CSRCS:.c=.o) $(CCSRCS:.cpp=.o) CC = gcc CXX = g++ @@ -15,26 +15,26 @@ LDLAGS = -ggdb3 glsl: $(OBJS) $(CXX) $(LDLAGS) $(OBJS) -o glsl -glsl_parser.tab.cc glsl_parser.tab.h: glsl_parser.y +glsl_parser.tab.cpp glsl_parser.tab.h: glsl_parser.y bison --report-file=glsl_parser.output -v -d \ - --output=glsl_parser.tab.cc \ + --output=glsl_parser.tab.cpp \ --name-prefix=_mesa_glsl_ $< && \ - mv glsl_parser.tab.hh glsl_parser.tab.h + mv glsl_parser.tab.hpp glsl_parser.tab.h -glsl_lexer.cc: glsl_lexer.l - flex --outfile="glsl_lexer.cc" $< +glsl_lexer.cpp: glsl_lexer.l + flex --outfile="glsl_lexer.cpp" $< -glsl_parser_tab.o: glsl_parser.tab.cc +glsl_parser_tab.o: glsl_parser.tab.cpp glsl_types.o: glsl_types.c glsl_types.h builtin_types.h -glsl_lexer.o: glsl_lexer.cc glsl_parser.tab.h glsl_parser_extras.h ast.h +glsl_lexer.o: glsl_lexer.cpp glsl_parser.tab.h glsl_parser_extras.h ast.h glsl_parser.o: glsl_parser_extras.h ast.h -ast_to_hir.o: ast_to_hir.cc symbol_table.h glsl_parser_extras.h ast.h glsl_types.h ir.h +ast_to_hir.o: ast_to_hir.cpp symbol_table.h glsl_parser_extras.h ast.h glsl_types.h ir.h builtin_types.h: builtin_types.sh ./builtin_types.sh > builtin_types.h clean: rm -f $(OBJS) glsl - rm -f glsl_lexer.cc glsl_parser.tab.{cc,h,hh} glsl_parser.output + rm -f glsl_lexer.cpp glsl_parser.tab.{cpp,h,hpp} glsl_parser.output rm -f builtin_types.h rm -f *~ \ No newline at end of file diff --git a/ast_to_hir.cc b/ast_to_hir.cpp similarity index 100% rename from ast_to_hir.cc rename to ast_to_hir.cpp diff --git a/glsl_parser_extras.cc b/glsl_parser_extras.cpp similarity index 100% rename from glsl_parser_extras.cc rename to glsl_parser_extras.cpp diff --git a/hir_field_selection.cc b/hir_field_selection.cpp similarity index 100% rename from hir_field_selection.cc rename to hir_field_selection.cpp diff --git a/ir.cc b/ir.cpp similarity index 100% rename from ir.cc rename to ir.cpp -- 2.30.2