Displaying 20 results from an estimated 88 matches for "function_name".
2015 Oct 01
1
doveadm + ldap userdb
...quot;crash_thread": true
, "frames":
[ { "address": 139954408369259
, "build_id": "62d54c5834c6675c5ec229927d4c087a3277c1d2"
, "build_id_offset": 23659
, "function_name": "ldap_input"
, "file_name":
"/usr/lib64/dovecot/auth/libauthdb_ldap.so"
}
, { "address": 139954486291015
, "build_id": "9ab58d2125033b7eef9f04560a7d7d28737585ce&quo...
2010 Sep 22
3
Passing a function as a parameter...
...ers:
If I want to pass a character name of a function TO a function, and then
have that function executed, how would I do this? I want
an arbitrary version of the following, where any function can be used (e.g.
I don't want the if-then statement here):
apply_some_function <- function(data,function_name)
{
if(function_name=="mean")
{
return(mean(data))
}
if(function_name=="min")
{
return(min(data))
}
}
apply_some_function(1:10,"mean")
apply_some_function(1:10,"min")
Basically, I want the character name of the function used to actually
execute that funct...
2008 Jan 26
0
JRuby version of win32-api - initial try
...ess = KERNEL32.getFunction(''GetProcAddress'')
FormatMessageA = KERNEL32.getFunction(''FormatMessageA'')
LocalFree = KERNEL32.getFunction(''LocalFree'')
public
VERSION = ''1.0.6''
attr_reader :function_name
attr_reader :prototype
attr_reader :return_type
attr_reader :dll_name
def initialize(function, prototype=''V'', return_type=''L'',
dll=''kernel32'')
# Convert a prototype string to an array of characters...
2013 Oct 15
4
[Bug 70511] New: nouveau_bo_name_get segmentation fault while running root tutorials/gl/glbox.C
...[ { "crash_thread": true
, "frames":
[ { "address": 232268192281
, "build_id": "f47cec2a689de012d8eba76ae17ea0996aea03f2"
, "build_id_offset": 219673
, "function_name": "raise"
, "file_name": "/lib64/libc.so.6"
, "fingerprint": "f33186a4c862fb0751bca60701f553b829210477"
}
, { "address": 232268198184
, "build_...
2007 Nov 14
0
7 commits - libswfdec/swfdec_as_frame.c libswfdec/swfdec_as_function.c libswfdec/swfdec_as_internal.h libswfdec/swfdec_as_interpret.c libswfdec/swfdec_as_object.c libswfdec/swfdec_as_super.c libswfdec/swfdec_as_super.h
...er->thisp = thisp;
if (context->version <= 5) {
super->object = NULL;
} else {
- super->object = ref->prototype;
+ super->object = ref;
}
}
@@ -188,38 +186,32 @@ void
swfdec_as_super_new_chain (SwfdecAsFrame *frame, SwfdecAsSuper *super,
const char *function_name)
{
- SwfdecAsSuper *replace;
+ SwfdecAsObject *ref;
SwfdecAsContext *context;
+ g_return_if_fail (SWFDEC_IS_AS_FRAME (frame));
g_return_if_fail (SWFDEC_IS_AS_SUPER (super));
if (frame->super != NULL)
return;
-
- context = SWFDEC_AS_OBJECT (frame)->context;
- i...
2013 May 17
2
How could I see the source code of functions in an R package?
Hi,
How could I see the source code of functions in an R package?
If we type ?function_name , we will see documentations of the
function_name.
If we type function_name, is what returns just the source code? Could we
just save it in an .R file and modify as we want? However, it seems that
sometimes the source code is hidden (or stored elsewhere?) As an example,
could we see the source c...
2006 Apr 05
1
where do you put Classes in RoR
I''m just trying RoR and it works very smoothly. I''am also somewhat
familiar with ruby however I do not know where my Classes are supposed
to go in RoR.
E.g. my ruby file looks like
include a_few_lib_here
Class function_name
def aaaa
end
end
#main program
yadayada = function_name(parameter)
I understand:
- the main program goes in a controller I have to create
- but where am I suppose to put the Class stuff?
I''ll re-use the Class stuff for different controllers but I''m not sure
where it is s...
2007 Nov 22
0
5 commits - libswfdec/swfdec_as_interpret.c libswfdec/swfdec_bits.c libswfdec/swfdec_bits.h libswfdec/swfdec_debugger.c libswfdec/swfdec_movie.c libswfdec/swfdec_script.c libswfdec/swfdec_sprite_movie.c libswfdec/swfdec_tag.c libswfdec/swfdec_text_field.c
...->version);
if (url == NULL || target == NULL) {
SWFDEC_ERROR ("not enough data in GetURL");
g_free (url);
@@ -1797,7 +1797,7 @@ swfdec_action_define_function (SwfdecAsContext *cx, guint action,
frame = cx->frame;
swfdec_bits_init_data (&bits, data, len);
- function_name = swfdec_bits_get_string_with_version (&bits, cx->version);
+ function_name = swfdec_bits_get_string (&bits, cx->version);
if (function_name == NULL) {
SWFDEC_ERROR ("could not parse function name");
return;
@@ -1823,7 +1823,7 @@ swfdec_action_define_function (...
2007 Feb 16
0
11 commits - libswfdec/swfdec_font.c libswfdec/swfdec_font.h libswfdec/swfdec_js_movie.c libswfdec/swfdec_script.c libswfdec/swfdec_script.h test/.gitignore test/trace
...t in DefineFunction
diff --git a/libswfdec/swfdec_script.c b/libswfdec/swfdec_script.c
index 95a5561..9a9dd75 100644
--- a/libswfdec/swfdec_script.c
+++ b/libswfdec/swfdec_script.c
@@ -1439,10 +1439,10 @@ swfdec_action_do_define_function (JSCont
n_args = swfdec_bits_get_u16 (&bits);
if (*function_name == '\0') {
/* anonymous function */
- fun = JS_NewFunction (cx, NULL, n_args, JSFUN_LAMBDA, NULL, NULL);
+ fun = JS_NewFunction (cx, NULL, n_args, JSFUN_LAMBDA, cx->fp->thisp, NULL);
} else {
/* named function */
- fun = JS_NewFunction (cx, NULL, n_args, 0, NULL,...
2007 Aug 20
0
15 commits - libswfdec/swfdec_as_context.c libswfdec/swfdec_as_frame.c libswfdec/swfdec_as_frame_internal.h libswfdec/swfdec_as_interpret.c libswfdec/swfdec_as_object.c libswfdec/swfdec_as_object.h libswfdec/swfdec_as_super.c libswfdec/swfdec_as_with.c
...et.c b/libswfdec/swfdec_as_interpret.c
index 9e69d46..23e4116 100644
--- a/libswfdec/swfdec_as_interpret.c
+++ b/libswfdec/swfdec_as_interpret.c
@@ -1465,7 +1465,7 @@ static void
swfdec_action_define_function (SwfdecAsContext *cx, guint action,
const guint8 *data, guint len)
{
- const char *function_name;
+ char *function_name;
const char *name = NULL;
guint i, n_args, size, n_registers;
SwfdecBuffer *buffer;
@@ -1533,6 +1533,7 @@ swfdec_action_define_function (SwfdecAsC
if (frame->script->buffer->data + frame->script->buffer->length < frame->pc + 3 + len + size...
2012 Dec 28
2
[LLVMdev] Newbie question(?): How to correctly create debug info, when generating IR
...ot;") /*Flags*/,
0 /*RV: Runtime Version?*/);
DIFile file = dibuilder->createFile(StringRef("foo.x"), StringRef("."));
DICompileUnit compile_unit = DICompileUnit(file);
dibuilder->createFunction(compile_unit /*Scope*/,
StringRef(function_name), StringRef(function_name),
file,
42 /* line number*/,
di_func_type,
false /*isLocalToUnit*/, true /*isDefinition*/,
42 /*ScopeLine*/
);
...
...
dibuilder->finalize();
module->du...
2013 Nov 03
3
[LLVMdev] freeing alloca'd variables before function exits
Hi,
In my llvm code I want to create some function calls. The function prototype is as follows:
int memoize ( char *function_name,
int *int_params, unsigned num_ints,
double *double_params, unsigned num_doubles)
In order to create these calls I do the following for example:
%88 = alloca [7 x i8]
store volatile [7 x i8] c"ORACLE\00", [7 x i8]* %88
%89 = getelementptr [7 x i8]...
2011 Sep 22
2
[LLVMdev] How to const char* Value for function argument
Hi,
I'm trying to replace function call with call to
wrapper(function_name, num_args, ...), where varargs hold args of
original call.
Function* launch = Function::Create(
TypeBuilder<int(const char*, int, ...), false>::get(context),
GlobalValue::ExternalLinkage, "kernelgen_launch_", m2);
{
CallInst* call = dyn_cast<CallInst>(cast<V...
2010 Sep 16
8
function help?
Hi all,
I am writing a function (fun.R), but I dont know how to code the
function so that the Help Text will be shown up when one types ?fun (of
course, after he loads it up). Anyone has any advice for me how to do that?
Thanks,
D.
2007 Jan 31
0
Branch 'interpreter' - 20 commits - autogen.sh configure.ac libswfdec/js libswfdec/swfdec_debug.h libswfdec/swfdec_js.c libswfdec/swfdec_js_color.c libswfdec/swfdec_js_movie.c libswfdec/swfdec_movie.c libswfdec/swfdec_movie.h libswfdec/swfdec_script.c
...swfdec_action_define_function (JSContext
}
*cx->fp->sp++ = OBJECT_TO_JSVAL (fun->object);
} else {
- SWFDEC_ERROR ("FIXME: implement");
+ jsval val = OBJECT_TO_JSVAL (fun->object);
+ if (!JS_SetProperty (cx, OBJ_THIS_OBJECT (cx, cx->fp->scopeChain), function_name, &val))
+ return JS_FALSE;
}
/* update current context */
@@ -1215,6 +1244,36 @@ swfdec_action_define_function (JSContext
return JS_TRUE;
}
+static JSBool
+swfdec_action_shift (JSContext *cx, guint action, const guint8 *data, guint len)
+{
+ guint32 amount, value;
+ double...
2005 Nov 30
0
gdb segfault under ddd
I am using CentOS 4
GNU gdb Red Hat Linux (6.3.0.0-1.63rh)
GNU DDD 3.3.9 (x86_64-redhat-linux-gnu)
I bring up ddd on a program compiled -g and type:
list function_name
gdb seg faults.
If I bring up ddd on gdb and then run gdb
with the same program an type
list function_name
everything works just fine.
2017 Sep 06
2
libFuzzer: issue with weak symbols on Mac
...xtern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) {
printf("Hello from LLVMFuzzerTestOneInput, size: %zu\n", size);
if (size) {
return data[0];
}
return size;
}
Assuming that there are libFuzzer customers who don't mind to specify
"-U,_%function_name%" explicitly (e.g.
https://chromium-review.googlesource.com/c/chromium/src/+/653846/1/testing/libfuzzer/BUILD.gn),
we need to have a way to use FuzzerExtFunctionsWeak.cpp instead
of FuzzerExtFunctionsDlsym.cpp on Mac.
The CL I've uploaded feels a bit hacky to me, but I don't see any l...
2007 Apr 03
0
11 commits - libswfdec-gtk/swfdec_gtk_loader.c libswfdec-gtk/swfdec_playback_alsa.c libswfdec-gtk/swfdec_source.c libswfdec/swfdec_cached.c libswfdec/swfdec_font.c libswfdec/swfdec_morphshape.c libswfdec/swfdec_net_stream.c libswfdec/swfdec_script.c
...;
+ }
G_OBJECT_CLASS (swfdec_morph_shape_parent_class)->dispose (object);
}
diff-tree 079bedb48b51463f22ccd91ddf24a8a5a1f18618 (from 0598ab8797606c967fb2087d9cfffd4be175e432)
Author: Chris Wilson <chris@chris-wilson.co.uk>
Date: Tue Apr 3 09:38:33 2007 +0200
Fix minor leak of function_name.
diff --git a/libswfdec/swfdec_script.c b/libswfdec/swfdec_script.c
index 0aff14c..21c1fff 100644
--- a/libswfdec/swfdec_script.c
+++ b/libswfdec/swfdec_script.c
@@ -1680,7 +1680,7 @@ swfdec_action_define_function (JSContext
gboolean v2 = (action == 0x8e);
swfdec_bits_init_data (&bits,...
2017 Oct 12
1
[PATCH v2] daemon: proto: Make the guestfsd main loop messages consistent and useful.
...t = hdr.progress_hint;
optargs_bitmask = hdr.optargs_bitmask;
+ if (verbose)
+ fprintf (stderr,
+ "guestfsd: enter: %s (0x%x) request length %" PRIu32 " bytes\n",
+ proc_nr >= 0 && proc_nr <= GUESTFS_MAX_PROC_NR
+ ? function_names[proc_nr] : "UNKNOWN PROCEDURE",
+ (unsigned) proc_nr, len);
+
/* Clear errors before we call the stub functions. This is just
* to ensure that we can accurately report errors in cases where
* error handling paths don't set errno correctly.
@@ -200,10 +...
2005 Oct 14
2
Fortran?
In a package, i type a function name and got the following message:
...
tmp <- .Fortran("master", x = as.double(x), y = as.double(y),
sort = as.logical(sort), rw = as.double(rw), npd = as.integer(npd),
ntot = as.integer(ntot), nadj = integer(tadj), madj = as.integer(madj),
ind = integer(npd), tx = double(npd), ty = double(npd),