aboutsummaryrefslogtreecommitdiff
path: root/src/functionplugger.cpp
diff options
context:
space:
mode:
authorMike Buland <eichlan@xagasoft.com>2011-06-03 07:18:23 +0000
committerMike Buland <eichlan@xagasoft.com>2011-06-03 07:18:23 +0000
commitf16f239688b632fc54684c3e0e1430fd89a67db5 (patch)
tree6a6d4f3b5d5f4974af4c3cc47c7892e46c5ef201 /src/functionplugger.cpp
parent4f1e5849d4a48eb674d81164ba4baba4ad51a89f (diff)
downloadbuild-f16f239688b632fc54684c3e0e1430fd89a67db5.tar.gz
build-f16f239688b632fc54684c3e0e1430fd89a67db5.tar.bz2
build-f16f239688b632fc54684c3e0e1430fd89a67db5.tar.xz
build-f16f239688b632fc54684c3e0e1430fd89a67db5.zip
I added basic support for "opaque" type variables. I think there's one more
tweak to it that I would like to make, but it's fine for now. I also added open, close, read, and write functions. They work just fine, but I'll also add a readLine function, and maybe even a readToken function later.
Diffstat (limited to '')
-rw-r--r--src/functionplugger.cpp9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/functionplugger.cpp b/src/functionplugger.cpp
index c7b270c..a7b4cf5 100644
--- a/src/functionplugger.cpp
+++ b/src/functionplugger.cpp
@@ -17,6 +17,10 @@ extern Bu::PluginInfo pluginFunctionToString;
17extern Bu::PluginInfo pluginFunctionUnlink; 17extern Bu::PluginInfo pluginFunctionUnlink;
18extern Bu::PluginInfo pluginFunctionRegEx; 18extern Bu::PluginInfo pluginFunctionRegEx;
19extern Bu::PluginInfo pluginFunctionRange; 19extern Bu::PluginInfo pluginFunctionRange;
20extern Bu::PluginInfo pluginFunctionOpen;
21extern Bu::PluginInfo pluginFunctionClose;
22extern Bu::PluginInfo pluginFunctionRead;
23extern Bu::PluginInfo pluginFunctionWrite;
20 24
21FunctionPlugger::FunctionPlugger() 25FunctionPlugger::FunctionPlugger()
22{ 26{
@@ -33,7 +37,10 @@ FunctionPlugger::FunctionPlugger()
33 registerBuiltinPlugin( &pluginFunctionToString ); 37 registerBuiltinPlugin( &pluginFunctionToString );
34 registerBuiltinPlugin( &pluginFunctionUnlink ); 38 registerBuiltinPlugin( &pluginFunctionUnlink );
35 registerBuiltinPlugin( &pluginFunctionRegEx ); 39 registerBuiltinPlugin( &pluginFunctionRegEx );
36 registerBuiltinPlugin( &pluginFunctionRange ); 40 registerBuiltinPlugin( &pluginFunctionOpen );
41 registerBuiltinPlugin( &pluginFunctionClose );
42 registerBuiltinPlugin( &pluginFunctionRead );
43 registerBuiltinPlugin( &pluginFunctionWrite );
37 44
38 DIR *dir = opendir("/usr/lib/build"); 45 DIR *dir = opendir("/usr/lib/build");
39 if( !dir ) 46 if( !dir )