Updating K&R-style parametrs [closed] - c++

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 8 years ago.
Improve this question
Are there any utilities (along the lines of unix indent) that will automatically reformat code using K&R-style c function parameters to modern (well, post-1989) style?
I'm working on a moderately large old scientific code, which is littered with declarations like:
int cylind_volumes(w, icomp)
WindPtr w;
int icomp;
{
[...code...]
It seems like it should be doable, and would make it easier to maintain & further develop (and potentially update to C++ etc.). This must be a solved problem?

Related

Is there a C++ formatter following Google coding style? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 3 days ago.
Improve this question
cpplint gives a long list of style issues, my code is thousand lines, it will take me forever to update the code to satisfy cpplint. Is there a C++ formatter tool which can automatically re-format the code, as close as possible to Google C++ coding style?

How to optimize multiple numbers into a single short string and then reconvert back? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 2 years ago.
Improve this question
I forgot the name, but sometime back I had come across a Javascript library which would take multiple integers as input and then return a very optimized string. This string can be reconverted back to those multiple integers when needed.
Is there any such library in C++ which does that?
After browsing the old code in Javascript, I found our that the library which I came across was Hashids and it has C++ support as well.

Are there utilities to generate C bindings for C++ libraries? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 7 years ago.
Improve this question
Obviously there's no perfect way to do this, since at the very least, there's no perfect way to make a C interface to C++ generics. But are there any utilities that take a stab at this sort of thing? (e.g. by being given a list of template instantiations).

Code/library for Poisson Disk Sampling in C/C++ [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 5 years ago.
Improve this question
I'm looking for a library that implements Poisson Disk Sampling in C or C++, or another one that would be easily translatable. Preferable not incredible long source, but if it is that's okay too.
Here is a clean single-file implementation in C++:
https://github.com/corporateshark/poisson-disk-generator

Symbolic Math Library in C/C++/Obj-C [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 5 years ago.
Improve this question
I am trying to implement a graphing calculator on the iPhone. I am looking for a library that can take strings of expressions or functions and let me manipulate them (find derivatives, intercepts, zeros, etc). Does anything like this exist?
There's GiNaC for C++. GPL-licensed and actively maintained, last update only a month ago. I found old links to many others that don't seem to exist anymore; perhaps people simply found it easier to use GiNaC?