-
Notifications
You must be signed in to change notification settings - Fork 37
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
fix: Fix symbol export visibility #531
Changes from 7 commits
6def468
580587f
02813af
abfec33
529b460
b5b2804
3d95064
dcb29ab
6f63161
9e0175f
ebfc9fa
c3ea966
1ddb081
d5f6634
71eca69
25baf3d
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -122,7 +122,7 @@ int main(int argc, char* argv[]) { | |
|
||
end = clock(); | ||
elapsed = (end - begin) / ((double)CLOCKS_PER_SEC); | ||
fprintf(stdout, "Read %l" PRId64 " rows in %" PRId64 " batch(es) <%.06f seconds>\n", | ||
fprintf(stdout, "Read %" PRId64 " rows in %" PRId64 " batch(es) <%.06f seconds>\n", | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Unrelated but figure minor enough to toss in |
||
row_count, batch_count, elapsed); | ||
|
||
ArrowArrayStreamRelease(&stream); | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -209,25 +209,25 @@ static const char* ConvertError(ArrowErrorCode errno_code) { | |
|
||
int64_t nanoarrow_BytesAllocated() { return kBytesAllocated; } | ||
|
||
DLL_EXPORT const char* nanoarrow_CDataIntegration_ExportSchemaFromJson( | ||
NANOARROW_EXPORT const char* nanoarrow_CDataIntegration_ExportSchemaFromJson( | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. nit: I think ( |
||
const char* json_path, ArrowSchema* out) { | ||
ArrowErrorInit(&global_error); | ||
return ConvertError(ExportSchemaFromJson(json_path, out, &global_error)); | ||
} | ||
|
||
DLL_EXPORT const char* nanoarrow_CDataIntegration_ImportSchemaAndCompareToJson( | ||
NANOARROW_EXPORT const char* nanoarrow_CDataIntegration_ImportSchemaAndCompareToJson( | ||
const char* json_path, ArrowSchema* schema) { | ||
ArrowErrorInit(&global_error); | ||
return ConvertError(ImportSchemaAndCompareToJson(json_path, schema, &global_error)); | ||
} | ||
|
||
DLL_EXPORT const char* nanoarrow_CDataIntegration_ExportBatchFromJson( | ||
NANOARROW_EXPORT const char* nanoarrow_CDataIntegration_ExportBatchFromJson( | ||
const char* json_path, int num_batch, ArrowArray* out) { | ||
ArrowErrorInit(&global_error); | ||
return ConvertError(ExportBatchFromJson(json_path, num_batch, out, &global_error)); | ||
} | ||
|
||
DLL_EXPORT const char* nanoarrow_CDataIntegration_ImportBatchAndCompareToJson( | ||
NANOARROW_EXPORT const char* nanoarrow_CDataIntegration_ImportBatchAndCompareToJson( | ||
const char* json_path, int num_batch, ArrowArray* batch) { | ||
ArrowErrorInit(&global_error); | ||
return ConvertError( | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You can check the effect of this with
nm --extern-only
, but I am not sure that in nanoarrow's case (where we've been very careful to mark everything internal asstatic
or put it in a header and mark it asstatic inline
) this applies.