search for: myplugin

Displaying 20 results from an estimated 42 matches for "myplugin".

2009 Jun 15
0
[LLVMdev] llvmc for PIC16
...esn't talk about creating standalone drivers. Sorry for that, I was planning to update it for ages... For now, please look at examples/Skeleton, which is a standalone driver skeleton, on which the mcc16 driver is based. > I think the correct command line is > $ make LLVMC_BUILTIN_PLUGINS=MyPlugin LLVMC_BASED_DRIVER_NAME=mydriver > > rather than > $ make BUILTIN_PLUGINS=MyPlugin DRIVER_NAME=mydriver > (I found the later one in LLVMC-Reference) This section is about building the "main" llvmc driver and its plugins. Creation of standalone drivers is not described in the...
2009 Jun 15
3
[LLVMdev] llvmc for PIC16
..../Makefile.common:69: /Makefile.rules: No such file or directory make: *** No rule to make target `/Makefile.rules'. Stop. [i00171 at rhino Simple]$ I copied the "Simple" plugin to the configured directory $ cd objs/tools/llvmc/plugins $ cp -rf $LLVM_SRC/tools/llvmc/example/Simple MyPlugin Changed the plugin name in the Makefile from "Simple" to "MyPlugin", and moved "Simple.td" to "MyPlugin.td" $ make LLVMC_BUILTIN_PLUGINS=MyPlugin LLVMC_BASED_DRIVER_NAME=mydriver That created "mydriver" executable for me. - Sanjiv > If you...
2009 Jun 15
3
[LLVMdev] llvmc for PIC16
Mikhail Glushenkov wrote: > > Hi Sanjiv, > > Sanjiv Gupta <sanjiv.gupta <at> microchip.com> writes: > > > The salient features that we want to have in the driver are: > > [...] > > As promised, I've implemented a basic compiler driver for the > PIC16 toolchain. It's under tools/llvmc/examples/mcc16. > Hi Mikhail, How do you build mcc16
2008 Nov 17
0
[LLVMdev] Dynamic configuration for llvmc2
...t dynamic plugins (via .so files and the -load option). So TableGen is going to stay, but you won't have to recompile the whole driver to alter llvmc2's behaviour (only your plugin). The plan now is to make this functionality easier to use, so you'll be able to just say: llvmc2 --load MyPlugin.td MyFile.cpp and have llvmc2 build and load MyPlugin.td behind the scenes. If you still find this scheme cumbersome, I'll be glad to hear your comments.
2008 Nov 17
2
[LLVMdev] Dynamic configuration for llvmc2
I've been working on some minor enhancements for llvmc2, but before I submit them, I'd like to know more about where the driver is going. Right now, llvmc2 uses TableGen at build time to statically create C++ files with hardcoded paths and command lines. The llvmc2 documentation seems to imply that the static TableGen-based configuration will eventually be replaced by some kind of
2006 Aug 08
2
Extending rails with plugins
I''ve been looking at bottling some functionality up into a plugin, but I''m having some problems including it. The structure I have is: /app/controllers/admin/base_controller.rb: class Admin::BaseController > ApplicationController #snip# end /vendor/plugins/myplugin/lib/my_module.rb: module MyModule def new_func "New Function" end end /vendor/plugins/myplugin/init.rb: require ''my_module'' Admin::BaseController.send :include, MyModule However, this gives me an ''uninitialized constant ApplicationController (...
2010 Sep 06
1
Plugin execution order and Sieve
...n (lda or lmtp), but if I declare, in addition to my plugin, sieve, sieve is called first, and my plugin is never called. I tried to change the order of declaration of plugins, but nothing changes. If I remove Sieve, my plugin is properly called. protocol lmtp { #mail_plugins = $mail_plugins myplugin sieve ## sieve called first, my plugin is never called #mail_plugins = $mail_plugins sieve myplugin ## sieve called first, my plugin is never called mail_plugins = $mail_plugins myplugin ## my plugin is called } I try to patch Pigeonhole Sieve to call other plugin at the...
2019 Aug 02
2
building a custom plugin
...at compile time. How have the .dlls corresponding to the example plugins been built? This works: clang -fplugin=C:/Users/User/llvm-project/build/Release/bin/PrintFunctionNames.dll -Xclang -plugin -Xclang print-fns test.c This doesn't clang -fplugin=C:/Users/User/llvm-project/build/Release/bin/MyPlugin.dll -Xclang -plugin -Xclang my-plugin test.c cheers, Osanne -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20190802/f226f0b5/attachment.html>
2019 Sep 08
2
New PM, opt and command line options
...d the plugins in opt. Everything is back to normal when loading via `-load` (the legacy PM). For example, given this CL option: static cl::opt<bool> SomeFlat("some-flag", cl::init(false), cl::desc("set some flag")); I can see that it's being registered: opt -load MyPlugin -help | grep some-flag -some-flag - set some flag However, this returns nothing: opt -load-pass-plugin -help | grep some-flag Am I missing something obvious? Or is that `by design`? -Andrzej
2013 May 21
1
[LLVMdev] a callback for opt plugin unloading event
Hello, My opt plugin contains multiple passes in it and each pass produces some results and saves them in a global data structure. $ opt -load myplugin.dylib -pass1 -pass2 -pass3 test.bc After all passes finish running, I need to flush out the collected results to a disk file. But I don't know when I can do it. Is there a way/callback for my plugin to know when opt is done with it? Perhaps the last pass could take care of the flushing but m...
2007 Mar 02
1
Doing %var-substitutions in a plugin...
Hi, I'm trying to write a plugin that need to do some %var-substitution. Is there a way to get the var_expand_table used by the process? If not, I guess I could use getenv("USER") (for %u, %n and %d) and getenv("HOME") (for %h); but what for the other ones? Cheers, Nicolas
2005 Dec 26
0
Problems with Plugin Models
I''m developing a plugin that provides several models (with a Rakefile to generate the schema). However, I''m running into two problems: 1. How can I setup a ''models'' directory? Only ''myplugin/lib'' is in the load path, and if I move my models to ''myplugin/lib/models'' -- even if I explicitly require them all -- it tries to dynamically load them (and fails). 2. I''m trying to store a model instance in a session, but I keep getting unknown class errors...
2007 Jun 09
11
authentication, controller specs. I think I''m missing something simple ....
Hi all, I feel like I''m missing something really easy and I''m just not seeing it. I''m using the restful_authentication plugin and have a User model. Uesr has_many :things and Thing belongs_to :user. That''s it. I did a "script/generate rspec_scaffold thing" to generate all the necessary bits. The "rake db:migrate" to create the db. At
2020 Apr 24
1
[PATCH nbdkit] golang: Pass Plugin and Connection by reference not value.
...+++ b/plugins/golang/nbdkit-golang-plugin.pod @@ -62,16 +62,16 @@ C<GetSize> and C<PRead>. What connects the two is the C<Open> callback which is called when the client has connected and where you should return a new instance of your connection struct. For example: - func (p MyPlugin) Load() { + func (p *MyPlugin) Load() { // global callback used for initializing the plugin } - func (p MyPlugin) Open(readonly bool) (nbdkit.ConnectionInterface, error) { + func (p *MyPlugin) Open(readonly bool) (nbdkit.ConnectionInterface, error) { // new client has conne...
2006 Apr 05
6
Howto add application-wide variables?
...reate application wide variables and have them accessible to all my controllers? I tried creating a plugin and having my controller require a specific method from that plugin to access its variables but that didn''t work, so I am left scratching my head. eg from plugin ./vendor/plugins/myplugin/shared_defs.rb file Module SharedDefs def load_shared_defs @var1 = something @var2 = something_else end end eg from controller include SharedDefs require :load_shared_defs def index @my_stuff = @var1 end @var1 is not defined and so my guess is my scope is off or I''...
2020 Apr 14
0
[nbdkit PATCH v2 1/3] server: Add nbdkit_stdio_safe
...-sh-plugin(3)> uses this function to +determine whether it is safe to support C<script=-> to read a script +from stdin. + =head2 Reading passwords The C<nbdkit_read_password> utility function can be used to read @@ -1180,7 +1201,7 @@ used directly on the command line, eg: nbdkit myplugin password=mostsecret But more securely this function can also read a password -interactively: +interactively (if C<nbdkit_stdio_safe> returns true): nbdkit myplugin password=- diff --git a/plugins/sh/nbdkit-sh-plugin.pod b/plugins/sh/nbdkit-sh-plugin.pod index ffd0310f..20a2b785 100644 -...
2008 Nov 17
4
[LLVMdev] Dynamic configuration for llvmc2
Thanks for the reply! > The plan now is to make this functionality easier to use, so you'll be able to > just say: > > llvmc2 --load MyPlugin.td MyFile.cpp > > and have llvmc2 build and load MyPlugin.td behind the scenes. That sounds like a good idea. Part of the reason I suggested making the system less dependent on TableGen is that in the process of developing a plugin I've found some things to be difficult to express in...
2020 Apr 04
0
[nbdkit PATCH 1/2] server: Add nbdkit_stdio_safe
...-sh-plugin(3)> uses this function to +determine whether it is safe to support C<script=-> to read a script +from stdin. + =head2 Reading passwords The C<nbdkit_read_password> utility function can be used to read @@ -1180,7 +1201,7 @@ used directly on the command line, eg: nbdkit myplugin password=mostsecret But more securely this function can also read a password -interactively: +interactively (if C<nbdkit_stdio_safe> returns true): nbdkit myplugin password=- diff --git a/plugins/sh/nbdkit-sh-plugin.pod b/plugins/sh/nbdkit-sh-plugin.pod index ffd0310f..20a2b785 100644 -...
2011 Apr 08
5
How to extend a helper using plugin?
...dified helper. I''ve tried to include my patch module in the plugin''s init.rb like this: require_dependency ''application_helper'' ApplicationHelper.send(:include, RedminePastebin::ApplicationHelperPatch) Also I''ve tried to define my ApplicationHelper in myplugin/app/helper/ application_helper.rb with the same effect. Both approaches used self.included hook to call alias_method_chain, like this: def self.included(base) base.module_eval do alias_method_chain :parse_redmine_links, :pastes end end Any ideas on how to accomplish the task ar...
2006 Dec 14
1
yahoo messenger 7 error
Hello, What does the following message mean? $ wine YPager.exe err:ole:CoGetClassObject no class object {24f3ead6-8b87-4c1a-97da-71c126bda08f} could be created for context 0x7 I know it's related to Activex objects, but I want to know more about this problem.