-
Notifications
You must be signed in to change notification settings - Fork 3.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ARROW-16974: [GLib] Make C99 compatible (#13512)
We can't use multiple "typedef struct _XXX XXX" in C99. Authored-by: Sutou Kouhei <[email protected]> Signed-off-by: Sutou Kouhei <[email protected]>
- Loading branch information
Showing
16 changed files
with
196 additions
and
80 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
/* | ||
* Licensed to the Apache Software Foundation (ASF) under one | ||
* or more contributor license agreements. See the NOTICE file | ||
* distributed with this work for additional information | ||
* regarding copyright ownership. The ASF licenses this file | ||
* to you under the Apache License, Version 2.0 (the | ||
* "License"); you may not use this file except in compliance | ||
* with the License. You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, | ||
* software distributed under the License is distributed on an | ||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY | ||
* KIND, either express or implied. See the License for the | ||
* specific language governing permissions and limitations | ||
* under the License. | ||
*/ | ||
|
||
#pragma once | ||
|
||
#include <arrow-glib/arrow-glib.h> | ||
|
||
G_BEGIN_DECLS | ||
|
||
#define GADATASET_TYPE_DATASET (gadataset_dataset_get_type()) | ||
G_DECLARE_DERIVABLE_TYPE(GADatasetDataset, | ||
gadataset_dataset, | ||
GADATASET, | ||
DATASET, | ||
GObject) | ||
struct _GADatasetDatasetClass | ||
{ | ||
GObjectClass parent_class; | ||
}; | ||
|
||
G_END_DECLS |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
/* | ||
* Licensed to the Apache Software Foundation (ASF) under one | ||
* or more contributor license agreements. See the NOTICE file | ||
* distributed with this work for additional information | ||
* regarding copyright ownership. The ASF licenses this file | ||
* to you under the Apache License, Version 2.0 (the | ||
* "License"); you may not use this file except in compliance | ||
* with the License. You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, | ||
* software distributed under the License is distributed on an | ||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY | ||
* KIND, either express or implied. See the License for the | ||
* specific language governing permissions and limitations | ||
* under the License. | ||
*/ | ||
|
||
#pragma once | ||
|
||
#include <arrow-glib/gobject-type.h> | ||
|
||
G_BEGIN_DECLS | ||
|
||
#define GARROW_TYPE_ARRAY (garrow_array_get_type()) | ||
G_DECLARE_DERIVABLE_TYPE(GArrowArray, | ||
garrow_array, | ||
GARROW, | ||
ARRAY, | ||
GObject) | ||
struct _GArrowArrayClass | ||
{ | ||
GObjectClass parent_class; | ||
}; | ||
|
||
#define GARROW_TYPE_EXTENSION_ARRAY (garrow_extension_array_get_type()) | ||
G_DECLARE_DERIVABLE_TYPE(GArrowExtensionArray, | ||
garrow_extension_array, | ||
GARROW, | ||
EXTENSION_ARRAY, | ||
GArrowArray) | ||
struct _GArrowExtensionArrayClass | ||
{ | ||
GArrowArrayClass parent_class; | ||
}; | ||
|
||
G_END_DECLS |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
/* | ||
* Licensed to the Apache Software Foundation (ASF) under one | ||
* or more contributor license agreements. See the NOTICE file | ||
* distributed with this work for additional information | ||
* regarding copyright ownership. The ASF licenses this file | ||
* to you under the Apache License, Version 2.0 (the | ||
* "License"); you may not use this file except in compliance | ||
* with the License. You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, | ||
* software distributed under the License is distributed on an | ||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY | ||
* KIND, either express or implied. See the License for the | ||
* specific language governing permissions and limitations | ||
* under the License. | ||
*/ | ||
|
||
#pragma once | ||
|
||
#include <arrow-glib/gobject-type.h> | ||
|
||
G_BEGIN_DECLS | ||
|
||
#define GARROW_TYPE_CHUNKED_ARRAY (garrow_chunked_array_get_type()) | ||
G_DECLARE_DERIVABLE_TYPE(GArrowChunkedArray, | ||
garrow_chunked_array, | ||
GARROW, | ||
CHUNKED_ARRAY, | ||
GObject) | ||
struct _GArrowChunkedArrayClass | ||
{ | ||
GObjectClass parent_class; | ||
}; | ||
|
||
|
||
G_END_DECLS |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
/* | ||
* Licensed to the Apache Software Foundation (ASF) under one | ||
* or more contributor license agreements. See the NOTICE file | ||
* distributed with this work for additional information | ||
* regarding copyright ownership. The ASF licenses this file | ||
* to you under the Apache License, Version 2.0 (the | ||
* "License"); you may not use this file except in compliance | ||
* with the License. You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, | ||
* software distributed under the License is distributed on an | ||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY | ||
* KIND, either express or implied. See the License for the | ||
* specific language governing permissions and limitations | ||
* under the License. | ||
*/ | ||
|
||
#pragma once | ||
|
||
#include <arrow-glib/gobject-type.h> | ||
|
||
G_BEGIN_DECLS | ||
|
||
#define GARROW_TYPE_FUNCTION_OPTIONS (garrow_function_options_get_type()) | ||
G_DECLARE_DERIVABLE_TYPE(GArrowFunctionOptions, | ||
garrow_function_options, | ||
GARROW, | ||
FUNCTION_OPTIONS, | ||
GObject) | ||
struct _GArrowFunctionOptionsClass | ||
{ | ||
GObjectClass parent_class; | ||
}; | ||
|
||
|
||
#define GARROW_TYPE_CAST_OPTIONS (garrow_cast_options_get_type()) | ||
G_DECLARE_DERIVABLE_TYPE(GArrowCastOptions, | ||
garrow_cast_options, | ||
GARROW, | ||
CAST_OPTIONS, | ||
GArrowFunctionOptions) | ||
struct _GArrowCastOptionsClass | ||
{ | ||
GArrowFunctionOptionsClass parent_class; | ||
}; | ||
|
||
|
||
G_END_DECLS |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.