mirror of
				https://github.com/ruby/ruby.git
				synced 2022-11-09 12:17:21 -05:00 
			
		
		
		
	ext: protoize no-arguments functions
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47793 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
		
							parent
							
								
									5540c1de81
								
							
						
					
					
						commit
						ba0655ebdd
					
				
					 22 changed files with 31 additions and 27 deletions
				
			
		| 
						 | 
				
			
			@ -3,6 +3,6 @@
 | 
			
		|||
 | 
			
		||||
#include <fiddle.h>
 | 
			
		||||
 | 
			
		||||
void Init_fiddle_closure();
 | 
			
		||||
void Init_fiddle_closure(void);
 | 
			
		||||
 | 
			
		||||
#endif
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -3,6 +3,6 @@
 | 
			
		|||
 | 
			
		||||
#include <fiddle.h>
 | 
			
		||||
 | 
			
		||||
void Init_fiddle_function();
 | 
			
		||||
void Init_fiddle_function(void);
 | 
			
		||||
 | 
			
		||||
#endif
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -109,7 +109,7 @@ static VALUE mFalseClass_to_json(int argc, VALUE *argv, VALUE self);
 | 
			
		|||
static VALUE mNilClass_to_json(int argc, VALUE *argv, VALUE self);
 | 
			
		||||
static VALUE mObject_to_json(int argc, VALUE *argv, VALUE self);
 | 
			
		||||
static void State_free(JSON_Generator_State *state);
 | 
			
		||||
static JSON_Generator_State *State_allocate();
 | 
			
		||||
static JSON_Generator_State *State_allocate(void);
 | 
			
		||||
static VALUE cState_s_allocate(VALUE klass);
 | 
			
		||||
static VALUE cState_configure(VALUE self, VALUE opts);
 | 
			
		||||
static VALUE cState_to_h(VALUE self);
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -68,7 +68,7 @@ static char *JSON_parse_string(JSON_Parser *json, char *p, char *pe, VALUE *resu
 | 
			
		|||
static VALUE convert_encoding(VALUE source);
 | 
			
		||||
static VALUE cParser_initialize(int argc, VALUE *argv, VALUE self);
 | 
			
		||||
static VALUE cParser_parse(VALUE self);
 | 
			
		||||
static JSON_Parser *JSON_allocate();
 | 
			
		||||
static JSON_Parser *JSON_allocate(void);
 | 
			
		||||
static void JSON_mark(JSON_Parser *json);
 | 
			
		||||
static void JSON_free(JSON_Parser *json);
 | 
			
		||||
static VALUE cJSON_parser_s_allocate(VALUE klass);
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -3,6 +3,6 @@
 | 
			
		|||
 | 
			
		||||
#include <psych.h>
 | 
			
		||||
 | 
			
		||||
void Init_psych_emitter();
 | 
			
		||||
void Init_psych_emitter(void);
 | 
			
		||||
 | 
			
		||||
#endif
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -1,6 +1,6 @@
 | 
			
		|||
#ifndef PSYCH_PARSER_H
 | 
			
		||||
#define PSYCH_PARSER_H
 | 
			
		||||
 | 
			
		||||
void Init_psych_parser();
 | 
			
		||||
void Init_psych_parser(void);
 | 
			
		||||
 | 
			
		||||
#endif
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -1,15 +1,15 @@
 | 
			
		|||
#include <tcl.h>
 | 
			
		||||
 | 
			
		||||
extern int ruby_open_tcl_dll(char *);
 | 
			
		||||
extern int ruby_open_tk_dll();
 | 
			
		||||
extern int ruby_open_tk_dll(void);
 | 
			
		||||
extern int ruby_open_tcltk_dll(char *);
 | 
			
		||||
extern int tcl_stubs_init_p();
 | 
			
		||||
extern int tk_stubs_init_p();
 | 
			
		||||
extern int tcl_stubs_init_p(void);
 | 
			
		||||
extern int tk_stubs_init_p(void);
 | 
			
		||||
extern Tcl_Interp *ruby_tcl_create_ip_and_stubs_init(int*);
 | 
			
		||||
extern int ruby_tcl_stubs_init();
 | 
			
		||||
extern int ruby_tcl_stubs_init(void);
 | 
			
		||||
extern int ruby_tk_stubs_init(Tcl_Interp*);
 | 
			
		||||
extern int ruby_tk_stubs_safeinit(Tcl_Interp*);
 | 
			
		||||
extern int ruby_tcltk_stubs();
 | 
			
		||||
extern int ruby_tcltk_stubs(void);
 | 
			
		||||
 | 
			
		||||
/* no error */
 | 
			
		||||
#define TCLTK_STUBS_OK     (0)
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -21,7 +21,7 @@
 | 
			
		|||
 | 
			
		||||
#ifdef HAVE_RB_THREAD_CHECK_TRAP_PENDING
 | 
			
		||||
static int rb_thread_critical; /* dummy */
 | 
			
		||||
int rb_thread_check_trap_pending();
 | 
			
		||||
int rb_thread_check_trap_pending(void);
 | 
			
		||||
#else
 | 
			
		||||
/* use rb_thread_critical on Ruby 1.8.x */
 | 
			
		||||
#include "rubysig.h"
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -135,7 +135,7 @@ VALUE ole_wc2vstr(LPWSTR pw, BOOL isfree);
 | 
			
		|||
 | 
			
		||||
#define WC2VSTR(x) ole_wc2vstr((x), TRUE)
 | 
			
		||||
 | 
			
		||||
BOOL ole_initialized();
 | 
			
		||||
BOOL ole_initialized(void);
 | 
			
		||||
HRESULT ole_docinfo_from_type(ITypeInfo *pTypeInfo, BSTR *name, BSTR *helpstr, DWORD *helpcontext, BSTR *helpfile);
 | 
			
		||||
VALUE ole_typedesc2val(ITypeInfo *pTypeInfo, TYPEDESC *pTypeDesc, VALUE typedetails);
 | 
			
		||||
VALUE make_inspect(const char *class_name, VALUE detail);
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -61,7 +61,8 @@ ole_raise(HRESULT hr, VALUE ecs, const char *fmt, ...)
 | 
			
		|||
}
 | 
			
		||||
 | 
			
		||||
void
 | 
			
		||||
Init_win32ole_error() {
 | 
			
		||||
Init_win32ole_error(void)
 | 
			
		||||
{
 | 
			
		||||
    /*
 | 
			
		||||
     * Document-class: WIN32OLERuntimeError
 | 
			
		||||
     *
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -3,6 +3,6 @@
 | 
			
		|||
 | 
			
		||||
VALUE eWIN32OLERuntimeError;
 | 
			
		||||
void ole_raise(HRESULT hr, VALUE ecs, const char *fmt, ...);
 | 
			
		||||
void Init_win32ole_error();
 | 
			
		||||
void Init_win32ole_error(void);
 | 
			
		||||
 | 
			
		||||
#endif
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -283,7 +283,8 @@ STDMETHODIMP EVENTSINK_GetIDsOfNames(
 | 
			
		|||
}
 | 
			
		||||
 | 
			
		||||
PIEVENTSINKOBJ
 | 
			
		||||
EVENTSINK_Constructor() {
 | 
			
		||||
EVENTSINK_Constructor(void)
 | 
			
		||||
{
 | 
			
		||||
    PIEVENTSINKOBJ pEv;
 | 
			
		||||
    if (!g_IsEventSinkVtblInitialized) {
 | 
			
		||||
        vtEventSink.QueryInterface=EVENTSINK_QueryInterface;
 | 
			
		||||
| 
						 | 
				
			
			@ -976,7 +977,8 @@ fev_initialize(int argc, VALUE *argv, VALUE self)
 | 
			
		|||
}
 | 
			
		||||
 | 
			
		||||
static void
 | 
			
		||||
ole_msg_loop() {
 | 
			
		||||
ole_msg_loop(void)
 | 
			
		||||
{
 | 
			
		||||
    MSG msg;
 | 
			
		||||
    while(PeekMessage(&msg,NULL,0,0,PM_REMOVE)) {
 | 
			
		||||
        TranslateMessage(&msg);
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -1,6 +1,6 @@
 | 
			
		|||
#ifndef WIN32OLE_EVENT_H
 | 
			
		||||
#define WIN32OLE_EVENT_H 1
 | 
			
		||||
 | 
			
		||||
void Init_win32ole_event();
 | 
			
		||||
void Init_win32ole_event(void);
 | 
			
		||||
 | 
			
		||||
#endif
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -11,5 +11,5 @@ VALUE cWIN32OLE_METHOD;
 | 
			
		|||
VALUE folemethod_s_allocate(VALUE klass);
 | 
			
		||||
VALUE ole_methods_from_typeinfo(ITypeInfo *pTypeInfo, int mask);
 | 
			
		||||
VALUE create_win32ole_method(ITypeInfo *pTypeInfo, VALUE name);
 | 
			
		||||
void Init_win32ole_method();
 | 
			
		||||
void Init_win32ole_method(void);
 | 
			
		||||
#endif
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -2,7 +2,7 @@
 | 
			
		|||
#define WIN32OLE_PARAM_H
 | 
			
		||||
 | 
			
		||||
VALUE create_win32ole_param(ITypeInfo *pTypeInfo, UINT method_index, UINT index, VALUE name);
 | 
			
		||||
void Init_win32ole_param();
 | 
			
		||||
void Init_win32ole_param(void);
 | 
			
		||||
 | 
			
		||||
#endif
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -5,6 +5,6 @@ VALUE cWIN32OLE_RECORD;
 | 
			
		|||
void ole_rec2variant(VALUE rec, VARIANT *var);
 | 
			
		||||
void olerecord_set_ivar(VALUE obj, IRecordInfo *pri, void *prec);
 | 
			
		||||
VALUE create_win32ole_record(IRecordInfo *pri, void *prec);
 | 
			
		||||
void Init_win32ole_record();
 | 
			
		||||
void Init_win32ole_record(void);
 | 
			
		||||
 | 
			
		||||
#endif
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -4,5 +4,5 @@ VALUE cWIN32OLE_TYPE;
 | 
			
		|||
VALUE create_win32ole_type(ITypeInfo *pTypeInfo, VALUE name);
 | 
			
		||||
ITypeInfo *itypeinfo(VALUE self);
 | 
			
		||||
VALUE ole_type_from_itypeinfo(ITypeInfo *pTypeInfo);
 | 
			
		||||
void Init_win32ole_type();
 | 
			
		||||
void Init_win32ole_type(void);
 | 
			
		||||
#endif
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -3,7 +3,7 @@
 | 
			
		|||
 | 
			
		||||
VALUE cWIN32OLE_TYPELIB;
 | 
			
		||||
 | 
			
		||||
void Init_win32ole_typelib();
 | 
			
		||||
void Init_win32ole_typelib(void);
 | 
			
		||||
ITypeLib * itypelib(VALUE self);
 | 
			
		||||
VALUE typelib_file(VALUE ole);
 | 
			
		||||
VALUE create_win32ole_typelib(ITypeLib *pTypeLib);
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -3,6 +3,6 @@
 | 
			
		|||
 | 
			
		||||
VALUE cWIN32OLE_VARIABLE;
 | 
			
		||||
VALUE create_win32ole_variable(ITypeInfo *pTypeInfo, UINT index, VALUE name);
 | 
			
		||||
void Init_win32ole_variable();
 | 
			
		||||
void Init_win32ole_variable(void);
 | 
			
		||||
 | 
			
		||||
#endif
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -7,7 +7,7 @@ struct olevariantdata {
 | 
			
		|||
};
 | 
			
		||||
 | 
			
		||||
VALUE cWIN32OLE_VARIANT;
 | 
			
		||||
void Init_win32ole_variant();
 | 
			
		||||
void Init_win32ole_variant(void);
 | 
			
		||||
 | 
			
		||||
#endif
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -1,6 +1,7 @@
 | 
			
		|||
#include "win32ole.h"
 | 
			
		||||
 | 
			
		||||
void Init_win32ole_variant_m() {
 | 
			
		||||
void Init_win32ole_variant_m(void)
 | 
			
		||||
{
 | 
			
		||||
    /*
 | 
			
		||||
     * Document-module: WIN32OLE::VARIANT
 | 
			
		||||
     *
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -2,6 +2,6 @@
 | 
			
		|||
#define WIN32OLE_VARIANT_M_H 1
 | 
			
		||||
 | 
			
		||||
VALUE mWIN32OLE_VARIANT;
 | 
			
		||||
void Init_win32ole_variant_m();
 | 
			
		||||
void Init_win32ole_variant_m(void);
 | 
			
		||||
 | 
			
		||||
#endif
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue