Commit 5b92f977

5b92f977dedfMerged

NHH <[email protected]> · 6 months ago · 1 file · ~1 modified

Description

fix: File::ALT_SEPARATOR returns nil on non-Windows

CRuby returns nil for File::ALT_SEPARATOR on Linux/macOS since there is no alternate separator. Spinel returned sp_str_empty ("") which made .nil? return false. Return NULL instead, which is the nil representation for the string type.

Details

Commit
5b92f977dedf
Parent
7780fff2c6e8

spinel_codegen.rbmodifiedView file

@@ -13864,7 +13864,7 @@
1386413864 return "(&(\"\\xff\" \"/\")[1])"
1386513865 end
1386613866 if nname == "ALT_SEPARATOR"
13867- return "sp_str_empty"
13867+ return "((const char*)0)"
1386813868 end
1386913869 if nname == "PATH_SEPARATOR"
1387013870 return "(&(\"\\xff\" \":\")[1])"