aboutsummaryrefslogtreecommitdiffhomepage
path: root/function.h
diff options
context:
space:
mode:
authorGravatar ridiculousfish <corydoras@ridiculousfish.com>2011-12-26 19:18:46 -0800
committerGravatar ridiculousfish <corydoras@ridiculousfish.com>2011-12-26 19:18:46 -0800
commit8d2f107d61a8b0e099ab9a59b8a32c236da5a5fc (patch)
tree89f718ab74f8400332534aee237c6f925348f05c /function.h
parent3f16ace6784caab54fb054836ee93902e9701913 (diff)
Some changes to migrate towards C++ and a multithreaded model
Diffstat (limited to 'function.h')
-rw-r--r--function.h24
1 files changed, 15 insertions, 9 deletions
diff --git a/function.h b/function.h
index 15c35afe..8b9051fb 100644
--- a/function.h
+++ b/function.h
@@ -1,4 +1,4 @@
-/** \file function.h
+/** \file function.h
Prototypes for functions for storing and retrieving function
information. These functions also take care of autoloading
@@ -53,7 +53,7 @@ typedef struct function_data
/**
- Initialize function data
+ Initialize function data
*/
void function_init();
@@ -94,13 +94,18 @@ void function_set_desc( const wchar_t *name, const wchar_t *desc );
int function_exists( const wchar_t *name );
/**
+ Returns true if the function with the name name exists, without triggering autoload.
+*/
+int function_exists_no_autoload( const wchar_t *name );
+
+/**
Insert all function names into l. These are not copies of the
strings and should not be freed after use.
-
+
\param list the list to add the names to
\param get_hidden whether to include hidden functions, i.e. ones starting with an underscore
*/
-void function_get_names( array_list_t *list,
+void function_get_names( array_list_t *list,
int get_hidden );
/**
@@ -127,14 +132,15 @@ int function_get_definition_offset( const wchar_t *name );
array_list_t *function_get_named_arguments( const wchar_t *name );
/**
- Returns whether this function shadows variables of the underlying function
-*/
-int function_get_shadows( const wchar_t *name );
-
-/**
Creates a new function using the same definition as the specified function.
Returns non-zero if copy is successful.
*/
int function_copy( const wchar_t *name, const wchar_t *new_name );
+
+/**
+ Returns whether this function shadows variables of the underlying function
+*/
+int function_get_shadows( const wchar_t *name );
+
#endif