diff options
author | Mike Buland <eichlan@xagasoft.com> | 2011-01-20 18:21:03 +0000 |
---|---|---|
committer | Mike Buland <eichlan@xagasoft.com> | 2011-01-20 18:21:03 +0000 |
commit | c435c7daa9df1b08dc85132fcd1c154bea9b69e2 (patch) | |
tree | 5537f3c91a67b35c4c8aa918b708b7e4aad8f146 /src/build.l | |
parent | 59690513123de8904eef2a03fe7fcaaed98b1b7b (diff) | |
download | build-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.l | 6 |
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 | ||
5 | char *fstrdup( const Bu::FString &s ) | 5 | char *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 | } |
18 | void build_error( YYLTYPE *locp, yyscan_t yyscanner, BuildParser &bld, const char *msg ); | 18 | void build_error( YYLTYPE *locp, yyscan_t yyscanner, BuildParser &bld, const char *msg ); |
19 | 19 | ||
20 | Bu::FString sBuf; | 20 | Bu::String sBuf; |
21 | int iStrDepth = 0; | 21 | int iStrDepth = 0; |
22 | %} | 22 | %} |
23 | 23 | ||