kristopolous / TickTick

JSON in your Bash scripts
http://9ol.es/TheEmperorsNewClothes.html
Other
579 stars 55 forks source link

Fix debug advice in README #51

Closed XLTechie closed 4 years ago

XLTechie commented 4 years ago

README said to use "extern" to set the debugging variable; there is no such builtin. Also the instruction to include it at the top of your code was not absolutely clear on whether it should be above or below the source of TickTick (above, I gather from testing). Fixed both herewith.

kristopolous commented 4 years ago

hey hey I caught this myself last week but didn't change it. there is no extern. I don't know how that got in my head or survived in the docs for so long. Thanks

kristopolous commented 4 years ago

I'm trying to research ... is that only a C-ism? maybe I was thinking "export"?

kristopolous commented 4 years ago

ah yes, I fumbled the ball there ... they essentially do the same thing ... share a bunch of the same letters ... I can never remember syntax . I was writing go inside of cpp last week and looking at it for like 10 minutes "WTF?! WHY WONT THIS COMPILE!"

XLTechie commented 4 years ago

Hahaha! Yes, I know the feeling.

I only know "extern" from C/C++/C#.