Skip to content

Removed index_t typedef as it conflicted with a system definition#13

Open
flowers9 wants to merge 1 commit into
xiaochuanle:masterfrom
flowers9:index_t
Open

Removed index_t typedef as it conflicted with a system definition#13
flowers9 wants to merge 1 commit into
xiaochuanle:masterfrom
flowers9:index_t

Conversation

@flowers9

Copy link
Copy Markdown

Solaris has an index_t in sys/types.h that's a short. The MECAT version is a long. I realize you might not care about solaris compilation, but here it is, as I ran across it while hunting down a bug and wanted to remove it as a possible source of problems.

The original typedef was from idx_t (which is itself a typedef) to index_t, and I've simply removed the typedef and replaced index_t with idx_t, except for one file that further typedef'd index_t to idx where I removed the extra typedef and replaced idx with idx_t.

different type (in solaris sys/types.h index_t is a short, rather than
our long).  Replaced all references with idx_t, which is what it had
been a typedef for.  In the one file that had further typedef'd idx to
index_t, replaced idx with idx_t rather than update the typedef.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant