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

[bspc.c] Change directory variables to have static storage #9

Merged
merged 1 commit into from
Aug 13, 2016

Conversation

tkoeppe
Copy link

@tkoeppe tkoeppe commented Aug 2, 2016

@TTimo: Hi - I'm sending you a bunch of PRs, mostly fixes of bugs reported by compiler warnings. This PR is a bit different; it increases the limit on path lengths. If you don't care for this, just close the PR.

@tkoeppe tkoeppe force-pushed the static branch 2 times, most recently from 071c63f to 24b5b24 Compare August 2, 2016 09:01
@TTimo
Copy link
Owner

TTimo commented Aug 13, 2016

MAX_PATH is a hard limit on Windows (set at 260). But I think you are mostly interested in changing that for Linux/MacOS X.

I searched through the code and it doesn't seem to affect on disk formats, so I went ahead and cleaned things up. Removed _MAX_PATH usage, made everything on MAX_PATH, and set to 8192 on != _WIN32.

I'm going to check that in directly but please have a look at test that bspc is still fine ..

@tkoeppe
Copy link
Author

tkoeppe commented Aug 13, 2016

Thank you very much - I'll take a look!

@tkoeppe tkoeppe force-pushed the static branch 3 times, most recently from 9024417 to e272aef Compare August 13, 2016 22:30
@tkoeppe tkoeppe changed the title [bspc.c] Support longer paths [bspc.c] Change directory variables to have static storage Aug 13, 2016
@tkoeppe
Copy link
Author

tkoeppe commented Aug 13, 2016

Thanks a lot for your change, that solves most of the problem. I repurposed this PR to make the directory arrays static, since they're quite big and don't need to be on the stack. (Fortunately there's no question of reentrancy in main, since main cannot be called.)

@TTimo TTimo merged commit e6f90a2 into TTimo:master Aug 13, 2016
@tkoeppe tkoeppe deleted the static branch August 13, 2016 22:52
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.

2 participants