Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

make rdoc parse C files. #827

Merged
merged 1 commit into from
Nov 29, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions ext/duckdb/appender.c
Original file line number Diff line number Diff line change
Expand Up @@ -403,6 +403,9 @@ static VALUE appender_close(VALUE self) {
}

void rbduckdb_init_duckdb_appender(void) {
#if 0
VALUE mDuckDB = rb_define_module("DuckDB");
#endif
cDuckDBAppender = rb_define_class_under(mDuckDB, "Appender", rb_cObject);
rb_define_alloc_func(cDuckDBAppender, allocate);
rb_define_method(cDuckDBAppender, "initialize", appender_initialize, 3);
Expand Down
3 changes: 3 additions & 0 deletions ext/duckdb/blob.c
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,8 @@
VALUE cDuckDBBlob;

void rbduckdb_init_duckdb_blob(void) {
#if 0
VALUE mDuckDB = rb_define_module("DuckDB");
#endif
cDuckDBBlob = rb_define_class_under(mDuckDB, "Blob", rb_cString);
}
3 changes: 3 additions & 0 deletions ext/duckdb/column.c
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,9 @@ VALUE rbduckdb_create_column(VALUE oDuckDBResult, idx_t col) {
}

void rbduckdb_init_duckdb_column(void) {
#if 0
VALUE mDuckDB = rb_define_module("DuckDB");
#endif
cDuckDBColumn = rb_define_class_under(mDuckDB, "Column", rb_cObject);
rb_define_alloc_func(cDuckDBColumn, allocate);

Expand Down
3 changes: 3 additions & 0 deletions ext/duckdb/config.c
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,9 @@ static VALUE config_set_config(VALUE self, VALUE key, VALUE value) {
}

void rbduckdb_init_duckdb_config(void) {
#if 0
VALUE mDuckDB = rb_define_module("DuckDB");
#endif
cDuckDBConfig = rb_define_class_under(mDuckDB, "Config", rb_cObject);
rb_define_alloc_func(cDuckDBConfig, allocate);
rb_define_singleton_method(cDuckDBConfig, "size", config_s_size, 0);
Expand Down
3 changes: 3 additions & 0 deletions ext/duckdb/connection.c
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,9 @@ static VALUE duckdb_connection_query_sql(VALUE self, VALUE str) {
}

void rbduckdb_init_duckdb_connection(void) {
#if 0
VALUE mDuckDB = rb_define_module("DuckDB");
#endif
cDuckDBConnection = rb_define_class_under(mDuckDB, "Connection", rb_cObject);
rb_define_alloc_func(cDuckDBConnection, allocate);

Expand Down
3 changes: 3 additions & 0 deletions ext/duckdb/database.c
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,9 @@ static VALUE duckdb_database_close(VALUE self) {
}

void rbduckdb_init_duckdb_database(void) {
#if 0
VALUE mDuckDB = rb_define_module("DuckDB");
#endif
cDuckDBDatabase = rb_define_class_under(mDuckDB, "Database", rb_cObject);
rb_define_alloc_func(cDuckDBDatabase, allocate);
rb_define_singleton_method(cDuckDBDatabase, "_open", duckdb_database_s_open, -1);
Expand Down
3 changes: 3 additions & 0 deletions ext/duckdb/error.c
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,8 @@
VALUE eDuckDBError;

void rbduckdb_init_duckdb_error(void) {
#if 0
VALUE mDuckDB = rb_define_module("DuckDB");
#endif
eDuckDBError = rb_define_class_under(mDuckDB, "Error", rb_eStandardError);
}
3 changes: 3 additions & 0 deletions ext/duckdb/extracted_statements.c
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,9 @@ static VALUE duckdb_extracted_statements_prepared_statement(VALUE self, VALUE co
}

void rbduckdb_init_duckdb_extracted_statements(void) {
#if 0
VALUE mDuckDB = rb_define_module("DuckDB");
#endif
cDuckDBExtractedStatements = rb_define_class_under(mDuckDB, "ExtractedStatementsImpl", rb_cObject);

rb_define_alloc_func(cDuckDBExtractedStatements, allocate);
Expand Down
3 changes: 3 additions & 0 deletions ext/duckdb/pending_result.c
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,9 @@ rubyDuckDBPendingResult *get_struct_pending_result(VALUE obj) {
}

void rbduckdb_init_duckdb_pending_result(void) {
#if 0
VALUE mDuckDB = rb_define_module("DuckDB");
#endif
cDuckDBPendingResult = rb_define_class_under(mDuckDB, "PendingResult", rb_cObject);
rb_define_alloc_func(cDuckDBPendingResult, allocate);

Expand Down
3 changes: 3 additions & 0 deletions ext/duckdb/prepared_statement.c
Original file line number Diff line number Diff line change
Expand Up @@ -433,6 +433,9 @@ rubyDuckDBPreparedStatement *get_struct_prepared_statement(VALUE self) {
}

void rbduckdb_init_duckdb_prepared_statement(void) {
#if 0
VALUE mDuckDB = rb_define_module("DuckDB");
#endif
cDuckDBPreparedStatement = rb_define_class_under(mDuckDB, "PreparedStatement", rb_cObject);

rb_define_alloc_func(cDuckDBPreparedStatement, allocate);
Expand Down
3 changes: 3 additions & 0 deletions ext/duckdb/result.c
Original file line number Diff line number Diff line change
Expand Up @@ -884,6 +884,9 @@ static VALUE vector_value(duckdb_vector vector, idx_t row_idx) {
}

void rbduckdb_init_duckdb_result(void) {
#if 0
VALUE mDuckDB = rb_define_module("DuckDB");
#endif
cDuckDBResult = rb_define_class_under(mDuckDB, "Result", rb_cObject);
id__to_date = rb_intern("_to_date");
id__to_time = rb_intern("_to_time");
Expand Down