diff options
author | Mike Buland <eichlan@xagasoft.com> | 2011-06-03 07:18:23 +0000 |
---|---|---|
committer | Mike Buland <eichlan@xagasoft.com> | 2011-06-03 07:18:23 +0000 |
commit | f16f239688b632fc54684c3e0e1430fd89a67db5 (patch) | |
tree | 6a6d4f3b5d5f4974af4c3cc47c7892e46c5ef201 /src/functionplugger.cpp | |
parent | 4f1e5849d4a48eb674d81164ba4baba4ad51a89f (diff) | |
download | build-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.cpp | 9 |
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; | |||
17 | extern Bu::PluginInfo pluginFunctionUnlink; | 17 | extern Bu::PluginInfo pluginFunctionUnlink; |
18 | extern Bu::PluginInfo pluginFunctionRegEx; | 18 | extern Bu::PluginInfo pluginFunctionRegEx; |
19 | extern Bu::PluginInfo pluginFunctionRange; | 19 | extern Bu::PluginInfo pluginFunctionRange; |
20 | extern Bu::PluginInfo pluginFunctionOpen; | ||
21 | extern Bu::PluginInfo pluginFunctionClose; | ||
22 | extern Bu::PluginInfo pluginFunctionRead; | ||
23 | extern Bu::PluginInfo pluginFunctionWrite; | ||
20 | 24 | ||
21 | FunctionPlugger::FunctionPlugger() | 25 | FunctionPlugger::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 ) |