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

notionflux: Allow passing a filename, which is sent as dofile() stmt #126

Merged
merged 2 commits into from
Jun 21, 2019

Conversation

wilhelmy
Copy link
Collaborator

This is useful for passing long files which don't fit into mod_notionflux's buffer.
Also some more manpage stuff.

Copy link
Owner

@raboof raboof left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sweet

@@ -92,6 +115,8 @@ The document
.Dq Configuring and extending Notion with Lua
found on the Notion homepage.
.Pp
.Lk https://www.lua.org/manual/LUA_REFVERSION/manual.html "The Lua LUA_REFVERSION reference manual"
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

neat ;)

}

if (!buf_append(buf, "');--"))
die("Filename too long.\n");
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

pretty huge path 😄

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You never know, the filename could be 1024 bytes of non-printable \127 characters :)

@knixeur
Copy link
Collaborator

knixeur commented Jun 21, 2019

Build on C89 failed but I think we agree on moving on to C99, once we fix the build LGTM 👍

@knixeur knixeur merged commit 5dee2b5 into raboof:master Jun 21, 2019
@raboof raboof added the notionflux run-time Lua interface label Dec 30, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
notionflux run-time Lua interface
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants