aboutsummaryrefslogtreecommitdiff
path: root/src/build.l
diff options
context:
space:
mode:
authorMike Buland <eichlan@xagasoft.com>2011-01-20 18:21:03 +0000
committerMike Buland <eichlan@xagasoft.com>2011-01-20 18:21:03 +0000
commitc435c7daa9df1b08dc85132fcd1c154bea9b69e2 (patch)
tree5537f3c91a67b35c4c8aa918b708b7e4aad8f146 /src/build.l
parent59690513123de8904eef2a03fe7fcaaed98b1b7b (diff)
downloadbuild-c435c7daa9df1b08dc85132fcd1c154bea9b69e2.tar.gz
build-c435c7daa9df1b08dc85132fcd1c154bea9b69e2.tar.bz2
build-c435c7daa9df1b08dc85132fcd1c154bea9b69e2.tar.xz
build-c435c7daa9df1b08dc85132fcd1c154bea9b69e2.zip
Fixes to use libbu++ Bu::String
Diffstat (limited to '')
-rw-r--r--src/build.l6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/build.l b/src/build.l
index dc4ddda..7b770f7 100644
--- a/src/build.l
+++ b/src/build.l
@@ -1,8 +1,8 @@
1%{ 1%{
2 #include "buildparser.h" 2 #include "buildparser.h"
3 #include "bu/fstring.h" 3 #include "bu/string.h"
4 4
5char *fstrdup( const Bu::FString &s ) 5char *fstrdup( const Bu::String &s )
6{ 6{
7 char *sRet = new char[s.getSize()+1]; 7 char *sRet = new char[s.getSize()+1];
8 memcpy( sRet, s.getStr(), s.getSize()+1 ); 8 memcpy( sRet, s.getStr(), s.getSize()+1 );
@@ -17,7 +17,7 @@ char *rstrdup( const char *sIn )
17} 17}
18void build_error( YYLTYPE *locp, yyscan_t yyscanner, BuildParser &bld, const char *msg ); 18void build_error( YYLTYPE *locp, yyscan_t yyscanner, BuildParser &bld, const char *msg );
19 19
20Bu::FString sBuf; 20Bu::String sBuf;
21int iStrDepth = 0; 21int iStrDepth = 0;
22%} 22%}
23 23