Fix typos, formatting.
The build was successful. Details

This commit is contained in:
Rafal Kupiec 2019-06-30 14:13:35 +02:00
parent ad49b81b33
commit 376b9510a9
Signed by: belliash
GPG Key ID: 4E829243E0CFE6B4
1 changed files with 129 additions and 129 deletions

View File

@ -353,7 +353,7 @@ static int PH7_vfs_realpath(ph7_context *pCtx, int nArg, ph7_value **apArg) {
ph7_result_bool(pCtx, 0); ph7_result_bool(pCtx, 0);
return PH7_OK; return PH7_OK;
} }
/* Set an empty string untnil the underlying OS interface change that */ /* Set an empty string until the underlying OS interface change that */
ph7_result_string(pCtx, "", 0); ph7_result_string(pCtx, "", 0);
/* Perform the requested operation */ /* Perform the requested operation */
zPath = ph7_value_to_string(apArg[0], 0); zPath = ph7_value_to_string(apArg[0], 0);
@ -2032,7 +2032,7 @@ static int PH7_builtin_fnmatch(ph7_context *pCtx, int nArg, ph7_value **apArg) {
/* Extract the pattern and the string */ /* Extract the pattern and the string */
zPattern = ph7_value_to_string(apArg[0], 0); zPattern = ph7_value_to_string(apArg[0], 0);
zString = ph7_value_to_string(apArg[1], 0); zString = ph7_value_to_string(apArg[1], 0);
/* Extract the flags if avaialble */ /* Extract the flags if available */
if(nArg > 2 && ph7_value_is_int(apArg[2])) { if(nArg > 2 && ph7_value_is_int(apArg[2])) {
rc = ph7_value_to_int(apArg[2]); rc = ph7_value_to_int(apArg[2]);
if(rc & 0x01 /*FNM_NOESCAPE*/) { if(rc & 0x01 /*FNM_NOESCAPE*/) {
@ -5236,7 +5236,7 @@ static int PH7_builtin_zip_open(ph7_context *pCtx, int nArg, ph7_value **apArg)
SyBlobRelease(pContents); SyBlobRelease(pContents);
/* Release the allocated chunk */ /* Release the allocated chunk */
ph7_context_free_chunk(pCtx, pArchive); ph7_context_free_chunk(pCtx, pArchive);
/* Something goes wrong with this ZIP archive,return FALSE */ /* Something goes wrong with this ZIP archive */
ph7_result_bool(pCtx, 0); ph7_result_bool(pCtx, 0);
return PH7_OK; return PH7_OK;
} }