mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-09 01:08:39 +09:00
Replace NSS with Pale Moon's
This commit is contained in:
parent
ff1e5e48bf
commit
8c2e376f94
2870 changed files with 1762232 additions and 1374220 deletions
|
|
@ -620,11 +620,11 @@ Pk11Install_PlatformName_GetVerString(Pk11Install_PlatformName* _this)
|
|||
tmp[0] = '\0';
|
||||
|
||||
for (i = 0; i < _this->numDigits - 1; i++) {
|
||||
sprintf(buf, "%s.", _this->verString[i]);
|
||||
snprintf(buf, sizeof(buf), "%s.", _this->verString[i]);
|
||||
strcat(tmp, buf);
|
||||
}
|
||||
if (i < _this->numDigits) {
|
||||
sprintf(buf, "%s", _this->verString[i]);
|
||||
snprintf(buf, sizeof(buf), "%s", _this->verString[i]);
|
||||
strcat(tmp, buf);
|
||||
}
|
||||
|
||||
|
|
@ -1034,7 +1034,7 @@ Pk11Install_Info_Cleanup(Pk11Install_Info* _this)
|
|||
for (i = 0; i < _this->numPlatforms; i++) {
|
||||
Pk11Install_Platform_delete(&_this->platforms[i]);
|
||||
}
|
||||
PR_Free(&_this->platforms);
|
||||
PR_Free(_this->platforms);
|
||||
_this->platforms = NULL;
|
||||
_this->numPlatforms = 0;
|
||||
}
|
||||
|
|
@ -1043,7 +1043,7 @@ Pk11Install_Info_Cleanup(Pk11Install_Info* _this)
|
|||
for (i = 0; i < _this->numForwardCompatible; i++) {
|
||||
Pk11Install_PlatformName_delete(&_this->forwardCompatible[i]);
|
||||
}
|
||||
PR_Free(&_this->forwardCompatible);
|
||||
PR_Free(_this->forwardCompatible);
|
||||
_this->numForwardCompatible = 0;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -252,23 +252,10 @@ Pk11Install_Release()
|
|||
* and sends the string to the handler function if it exists.
|
||||
*/
|
||||
|
||||
#ifdef OSF1
|
||||
/* stdarg has already been pulled in from NSPR */
|
||||
#undef va_start
|
||||
#undef va_end
|
||||
#undef va_arg
|
||||
#include <varargs.h>
|
||||
#else
|
||||
#include <stdarg.h>
|
||||
#endif
|
||||
|
||||
#ifdef OSF1
|
||||
static void
|
||||
error(long va_alist, ...)
|
||||
#else
|
||||
static void
|
||||
error(PRErrorCode errcode, ...)
|
||||
#endif
|
||||
{
|
||||
|
||||
va_list ap;
|
||||
|
|
@ -286,13 +273,8 @@ error(PRErrorCode errcode, ...)
|
|||
PR_Unlock(errorHandlerLock);
|
||||
|
||||
if (handler) {
|
||||
#ifdef OSF1
|
||||
va_start(ap);
|
||||
errstr = PR_vsmprintf(errorString[va_arg(ap, Pk11Install_Error)], ap);
|
||||
#else
|
||||
va_start(ap, errcode);
|
||||
errstr = PR_vsmprintf(errorString[errcode], ap);
|
||||
#endif
|
||||
handler(errstr);
|
||||
PR_smprintf_free(errstr);
|
||||
va_end(ap);
|
||||
|
|
@ -830,7 +812,7 @@ rm_dash_r(char *path)
|
|||
|
||||
/* Recursively delete all entries in the directory */
|
||||
while ((entry = PR_ReadDir(dir, PR_SKIP_BOTH)) != NULL) {
|
||||
sprintf(filename, "%s/%s", path, entry->name);
|
||||
snprintf(filename, sizeof(filename), "%s/%s", path, entry->name);
|
||||
if (rm_dash_r(filename)) {
|
||||
PR_CloseDir(dir);
|
||||
return -1;
|
||||
|
|
|
|||
|
|
@ -48,31 +48,76 @@ char *Pk11Install_yyerrstr = NULL;
|
|||
/* clang-format on */
|
||||
short yylhs[] = {
|
||||
-1,
|
||||
0, 1, 1, 2, 2, 3, 4,
|
||||
0,
|
||||
1,
|
||||
1,
|
||||
2,
|
||||
2,
|
||||
3,
|
||||
4
|
||||
};
|
||||
short yylen[] = {
|
||||
2,
|
||||
1, 2, 0, 1, 1, 4, 1,
|
||||
1,
|
||||
2,
|
||||
0,
|
||||
1,
|
||||
1,
|
||||
4,
|
||||
1
|
||||
};
|
||||
short yydefred[] = {
|
||||
0,
|
||||
0, 0, 1, 0, 4, 0, 2, 0, 0, 6,
|
||||
0,
|
||||
0,
|
||||
1,
|
||||
0,
|
||||
4,
|
||||
0,
|
||||
2,
|
||||
0,
|
||||
0,
|
||||
6
|
||||
};
|
||||
short yydgoto[] = {
|
||||
2,
|
||||
3, 4, 5, 6,
|
||||
3,
|
||||
4,
|
||||
5,
|
||||
6
|
||||
};
|
||||
short yysindex[] = {
|
||||
-257,
|
||||
0, 0, 0, -257, 0, -252, 0, -257, -251, 0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
-257,
|
||||
0,
|
||||
-252,
|
||||
0,
|
||||
-257,
|
||||
-251,
|
||||
0
|
||||
};
|
||||
short yyrindex[] = {
|
||||
6,
|
||||
1, 0, 0, 3, 0, 0, 0, -250, 0, 0,
|
||||
1,
|
||||
0,
|
||||
0,
|
||||
3,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
-250,
|
||||
0,
|
||||
0
|
||||
};
|
||||
short yygindex[] = {
|
||||
0,
|
||||
-4, 0, 0, 0,
|
||||
-4,
|
||||
0,
|
||||
0,
|
||||
0
|
||||
};
|
||||
#define YYTABLESIZE 261
|
||||
short yytable[] = {
|
||||
|
|
@ -103,7 +148,7 @@ short yytable[] = {
|
|||
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 7, 5, 5,
|
||||
3,
|
||||
3
|
||||
};
|
||||
short yycheck[] = {
|
||||
4,
|
||||
|
|
@ -133,7 +178,7 @@ short yycheck[] = {
|
|||
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
|
||||
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
|
||||
-1, -1, -1, -1, -1, -1, -1, 257, 258, 259,
|
||||
258,
|
||||
258
|
||||
};
|
||||
/* clang-format on */
|
||||
#define YYFINAL 2
|
||||
|
|
@ -149,7 +194,7 @@ char *yyname[] = {
|
|||
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, "OPENBRACE", "CLOSEBRACE", "STRING",
|
||||
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, "OPENBRACE", "CLOSEBRACE", "STRING"
|
||||
};
|
||||
char *yyrule[] = {
|
||||
"$accept : toplist",
|
||||
|
|
|
|||
|
|
@ -49,12 +49,12 @@
|
|||
|
||||
#else /* ! __cplusplus */
|
||||
|
||||
#if __STDC__
|
||||
#if __STDC_VERSION__
|
||||
|
||||
#define YY_USE_PROTOS
|
||||
#define YY_USE_CONST
|
||||
|
||||
#endif /* __STDC__ */
|
||||
#endif /* __STDC_VERSION__ */
|
||||
#endif /* ! __cplusplus */
|
||||
|
||||
#ifdef __TURBOC__
|
||||
|
|
@ -294,67 +294,60 @@ static void yy_fatal_error YY_PROTO((yyconst char msg[]));
|
|||
|
||||
#define YY_NUM_RULES 8
|
||||
#define YY_END_OF_BUFFER 9
|
||||
static yyconst short int yy_accept[16] =
|
||||
{ 0,
|
||||
0, 0, 9, 3, 6, 5, 7, 1, 2, 3,
|
||||
6, 0, 0, 4, 0 };
|
||||
static yyconst short int yy_accept[16] = { 0,
|
||||
0, 0, 9, 3, 6, 5, 7, 1, 2, 3,
|
||||
6, 0, 0, 4, 0 };
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, 1, 1, 1, 1, 1, 1, 1,
|
||||
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
|
||||
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
|
||||
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
|
||||
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
|
||||
1, 1, 7, 1, 8, 1, 1, 1, 1, 1,
|
||||
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
|
||||
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
|
||||
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
|
||||
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
|
||||
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
|
||||
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
|
||||
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
|
||||
|
||||
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
|
||||
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
|
||||
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
|
||||
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
|
||||
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
|
||||
1, 1, 1, 1, 1 };
|
||||
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
|
||||
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
|
||||
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
|
||||
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
|
||||
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
|
||||
1, 1, 1, 1, 1 };
|
||||
|
||||
static yyconst int yy_meta[9] =
|
||||
{ 0,
|
||||
1, 2, 3, 4, 3, 1, 5, 5 };
|
||||
static yyconst int yy_meta[9] = { 0,
|
||||
1, 2, 3, 4, 3, 1, 5, 5 };
|
||||
|
||||
static yyconst short int yy_base[19] =
|
||||
{ 0,
|
||||
0, 0, 19, 0, 0, 21, 12, 21, 21, 0,
|
||||
0, 4, 6, 21, 21, 13, 11, 15 };
|
||||
static yyconst short int yy_base[19] = { 0,
|
||||
0, 0, 19, 0, 0, 21, 12, 21, 21, 0,
|
||||
0, 4, 6, 21, 21, 13, 11, 15 };
|
||||
|
||||
static yyconst short int yy_def[19] =
|
||||
{ 0,
|
||||
15, 1, 15, 16, 17, 15, 18, 15, 15, 16,
|
||||
17, 18, 15, 15, 0, 15, 15, 15 };
|
||||
static yyconst short int yy_def[19] = { 0,
|
||||
15, 1, 15, 16, 17, 15, 18, 15, 15, 16,
|
||||
17, 18, 15, 15, 0, 15, 15, 15 };
|
||||
|
||||
static yyconst short int yy_nxt[30] =
|
||||
{ 0,
|
||||
4, 5, 6, 5, 7, 4, 8, 9, 14, 13,
|
||||
12, 12, 11, 10, 11, 12, 12, 13, 15, 12,
|
||||
3, 15, 15, 15, 15, 15, 15, 15, 15 };
|
||||
static yyconst short int yy_nxt[30] = { 0,
|
||||
4, 5, 6, 5, 7, 4, 8, 9, 14, 13,
|
||||
12, 12, 11, 10, 11, 12, 12, 13, 15, 12,
|
||||
3, 15, 15, 15, 15, 15, 15, 15, 15 };
|
||||
|
||||
static yyconst short int yy_chk[30] =
|
||||
{ 0,
|
||||
1, 1, 1, 1, 1, 1, 1, 1, 12, 12,
|
||||
13, 13, 17, 16, 17, 18, 18, 7, 3, 18,
|
||||
15, 15, 15, 15, 15, 15, 15, 15, 15 };
|
||||
static yyconst short int yy_chk[30] = { 0,
|
||||
1, 1, 1, 1, 1, 1, 1, 1, 12, 12,
|
||||
13, 13, 17, 16, 17, 18, 18, 7, 3, 18,
|
||||
15, 15, 15, 15, 15, 15, 15, 15, 15 };
|
||||
|
||||
static yy_state_type yy_last_accepting_state;
|
||||
static char *yy_last_accepting_cpos;
|
||||
|
|
@ -475,7 +468,7 @@ static int yy_top_state YY_PROTO((void));
|
|||
#ifdef YY_MALLOC_DECL
|
||||
YY_MALLOC_DECL
|
||||
#else
|
||||
#if __STDC__
|
||||
#if __STDC_VERSION__
|
||||
#ifndef __cplusplus
|
||||
#include <stdlib.h>
|
||||
#endif
|
||||
|
|
@ -1094,7 +1087,7 @@ input()
|
|||
/* Reset buffer status. */
|
||||
yyrestart(yyin);
|
||||
|
||||
/* fall through */
|
||||
/* fall through */
|
||||
|
||||
case EOB_ACT_END_OF_FILE: {
|
||||
if (yywrap())
|
||||
|
|
|
|||
|
|
@ -7,8 +7,6 @@ CORE_DEPTH = ../..
|
|||
|
||||
MODULE = sectools
|
||||
|
||||
EXPORTS =
|
||||
|
||||
CSRCS = modutil.c \
|
||||
pk11.c \
|
||||
instsec.c \
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue