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

libxo support for devinfo (take 2) #1480

Open
wants to merge 14 commits into
base: main
Choose a base branch
from
Open

Conversation

ktullavik
Copy link

Since last time I have

  • Fixed issues raised by @bsdimp in my last pull request
  • Dealt with recent change to libxo by jhb
  • Reworked the -u path, as it used duplicate json keys in certain cases
  • Tried to make a cleaner history, doing more prep work up front
  • Fixed a few small things discovered along the way

Many of the prep changes only makes sense once libxo are added.
I had to do quite a few contortions to retrofit libxo into this thing.

usr.sbin/devinfo/devinfo.c Outdated Show resolved Hide resolved
usr.sbin/devinfo/devinfo.c Outdated Show resolved Hide resolved
usr.sbin/devinfo/devinfo.c Outdated Show resolved Hide resolved
usr.sbin/devinfo/devinfo.c Outdated Show resolved Hide resolved
@ktullavik
Copy link
Author

I'm learning about git rebase --interactive. Hold your horses.

@ktullavik
Copy link
Author

Ok, I've spent some time learning new git tricks and cleaning up the history. Let me know if there is anything else @bsdimp @rilysh

usr.sbin/devinfo/devinfo.c Outdated Show resolved Hide resolved
usr.sbin/devinfo/devinfo.c Outdated Show resolved Hide resolved
@bsdimp
Copy link
Member

bsdimp commented Nov 2, 2024

OK. That's this round. It looks to be mostly style. I'll test it on the next round to see if I can find some issues I'm not seeing in glancing over this.

@bsdimp
Copy link
Member

bsdimp commented Nov 2, 2024

Also, the 3rd-5th commit messages need to have more descriptive titles. They are a little generic. Let me know if you want more specific suggestions.

@bsdimp
Copy link
Member

bsdimp commented Nov 5, 2024

Other than a couple of very minor style nits, the only thing I see is the strdup/refactoring suggestion I made.

When libxo is added we want the whole indentation to
be printed in a single call. Otherwise the html will be
spammed with indentation tags.
We'll need it twice when libxo is added.
No functional change intended.
The code will diverge when libxo is added.
No functional change intended.
This is prep for libxo.
No functional change intended.
This is prep for libxo.
No functional change intended.
No functional change intended.
This is prep for libxo.
No functional change intended.
This is prep for libxo.
No functional change intended.
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.

3 participants