Skip to content
This repository has been archived by the owner on Jul 1, 2022. It is now read-only.

19 use fmtlib #20

Merged
merged 1 commit into from Dec 7, 2018
Merged

19 use fmtlib #20

merged 1 commit into from Dec 7, 2018

Conversation

ghost
Copy link

@ghost ghost commented Dec 7, 2018

This adds fmtlib and also starts the refactoring process. I went a little further but decided to stop here because it's a little tedious:

  • Dynamically allocated buffers (essentially wherever sprintf is) need to be replaced with memory_buffer.
  • Inconsistent use of space/tabs is a PITA since I'm on a Linux system. I can't retab or it screws up the whole file

So I'm opening this PR to get the ball rolling.

Start refactoring printf and friends to fmtlib

Fix formatting

Remove lingering null termination code

Add libfmt-dev to Travis

libfmt-dev doesn't exist on xenial; so install it manually

Remove extraneous keyword
@arthurmco
Copy link
Owner

arthurmco commented Dec 7, 2018

Thanks for the PR!

This adds fmtlib and also starts the refactoring process. I went a little further but decided to stop here because it's a little tedious.

Yes, but don't worry. I'll continue your work later.

Inconsistent use of space/tabs is a PITA since I'm on a Linux system. I can't retab or it screws up the whole file

Sorry for that. I overlooked this. Might be because I use mostly just one editor for programming in my computers.

Also, thanks for fixing the build failures of this pull request. I appreciate the effort you had to do a good job.

@arthurmco arthurmco merged commit 196a4a0 into arthurmco:master Dec 7, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants