On 2018/07/18 06:14:48 -0700, Paul E. McKenney wrote: > On Wed, Jul 18, 2018 at 09:15:12PM +0900, Akira Yokosawa wrote: >> On 2018/07/17 09:15:31 -0700, Paul E. McKenney wrote: >>> On Wed, Jul 18, 2018 at 12:43:16AM +0900, Akira Yokosawa wrote: [...] >>>> So in theory, we can do what you want, but need somewhat ad-hoc >>>> manual tweaks. Still, it might be possible to write a script or two >>>> to do such tweaks in a semi-automated way. >>> >>> I already use scripts to do the auto-numbering and auto-intenting >>> for the old-style listings, so why not? ;-) >>> >>> If I haven't already made these available, please let me know and >>> I can send them on. They aren't exactly profound. >> >> So, there are 3 symbolic links under utilities/ in the Git repo: >> >> c2latex.sh -> /home/paulmck/bin/c2latex.sh >> extractClatex.sh -> /home/paulmck/bin/extractClatex.sh >> latex2c.sh -> /home/paulmck/bin/latex2c.sh >> >> Now I know why I have no idea how you manage code snippets. ;-) > > Heh! I extract the code by hand and remove comments and any resulting > extraneous blank lines. I run it through c2latex.sh, and occasionally > need to manually fix indentation. Then I do any needed renumbering > manually in the text. > > And latex2c.sh is more or less the inverse of c2latex.sh. Well, I mean if you don't mind, I'd like to see those scripts in the Git repo rather than the symbolic links. Thanks, Akira > >>>> If you'd like to see what the code snippet and reference to labels >>>> would be, I can prepare a experimental branch which is relative to >>>> commit f2b9d37d3b95 ("count: Expand on gap between C11 atomics and >>>> the Linux kernel"). >>>> >>>> Thoughts? >>> >>> Sounds worth a try, thank you! >> >> OK. >> I'll send a pseudo pull request when it is ready. >> Hopefully in a couple of days. > > Sounds good! > > Thanx, Paul > > -- > To unsubscribe from this list: send the line "unsubscribe perfbook" in > the body of a message to majordomo@xxxxxxxxxxxxxxx > More majordomo info at http://vger.kernel.org/majordomo-info.html > -- To unsubscribe from this list: send the line "unsubscribe perfbook" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html