aboutsummaryrefslogtreecommitdiff
path: root/src/build.l
diff options
context:
space:
mode:
Diffstat (limited to 'src/build.l')
-rw-r--r--src/build.l9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/build.l b/src/build.l
index 5b69177..9065a49 100644
--- a/src/build.l
+++ b/src/build.l
@@ -1,8 +1,15 @@
1%{ 1%{
2# include <string> 2# include <string>
3# include <string.h>
3# include "buildparser.h" 4# include "buildparser.h"
4# include "build.tab.h" 5# include "build.tab.h"
5# include "stringrep.h" 6
7char *stringdup( const char *sin )
8{
9 char *n = new char[strlen(sin)+1];
10 strcpy( n, sin );
11 return n;
12}
6 13
7std::string strbuf; 14std::string strbuf;
8%} 15%}