![]() |
|
|
#1 |
|
May 2014
3·11 Posts |
This patch is for Prime95 v28.7
The printf and sprintf functions in C library support '*' as precision. Therefore there is no need for the 'masked' format string like "%%.%df%%%%" and a buffer to store the temporary format string ("%.2f%%"). Just use syntax like printf("%.*f%%", precision, number); . This patch removes the use of fmt_mask[] and 'masked' format strings. Technically the '*' specifier for width or precision in printf takes an 'int' argument, but the global PRECISION variable expects only an integer within the interval [0,6]. It is good to keep it an 'unsigned int' to save a "if (PRECISION<0)" check code. |
|
|
|
|
|
#2 |
|
"Ram Shanker"
May 2015
Delhi
2×19 Posts |
This kind of patches over this forum along with respective files really makes me wonder whether we should move to github for version control and much wider participation from coder community.
All the cool kids projects are on GitHub these days.
|
|
|
|
|
|
#3 | |
|
Serpentine Vermin Jar
Jul 2014
CEF16 Posts |
Quote:
I'd guess most/all of the changes are still done by George so it would really depend on whether he was up for a move like that, but a shared repository like Github or whatever else sure seems like a good direction to go. |
|
|
|
|
|
|
#4 |
|
P90 years forever!
Aug 2002
Yeehaw, FL
2·53·71 Posts |
I guess I'm from the old fart school of programming.
Seriously, I use an svn repository. Can such a thing be migrated to github? There are a lot of history comments I wouldn't want to lose. Also, I've grown accustomed to svnX and its diff tools. Last fiddled with by Prime95 on 2015-09-22 at 17:15 |
|
|
|
|
|
#5 | |
|
∂2ω=0
Sep 2002
República de California
103·113 Posts |
@Github pumpers:
Quote:
The only way to be sure of one's infrastructure over the long haul here is to pick clear open-source winners with broad community support early on and be very wary of trading 'convenience today' for nightmares down the road. Visual Studio is a prime example of the latter tradeoff. To put in plan-of-battle terms: Keep it simple as reasonably possible and remain focused on the mission. Last fiddled with by ewmayer on 2015-09-22 at 21:03 |
|
|
|
|
|
|
#6 |
|
P90 years forever!
Aug 2002
Yeehaw, FL
2×53×71 Posts |
|
|
|
|
|
|
#7 |
|
May 2014
3·11 Posts |
Speaking of SVN, you should probably ignore ".DS_Store" files from versioning, or at least not include them in your source zip package.
Or is there any reason to keep them? |
|
|
|
|
|
#8 | |
|
"/X\(‘-‘)/X\"
Jan 2013
22×733 Posts |
Quote:
But as you know there is no one repository with git, so mirroring it on other services like GitLab/Gitorious is trivial. |
|
|
|
|
|
|
#9 | |
|
Jan 2014
2228 Posts |
Quote:
You can work it out locally to get started. Have a look at https://git-scm.com/book/it/v2/Git-a...grating-to-Git We migrated all our projects (100+) form svn to git without any issues. If you then use github or bitbucket (or any other provider) depends on your trust in their policies. We use both, depending on the project. |
|
|
|
|
|
|
#10 |
|
"Ram Shanker"
May 2015
Delhi
2×19 Posts |
I didn't mean to undermine your efforts in any way.
I am just starting up with all this factoring mania! Still at O(grade school). Long way to go till O(n log n). Tried searching for the Assembly code once in Prime95 code base, and was surprised not to find it on GitHub.
|
|
|
|
|
|
#11 |
|
Feb 2012
34·5 Posts |
As other posters touched on the subject a little bit, a great differentiator of Git (and other systems like it) is that it is a distributed source control system. It does not need a central server. Each cloned repository is self-contained, and can be used to make further clones. As such, you are not ‘tied forever’ to any particular server; if GitHub goes down, for example, you can take your local repository, and load it on some other service.
Another point I want to make is that Git is not synonymous to GitHub. GitHub is the biggest provider, but you do not have to use it. There are other providers; Microsoft Visual Studio Online, for example, supports Git, and it is free for up to five users. Also, if you choose so, it should not be too difficult to add your own Git server software to the mersenne.org, so you do not have to rely on third parties for distributing repositories. |
|
|
|
![]() |
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| (Patch) Handling of SIGHUP and SIGPIPE (for mprime) | Explorer09 | Software | 2 | 2017-03-08 05:37 |
| [Patch] Fix strcpy misuse in getProxyInfo() | Explorer09 | Software | 1 | 2017-03-01 22:03 |
| (patch) IniWriteFloat should limit its field width | Explorer09 | Software | 0 | 2015-09-23 01:02 |
| v1.40 patch for massive NFS oversieving | jasonp | Msieve | 18 | 2009-04-09 03:20 |
| Amd patch | moo | Hardware | 6 | 2005-10-10 23:29 |