Bug 338678: For source compatibility fields "uint16 extra,spare" in JSFunctionSpec are replaced by singe "uint32 extra". In this way we do need to update the current sources that list just 5 fields to include the additional ",0" corresponding to "spare" field. To quell GCC warnings all sources that list less then 5 fields of JSFunctionSpec are updated to explicitly list all 5 fields. r=mrbkap, s=brendan

git-svn-id: svn://10.0.0.236/trunk@198222 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
igor%mir2.org
2006-05-22 22:58:31 +00:00
parent 01a66fb119
commit 642c0ea402
17 changed files with 227 additions and 217 deletions

View File

@@ -1416,31 +1416,31 @@ InstallFileOpWinRegisterServer(JSContext *cx, JSObject *obj, uintN argc, jsval *
//
static JSFunctionSpec FileOpMethods[] =
{
{"dirCreate", InstallFileOpDirCreate, 1},
{"dirGetParent", InstallFileOpDirGetParent, 1},
{"dirRemove", InstallFileOpDirRemove, 2},
{"dirRename", InstallFileOpDirRename, 2},
{"copy", InstallFileOpFileCopy, 2},
{"remove", InstallFileOpFileRemove, 1},
{"exists", InstallFileOpFileExists, 1},
{"execute", InstallFileOpFileExecute, 2},
{"nativeVersion", InstallFileOpFileGetNativeVersion, 1},
{"windowsVersion", InstallFileOpFileGetNativeVersion, 1},
{"diskSpaceAvailable", InstallFileOpFileGetDiskSpaceAvailable,1},
{"modDate", InstallFileOpFileGetModDate, 1},
{"size", InstallFileOpFileGetSize, 1},
{"isDirectory", InstallFileOpFileIsDirectory, 1},
{"isWritable", InstallFileOpFileIsWritable, 1},
{"isFile", InstallFileOpFileIsFile, 1},
{"modDateChanged", InstallFileOpFileModDateChanged, 2},
{"move", InstallFileOpFileMove, 2},
{"rename", InstallFileOpFileRename, 2},
{"windowsGetShortName", InstallFileOpFileWindowsGetShortName, 1},
{"windowsShortcut", InstallFileOpFileWindowsShortcut, 7},
{"macAlias", InstallFileOpFileMacAlias, 2},
{"unixLink", InstallFileOpFileUnixLink, 2},
{"windowsRegisterServer", InstallFileOpWinRegisterServer, 1},
{0}
{"dirCreate", InstallFileOpDirCreate, 1,0,0},
{"dirGetParent", InstallFileOpDirGetParent, 1,0,0},
{"dirRemove", InstallFileOpDirRemove, 2,0,0},
{"dirRename", InstallFileOpDirRename, 2,0,0},
{"copy", InstallFileOpFileCopy, 2,0,0},
{"remove", InstallFileOpFileRemove, 1,0,0},
{"exists", InstallFileOpFileExists, 1,0,0},
{"execute", InstallFileOpFileExecute, 2,0,0},
{"nativeVersion", InstallFileOpFileGetNativeVersion, 1,0,0},
{"windowsVersion", InstallFileOpFileGetNativeVersion, 1,0,0},
{"diskSpaceAvailable", InstallFileOpFileGetDiskSpaceAvailable,1,0,0},
{"modDate", InstallFileOpFileGetModDate, 1,0,0},
{"size", InstallFileOpFileGetSize, 1,0,0},
{"isDirectory", InstallFileOpFileIsDirectory, 1,0,0},
{"isWritable", InstallFileOpFileIsWritable, 1,0,0},
{"isFile", InstallFileOpFileIsFile, 1,0,0},
{"modDateChanged", InstallFileOpFileModDateChanged, 2,0,0},
{"move", InstallFileOpFileMove, 2,0,0},
{"rename", InstallFileOpFileRename, 2,0,0},
{"windowsGetShortName", InstallFileOpFileWindowsGetShortName, 1,0,0},
{"windowsShortcut", InstallFileOpFileWindowsShortcut, 7,0,0},
{"macAlias", InstallFileOpFileMacAlias, 2,0,0},
{"unixLink", InstallFileOpFileUnixLink, 2,0,0},
{"windowsRegisterServer", InstallFileOpWinRegisterServer, 1,0,0},
{nsnull,nsnull,0,0,0}
};