27 #include "nomos_regex.h" 28 #include "nomos_utils.h" 29 #include "_autodefs.h" 85 #define _mNTP 33 // To avoid W3C-style detection 101 #define _mAPACHE10 49 102 #define _mAPACHE11 50 107 #define _msize _fIJG+1 122 extern void preloadResults(
char *filetext,
char *
ltsr);
130 int findPhrase(
int,
char *,
int,
int,
int,
int);
133 int checkPublicDomain(
char *,
int,
int,
int,
int,
int);
136 void showLTCache(
char *);
142 void dumpMatch(
char *,
char *);
146 void saveUnclBufLocation(
int);
147 void saveLicenseParagraph(
char *,
int ,
int ,
int);
149 static char *
gplVersion(
char *,
int,
int,
int);
156 static char *
realVersion(
char *,
int,
int,
int,
int);
163 static int match3(
int,
char *,
int,
int,
int,
int);
180 static char name[256];
181 static char lmem[_msize];
184 static list_t whCacheList;
185 static int refOffset;
186 static int maxInterest;
200 #define PARSE_ARGS filetext, size, isML, isPS 201 #define LVAL(x) (ltsr[x] & LTSR_RMASK) 202 #define SEEN(x) (ltsr[x] & LTSR_SMASK) 203 #define INFILE(x) fileHasPatt(x, PARSE_ARGS, 0) 204 #define NOT_INFILE(x) !( fileHasPatt(x, PARSE_ARGS, 0) && clearLastElementOfLicenceBuffer() ) 205 #define RM_INFILE(x) fileHasPatt(x, PARSE_ARGS, 1) 206 #define GPL_INFILE(x) fileHasPatt(x, PARSE_ARGS, 2) 207 #define PERL_INFILE(x) fileHasPatt(x, PARSE_ARGS, 3) 208 #define NY_INFILE(x) fileHasPatt(x, PARSE_ARGS, 4) 209 #define X_INFILE(x, y) fileHasPatt(x, PARSE_ARGS, y) 210 #define DEBUG_INFILE(x) printf(" Regex[%d] = \"%s\"\nINFILE(%d) = %d\n", x, _REGEX(x), x, INFILE(x)); 211 #define HASREGEX(x, cp) idxGrep(x, cp, REG_ICASE|REG_EXTENDED) 212 #define HASREGEX_RI(x, cp) idxGrep_recordIndex(x, cp, REG_ICASE|REG_EXTENDED) 213 #define HASTEXT(x, fl) idxGrep_recordIndex(x, filetext, REG_ICASE|fl) 214 #define URL_INFILE(x) (INFILE(x) || fileHasPatt(x, PARSE_ARGS, -1)) 215 #define CANSKIP(i,x,y,z) ((i >= y) && (i <= z) && !(kwbm & (1 << (x - _KW_first)))) 216 #define HASKW(x, y) (x & (1 << (y - _KW_first))) 217 #define TRYGROUP(x) x(PARSE_ARGS) 218 #define LOWINTEREST(x) addRef(x, IL_LOW) 219 #define MEDINTEREST(x) addRef(x, IL_MED) 221 #define INTERESTING(x) addRef(x, IL_HIGH) 222 #define ASLVERS() aslVersion(PARSE_ARGS) 223 #define CCVERS() ccVersion(PARSE_ARGS) 224 #define AFLVERS() aflVersion(PARSE_ARGS) 225 #define OSLVERS() oslVersion(PARSE_ARGS) 226 #define CPLVERS() cplVersion(PARSE_ARGS) 227 #define GPLVERS() gplVersion(PARSE_ARGS) 228 #define LGPLVERS() lgplVersion(PARSE_ARGS) 229 #define AGPLVERS() agplVersion(PARSE_ARGS) 230 #define GFDLVERS() gfdlVersion(PARSE_ARGS) 231 #define CDDLVERS() cddlVersion(PARSE_ARGS) 232 #define LPPLVERS() lpplVersion(PARSE_ARGS) 233 #define MPLVERS() mplNplVersion(PARSE_ARGS) 234 #define PYTHVERS() pythonVersion(PARSE_ARGS) 235 #define SISSLVERS() sisslVersion(PARSE_ARGS) 236 #define REALVERS(x) realVersion(PARSE_ARGS, x) 237 #define PR_REGEX(x) printf("check %d = %s\n", x, _REGEX(x)); 238 #define mCR_CMU() (INFILE(_CR_CMU_1) || INFILE(_CR_CMU_2)) 239 #define mCR_EDIN() (INFILE(_CR_EDINBURGH_1) || INFILE(_CR_EDINBURGH_2)) 240 #define mCR_FSF() (INFILE(_CR_FSF1) || INFILE(_CR_FSF2)) 241 #define mCR_HP() (INFILE(_CR_HP_1)|| INFILE(_CR_HP_2) || INFILE(_CR_DEC) || INFILE(_CR_EDS)) 242 #define mCR_IETF() (INFILE(_CR_IETF_1) || INFILE(_CR_IETF_2)) 243 #define mCR_MIT() (INFILE(_CR_MIT1) || INFILE(_CR_MIT2)) 244 #define mCR_X11() (INFILE(_CR_X11) || INFILE(_CR_XFREE86)) 245 #define mCR_IPTC() (INFILE(_CR_IPTC1) || INFILE(_CR_IPTC2)) 246 #define SPDXREF() spdxReference(PARSE_ARGS) 247 #define EXCEPTIONS() copyleftExceptions(PARSE_ARGS) 261 int isML,
int isPS,
int qType)
268 traceFunc(
"== fileHasPatt(size=%d, isML=%d, isPS=%d, qType=%d, idx=%d)\n",
269 size, isML, isPS, qType, licTextIdx);
278 if ((qType >= 0) && (qType & FL_SHOWMATCH)) {
279 qType &= ~FL_SHOWMATCH;
286 dumpMatch(filetext,
"RAW-Text");
290 cur.regm.rm_eo - cur.regm.rm_so,
YES);
292 printf(
"WINDOW-RAW: offset %d, length %d\n",
293 cur.regm.rm_so, cur.regm.rm_eo - cur.regm.rm_so);
298 if (
SEEN(licTextIdx)) {
300 printf(
"Cache hit: ltsr[%d] = 0x%x\n", licTextIdx,
ltsr[licTextIdx]);
304 (void) sprintf(name,
"reg%04d", licTextIdx);
306 if (ip->bIndex != licTextIdx) {
308 LOG_FATAL(
"Offset-cache (\"%s\") == %d, not %d!", name, ip->bIndex, licTextIdx)
331 int flags = REG_ICASE|REG_EXTENDED;
333 if (
SEEN(licTextIdx)) {
338 flags |= FL_SHOWMATCH;
340 ret =
idxGrep(licTextIdx, buf, flags);
344 cur.regm.rm_eo - cur.regm.rm_so,
YES);
346 ltsr[licTextIdx] |= ret;
374 static int first = 1;
379 int score = scp->
score;
380 int kwbm = scp->kwbm;
382 extern void preloadResults(
char *,
char *);
385 #if defined(PROC_TRACE) || defined(DOCTOR_DEBUG) 386 traceFunc(
"== parseLicenses(%p, %d, [%d, 0x%x], %d, %d)\n",
387 filetext, size, score, kwbm, isML, isPS );
391 LOWINTEREST(
"Empty-file-no-data!");
400 listInit(&searchList, 0,
"pattern-search list");
401 listInit(&whereList, 0,
"regex-match locations list");
402 listInit(&whCacheList, 0,
"regex-cache-match list");
417 maxInterest = IL_INIT;
419 gl.
flags &= ~FL_FRAGMENT;
420 #ifdef FLAG_NO_COPYRIGHT 421 gl.
flags &= ~FL_NOCOPYRIGHT;
423 if (scp->dataOffset &&
lDiags) {
424 LOG_NOTICE(
"%s-generated link, ignore header (%d bytes)!",
434 if (!isPS && (strncasecmp(filetext,
"%%page:", 7) == 0 || strncasecmp(filetext,
"{\\rtf", 5) == 0)) {
435 #if defined(DEBUG) || defined(DOCTOR_DEBUG) 436 printf(
"File is really postscript, %s filetext !\n", filetext);
443 (void) memset(
ltsr, 0,
sizeof(
ltsr));
444 (void) memset(lmem, 0,
sizeof(lmem));
445 #if defined(DEBUG) && defined(LTSR_DEBUG) 446 showLTCache(
"LTSR-results START:");
449 preloadResults(filetext,
ltsr);
452 memStats(
"parseLicenses: BOP");
454 lmem[_mPYTH_TEXT] =
HASTEXT(_TEXT_PYTHON, 0);
455 lmem[_tOPENLDAP] =
HASTEXT(_TEXT_OPENLDAP, 0);
456 (void)
INFILE(_TEXT_GNU_LIC_INFO);
458 showLTCache(
"LTSR-results INIT-SCAN:");
463 if (
INFILE(_LT_MYSQL_EXCEPT) ||
INFILE(_PHR_FREE_LIBRE)) {
464 if (
INFILE(_TITLE_ALFRESCO)) {
465 INTERESTING(
"Alfresco-FLOSS");
467 else if (
HASTEXT(_TEXT_ALFRESCO, 0)) {
468 INTERESTING(
"Alfresco");
470 else if (
INFILE(_CR_MYSQL) ||
INFILE(_TITLE_mysql_floss_exception)) {
471 if (
INFILE(_TITLE_MYSQL_V03)) {
472 INTERESTING(
"MySQL-0.3");
475 INTERESTING(
"mysql-floss-exception");
479 INTERESTING(
"MySQL-style");
489 if (
HASTEXT(_TEXT_REALNET, REG_EXTENDED)) {
493 if (
INFILE(_LT_RPSL_COMPATIBLE)) {
496 if (
INFILE(_LT_REAL_RPSL)) {
497 cp = REALVERS(_TITLE_RPSL);
498 INTERESTING(
lDebug ?
"RPSL" : cp);
500 else if (
INFILE(_LT_REAL_RPSLref)) {
501 cp = REALVERS(_TITLE_RPSL);
502 INTERESTING(
lDebug ?
"Real-RPSL(ref)" : cp);
504 if (
INFILE(_LT_REAL_RCSL)) {
505 cp = REALVERS(_TITLE_RCSL);
506 INTERESTING(
lDebug ?
"RCSL" : cp);
508 else if (
INFILE(_LT_REAL_RCSLref)) {
509 cp = REALVERS(_TITLE_RCSL);
510 INTERESTING(
lDebug ?
"Real-RCSL(ref)" : cp);
512 if (
INFILE(_TITLE_REAL_EULA)) {
513 INTERESTING(
"RealNetworks-EULA");
515 else if (
INFILE(_LT_HELIX_TITLE)) {
516 INTERESTING(
"Helix.RealNetworks-EULA");
524 if (!lmem[_mLIBRE] && !lmem[_fREAL] &&
INFILE(_TITLE_ZOPE)) {
525 if (
INFILE(_TITLE_ZOPE_V21)) {
526 INTERESTING(
"ZPL-2.1");
529 else if (
INFILE(_TITLE_ZOPE_V20)) {
530 INTERESTING(
"ZPL-2.0");
533 else if (
INFILE(_TITLE_ZOPE_V10)) {
534 INTERESTING(
"ZPL-1.0");
537 else if (
INFILE(_TITLE_ZOPE_V11)) {
538 INTERESTING(
"ZPL-1.1");
541 else if (
INFILE(_SPDX_ZPL_11)) {
542 INTERESTING(
"ZPL-1.1");
545 else if (
INFILE(_SPDX_ZPL_20)) {
546 INTERESTING(
"ZPL-2.0");
549 else if (
INFILE(_SPDX_ZPL_21)) {
550 INTERESTING(
"ZPL-2.1");
553 else if (
INFILE(_TITLE_ZIMBRA_13)) {
554 INTERESTING(
"Zimbra-1.3");
556 else if (
INFILE(_TITLE_ZIMBRA_12)) {
557 INTERESTING(
"Zimbra-1.2");
560 INTERESTING(
lDebug ?
"Zope(ref)" :
"ZPL");
568 if (
HASTEXT(_PHR_Apache_ref0, REG_EXTENDED) ||
INFILE(_PHR_Apache_ref7)) {
580 if (
INFILE(_TITLE_PHP301)) {
581 INTERESTING(
lDebug ?
"PHP(v3.01#1)" :
"PHP-3.01");
584 else if (
INFILE(_TITLE_PHP30)) {
585 INTERESTING(
lDebug ?
"PHP(v3.0#1)" :
"PHP-3.0");
588 else if (
INFILE(_TITLE_PHP202)) {
589 INTERESTING(
lDebug ?
"PHP(v2.0.2#1)" :
"PHP-2.0.2");
593 INTERESTING(
"VSL-1.0");
597 INTERESTING(
"Naumen");
599 else if (
INFILE(_CR_ENTESSA) ||
INFILE(_TITLE_ENTESSA)) {
600 INTERESTING(
"Entessa");
602 else if (
INFILE(_LT_ATTRIB) ||
INFILE(_TITLE_ATTRIBUTION)) {
606 else if (
INFILE(_CR_ZOPE)) {
607 INTERESTING(
lDebug ?
"Zope(bsd)" :
"ZPL");
609 else if (
INFILE(_LT_Oracle_Berkeley_DB)) {
610 INTERESTING(
"Oracle-Berkeley-DB");
612 else if (
INFILE(_CR_SLEEPYCAT) ||
INFILE(_LT_SLEEPYCAT_1)) {
613 MEDINTEREST(
lDebug ?
"Sleepycat(1)" :
"Sleepycat");
615 else if (
INFILE(_TITLE_PHP202)) {
616 INTERESTING(
lDebug ?
"PHP(v2.0.2#2)" :
"PHP-2.0.2");
619 else if (
INFILE(_TITLE_ZEND_V20)) {
620 INTERESTING(
"Zend-2.0");
622 else if (!lmem[_fOPENLDAP] && !TRYGROUP(
famOPENLDAP)) {
623 if (
HASTEXT(_LT_OPENSSLref5, REG_EXTENDED)) {
624 INTERESTING(
lDebug ?
"OpenSSL(ref)" :
"OpenSSL");
626 else if (
INFILE(_LT_BSD_CLAUSE_0) &&
INFILE(_LT_BSD_CLAUSE_1) &&
INFILE(_LT_BSD_CLAUSE_2)) {
628 INTERESTING(
"BSD-4-Clause-UC");
630 else if (
INFILE(_LT_BSD_CLAUSE_3) && (
INFILE(_LT_BSD_CLAUSE_4) ||
INFILE(_LT_BSD_CLAUSE_4_LONG))) {
631 INTERESTING(
"BSD-4-Clause");
633 else if (
INFILE(_LT_BSD_CLAUSE_4) &&
INFILE(_LT_BSD_CLAUSE_CLEAR)) {
634 INTERESTING(
"BSD-3-Clause-Clear");
636 else if (
INFILE(_LT_BSD_CLAUSE_4) &&
HASTEXT(_KW_severability, REG_EXTENDED)) {
637 INTERESTING(
"BSD-3-Clause-Severability");
639 else if (
INFILE(_LT_XML_DB_V10)) {
640 INTERESTING(
"XMLDB-1.0");
642 else if (
INFILE(_LT_BSD_CLAUSE_4) &&
INFILE(_LT_ANT_BSD_RESTRICTION)) {
643 INTERESTING(
"ANT+SharedSource");
645 else if (!lmem[_mAPACHE11] &&
INFILE(_LT_Apache_11_CLAUSE_3) &&
INFILE(_LT_Apache_11_CLAUSE_4) &&
INFILE(_LT_Apache_11_CLAUSE_5)) {
646 INTERESTING(
lDebug ?
"BSD(Apache-1.1)" :
"Apache-1.1-style");
648 else if(
HASTEXT(_LT_Sendmail_823_title, 0)) {
649 INTERESTING(
"Sendmail-8.23");
651 else if (!lmem[_mAPACHE10] && !lmem[_mAPACHE11] &&
INFILE(_LT_BSD_CLAUSE_ATTRIBUTION)) {
652 INTERESTING(
"BSD-3-Clause-Attribution");
654 else if (!lmem[_mAPACHE10] && !lmem[_mAPACHE11] &&
INFILE(_LT_BSD_CLAUSE_4)) {
655 INTERESTING(
"BSD-3-Clause");
657 else if (
INFILE(_LT_SSLEAY)) {
658 INTERESTING(
"SSLeay");
660 else if (
INFILE(_LT_TMATE)) {
661 INTERESTING(
"TMate");
663 else if (
INFILE(_LT_MUP)) {
666 else if (
INFILE(_LT_FREE_BSD)) {
667 INTERESTING(
"BSD-2-Clause-FreeBSD");
669 else if (
INFILE(_LT_BSD_CLAUSE_PATENT)) {
670 INTERESTING(
"BSD-2-Clause-Patent");
672 else if (
INFILE(_CR_NETBSD)) {
673 INTERESTING(
"BSD-2-Clause-NetBSD");
675 else if (
INFILE(_LT_MIT_0)) {
677 INTERESTING(
"Linux-OpenIB");
679 else if (!lmem[_mAPACHE10] && !lmem[_mAPACHE11]) {
680 INTERESTING(
"BSD-2-Clause");
683 else if (
INFILE(_CR_CRYPTOGAMS)) {
684 INTERESTING(
"Cryptogams");
686 else if (
INFILE(_CR_BSDCAL)) {
687 INTERESTING(
lDebug ?
"BSD(1)" :
"BSD");
689 else if (
HASTEXT(_TEXT_ALTERED_SOURCE, REG_EXTENDED) &&
HASTEXT(_TEXT_ORIGIN, 0)) {
690 if (
INFILE(_PHR_BZIP2_3)) {
691 INTERESTING(
"bzip2-1.0.5");
693 else if (
HASTEXT(_PHR_BZIP2_4, REG_EXTENDED)) {
694 INTERESTING(
"bzip2-1.0.6");
697 INTERESTING(
"bzip2");
700 else if (mCR_CMU()) {
701 INTERESTING(
lDebug ?
"CMU(BSD-ish)" :
"CMU");
703 else if (
INFILE(_LT_MTLL)) {
706 else if (
INFILE(_LT_BSD_CLAUSE_1_DISCLAIMER)) {
707 INTERESTING(
"BSD-1-Clause");
709 else if (!lmem[_fZPL]) {
710 INTERESTING(
lDebug ?
"BSD-style(1)" :
"BSD-style");
715 else if (
INFILE(_LT_BSD_CLEAR_CLAUSE_0) &&
INFILE(_LT_BSD_CLAUSE_1) &&
INFILE(_LT_BSD_CLAUSE_2)) {
716 INTERESTING(
"BSD-3-Clause-Clear");
718 else if (
INFILE(_PHR_Linux_OpenIB)) {
719 INTERESTING(
"Linux-OpenIB");
721 else if (
INFILE(_LT_BSD_2)) {
728 INTERESTING(
lDebug ?
"Python(3)" : cp);
731 else if (
INFILE(_CR_OSF)) {
732 INTERESTING(
lDebug ?
"OSF(1)" :
"OSF");
735 else if (
INFILE(_CR_UI)) {
736 INTERESTING(
lDebug ?
"UI(1)" :
"Unix-Intl");
738 else if (
INFILE(_CR_XOPEN)) {
739 INTERESTING(
lDebug ?
"XOpen(1)" :
"X/Open");
742 else if (
INFILE(_PHR_HISTORICAL)) {
745 else if (
INFILE(_LT_CMU_7)) {
747 INTERESTING(
"MIT-CMU");
750 INTERESTING(
"MIT-CMU-style");
754 else if (
INFILE(_CR_BSDCAL)) {
755 INTERESTING(
lDebug ?
"BSD(2)" :
"BSD");
757 else if (
INFILE(_LT_NTP)) {
760 else if (
INFILE(_LT_WORDNET))
762 INTERESTING(
"WordNet-3.0");
765 else if (
INFILE(_LT_NOT_ADVERTISING)) {
766 INTERESTING(
lDebug ?
"BSD-style(2)" :
"BSD-style");
768 else if (
INFILE(_PHR_NO_WARRANTY_12)) {
769 INTERESTING(
lDebug ?
"ISC(BSD-style)" :
"ISC-style");
772 INTERESTING(
lDebug ?
"BSD-style(2)-MIT" :
"MIT-style");
778 INTERESTING(
"AMPAS");
780 else if (
INFILE(_CR_BSDCAL)) {
781 INTERESTING(
lDebug ?
"BSD(3)" :
"BSD");
783 else if (
INFILE(_TITLE_OZPLB_10)) {
784 INTERESTING(
"OZPLB-1.0");
787 INTERESTING(
lDebug ?
"BSD-style(3)" :
"BSD-style");
791 else if (
INFILE(_LT_BSD_4)) {
793 INTERESTING(
lDebug ?
"BSD(4)" :
"BSD");
796 INTERESTING(
lDebug ?
"BSD-style(4)" :
"BSD-style");
804 else if (
INFILE(_LT_BSD_5)) {
805 if (!lmem[_mPYTHON] &&
INFILE(_CR_PYTHON)) {
806 INTERESTING(
lDebug ?
"Python(2)" :
"Python");
809 else if (
INFILE(_CR_USL_EUR)) {
810 INTERESTING(
lDebug ?
"USLE(1)" :
"USL-Europe");
812 else if (
INFILE(_CR_BSDCAL)) {
813 INTERESTING(
lDebug ?
"BSD(5)" :
"BSD");
816 INTERESTING(
lDebug ?
"BSD-style(5)" :
"BSD-style");
820 else if (
INFILE(_LT_BSD_6)) {
822 INTERESTING(
lDebug ?
"BSD(6)" :
"BSD");
825 INTERESTING(
lDebug ?
"BSD-style(6)" :
"BSD-style");
829 else if (
INFILE(_LT_BSD_7)) {
831 INTERESTING(
"MakeIndex");
833 else if (
INFILE(_CR_BSDCAL)) {
834 INTERESTING(
lDebug ?
"BSD(7)" :
"BSD");
837 INTERESTING(
lDebug ?
"BSD-style(7)" :
"BSD-style");
841 else if (
INFILE(_LT_BSD_8)) {
843 INTERESTING(
lDebug ?
"BSD(8)" :
"BSD");
846 INTERESTING(
lDebug ?
"BSD-style(8)" :
"BSD-style");
850 else if (
INFILE(_LT_BSD_9)) {
852 INTERESTING(
lDebug ?
"BSD(9)" :
"BSD");
855 INTERESTING(
lDebug ?
"BSD-style(8)" :
"BSD-style");
859 else if (
INFILE(_LT_BSD_10)) {
861 INTERESTING(
lDebug ?
"BSD(10)" :
"BSD");
864 INTERESTING(
lDebug ?
"BSD-style(9)" :
"BSD-style");
868 else if (
INFILE(_LT_BSD_11)) {
870 INTERESTING(
lDebug ?
"BSD(11)" :
"BSD");
873 INTERESTING(
lDebug ?
"BSD-style(10)" :
"BSD-style");
877 else if (
INFILE(_LT_BSD_12)) {
879 INTERESTING(
lDebug ?
"BSD(12)" :
"BSD");
882 INTERESTING(
lDebug ?
"BSD-style(11)" :
"BSD-style");
886 else if (
INFILE(_LT_BSD_13)) {
888 INTERESTING(
lDebug ?
"BSD(13)" :
"BSD");
891 INTERESTING(
lDebug ?
"BSD-style(12)" :
"BSD-style");
895 else if (
INFILE(_LT_BSD_NONC)) {
897 INTERESTING(
lDebug ?
"BSD(NonC)" :
"BSD.non-commercial");
900 INTERESTING(
lDebug ?
"BSD-style(NonC)" :
"Non-commercial");
904 else if (
INFILE(_SPDX_BSD_3_Clause_Clear)) {
905 INTERESTING(
"BSD-3-Clause-Clear");
907 else if (
INFILE(_SPDX_BSD_3_Clause_No_Nuclear_License_2014)) {
908 INTERESTING(
"BSD-3-Clause-No-Nuclear-License-2014");
910 else if (
INFILE(_SPDX_BSD_3_Clause_No_Nuclear_License)) {
911 INTERESTING(
"BSD-3-Clause-No-Nuclear-License");
913 else if (
INFILE(_SPDX_BSD_3_Clause_No_Nuclear_Warranty)) {
914 INTERESTING(
"BSD-3-Clause-No-Nuclear-Warranty");
916 else if (
INFILE(_SPDX_BSD_3_Clause_Attribution)) {
917 INTERESTING(
"BSD-3-Clause-Attribution");
919 else if (
INFILE(_SPDX_BSD_3_Clause_LBNL)) {
920 INTERESTING(
"BSD-3-Clause-LBNL");
922 else if (
INFILE(_SPDX_BSD_3_Clause)) {
923 INTERESTING(
"BSD-3-Clause");
925 else if (
INFILE(_PHR_BSD_3_CLAUSE_1) ||
INFILE(_PHR_BSD_3_CLAUSE_2) ||
INFILE(_PHR_BSD_3_CLAUSE_3) ||
INFILE(_PHR_BSD_3_CLAUSE_4)) {
926 INTERESTING(
lDebug ?
"BSD(phr1/2)" :
"BSD-3-Clause");
928 else if (
INFILE(_SPDX_BSD_2_Clause_FreeBSD)) {
929 INTERESTING(
"BSD-2-Clause-FreeBSD");
931 else if (
INFILE(_SPDX_BSD_2_Clause_NetBSD)) {
932 INTERESTING(
"BSD-2-Clause-NetBSD");
934 else if (
INFILE(_SPDX_BSD_2_Clause_Patent)) {
935 INTERESTING(
"BSD-2-Clause-Patent");
937 else if (
INFILE(_SPDX_BSD_2_Clause_1)) {
938 INTERESTING(
"BSD-2-Clause");
940 else if (
INFILE(_SPDX_BSD_2_Clause_2)) {
941 INTERESTING(
"BSD-2-Clause");
943 else if (
INFILE(_PHR_BSD_2_CLAUSE_1)
944 ||
INFILE(_PHR_BSD_2_CLAUSE_2)
945 ||
INFILE(_PHR_BSD_2_CLAUSE_3)
946 ||
INFILE(_PHR_BSD_2_CLAUSE_4)
947 ||
INFILE(_PHR_BSD_2_CLAUSE_5)
948 ||
INFILE(_PHR_BSD_2_CLAUSE_6)) {
949 INTERESTING(
lDebug ?
"BSD(phr1/2/3/4/5/6)" :
"BSD-2-Clause");
951 else if (
INFILE(_SPDX_BSD_4_Clause_UC)) {
952 INTERESTING(
"BSD-4-Clause-UC");
954 else if (
INFILE(_SPDX_BSD_4_Clause)) {
955 INTERESTING(
"BSD-4-Clause");
957 else if (
INFILE(_PHR_BSD_4_CLAUSE_1)) {
958 INTERESTING(
lDebug ?
"BSD-4-Clause(phr1)" :
"BSD-4-Clause");
960 else if (
INFILE(_PHR_BSD_CLEAR_1)) {
961 INTERESTING(
lDebug ?
"BSD-Clear(phr1)" :
"BSD-3-Clause-Clear");
963 else if (
INFILE(_PHR_BSD_3_CLAUSE_LBNL)) {
964 INTERESTING(
"BSD-3-Clause-LBNL");
966 else if (
INFILE(_SPDX_BSD_Protection)) {
967 INTERESTING(
"BSD-Protection");
969 else if (
INFILE(_SPDX_BSD_Source_Code)) {
970 INTERESTING(
"BSD-Source-Code");
972 else if (
INFILE(_SPDX_BSD_1_Clause)) {
973 INTERESTING(
"BSD-1-Clause");
975 else if (
INFILE(_LT_BSDref1)) {
976 INTERESTING(
lDebug ?
"BSD(ref1)" :
"BSD");
978 else if (
INFILE(_LT_BSDref2)) {
979 INTERESTING(
lDebug ?
"BSD(ref2)" :
"BSD");
981 else if (
INFILE(_LT_BSDref3)) {
982 INTERESTING(
lDebug ?
"BSD(ref3)" :
"BSD");
984 else if (
INFILE(_LT_BSDref4)) {
985 INTERESTING(
lDebug ?
"BSD(ref4)" :
"BSD");
987 else if (
INFILE(_LT_BSDref5)) {
988 INTERESTING(
lDebug ?
"BSD(ref5)" :
"BSD");
990 else if (
INFILE(_LT_BSDref6)) {
991 INTERESTING(
lDebug ?
"BSD(ref6)" :
"BSD");
993 else if (
INFILE(_LT_BSDref7)) {
994 INTERESTING(
lDebug ?
"BSD(ref7)" :
"BSD");
996 else if (
INFILE(_LT_BSDref8)) {
997 INTERESTING(
lDebug ?
"BSD(ref8)" :
"BSD");
999 else if (
INFILE(_LT_BSDref9)) {
1000 INTERESTING(
lDebug ?
"BSD(ref9)" :
"BSD");
1002 else if (
INFILE(_LT_BSDref10)) {
1003 INTERESTING(
lDebug ?
"BSD(ref10)" :
"BSD");
1005 else if (
INFILE(_LT_BSDref11)) {
1006 INTERESTING(
lDebug ?
"BSD(ref11)" :
"BSD");
1008 else if (
INFILE(_LT_BSDref12) ||
HASTEXT(_LT_BSDref13, REG_EXTENDED)) {
1009 INTERESTING(
lDebug ?
"BSD(ref12)" :
"BSD-3-Clause");
1012 INTERESTING(
lDebug ?
"BSD(url)" :
"BSD");
1015 else if (
INFILE(_LT_BSDref14)) {
1016 INTERESTING(
lDebug ?
"BSD(ref14)" :
"BSD");
1019 else if (
INFILE(_LT_BSDSTYLEref1)) {
1020 INTERESTING(
lDebug ?
"BSD-st(1)" :
"BSD-style");
1023 else if (
INFILE(_LT_BSDSTYLEref2)) {
1024 INTERESTING(
lDebug ?
"BSD-st(2)" :
"BSD-style");
1027 else if (
INFILE(_LT_BSDSTYLEref4)) {
1028 INTERESTING(
lDebug ?
"BSD-st(4)" :
"BSD-style");
1031 else if (
INFILE(_LT_BSDSTYLEref3)) {
1032 INTERESTING(
lDebug ?
"BSD-st(3)" :
"BSD-style");
1035 else if (
INFILE(_LT_BSD_HTMLAREA_1) ||
INFILE(_LT_BSD_HTMLAREA_2)) {
1036 INTERESTING(
lDebug ?
"BSD-htmlArea" :
"BSD-3-Clause");
1040 INTERESTING(
lDebug ?
"BSD(deb)" :
"BSD");
1046 if (
INFILE(_LT_APTANA)) {
1047 if (
INFILE(_TITLE_APTANA_V10)) {
1048 INTERESTING(
"Aptana-1.0");
1051 INTERESTING(
"Aptana");
1059 if (!lmem[_mPHP] &&
INFILE(_LT_PHP)) {
1060 if (
INFILE(_TITLE_PHP301)) {
1061 INTERESTING(
lDebug ?
"PHP(v3.01#2)" :
"PHP-3.01");
1063 else if (
INFILE(_TITLE_PHP30)) {
1064 INTERESTING(
lDebug ?
"PHP(v3.0#2)" :
"PHP-3.0");
1066 else if (
INFILE(_TITLE_PHP202)) {
1067 INTERESTING(
lDebug ?
"PHP(v2.0.2#3)" :
"PHP-2.0.2");
1069 else if (
INFILE(_CR_PHP)) {
1070 INTERESTING(
lDebug ?
"PHP(1)" :
"PHP");
1073 INTERESTING(
"PHP-style");
1077 else if (!lmem[_mPHP] &&
INFILE(_LT_PHP_V30_1)) {
1078 INTERESTING(
"PHP-3.0");
1081 else if (!lmem[_mPHP] &&
INFILE(_LT_PHP_V30_2)) {
1082 INTERESTING(
"PHP-3.0");
1085 else if (!lmem[_mPHP] &&
INFILE(_LT_PHPref1)) {
1086 if (
INFILE(_PHR_PHP_V301)) {
1087 INTERESTING(
lDebug ?
"PHP(ref-3.01)" :
"PHP-3.01");
1089 else if (
INFILE(_PHR_PHP_V20)) {
1090 INTERESTING(
lDebug ?
"PHP(ref-2.0)" :
"PHP-2.0");
1093 INTERESTING(
lDebug ?
"PHP(ref)" :
"PHP");
1097 else if (!lmem[_mPHP] &&
URL_INFILE(_URL_PHP)) {
1098 INTERESTING(
lDebug ?
"PHP(url)" :
"PHP");
1101 else if (
INFILE(_LT_PHP_ref)) {
1102 INTERESTING(
lDebug ?
"PHP(2)" :
"PHP");
1111 if (
INFILE(_LT_CUPS_COMMERCIAL)) {
1112 INTERESTING(
"CUPS-EULA");
1115 INTERESTING(
"CUPS");
1120 if (
INFILE(_LT_HACKTIVISMO)) {
1121 INTERESTING(
"Hacktivismo");
1126 INTERESTING(
"NESSUS-EULA");
1134 if (
INFILE(_LT_ORACLE_PROTO) &&
INFILE(_TITLE_ORACLE_PROTO)) {
1135 INTERESTING(
lDebug ?
"Oracle(proto)" :
"Oracle-EULA");
1138 else if (
INFILE(_LT_ORACLE_DEVEL) &&
INFILE(_TITLE_ORACLE_DEVEL)) {
1139 INTERESTING(
lDebug ?
"Oracle(dev)" :
"Oracle-Dev");
1141 else if (
URL_INFILE(_URL_ORACLE_BERKELEY_DB)) {
1142 INTERESTING(
lDebug ?
"URL_ORACLE_BERKELEY_DB" :
"Oracle-Berkeley-DB");
1151 if (
INFILE(_TITLE_CECILL_V11_2) ||
INFILE(_SPDX_CECILL_11)) {
1152 INTERESTING(
lDebug ?
"CeCILL_v1.1(#2)" :
"CECILL-1.1");
1153 lmem[_mGPL] = lmem[_mLGPL] = 1;
1155 else if (
INFILE(_TITLE_CECILL_B) ||
INFILE(_TITLE_CECILL_B1) ||
INFILE(_SPDX_CECILL_B)) {
1156 INTERESTING(
"CECILL-B");
1158 else if (
INFILE(_TITLE_CECILL_C) ||
INFILE(_TITLE_CECILL_C1) ||
INFILE(_SPDX_CECILL_C)) {
1159 INTERESTING(
"CECILL-C");
1161 else if (
INFILE(_LT_CECILL_DUALref)) {
1162 INTERESTING(
"CECILL(dual)");
1163 lmem[_mGPL] = lmem[_mLGPL] = 1;
1165 else if (
INFILE(_SPDX_CECILL_10)) {
1166 INTERESTING(
"CECILL-1.0");
1168 else if (
INFILE(_SPDX_CECILL_21)) {
1169 INTERESTING(
"CECILL-2.1");
1171 else if (
INFILE(_LT_CECILL_2_ref) ||
INFILE(_SPDX_CECILL_20)) {
1172 INTERESTING(
"CECILL-2.0");
1174 else if (
INFILE(_LT_CECILL_ref2)) {
1175 INTERESTING(
"CECILL");
1177 else if (
INFILE(_LT_CECILL_B_ref)) {
1178 INTERESTING(
"CECILL-B");
1180 else if (
INFILE(_LT_CECILL_ref) ||
INFILE(_LT_CECILL_ref1)) {
1182 INTERESTING(
lDebug ?
"CeCILL_v1.1(url)" :
"CECILL-1.1");
1185 INTERESTING(
lDebug ?
"CeCILL_v1(url)" :
"CECILL-1.0");
1188 INTERESTING(
lDebug ?
"CeCILL_v2(url)" :
"CECILL-2.0");
1191 INTERESTING(
lDebug ?
"CeCILL(url)" :
"CECILL");
1194 INTERESTING(
lDebug ?
"CeCILL(#3)" :
"CECILL");
1198 else if (
INFILE(_LT_CECILL_1)) {
1199 if (
INFILE(_TITLE_CECILL_V10)) {
1200 INTERESTING(
lDebug ?
"CeCILL_v1.0(#1)" :
"CECILL-1.0");
1202 else if (
INFILE(_TITLE_CECILL_V20)) {
1203 INTERESTING(
lDebug ?
"CeCILL_v2.0(#1)" :
"CECILL-2.0");
1208 if (
INFILE(_TITLE_CECILL_V10)) {
1209 INTERESTING(
lDebug ?
"CeCILL_v1.0(#2)" :
"CECILL-1.0");
1211 else if (
INFILE(_TITLE_CECILL_V11)) {
1212 INTERESTING(
lDebug ?
"CeCILL_v1.1(#1)" :
"CECILL-1.1");
1214 else if (
INFILE(_TITLE_CECILL_V20)) {
1215 INTERESTING(
lDebug ?
"CeCILL_v2.0(#2)" :
"CECILL-2.0");
1218 INTERESTING(
lDebug ?
"CeCILL(#2)" :
"CECILL");
1227 INTERESTING(
"U-Monash");
1228 if (
INFILE(_PHR_GPL_NO_MORE)) {
1234 if (
INFILE(_LT_OPEN_FONT_V10) ||
INFILE(_LT_OPEN_FONT_V10_1))
1236 INTERESTING(
"OFL-1.0");
1239 else if (
INFILE(_PHR_OPEN_FONT_V10_1) ||
INFILE(_PHR_OPEN_FONT_V10_2))
1241 INTERESTING(
"OFL-1.0");
1244 else if (
INFILE(_LT_OPEN_FONT_V11) ||
INFILE(_LT_OPEN_FONT_V11_1))
1246 INTERESTING(
"OFL-1.1");
1249 else if (
INFILE(_PHR_OPEN_FONT_V11_1) ||
INFILE(_PHR_OPEN_FONT_V11_2))
1251 INTERESTING(
"OFL-1.1");
1256 if (
INFILE(_TITLE_SimPL_V2)) {
1257 INTERESTING(
"SimPL-2.0");
1263 INTERESTING(
"Leptonica");
1270 if (
INFILE(_TITLE_COPYLEFT_NEXT_030) &&
INFILE(_PHR_COPYLEFT_NEXT_PARA1) &&
INFILE(_PHR_COPYLEFT_NEXT_PARA3)) {
1271 INTERESTING(
"copyleft-next-0.3.0");
1274 else if (
INFILE(_TITLE_COPYLEFT_NEXT_031) &&
INFILE(_PHR_COPYLEFT_NEXT_PARA1) &&
INFILE(_PHR_COPYLEFT_NEXT_PARA3)) {
1275 INTERESTING(
"copyleft-next-0.3.1");
1278 else if (
INFILE(_PHR_COPYLEFT_NEXT_030) ||
INFILE(_SPDX_copyleft_next_030)) {
1279 INTERESTING(
"copyleft-next-0.3.0");
1281 else if (
INFILE(_PHR_COPYLEFT_NEXT_031) ||
INFILE(_SPDX_copyleft_next_031)) {
1282 INTERESTING(
"copyleft-next-0.3.1");
1290 if ((
NOT_INFILE(_LT_FORMER_GNU) && (mCR_FSF() ||
1291 HASTEXT(_TEXT_GNUTERMS, REG_EXTENDED)))) {
1299 INTERESTING(
lDebug ?
"Affero(#1)" : cp);
1302 else if (
INFILE(_LT_AGPLref1)) {
1304 INTERESTING(
lDebug ?
"Affero(#2)" : cp);
1309 INTERESTING(
lDebug ?
"Affero(#3)" : cp);
1312 else if (mCR_FSF() &&
NOT_INFILE(_LT_GPL3_NOT_AGPL)) {
1314 INTERESTING(
lDebug ?
"Affero(CR)" : cp);
1318 else if (
INFILE(_LT_AGPL_NAMED)) {
1320 INTERESTING(
lDebug ?
"AGPL(named)" : cp);
1329 else if (
INFILE(_TITLE_NGPL)) {
1330 INTERESTING(
"NGPL");
1333 else if (
INFILE(_LT_GPL_V1)) {
1334 INTERESTING(
"GPL-1.0");
1337 else if (
INFILE(_LT_GPL_1) && !
HASTEXT(_LT_GPL_EXCEPT_0, REG_EXTENDED)) {
1338 if (
INFILE(_PHR_GPL2_OR_LATER_1) && !
HASTEXT(_LT_IGNORE_CLAUSE, REG_EXTENDED))
1340 INTERESTING(
lDebug ?
"PHR(GPL2_OR_LATER#1)" :
"GPL-2.0+");
1343 else if (
INFILE(_TITLE_GPL2)) {
1344 INTERESTING(
lDebug ?
"Title(GPL-2.0)" :
"GPL-2.0");
1347 else if (
INFILE(_PHR_GPL1_OR_LATER) && !
HASTEXT(_LT_IGNORE_CLAUSE, REG_EXTENDED))
1349 INTERESTING(
"GPL-1.0+");
1352 else if (
INFILE(_TITLE_GPL1)) {
1353 INTERESTING(
"GPL-1.0");
1361 else if ((
INFILE(_LT_GPL_V2) ||
INFILE(_LT_GPL_V2_ref) ||
INFILE(_LT_GPL_V2_ref1) ||
INFILE(_LT_GPL_V2_ref2)) && !
HASTEXT(_LT_GPL_EXCEPT_0, REG_EXTENDED)) {
1362 if (
INFILE(_PHR_GPL2_OR_LATER_1) && !
HASTEXT(_LT_IGNORE_CLAUSE, REG_EXTENDED))
1364 INTERESTING(
lDebug ?
"PHR(GPL2_OR_LATER#2)" :
"GPL-2.0+");
1368 INTERESTING(
lDebug ?
"LT(GPL-V2)" :
"GPL-2.0");
1372 else if (
INFILE(_PHR_GPL2_OR_LATER_2))
1374 INTERESTING(
lDebug ?
"PHR(GPL2_OR_LATER#2)" :
"GPL-2.0+");
1377 else if (
INFILE(_LT_GPL3_PATENTS)) {
1378 if (
INFILE(_TITLE_GPL3)) {
1379 INTERESTING(
lDebug ?
"GPL_v3(#1)" :
"GPL-3.0");
1383 INTERESTING(
"GPL-3.0-possibility");
1387 else if (
INFILE(_TITLE_GPL3_ref3_later)) {
1388 INTERESTING(
"GPL-3.0+");
1391 else if (
INFILE(_TITLE_GPL3_ref4_later)) {
1392 INTERESTING(
"GPL-3.0+");
1395 else if (
INFILE(_TITLE_GPL3_ref3)) {
1396 INTERESTING(
"GPL-3.0");
1400 if (
INFILE(_PHR_LGPL21_OR_LATER_1) && !
HASTEXT(_LT_IGNORE_CLAUSE, REG_EXTENDED))
1402 INTERESTING(
"LGPL-2.1+");
1405 else if (
INFILE(_PHR_LGPL2_OR_LATER) && !
HASTEXT(_LT_IGNORE_CLAUSE, REG_EXTENDED))
1407 INTERESTING(
"LGPL-2.0+");
1410 else if (
INFILE(_TITLE_LGPLV21)) {
1411 INTERESTING(
"LGPL-2.1");
1414 else if (
INFILE(_TITLE_LGPLV2)) {
1415 INTERESTING(
"LGPL-2.0");
1419 INTERESTING(
"LGPL");
1423 else if (
INFILE(_LT_LGPL_3)) {
1424 if ((
INFILE(_PHR_LGPL3_OR_LATER)
1425 ||
INFILE(_PHR_LGPL3_OR_LATER_ref1)
1426 ||
INFILE(_PHR_LGPL3_OR_LATER_ref2))
1427 && !
HASTEXT(_LT_IGNORE_CLAUSE, REG_EXTENDED))
1429 INTERESTING(
"LGPL-3.0+");
1432 else if (
INFILE(_TITLE_LGPL3)) {
1433 INTERESTING(
"LGPL-3.0");
1437 INTERESTING(
"LGPL-3.0-possibility");
1443 INTERESTING(
lDebug ?
"GFDL(#1)" : cp);
1446 if (!lmem[_mLGPL] &&
NOT_INFILE(_LT_MPL_SECONDARY)) {
1452 INTERESTING(
lDebug ?
"GPL(fonts)" :
"GPL-exception");
1455 else if (
INFILE(_LT_LGPL_ALT)) {
1457 INTERESTING(
lDebug ?
"LGPL(alternate)" : cp);
1460 else if (
INFILE(_LT_LGPL3_ref_later)) {
1461 INTERESTING(
"LGPL-3.0+");
1464 else if (
INFILE(_LT_LGPLref1)) {
1466 INTERESTING(
lDebug ?
"LGPL(ref1)" : cp);
1469 else if (
INFILE(_LT_LGPLref2) &&
1472 INTERESTING(
lDebug ?
"LGPL(ref2#1)" : cp);
1475 else if (
INFILE(_LT_LGPLref3)) {
1477 INTERESTING(
lDebug ?
"LGPL(ref3)" : cp);
1480 else if (
INFILE(_LT_LGPLref4)) {
1482 INTERESTING(
lDebug ?
"LGPL(ref4)" : cp);
1485 else if (
INFILE(_LT_LGPLref5)) {
1487 INTERESTING(
lDebug ?
"LGPL(ref5)" : cp);
1490 else if (
INFILE(_LT_LGPLref6)) {
1492 INTERESTING(
lDebug ?
"LGPL(ref6)" : cp);
1495 else if (!lmem[_mLIBRE] && !lmem[_fREAL] &&
1499 INTERESTING(
lDebug ?
"LGPL(ref7)" : cp);
1502 else if (!lmem[_fREAL] && !lmem[_mAPTANA] &&
1503 !
LVAL(_TEXT_GNU_LIC_INFO) &&
INFILE(_LT_LGPLref8) &&
1506 INTERESTING(
lDebug ?
"LGPL(ref8)" : cp);
1509 else if (
INFILE(_LT_LGPLref9) &&
1512 INTERESTING(
lDebug ?
"LGPL(ref9)" : cp);
1515 else if (
INFILE(_LT_LGPLref10) &&
1518 INTERESTING(
lDebug ?
"LGPL(ref10)" : cp);
1521 else if (
INFILE(_LT_LGPLref11)) {
1523 INTERESTING(
lDebug ?
"LGPL(ref11)" : cp);
1528 INTERESTING(
lDebug ?
"LGPL(deb)" : cp);
1531 else if (!
LVAL(_TEXT_GNU_LIC_INFO) &&
1535 INTERESTING(
lDebug ?
"LGPL(url)" : cp);
1538 else if (lmem[_fREAL] && !
LVAL(_TEXT_GNU_LIC_INFO) &&
1541 INTERESTING(
lDebug ?
"LGPL(or)" : cp);
1544 else if (
INFILE(_PHR_LGPL21_OR_LATER_2)) {
1545 INTERESTING(
lDebug ?
"LGPL-2.1+(_LATER_2)" :
"LGPL-2.1+");
1548 else if (
INFILE(_PHR_LGPL21_ONLY_ref) ||
INFILE(_TITLE_LGPLV21_2)) {
1549 INTERESTING(
"LGPL-2.1");
1553 if (!lmem[_mGPL] && !
HASTEXT(_TEXT_GCC, REG_EXTENDED)) {
1556 INTERESTING(
lDebug ?
"GPL(alternate)" : cp);
1561 && !
HASTEXT(_LT_IGNORE_CLAUSE, REG_EXTENDED))
1563 INTERESTING(
"GPL-3.0+");
1567 INTERESTING(
lDebug ?
"GPL_v3(#2)" :
"GPL-3.0");
1571 INTERESTING(
"GPL-3.0");
1574 else if (!lmem[_mLIBRE] &&
GPL_INFILE(_LT_GPLref1)
1591 if (
INFILE(_PHR_LATEX_GPL_INAPPROPRIATE) ||
1592 INFILE(_PHR_PYTHON_NOTGPL_1) ||
1593 INFILE(_PHR_PYTHON_NOTGPL_2)) {
1596 else if (!
HASTEXT(_TEXT_GCC, REG_EXTENDED)
1603 else if (
INFILE(_LT_GPL_FSF)) {
1605 INTERESTING(
lDebug ?
"GPL(FSF)" : cp);
1610 INTERESTING(
lDebug ?
"GPL(ref2)" : cp);
1615 INTERESTING(
lDebug ?
"GPL(ref3)" : cp);
1618 else if (
INFILE(_LT_GPLref4)) {
1620 INTERESTING(
lDebug ?
"GPL(ref4)" : cp);
1625 INTERESTING(
lDebug ?
"GPL(ref5)" : cp);
1630 INTERESTING(
lDebug ?
"GPL(ref6)" : cp);
1635 INTERESTING(
lDebug ?
"GPL(ref7)" : cp);
1640 INTERESTING(
lDebug ?
"GPL(ref8)" : cp);
1643 else if (
INFILE(_LT_GPLref9)) {
1645 INTERESTING(
lDebug ?
"GPL(ref9)" : cp);
1650 INTERESTING(
lDebug ?
"GPL(ref10)" : cp);
1653 else if (
INFILE(_LT_GPLref11)) {
1655 INTERESTING(
lDebug ?
"GPL(ref11)" : cp);
1658 else if (
INFILE(_LT_GPLref12)) {
1660 INTERESTING(
lDebug ?
"GPL(ref12)" : cp);
1665 INTERESTING(
lDebug ?
"GPL(ref13)" : cp);
1671 INTERESTING(
lDebug ?
"GPL(ref14)" : cp);
1674 else if (
INFILE(_LT_GPLref16)) {
1676 INTERESTING(
lDebug ?
"GPL(ref16)" : cp);
1679 else if (
INFILE(_LT_GPLref18)) {
1681 INTERESTING(
lDebug ?
"GPL(ref18)" : cp);
1684 else if (
INFILE(_LT_GPLref19)) {
1686 INTERESTING(
lDebug ?
"GPL(ref19)" : cp);
1689 else if (
INFILE(_LT_GPLref20)) {
1691 INTERESTING(
lDebug ?
"GPL(ref20)" : cp);
1699 INTERESTING(
lDebug ?
"GPL(url)" : cp);
1704 INTERESTING(
lDebug ?
"Affero(url)" : cp);
1707 else if (!
ltsr[_LT_LGPL_3] &&
INFILE(_LT_GPL_OR)) {
1709 INTERESTING(
lDebug ?
"GPL(or)" : cp);
1712 else if (!lmem[_mGPL] && !lmem[_mLGPL] &&
1716 INTERESTING(
lDebug ?
"GPL(GNU)" : cp);
1719 else if (!lmem[_mGPL] && !lmem[_mLGPL] &&
1722 INTERESTING(
lDebug ?
"GPL(see)" : cp);
1725 else if (!lmem[_mGPL] && !lmem[_mLGPL] &&
1728 INTERESTING(
lDebug ?
"LGPL(see)" : cp);
1732 if (!lmem[_mGFDL] && (
INFILE(_LT_GFDLref1) ||
1735 INTERESTING(
lDebug ?
"GFDL(#2)" : cp);
1742 if (!lmem[_mGPL] &&
INFILE(_PHR_GPL_DESCRIPTIONS)) {
1743 INTERESTING(
lDebug ?
"GPL-kinda" :
"GPL");
1748 INTERESTING(
lDebug ?
"FSF(1)" :
"FSF");
1751 else if (
INFILE(_LT_FSF_2)) {
1752 INTERESTING(
lDebug ?
"FSF(2)" :
"FSF");
1754 else if (
INFILE(_LT_FSF_3)) {
1755 INTERESTING(
lDebug ?
"FSF(3)" :
"FSF");
1757 else if (mCR_FSF() &&
INFILE(_LT_FSF_4)) {
1758 INTERESTING(
lDebug ?
"FSF(4)" :
"FSF");
1760 else if (!lmem[_mGPL] && mCR_FSF() &&
INFILE(_LT_FSF_5)) {
1761 INTERESTING(
lDebug ?
"FSF(5)" :
"FSF");
1763 else if (!lmem[_mGPL] &&
NOT_INFILE(_LT_Autoconf_exception_20) &&
INFILE(_LT_FSFref1)) {
1764 INTERESTING(
lDebug ?
"FSF(ref1)" :
"FSF");
1766 else if (
INFILE(_LT_FSFref2)) {
1767 INTERESTING(
lDebug ?
"FSF(ref2)" :
"FSF");
1769 else if (
INFILE(_LT_LGPLrefFSF) &&
1771 INTERESTING(
lDebug ?
"LGPL(FSF)" :
"LGPL");
1774 if (!lmem[_mGPL] && !lmem[_mLGPL] && !lmem[_mGFDL]) {
1779 if (!lmem[_mCUPS] ) {
1783 INTERESTING(
lDebug ?
"GPL(patt1)" : cp);
1788 INTERESTING(
lDebug ?
"GPL(patt2)" : cp);
1792 INTERESTING(
"GPL(rms)");
1795 else if (
INFILE(_PHR_GPLISH_SAMPLE)) {
1796 INTERESTING(
lDebug ?
"GPLISH" :
"GPL-possibility");
1797 INTERESTING(
lDebug ?
"GPLISH" :
"LGPL-possibility");
1798 lmem[_mLGPL] = lmem[_mGPL] = 1;
1802 else if (
INFILE(_LT_GNU_COPYLEFT)) {
1803 INTERESTING(
"GNU-copyleft");
1806 lmem[_fGPL] = lmem[_mLGPL]+lmem[_mGPL]+lmem[_mGFDL];
1809 if (!lmem[_mGPL] &&
INFILE(_LT_GNU_PROJECTS)) {
1811 INTERESTING(
lDebug ?
"GPL(proj)" : cp);
1815 if (
HASTEXT(_LT_GPL_V2_NAMED_later, REG_EXTENDED) ||
HASTEXT(_TITLE_GPL2_ref1_later, REG_EXTENDED))
1817 INTERESTING(
lDebug ?
"GPLV2+(named)" :
"GPL-2.0+");
1820 else if (
INFILE(_LT_TAPJOY) ||
INFILE(_LT_TAPJOY_ref1)) {
1821 INTERESTING(
"Tapjoy");
1825 else if (!lmem[_mGPL] && !lmem[_mGFDL] && !lmem[_mLGPL] && !lmem[_fZPL]
1826 && (
INFILE(_LT_GPL_NAMED)
1827 ||
INFILE(_LT_GPL_NAMED2)
1828 ||
HASTEXT(_LT_GPL_NAMED3, REG_EXTENDED))
1829 && !
HASTEXT(_PHR_GPL_GHOSTSCRIPT, REG_EXTENDED)
1837 && !
HASTEXT(_LT_GPL_NAMED_COMPATIBLE_1, REG_EXTENDED)
1843 INTERESTING(
lDebug ?
"GPL(named)" : cp);
1846 else if ( !lmem[_mGPL] && !
INFILE(_TITLE_MIROS) && (
INFILE(_LT_GPL_V2_NAMED) ||
INFILE(_LT_GPL_V2_NAMED_ref1)))
1848 INTERESTING(
lDebug ?
"GPLV2(named)" :
"GPL-2.0");
1851 else if (!lmem[_mGPL] &&
INFILE(_LT_GPL_V3_NAMED_later))
1853 INTERESTING(
lDebug ?
"GPLV3(named_later)" :
"GPL-3.0+");
1855 else if (!lmem[_mGPL] &&
INFILE(_LT_GPL_V3_NAMED))
1857 INTERESTING(
lDebug ?
"GPLV3(named)" :
"GPL-3.0");
1860 if (!lmem[_mLGPL] && (
INFILE(_LT_LGPL_NAMED)
1864 INTERESTING(
lDebug ?
"LGPL(named)" : cp);
1872 INTERESTING(
"JSON");
1876 if (!lmem[_mWORDNET] &&
INFILE(_TITLE_WORDNET))
1878 INTERESTING(
"WordNet-3.0");
1881 if (
INFILE(_CR_XFREE86_V10) ||
INFILE(_LT_XFREE86_V10)) {
1882 INTERESTING(
"XFree86-1.0");
1885 else if (
INFILE(_CR_XFREE86_V11) ||
INFILE(_LT_XFREE86_V11)) {
1886 INTERESTING(
"XFree86-1.1");
1889 else if (
INFILE(_LT_XFREE86)) {
1890 INTERESTING(
lDebug ?
"XFree86(1)" :
"XFree86");
1893 else if (
HASTEXT(_LT_BSD_OR_MIT, REG_EXTENDED)) {
1898 else if (
HASTEXT(_LT_BSD_AND_MIT, REG_EXTENDED)) {
1908 if(
INFILE(_LT_MIT_NO_EVIL)) {
1909 INTERESTING(
lDebug ?
"MIT-style(no evil)" :
"JSON");
1912 else if (
INFILE(_LT_MIT_2)) {
1913 if (mCR_MIT() ||
INFILE(_TITLE_MIT)) {
1914 INTERESTING(
lDebug ?
"MIT(1)" :
"MIT");
1917 else if (
INFILE(_TITLE_XNET)) {
1918 INTERESTING(
"Xnet");
1922 INTERESTING(
lDebug ?
"X11(1)" :
"X11");
1925 else if (
INFILE(_CR_XFREE86)) {
1926 INTERESTING(
lDebug ?
"XFree86(2)" :
"XFree86");
1930 else if (
INFILE(_LT_MIT_ADVERTISING)) {
1931 INTERESTING(
"MIT-advertising");
1935 else if (
INFILE(_LT_MIT_ENNA)) {
1936 INTERESTING(
"MIT-enna");
1940 else if (
INFILE(_LT_MIT_FEH)) {
1941 INTERESTING(
"MIT-feh");
1945 else if (
HASTEXT(_LT_MITNFA, 0)) {
1946 INTERESTING(
"MITNFA");
1950 else if (
INFILE(_LT_Imlib2)) {
1951 INTERESTING(
"Imlib2");
1954 else if (
INFILE(_LT_MIT_13)) {
1955 INTERESTING(
lDebug ?
"MIT(14)" :
"MIT");
1960 INTERESTING(
lDebug ?
"NCSA(1)" :
"NCSA");
1964 else if (
INFILE(_LT_MIT_0)) {
1965 INTERESTING(
"MIT-0");
1969 INTERESTING(
lDebug ?
"MIT-style(1)" :
"MIT-style");
1973 else if (
INFILE(_LT_BITSTREAM_1)) {
1974 INTERESTING(
lDebug ?
"Bitstream(1)" :
"Bitstream");
1977 else if (mCR_X11()) {
1978 INTERESTING(
lDebug ?
"X11(2)" :
"X11");
1980 else if (!lmem[_mMPL] &&
INFILE(_LT_MPL_1)) {
1982 INTERESTING(
lDebug ?
"MPL/NPL#5" : cp);
1985 else if (!lmem[_mMIT] && (mCR_MIT() ||
INFILE(_TITLE_MIT)) &&
NOT_INFILE(_TITLE_MIT_EXHIBIT)) {
1986 INTERESTING(
lDebug ?
"MIT(2)" :
"MIT");
1993 else if (
INFILE(_LT_BOOST_1)) {
1994 if (
INFILE(_TITLE_BOOST10)) {
1995 INTERESTING(
"BSL-1.0");
1997 else if (
INFILE(_CR_NOTREDAME)) {
1998 INTERESTING(
lDebug ?
"Boost(ND)" :
"BSL-1.0");
2000 else if (
INFILE(_TITLE_BOOST)) {
2001 INTERESTING(
"BSL-1.0");
2004 INTERESTING(
"BSL-style");
2007 else if (mCR_MIT()) {
2008 INTERESTING(
lDebug ?
"MIT(3)" :
"MIT");
2011 else if (
INFILE(_TITLE_ICU) ||
HASTEXT(_URL_ICU, REG_EXTENDED)) {
2012 INTERESTING(
lDebug ?
"MIT-style(ICU)" :
"ICU");
2016 INTERESTING(
lDebug ?
"MIT-style(ICU)" :
"ICU");
2019 else if (
INFILE(_TITLE_JasPer_20)) {
2020 INTERESTING(
lDebug ?
"JasPer(title)" :
"JasPer-2.0");
2023 else if (
INFILE(_LT_UNICODE_4)) {
2024 INTERESTING(
lDebug ?
"MIT-style(Unicode)" :
"Unicode");
2025 lmem[_fUNICODE] = 1;
2031 else if (
HASTEXT(_LT_ADOBE_GLYPH_1, REG_EXTENDED) &&
INFILE(_LT_ADOBE_GLYPH_2)) {
2032 INTERESTING(
"Adobe-Glyph");
2037 else if (
INFILE(_LT_UBUNTU_FONT)) {
2038 INTERESTING(
"ubuntu-font-1.0");
2043 else if (!lmem[_fOFL]) {
2044 INTERESTING(
lDebug ?
"MIT-style(2)" :
"MIT-style");
2053 if(
INFILE(_LT_MIT_NO_EVIL)) {
2054 INTERESTING(
lDebug ?
"MIT-style(no evil)" :
"JSON");
2057 else if (
INFILE(_LT_X11_5)) {
2058 if (
INFILE(_CR_XFREE86)) {
2059 INTERESTING(
lDebug ?
"XFree86(3)" :
"XFree86");
2062 INTERESTING(
lDebug ?
"X11(3)" :
"X11");
2066 else if (
INFILE(_LT_Xnet_STYLE)) {
2067 INTERESTING(
"Xnet");
2070 else if (
INFILE(_LT_TAPJOY)) {
2071 INTERESTING(
"Tapjoy");
2080 INTERESTING(
"curl");
2083 INTERESTING(
lDebug ?
"MIT-style(7)" :
"MIT-style");
2088 else if (
INFILE(_LT_MIT_5)) {
2090 INTERESTING(
lDebug ?
"MIT(4)" :
"MIT");
2093 INTERESTING(
lDebug ?
"MIT-style(3)" :
"MIT-style");
2102 if (!lmem[_mMIT] &&
INFILE(_CR_OpenGroup)) {
2103 INTERESTING(
lDebug ?
"OpenGroup(1)" :
"OpenGroup");
2106 else if (!lmem[_mCMU] && mCR_CMU()) {
2107 INTERESTING(
lDebug ?
"CMU(2)" :
"CMU");
2110 else if (!lmem[_mMIT] && mCR_MIT()) {
2111 INTERESTING(
lDebug ?
"MIT(6)" :
"MIT");
2118 else if (!lmem[_mMIT] &&
INFILE(_LT_CMU_7)) {
2120 INTERESTING(
"MIT-CMU");
2123 INTERESTING(
"MIT-CMU-style");
2127 else if (!lmem[_mMIT]) {
2128 INTERESTING(
lDebug ?
"MIT-style(4)" :
"MIT-style");
2132 else if (
INFILE(_SPDX_MIT_0)) {
2133 INTERESTING(
"MIT-0");
2135 else if (
INFILE(_SPDX_MIT_advertising)) {
2136 INTERESTING(
"MIT-advertising");
2138 else if (
INFILE(_SPDX_MIT_enna)) {
2139 INTERESTING(
"MIT-enna");
2141 else if (
INFILE(_SPDX_MIT_feh)) {
2142 INTERESTING(
"MIT-feh");
2144 else if (!lmem[_mMIT] &&
INFILE(_LT_MIT_7)) {
2145 if (
INFILE(_CR_OpenGroup)) {
2146 INTERESTING(
lDebug ?
"OpenGroup(2)" :
"OpenGroup");
2148 else if (!lmem[_mMIT] && mCR_MIT()) {
2149 INTERESTING(
lDebug ?
"MIT(7)" :
"MIT");
2153 INTERESTING(
lDebug ?
"MIT-style(5)" :
"MIT-style");
2157 else if ((!lmem[_mMIT] || mCR_MIT()) &&
INFILE(_LT_MITref1)) {
2158 INTERESTING(
lDebug ?
"MIT(ref1)" :
"MIT");
2161 else if (!lmem[_mMIT] &&
INFILE(_LT_MITref2)) {
2162 INTERESTING(
lDebug ?
"MIT(ref2)" :
"MIT");
2165 else if (!lmem[_mMIT] &&
INFILE(_LT_MITref6)) {
2166 INTERESTING(
lDebug ?
"MIT(ref6)" :
"MIT");
2169 else if (!lmem[_mMIT] &&
INFILE(_LT_MITref3)) {
2170 INTERESTING(
lDebug ?
"MIT(ref3)" :
"MIT-style");
2173 else if (!lmem[_mMIT] &&
INFILE(_LT_MITref4)) {
2174 INTERESTING(
lDebug ?
"MIT(ref4)" :
"MIT");
2177 else if (!lmem[_mMIT] && (
INFILE(_LT_MITref5) ||
INFILE(_LT_MITref9))) {
2178 INTERESTING(
lDebug ?
"MIT(ref5)" :
"MIT");
2181 else if (
INFILE(_SPDX_MIT_CMU)) {
2182 INTERESTING(
"MIT-CMU");
2184 else if (!lmem[_fREAL] && (
INFILE(_SPDX_MIT))) {
2185 INTERESTING(
lDebug ?
"MIT(SPDX)" :
"MIT");
2187 else if (!lmem[_mMIT] && !lmem[_fREAL] &&
INFILE(_LT_MITref7)) {
2188 INTERESTING(
lDebug ?
"MIT(ref7)" :
"MIT");
2191 else if (!lmem[_mMIT] &&
INFILE(_LT_MITref8)) {
2192 INTERESTING(
lDebug ?
"MIT(ref8/9)" :
"MIT");
2195 else if (
INFILE(_LT_OpenGroup_1)) {
2196 if (
INFILE(_CR_OpenGroup)) {
2197 INTERESTING(
lDebug ?
"OpenGroup(3)" :
"OpenGroup");
2200 INTERESTING(
lDebug ?
"OG-style(3)" :
"OpenGroup-style");
2203 else if (
INFILE(_LT_OpenGroup_3)) {
2204 if (
INFILE(_CR_OpenGroup)) {
2205 INTERESTING(
lDebug ?
"OpenGroup(5)" :
"OpenGroup");
2208 INTERESTING(
lDebug ?
"OG-style(5)" :
"OpenGroup-style");
2211 else if (
INFILE(_LT_OpenGroup_PROP)) {
2212 if (!lmem[_mXOPEN] &&
INFILE(_CR_XOPEN)) {
2213 INTERESTING(
"XOPEN-EULA");
2216 else if (
INFILE(_CR_OpenGroup)) {
2217 INTERESTING(
"OpenGroup-Proprietary");
2220 INTERESTING(
"Proprietary");
2223 else if (
INFILE(_LT_X11_1)) {
2225 INTERESTING(
lDebug ?
"X11(4)" :
"X11");
2228 INTERESTING(
lDebug ?
"X11-style(2)" :
"X11-style");
2231 else if (
INFILE(_LT_X11_2)) {
2233 INTERESTING(
lDebug ?
"X11(5)" :
"X11");
2236 INTERESTING(
lDebug ?
"X11-style(3)" :
"X11-style");
2239 else if (
INFILE(_LT_X11_3)) {
2241 INTERESTING(
lDebug ?
"X11(6)" :
"X11");
2246 else if (
INFILE(_CR_USL_EUR)) {
2247 INTERESTING(
lDebug ?
"USLE(2)" :
"USL-Europe");
2250 INTERESTING(
lDebug ?
"X11-style(4)" :
"X11-style");
2253 else if (
INFILE(_LT_X11_4)) {
2255 INTERESTING(
lDebug ?
"X11(7)" :
"X11");
2258 INTERESTING(
lDebug ?
"X11-style(5)" :
"X11-style");
2262 INTERESTING(
lDebug ?
"PHR(X11)" :
"X11");
2264 else if (
INFILE(_LT_X11_STYLE)) {
2265 INTERESTING(
lDebug ?
"X11-style(6)" :
"X11-style");
2271 INTERESTING(
lDebug ?
"PHR(ISC)" :
"ISC");
2274 else if (
INFILE(_LT_MIT_4) &&
INFILE(_PHR_NO_WARRANTY_12)) {
2275 INTERESTING(
lDebug ?
"ISC(MIT-style(4))" :
"ISC");
2279 INTERESTING(
lDebug ?
"ISC(MIT-style(8))" :
"ISC");
2286 if (
INFILE(_TITLE_NTP)) {
2292 if (
INFILE(_TITLE_MIROS)) {
2293 INTERESTING(
"MirOS");
2298 if (
INFILE(_TITLE_LIBPNG)) {
2299 INTERESTING(
"Libpng");
2301 else if (
INFILE(_LT_W3C_1)) {
2303 INTERESTING(
lDebug ?
"W3C(1)" :
"W3C");
2306 INTERESTING(
lDebug ?
"W3C-style(1)" :
"W3C-style");
2310 else if (!lmem[_mNTP] && !lmem[_mPYTHON] && !lmem[_fBSD] &&
INFILE(_LT_W3C_2)) {
2312 INTERESTING(
lDebug ?
"W3C(2)" :
"W3C");
2315 INTERESTING(
lDebug ?
"W3C-style(2)" :
"W3C-style");
2319 else if (
INFILE(_LT_W3C_3)) {
2321 INTERESTING(
lDebug ?
"W3C(3)" :
"W3C");
2323 if (
INFILE(_LT_W3Cref4)) {
2324 INTERESTING(
lDebug ?
"W3C(ref4)" :
"W3C");
2327 INTERESTING(
lDebug ?
"W3C-style(3)" :
"W3C-style");
2333 INTERESTING(
lDebug ?
"W3C(4)" :
"W3C");
2336 INTERESTING(
lDebug ?
"W3C-style(4)" :
"W3C-style");
2340 else if (
INFILE(_LT_W3C_5)) {
2342 INTERESTING(
lDebug ?
"W3C(5)" :
"W3C");
2345 INTERESTING(
lDebug ?
"W3C-style(5)" :
"W3C-style");
2349 else if (
INFILE(_LT_W3C_6)) {
2351 INTERESTING(
lDebug ?
"W3C(6)" :
"W3C");
2354 INTERESTING(
lDebug ?
"W3C-style(6)" :
"W3C-style");
2358 else if (
INFILE(_LT_W3C_7)) {
2360 INTERESTING(
lDebug ?
"W3C(7)" :
"W3C");
2363 INTERESTING(
lDebug ?
"W3C-style(7)" :
"W3C-style");
2367 else if (
INFILE(_LT_W3Cref1)) {
2368 INTERESTING(
lDebug ?
"W3C(ref1)" :
"W3C");
2371 else if (
INFILE(_LT_W3Cref2)) {
2372 INTERESTING(
lDebug ?
"W3C(ref2)" :
"W3C");
2375 else if (
INFILE(_LT_W3Cref3)) {
2376 INTERESTING(
lDebug ?
"W3C(ref3)" :
"W3C");
2379 else if (
INFILE(_LT_W3Cref4)) {
2380 INTERESTING(
lDebug ?
"W3C(ref4)" :
"W3C");
2384 INTERESTING(
lDebug ?
"W3C-20021231(url)" :
"W3C");
2388 INTERESTING(
lDebug ?
"W3C-IP(url)" :
"W3C-IP");
2392 INTERESTING(
lDebug ?
"W3C(url)" :
"W3C");
2395 else if (!lmem[_mMIT] &&
INFILE(_LT_MIT_3)) {
2397 INTERESTING(
lDebug ?
"MIT(8)" :
"MIT");
2400 INTERESTING(
lDebug ?
"MIT-style(6)" :
"MIT-style");
2404 else if (!lmem[_mMIT] &&
INFILE(_LT_MIT_4)) {
2406 INTERESTING(
lDebug ?
"MIT(9)" :
"MIT");
2408 else if (!lmem[_mISC] && mCR_FSF()) {
2409 INTERESTING(
lDebug ?
"FSF(7)" :
"FSF");
2411 else if (!lmem[_mISC]) {
2412 INTERESTING(
lDebug ?
"MIT-style(13)" :
"MIT-style");
2416 else if (!lmem[_mMIT] &&
INFILE(_LT_MIT_8)) {
2418 INTERESTING(
"Vixie");
2420 else if (
INFILE(_LT_0BSD)) {
2421 INTERESTING(
"0BSD");
2423 else if (mCR_MIT()) {
2424 INTERESTING(
lDebug ?
"MIT(10)" :
"MIT");
2426 else if (
HASTEXT(_TEXT_TU_BERLIN, 0) &&
HASTEXT(_LT_FREE_87,0)) {
2427 INTERESTING(
"TU-Berlin-2.0");
2430 INTERESTING(
lDebug ?
"MIT-style(8)" :
"MIT-style");
2434 else if (
INFILE(_LT_MIT_9)) {
2435 if (
INFILE(_CR_SLEEPYCAT)) {
2436 MEDINTEREST(
lDebug ?
"Sleepycat(2)" :
"Sleepycat");
2438 else if (
INFILE(_CR_BSDCAL)) {
2439 INTERESTING(
lDebug ?
"BSD(mit)" :
"BSD");
2442 else if (
INFILE(_CR_SUN)) {
2443 INTERESTING(
lDebug ?
"SUN(mit)" :
"SUN");
2446 else if (!lmem[_mMIT] && mCR_MIT()) {
2447 INTERESTING(
lDebug ?
"MIT(11)" :
"MIT");
2450 else if (!lmem[_mMIT]) {
2459 INTERESTING(
lDebug ?
"MIT-style(9)" :
"MIT-style");
2464 else if (
INFILE(_LT_MIT_10)) {
2465 if (!lmem[_mMIT] && mCR_MIT()) {
2466 INTERESTING(
lDebug ?
"MIT(12)" :
"MIT");
2470 INTERESTING(
lDebug ?
"MIT-style(10)" :
"MIT-style");
2474 else if ((
INFILE(_LT_MIROS_PREAMBLE) ||
INFILE(_TITLE_MIROS)) &&
INFILE(_LT_MIT_11)) {
2475 INTERESTING(
lDebug ?
"MIT-style(MirOS)" :
"MirOS");
2478 else if (
INFILE(_LT_MIT_11)) {
2479 INTERESTING(
lDebug ?
"MIT-style(11)" :
"MIT-style");
2482 else if (!lmem[_mMIT] &&
INFILE(_LT_MITDOC)) {
2484 INTERESTING(
lDebug ?
"MIT(13)" :
"MIT");
2487 INTERESTING(
lDebug ?
"MIT-style(12)" :
"MIT-style");
2492 INTERESTING(
lDebug ?
"MIT(0)" :
"MIT-style");
2495 else if (
INFILE(_LT_MIT_14)) {
2496 INTERESTING(
lDebug ?
"MIT-style(14)" :
"MIT-style");
2499 else if (
INFILE(_LT_MIT_15)) {
2500 INTERESTING(
lDebug ?
"MIT-style(15)" :
"ISC-style");
2503 else if (
INFILE(_LT_MPL_OR_MITX)) {
2506 INTERESTING(
lDebug ?
"MPL(with-MIT)" : cp);
2510 INTERESTING(
lDebug ?
"MIT(with-MPL)" :
"MIT");
2515 INTERESTING(
lDebug ?
"MIT(url)" :
"MIT");
2518 else if (
HASTEXT(_TEXT_TU_BERLIN, 0) &&
HASTEXT(_LT_FREE_87,0)) {
2519 INTERESTING(
"TU-Berlin-1.0");
2525 if (
INFILE(_LT_COPYLEFT_1)) {
2526 INTERESTING(
"CopyLeft[1]");
2528 else if (
INFILE(_LT_COPYLEFT_2)) {
2529 INTERESTING(
"CopyLeft[2]");
2535 if (
INFILE(_LT_OPENCONTENT)) {
2536 if (
INFILE(_TITLE_OPENCL10)) {
2537 INTERESTING(
"OCL-1.0");
2539 else if (
INFILE(_TITLE_OPENCL)) {
2543 INTERESTING(
"OCL-style");
2550 if (
INFILE(_TITLE_ZLIB)) {
2551 INTERESTING(
"Zlib");
2553 else if (
INFILE (_LT_TRUECRYPT_30)) {
2554 INTERESTING(
"TrueCrypt-3.0");
2556 else if (
INFILE(_TITLE_LIBPNG)) {
2557 INTERESTING(
"Libpng");
2560 else if (
INFILE(_LT_JPEG_1)) {
2561 INTERESTING(
lDebug ?
"JPEG(1)" :
"IJG");
2565 INTERESTING(
lDebug ?
"JPEG(2)" :
"IJG");
2569 else if (
INFILE(_SPDX_zlib_acknowledgement)) {
2570 INTERESTING(
"zlib-acknowledgement");
2572 else if (!lmem[_fREAL] && (
INFILE(_SPDX_Zlib))) {
2573 INTERESTING(
"Zlib");
2575 else if (
INFILE(_LT_PNG_ZLIB_1) &&
HASTEXT(_LT_PNG_ZLIB_CLAUSE_1, 0) &&
HASTEXT(_LT_PNG_ZLIB_CLAUSE_2, REG_EXTENDED) &&
HASTEXT(_LT_PNG_ZLIB_CLAUSE_3, 0)) {
2576 INTERESTING(
lDebug ?
"ZLIB(1)" :
"Zlib");
2578 else if (
INFILE(_LT_PNG_ZLIBref4) &&
NOT_INFILE(_LT_PNG_ZLIBref4_EXHIBIT)) {
2579 INTERESTING(
lDebug ?
"ZLIB(6)" :
"Zlib");
2581 else if (!lmem[_fW3C] &&
INFILE(_LT_PNG_ZLIB_2)) {
2582 if (
INFILE(_LT_libmng_2007_Clause_1)) {
2583 INTERESTING(
"libmng-2007");
2586 INTERESTING(
lDebug ?
"PNG/ZLIB(2)" :
"Libpng");
2589 else if (
INFILE(_LT_PNG_ZLIBref1)) {
2590 INTERESTING(
lDebug ?
"ZLIB(3)" :
"Zlib");
2592 else if (
INFILE(_LT_PNG_ZLIBref2)) {
2593 INTERESTING(
lDebug ?
"ZLIB(4)" :
"Zlib");
2595 else if (
INFILE(_LT_PNG_ZLIBref3)) {
2596 INTERESTING(
lDebug ?
"ZLIB(5)" :
"Zlib-possibility");
2599 INTERESTING(
lDebug ?
"ZLIB(url)" :
"Zlib");
2603 INTERESTING(
"Info-ZIP");
2615 INTERESTING(
"IETF");
2617 else if (
INFILE(_LT_IETF_5)) {
2618 INTERESTING(
"IETF");
2620 else if (
HASTEXT(_LT_IETF_7, 0)) {
2621 INTERESTING(
"IETF");
2623 else if (
INFILE(_CR_OASIS)) {
2624 INTERESTING(
"OASIS");
2627 INTERESTING(
"IETF-style");
2633 else if (
INFILE(_LT_IETF_6)) {
2634 INTERESTING(
"IETF");
2639 else if (
INFILE(_LT_IETF_7)) {
2640 INTERESTING(
"IETF-contribution");
2646 if (
INFILE(_PHR_CDDL_1) ||
HASTEXT(_PHR_CDDL_2, REG_EXTENDED)) {
2659 INTERESTING(
lDebug ?
"MPL/NPL#2" : cp);
2662 if (
INFILE(_LT_CPALref)) {
2663 if (
INFILE(_TITLE_CPAL10)) {
2664 INTERESTING(
lDebug ?
"CPAL_v1.0(#2)" :
"CPAL-1.0");
2668 else if (
INFILE(_TITLE_CPAL)) {
2669 INTERESTING(
lDebug ?
"CPAL(#2)" :
"CPAL");
2674 else if (
INFILE(_LT_CPAL_V1_ref)) {
2675 INTERESTING(
lDebug ?
"CPAL_v1.0(#3)" :
"CPAL-1.0");
2679 if (!lmem[_mMPL] &&
INFILE(_LT_MPL_2)) {
2680 if (
INFILE(_TITLE_SISSL)) {
2682 INTERESTING(
lDebug ?
"SISSL(MPL)" : cp);
2685 else if (
INFILE(_TITLE_SUN_PL10)) {
2686 INTERESTING(
"SPL-1.0");
2689 else if (
INFILE(_TITLE_SUN_PL)) {
2693 else if (
INFILE(_TITLE_IDPL_V10)) {
2694 INTERESTING(
"IDPL-1.0");
2697 else if (
INFILE(_TITLE_IDPL)) {
2698 INTERESTING(
"IDPL");
2701 else if (
INFILE(_TITLE_INTERBASE)) {
2702 INTERESTING(
"Interbase-1.0");
2705 else if (
INFILE(_TITLE_NETIZEN_V10)) {
2706 INTERESTING(
"NOSL-1.0");
2709 else if (
INFILE(_TITLE_NETIZEN)) {
2710 INTERESTING(
lDebug ?
"NOSL(#1)" :
"NOSL");
2713 else if (
INFILE(_TITLE_TPL10)) {
2714 INTERESTING(
lDebug ?
"TPL(v1.0#1)" :
"MPL.TPL-1.0");
2717 else if (
INFILE(_TITLE_TPL)) {
2718 INTERESTING(
lDebug ?
"TPL(#1)" :
"MPL.TPL");
2721 else if (
INFILE(_TITLE_GSOAP_V13)) {
2722 INTERESTING(
"gSOAP-1.3b");
2725 else if (
INFILE(_TITLE_GSOAP)) {
2726 INTERESTING(
"gSOAP");
2729 else if (
INFILE(_TITLE_FLASH2XML10)) {
2730 INTERESTING(
"Flash2xml-1.0");
2732 else if (
INFILE(_TITLE_NOKIA10A)) {
2733 INTERESTING(
"Nokia");
2736 else if (
INFILE(_LT_NOKIA)) {
2737 INTERESTING(
"Nokia");
2740 else if (
INFILE(_TITLE_OPENPL10)) {
2741 INTERESTING(
"OPL-1.0");
2743 else if (
INFILE(_TITLE_SNIA_V11)) {
2744 INTERESTING(
"SNIA-1.1");
2746 else if (
INFILE(_TITLE_SNIA_V10)) {
2747 INTERESTING(
"SNIA-1.0");
2749 else if (
INFILE(_TITLE_CPAL10)) {
2750 INTERESTING(
lDebug ?
"CPAL_v1.0(#1)" :
"CPAL-1.0");
2754 else if (
INFILE(_TITLE_CPAL)) {
2755 INTERESTING(
lDebug ?
"CPAL(#1)" :
"CPAL");
2759 else if (
HASTEXT(_TEXT_MOZNET, REG_EXTENDED)) {
2760 if (
INFILE(_TITLE_SUGARCRM_PL)) {
2761 INTERESTING(
"SugarCRM-1.1.3");
2765 else if (!lmem[_mMPL] && !lmem[_fREAL] &&
INFILE(_TITLE_MOZNET_PL)) {
2767 INTERESTING(
lDebug ?
"MPL/NPL#1" : cp);
2771 else if (
INFILE(_TITLE_RHeCos_V11)) {
2772 INTERESTING(
"RHeCos-1.1");
2774 else if (
INFILE(_TITLE_CYGNUS_ECOS_V10)) {
2775 INTERESTING(
"Cygnus-eCos-1.0");
2777 else if (
INFILE(_TITLE_H2_V10)) {
2778 INTERESTING(
"H2-1.0");
2781 if (!lmem[_mCDDL]) {
2782 INTERESTING(
"MPL-style");
2787 else if (!lmem[_mMPL] && (
INFILE(_LT_NPLref) ||
INFILE(_LT_NPL_1))) {
2789 INTERESTING(
lDebug ?
"MPL/NPL#3" : cp);
2792 else if (!lmem[_mMPL] &&
INFILE(_LT_MPLref1)) {
2794 INTERESTING(
lDebug ?
"MPL/NPL-ref#1" : cp);
2797 else if (!lmem[_mMPL] &&
INFILE(_LT_IDPLref)) {
2798 if (
INFILE(_TITLE_IDPL_V10)) {
2799 INTERESTING(
lDebug ?
"IDPL-v1(ref)" :
"IDPL-1.0");
2802 INTERESTING(
lDebug ?
"IDPL(ref)" :
"IDPL");
2806 else if (!lmem[_mMPL] && !lmem[_mLIBRE] && !lmem[_fREAL] &&
2807 !
LVAL(_TEXT_GNU_LIC_INFO) &&
INFILE(_LT_MPLref2)) {
2809 INTERESTING(
lDebug ?
"MPL/NPL-ref#2" : cp);
2812 else if (!lmem[_mMPL] && !lmem[_mLIBRE] && !lmem[_fREAL] &&
2813 !
LVAL(_TEXT_GNU_LIC_INFO) &&
INFILE(_TITLE_MOZNET_PL)) {
2815 INTERESTING(
lDebug ?
"MPL/NPL#4" : cp);
2818 else if (!lmem[_mMPL] &&
INFILE(_TITLE_NETSCAPE_EULA)) {
2819 INTERESTING(
"NPL-EULA");
2822 else if (
INFILE(_LT_NPL_2)) {
2823 INTERESTING(
lDebug ?
"NPL(#1)" :
"NPL");
2826 else if (
INFILE(_TITLE_OPENPL)) {
2827 INTERESTING(
lDebug ?
"OPL(title)" :
"OPL-style");
2833 if (
INFILE(_LT_MSCORP_SSLref)) {
2834 INTERESTING(
lDebug ?
"MS-SSL(ref)" :
"MS-SSL");
2837 if (
INFILE(_LT_MSCORP_PL)) {
2838 int ms_l =
INFILE(_LT_MSCORP_LIMITED);
2839 int ms_r =
INFILE(_LT_MSCORP_RL);
2841 INTERESTING(
"MS-LRL");
2844 INTERESTING(
lDebug ?
"MS-RL(#1)" :
"MS-RL");
2847 INTERESTING(
"MS-LPL");
2850 INTERESTING(
lDebug ?
"MS-PL(#1)" :
"MS-PL");
2853 else if (
INFILE(_LT_MSCORP_LIMITEDref1)) {
2854 INTERESTING(
"MS-LPL");
2858 if (
INFILE(_TEXT_MICROSOFT)) {
2859 if (
INFILE(_LT_MSCORP_INDEMNIFY)) {
2860 INTERESTING(
"MS-indemnity");
2863 else if (
INFILE(_LT_MSCORP_IP_1)) {
2864 INTERESTING(
lDebug ?
"MS-IP(1)" :
"MS-IP");
2867 else if (
INFILE(_LT_MSCORP_IP_2)) {
2868 INTERESTING(
lDebug ?
"MS-IP(2)" :
"MS-IP");
2871 else if (
INFILE(_LT_MSCORP_PLref1)) {
2872 INTERESTING(
lDebug ?
"MS-PL(ref1)" :
"MS-PL");
2875 else if (
INFILE(_LT_MSCORP_PLref2)) {
2876 INTERESTING(
lDebug ?
"MS-PL(ref2)" :
"MS-PL");
2879 else if (
INFILE(_LT_MSCORP_PLref3)) {
2880 INTERESTING(
lDebug ?
"MS-PL(ref3)" :
"MS-PL");
2883 else if (
INFILE(_LT_MSCORP_RLref)) {
2884 INTERESTING(
lDebug ?
"MS-RL(ref)" :
"MS-RL");
2887 else if (
INFILE(_LT_MSCORP_REFLIC)) {
2891 else if (
INFILE(_LT_MSCORP_EULA_1) ||
2892 INFILE(_TITLE_MSCORP_EULA)) {
2893 INTERESTING(
lDebug ?
"MS-EULA(1)" :
"MS-EULA");
2896 else if (
INFILE(_LT_MSCORP_EULA_2)) {
2897 INTERESTING(
lDebug ?
"MS-EULA(2)" :
"MS-EULA");
2900 else if (
INFILE(_LT_MSCORP_EULA_3)) {
2901 INTERESTING(
lDebug ?
"MS-EULA(3)" :
"MS-EULA");
2904 else if (
INFILE(_LT_MSCORP_EULA_4)) {
2905 INTERESTING(
lDebug ?
"MS-EULA(4)" :
"MS-EULA");
2908 else if (
INFILE(_LT_MSCORP_EULA_5)) {
2909 INTERESTING(
lDebug ?
"MS-EULA(5)" :
"MS-EULA");
2912 else if (
INFILE(_LT_MSCORP_EULA_6)) {
2913 INTERESTING(
lDebug ?
"MS-EULA(6)" :
"MS-EULA");
2916 else if (
INFILE(_LT_MSCORP_1)) {
2917 INTERESTING(
lDebug ?
"MS(1)" :
"Microsoft");
2920 else if (
INFILE(_LT_MSCORP_2)) {
2921 INTERESTING(
lDebug ?
"MS(2)" :
"Microsoft");
2924 else if (
INFILE(_LT_MSCORP_3)) {
2925 INTERESTING(
lDebug ?
"MS(3)" :
"Microsoft");
2928 else if (
INFILE(_LT_MSCORP_4)) {
2929 INTERESTING(
lDebug ?
"MS(4)" :
"Microsoft");
2932 else if (
INFILE(_LT_MSCORP_5)) {
2933 INTERESTING(
lDebug ?
"MS(5)" :
"Microsoft");
2936 else if (
INFILE(_LT_MSCORPref1)) {
2937 INTERESTING(
"Microsoft");
2946 INTERESTING(
"SCO.commercial");
2952 if (
INFILE(_LT_ZONEALARM) &&
INFILE(_TITLE_ZONEALARM_EULA)) {
2953 INTERESTING(
"ZoneAlarm-EULA");
2959 if (
HASTEXT(_TEXT_XIMIAN, 0)) {
2960 if (
INFILE(_CR_XIMIAN)) {
2961 if (
INFILE(_LT_XIMIAN)) {
2962 if (
INFILE(_TITLE_XIMIANLOGO10)) {
2963 INTERESTING(
"Ximian-1.0");
2965 else if (
INFILE(_TITLE_XIMIANLOGO)) {
2966 INTERESTING(
"Ximian");
2975 if (
HASTEXT(_TEXT_XEROX, 0)) {
2978 INTERESTING(
"Xerox");
2981 INTERESTING(
"Xerox-style");
2990 INTERESTING(
"Artifex");
2997 INTERESTING(
"AGE-Logic");
3003 if (
INFILE(_LT_OPENSSLref1) ||
INFILE(_LT_OPENSSLref2) ||
3006 INFILE(_LT_OPENSSLref8) ) {
3007 INTERESTING(
lDebug ?
"OpenSSL(ref)" :
"OpenSSL");
3009 else if (
INFILE(_SPDX_OpenSSL) ||
INFILE(_URL_OPENSSL)) {
3010 INTERESTING(
lDebug ?
"OpenSSL(phr)" :
"OpenSSL");
3016 if (
INFILE(_LT_COMBINED_OPENSSL_SSLEAY)) {
3017 INTERESTING(
"OpenSSL");
3018 INTERESTING(
"SSLeay");
3027 INTERESTING(
"Ruby");
3030 else if (
INFILE(_LT_RUBYref1)) {
3031 INTERESTING(
lDebug ?
"Ruby(ref1)" :
"Ruby");
3033 else if (
INFILE(_LT_RUBYref2)) {
3034 INTERESTING(
lDebug ?
"Ruby(ref2)" :
"Ruby");
3036 else if (
INFILE(_LT_RUBYref3)) {
3037 INTERESTING(
lDebug ?
"Ruby(ref3)" :
"Ruby");
3039 else if (
INFILE(_LT_RUBYref4)) {
3040 INTERESTING(
lDebug ?
"Ruby(ref4)" :
"Ruby");
3042 else if (
INFILE(_LT_RUBYref5)) {
3043 INTERESTING(
lDebug ?
"Ruby(ref5)" :
"Ruby");
3045 else if (
INFILE(_LT_RUBYref6)) {
3046 INTERESTING(
lDebug ?
"Ruby(ref6)" :
"Ruby");
3053 if (
INFILE(_LT_EGENIX_COM)) {
3054 INTERESTING(
"eGenix");
3056 else if (
INFILE(_LT_PYTHON_4)) {
3057 INTERESTING(
"Python");
3060 else if (!lmem[_mPYTHON] && lmem[_mPYTH_TEXT]) {
3062 if (
INFILE(_LT_CNRI_PYTHON_GPL)) {
3063 INTERESTING(
"CNRI-Python-GPL-Compatible");
3066 else if (
INFILE(_CR_PYTHON) ||
INFILE(_TITLE_PYTHON)) {
3068 INTERESTING(
lDebug ?
"Python(1)" : cp);
3070 else if (
INFILE(_LT_CNRI_PYTHON_1)) {
3071 INTERESTING(
"CNRI-Python");
3073 else if (
INFILE(_LT_CNRI_JYTHON)) {
3074 INTERESTING(
"CNRI-Jython");
3077 INTERESTING(
"Python-style");
3081 else if (
INFILE(_SPDX_CNRI_Python_GPL_Compatible)) {
3082 INTERESTING(
"CNRI-Python-GPL-Compatible");
3084 else if (
INFILE(_SPDX_CNRI_Python)) {
3085 INTERESTING(
"CNRI-Python");
3087 else if (
INFILE(_LT_CNRI_PYTHON_2)) {
3088 INTERESTING(
"CNRI-Python");
3090 else if (
INFILE(_LT_PYTHON_3)) {
3092 INTERESTING(
lDebug ?
"Python(4)" : cp);
3095 else if (
INFILE(_LT_PYTHONSTYLEref)) {
3097 INTERESTING(
lDebug ?
"Python(ref1)" :
"Python-style");
3100 else if (!lmem[_mLIBRE] && (
INFILE(_LT_PYTHONref1) ||
3101 INFILE(_LT_PYTHONref2))) {
3103 INTERESTING(
lDebug ?
"Python(ref2)" : cp);
3106 else if (!lmem[_mLIBRE] && !lmem[_fREAL] &&
3107 !
LVAL(_TEXT_GNU_LIC_INFO) &&
INFILE(_LT_PYTHONref3)) {
3109 INTERESTING(
lDebug ?
"Python(ref3)" : cp);
3112 else if (!lmem[_mPYTHON] &&
URL_INFILE(_URL_PYTHON)) {
3114 INTERESTING(
lDebug ?
"Python(url)" : cp);
3117 else if (!lmem[_mPYTHON] &&
INFILE(_LT_PYTHON22ref)) {
3118 INTERESTING(
lDebug ?
"Python(22ref)" :
"Python-2.2");
3127 INTERESTING(
lDebug ?
"Intel(8)" :
"Intel");
3129 else if (
INFILE(_LT_INTEL_6)) {
3130 INTERESTING(
lDebug ?
"Intel(9)" :
"Intel-other");
3132 else if (
INFILE(_LT_INTEL_7)) {
3133 INTERESTING(
lDebug ?
"Intel(10)" :
"Intel-other");
3135 else if (
INFILE(_LT_INTEL_WLAN)) {
3136 INTERESTING(
"Intel-WLAN");
3138 else if (
INFILE(_LT_INTEL_ACPI)) {
3139 INTERESTING(
"Intel-ACPI");
3141 else if (
INFILE(_SPDX_Intel_ACPI)) {
3142 INTERESTING(
"Intel-ACPI");
3144 else if (!lmem[_fREAL] &&
INFILE(_SPDX_Intel)) {
3145 INTERESTING(
"Intel");
3147 else if (
HASTEXT(_TEXT_INTELCORP, 0)) {
3148 if (
INFILE(_LT_INTEL_1)) {
3149 if (
INFILE(_LT_INTEL_FW)) {
3150 INTERESTING(
lDebug ?
"Intel(2)" :
"Intel-only-FW");
3153 INTERESTING(
lDebug ?
"Intel(3)" :
"Intel");
3156 else if (
INFILE(_LT_INTEL_2)) {
3157 INTERESTING(
lDebug ?
"Intel(4)" :
"Intel");
3159 else if (
INFILE(_LT_INTEL_3)) {
3160 INTERESTING(
lDebug ?
"Intel(5)" :
"Intel");
3162 else if (
INFILE(_LT_INTEL_4)) {
3163 INTERESTING(
lDebug ?
"Intel(6)" :
"Intel");
3165 else if (
INFILE(_LT_INTEL_RESTRICT)) {
3166 INTERESTING(
"Intel.RESTRICTED");
3169 else if (
INFILE(_LT_INTEL_5)) {
3170 INTERESTING(
lDebug ?
"CPL(Intel)" :
"CPL");
3171 INTERESTING(
lDebug ?
"Intel(7)" :
"Intel");
3173 else if (
INFILE(_LT_INTEL_EULA)) {
3174 INTERESTING(
"Intel-EULA");
3180 if (
INFILE(_LT_BELLCORE)) {
3181 if (
INFILE(_CR_BELLCORE)) {
3182 INTERESTING(
"Bellcore");
3185 INTERESTING(
"Bellcore-style");
3193 INTERESTING(
"Purdue");
3201 if (!lmem[_fPURDUE] &&
INFILE(_LT_CISCO)) {
3203 INTERESTING(
"Cisco");
3206 if (
HASTEXT(_LT_PNG_ZLIB_CLAUSE_1, 0) &&
HASTEXT(_LT_PNG_ZLIB_CLAUSE_2, REG_EXTENDED) &&
HASTEXT(_LT_PNG_ZLIB_CLAUSE_3, 0)) {
3207 INTERESTING(
"Zlib-style");
3210 INTERESTING(
"Cisco-style");
3218 if (
INFILE(_LT_HP_DEC)) {
3220 INTERESTING(
lDebug ?
"HP(8)" :
"HP");
3222 else if (
INFILE(_CR_ADOBE)) {
3223 INTERESTING(
lDebug ?
"Adobe(8)" :
"Adobe");
3225 else if (
INFILE(_LT_GNUPLOT_1) &&
INFILE(_LT_GNUPLOT_2)) {
3226 INTERESTING(
"gnuplot");
3229 INTERESTING(
lDebug ?
"HP-DEC-style(1)" :
"HP-DEC-style");
3232 else if (
HASTEXT(_TEXT_HP, REG_EXTENDED)) {
3234 INTERESTING(
lDebug ?
"HP(2)" :
"HP");
3237 INTERESTING(
lDebug ?
"HP(3)" :
"hp-snmp-pp");
3239 else if (
INFILE(_LT_HP_4)) {
3240 INTERESTING(
lDebug ?
"HP(4)" :
"HP");
3242 else if (
INFILE(_LT_HP_5)) {
3243 INTERESTING(
lDebug ?
"HP(5)" :
"HP");
3245 else if (
INFILE(_LT_HP_6)) {
3246 INTERESTING(
lDebug ?
"HP(6)" :
"HP");
3248 else if (
INFILE(_LT_HP_7)) {
3249 INTERESTING(
lDebug ?
"HP(7)" :
"HP");
3251 else if (
INFILE(_LT_COMPAQ_1)) {
3252 INTERESTING(
lDebug ?
"Compaq(1)" :
"HP-Compaq");
3254 else if (
INFILE(_LT_HP_EULA1)) {
3255 INTERESTING(
lDebug ?
"HP-EULA(1)" :
"HP-EULA");
3257 else if (
INFILE(_LT_HP_EULA2)) {
3258 INTERESTING(
lDebug ?
"HP-EULA(2)" :
"HP-EULA");
3260 else if (
INFILE(_LT_HP_EULA3)) {
3261 INTERESTING(
lDebug ?
"HP-EULA(3)" :
"HP-EULA");
3263 else if (
INFILE(_LT_HP_EULA4)) {
3264 INTERESTING(
lDebug ?
"HP-EULA(4)" :
"HP-EULA");
3266 else if (
INFILE(_LT_COMPAQ_EULA)) {
3267 INTERESTING(
lDebug ?
"Compaq(EULA)" :
"HP-Compaq");
3269 else if (
INFILE(_LT_HP_PROPRIETARY_1)) {
3270 INTERESTING(
lDebug ?
"HP-prop(1)" :
"HP-Proprietary");
3272 else if (
INFILE(_LT_HP_PROPRIETARY_2)) {
3273 INTERESTING(
lDebug ?
"HP-prop(2)" :
"HP-Proprietary");
3275 else if (
INFILE(_LT_HP_PROPRIETARY_3)) {
3276 INTERESTING(
lDebug ?
"HP-prop(3)" :
"HP-Proprietary");
3278 else if (
INFILE(_LT_HP_IBM_1)) {
3279 INTERESTING(
lDebug ?
"HP+IBM(1)" :
"HP+IBM");
3281 else if (
INFILE(_LT_HP_IBM_2)) {
3282 INTERESTING(
lDebug ?
"HP+IBM(2)" :
"HP+IBM");
3284 else if (!lmem[_mHP] &&
INFILE(_CR_DEC) &&
INFILE(_LT_DEC_1)) {
3285 INTERESTING(
lDebug ?
"HP-DEC(3)" :
"HP-DEC");
3288 else if (!lmem[_mHP] &&
INFILE(_CR_DEC) &&
INFILE(_LT_DEC_2)) {
3289 INTERESTING(
lDebug ?
"HP-DEC(4)" :
"HP-DEC");
3293 INTERESTING(
lDebug ?
"HP-EDS(1)" :
"HP");
3296 INTERESTING(
lDebug ?
"HP-EDS(2)" :
"HP");
3299 else if (!lmem[_mHP] &&
INFILE(_LT_DEC_1)) {
3300 INTERESTING(
lDebug ?
"HP-DEC-style(2)" :
"HP-DEC-style");
3302 else if (!lmem[_mHP] &&
INFILE(_LT_DEC_2)) {
3303 INTERESTING(
lDebug ?
"HP-DEC-style(3)" :
"HP-DEC-style");
3305 else if (
INFILE(_LT_HP_4)) {
3306 INTERESTING(
lDebug ?
"HP-style(1)" :
"HP-style");
3308 else if (
INFILE(_LT_COMPAQ_1)) {
3309 INTERESTING(
lDebug ?
"HP-style(2)" :
"HP-style");
3311 else if (
INFILE(_LT_EDS_1)) {
3312 INTERESTING(
lDebug ?
"HP-EDS(1#2)" :
"HP");
3314 else if (
INFILE(_LT_EDS_2)) {
3315 INTERESTING(
lDebug ?
"HP-EDS(2#2)" :
"HP");
3321 if (!lmem[_mSUN] && (
INFILE(_CR_SUN) ||
INFILE(_TEXT_MICROSYSTEMS))) {
3322 if (
INFILE(_LT_SUN_PROPRIETARY) ||
INFILE(_LT_SUN_PROPRIETARY_2) ||
INFILE(_LT_SUN_PROPRIETARY_3)) {
3323 INTERESTING(
lDebug ?
"Sun(Prop)" :
"Sun-Proprietary");
3326 else if (
INFILE(_LT_SUN_RPC)) {
3327 INTERESTING(
"Sun-RPC");
3330 else if (
INFILE(_LT_SUN_1)) {
3331 if (
INFILE(_LT_SUN_FREE)) {
3332 INTERESTING(
lDebug ?
"Sun(Freeware)" :
"Freeware");
3335 INTERESTING(
lDebug ?
"Sun(3)" :
"Sun");
3339 else if (
INFILE(_LT_SUN_2)) {
3340 INTERESTING(
lDebug ?
"Sun(4)" :
"Sun-Proprietary");
3343 else if (
INFILE(_LT_SUN_3)) {
3344 INTERESTING(
lDebug ?
"Sun(5)" :
"Sun");
3347 else if (
INFILE(_LT_SUN_4)) {
3348 INTERESTING(
lDebug ?
"Sun(6)" :
"Sun");
3351 else if (
INFILE(_LT_SUN_5)) {
3352 INTERESTING(
lDebug ?
"Sun(7)" :
"Freeware");
3355 else if (
INFILE(_LT_SUN_6)) {
3356 INTERESTING(
lDebug ?
"Sun(8)" :
"BSD-style");
3359 else if (
INFILE(_LT_SUN_NC)) {
3360 INTERESTING(
"Sun.Non-commercial");
3363 else if (
INFILE(_LT_SUNrestrict)) {
3364 INTERESTING(
"Sun.RESTRICTED");
3367 else if (
INFILE(_LT_SUN_BCLA_1) &&
INFILE(_TITLE_SUN_BCLA)) {
3368 INTERESTING(
lDebug ?
"BCLA(1)" :
"Sun-BCLA");
3371 else if (
INFILE(_LT_SUN_BCLA_2)) {
3372 INTERESTING(
lDebug ?
"BCLA(2)" :
"Sun-BCLA");
3375 else if (
INFILE(_LT_SUN_BCLAref)) {
3376 INTERESTING(
lDebug ?
"BCLA(ref)" :
"Sun-BCLA");
3379 else if (
INFILE(_LT_SUN_ENTITLE)) {
3380 INTERESTING(
lDebug ?
"Sun(entitlement)" :
"Sun");
3383 else if (
INFILE(_LT_SUN_ANYagreement)) {
3384 INTERESTING(
"Sun-EULA");
3387 else if (
INFILE(_LT_SUN_JAVA)) {
3388 INTERESTING(
"Sun-Java");
3391 else if (
INFILE(_LT_SUN_IP)) {
3392 INTERESTING(
"Sun-IP");
3396 else if (
INFILE(_LT_SUN_SCA)) {
3397 INTERESTING(
"Sun-SCA");
3400 else if (
INFILE(_LT_SUN_SCSLref)) {
3401 if (
INFILE(_TITLE_SCSL_V23)) {
3402 INTERESTING(
"SCSL-2.3");
3404 else if (
INFILE(_TITLE_SCSL_V30)) {
3405 INTERESTING(
"SCSL-3.0");
3408 INTERESTING(
"SCSL");
3412 else if (
INFILE(_TITLE_SUN_SCSL_TSA) &&
3413 INFILE(_LT_SUN_SCSL_TSA)) {
3414 if (
INFILE(_TITLE_TSA_10)) {
3415 INTERESTING(
"SCSL-TSA-1.0");
3418 INTERESTING(
"SCSL-TSA");
3422 else if (
INFILE(_LT_SUN_SISSLref1)
3423 ||
INFILE(_LT_SUN_SISSLref2)) {
3425 INTERESTING(
lDebug ?
"SISSL(ref#1)" : cp);
3429 else if (!lmem[_fREAL] &&
INFILE(_LT_SUN_PLref)) {
3430 INTERESTING(
lDebug ?
"Sun-PL(ref)" :
"SPL");
3433 else if (!lmem[_mSUN] &&
URL_INFILE(_URL_SUN_BINARY_V150)) {
3434 INTERESTING(
"Sun-BCLA-1.5.0");
3437 else if (!lmem[_mSUN] &&
URL_INFILE(_URL_SUN_BINARY)) {
3438 INTERESTING(
lDebug ?
"BCLA(url)" :
"Sun-BCLA");
3441 else if (!lmem[_mSUN] &&
INFILE(_LT_SUN_GRAPHICS)) {
3442 INTERESTING(
lDebug ?
"Sun(8)" :
"Sun");
3445 else if (!lmem[_mSUN] &&
INFILE(_LT_SUN_GRAPHICS)) {
3446 INTERESTING(
lDebug ?
"Sun(9)" :
"Sun");
3449 else if ((!lmem[_mSUN] &&
INFILE(_LT_SUN_SISSLref1)) ||
3450 INFILE(_LT_SUN_SISSLref2)) {
3452 INTERESTING(
lDebug ?
"SISSL(ref#2)" : cp);
3455 else if (!lmem[_mSUN] &&
URL_INFILE(_URL_SISSL)) {
3457 INTERESTING(
lDebug ?
"SISSL(url)" : cp);
3461 if (
INFILE(_LT_SUN_PRO)) {
3462 INTERESTING(
lDebug ?
"SunPro" :
"Freeware");
3469 if (
INFILE(_LT_IBM_RECIP)) {
3470 INTERESTING(
"IBM-reciprocal");
3472 else if (
INFILE(_LT_IBM_4)) {
3473 INTERESTING(
lDebug ?
"IBM(4)" :
"IBM-dhcp");
3475 else if (
INFILE(_LT_IBM_1)) {
3476 INTERESTING(
lDebug ?
"IBM(1)" :
"MIT-style");
3478 else if (
INFILE(_LT_IBM_3)) {
3479 INTERESTING(
lDebug ?
"IBM(3)" :
"MIT-style");
3481 else if (
INFILE(_LT_IBM_2)) {
3482 INTERESTING(
lDebug ?
"IBM(2)" :
"IBM");
3484 else if (
INFILE(_LT_IBM_OWNER)) {
3485 INTERESTING(
lDebug ?
"IBM(4)" :
"IBM");
3487 else if (
INFILE(_LT_IBM_JIKES)) {
3488 INTERESTING(
"IBM-JCL");
3490 else if (
INFILE(_LT_IBM_COURIER)) {
3491 INTERESTING(
"IBM-Courier");
3493 else if (
INFILE(_LT_IBM_EULA)) {
3494 INTERESTING(
lDebug ?
"IBM-EULA(1)" :
"IBM-EULA");
3496 else if (
INFILE(_PHR_IBM_EULA)) {
3497 INTERESTING(
lDebug ?
"IBM-EULA(2)" :
"IBM-EULA");
3499 else if (
INFILE(_LT_IBM_PIBS)) {
3500 INTERESTING(
"IBM-pibs");
3502 else if (
INFILE(_LT_IBM_AS_IS)) {
3503 INTERESTING(
"IBM-as-is");
3512 INTERESTING(
lDebug ?
"Motorola(1)" :
"Motorola");
3514 else if (
INFILE(_LT_MOT_2)) {
3515 INTERESTING(
lDebug ?
"Motorola(2)" :
"Motorola");
3518 if (
HASTEXT(_TITLE_MOTOROLA_MOBILE, 0)) {
3519 INTERESTING(
"Motorola-Mobile-SLA");
3525 if (
INFILE(_LT_JAVA_WSDL4J)) {
3526 INTERESTING(
"Java-WSDL4J");
3528 else if (
INFILE(_LT_JAVA_WSDL_SCHEMA)) {
3529 INTERESTING(
"Java-WSDL-Schema");
3531 else if (
INFILE(_LT_JAVA_WSDL_POLICY)) {
3532 INTERESTING(
"Java-WSDL-Policy");
3534 else if (
INFILE(_LT_JAVA_WSDL_ENUM)) {
3535 INTERESTING(
"Java-WSDL-Spec");
3537 else if (
INFILE(_LT_MULTICORP_1)) {
3538 INTERESTING(
lDebug ?
"Java-Multi(1)" :
"Java-Multi-Corp");
3540 else if (
INFILE(_LT_MULTICORP_2)) {
3541 INTERESTING(
lDebug ?
"Java-Multi(2)" :
"Java-Multi-Corp");
3547 if (
INFILE(_LT_MIBBLE)) {
3548 if (
INFILE(_TITLE_MIBBLE_28)) {
3549 INTERESTING(
"Mibble-2.8");
3552 INTERESTING(
"Mibble");
3560 INTERESTING(
"Comtrol");
3567 INTERESTING(
"Trolltech");
3569 else if (
INFILE(_LT_QT_COMMref)) {
3570 INTERESTING(
"Qt.Commercial");
3572 else if (
INFILE(_LT_QT_PROPRIETARY) ||
INFILE(_TITLE_QT_PROPRIETARY)) {
3573 INTERESTING(
"Qt.Commercial");
3579 if (!lmem[_mMPL] && !lmem[_mSUN] &&
INFILE(_LT_SNIA_PL)) {
3580 if (
INFILE(_TITLE_SNIA_V11)) {
3581 INTERESTING(
"SNIA-1.1");
3583 else if (
INFILE(_TITLE_SNIA_V10)) {
3584 INTERESTING(
"SNIA-1.0");
3587 INTERESTING(
"SNIA");
3590 else if (
INFILE(_LT_SNIAref)) {
3591 if (
INFILE(_TITLE_SNIA_V11)) {
3592 INTERESTING(
lDebug ?
"SNIA-1.1(ref)" :
"SNIA-1.1");
3594 else if (
INFILE(_TITLE_SNIA_V10)) {
3595 INTERESTING(
lDebug ?
"SNIA-1.0(ref)" :
"SNIA-1.0");
3598 INTERESTING(
lDebug ?
"SNIA(ref)" :
"SNIA");
3602 INTERESTING(
lDebug ?
"SNIA-1.1(url)" :
"SNIA-1.1");
3605 INTERESTING(
lDebug ?
"SNIA(url)" :
"SNIA");
3611 if (
HASTEXT(_TEXT_BEASYS, 0)) {
3613 INTERESTING(
lDebug ?
"BEA(1)" :
"BEA");
3615 else if (
INFILE(_LT_BEA_2)) {
3616 INTERESTING(
lDebug ?
"BEA(2)" :
"BEA");
3623 if (
HASTEXT(_TEXT_ADOBE_FRAME, REG_EXTENDED)) {
3624 if (
INFILE(_LT_ADOBE_1)) {
3625 INTERESTING(
lDebug ?
"Adobe(1)" :
"Adobe");
3627 else if (!lmem[_mMIT] &&
INFILE(_LT_ADOBE_2)) {
3628 INTERESTING(
lDebug ?
"Adobe(2)" :
"Adobe");
3630 else if (
INFILE(_LT_ADOBE_3)) {
3631 INTERESTING(
lDebug ?
"Adobe(3)" :
"Adobe");
3633 else if (
INFILE(_LT_ADOBE_4)) {
3634 INTERESTING(
lDebug ?
"Adobe(4)" :
"Adobe-EULA");
3636 else if (
INFILE(_LT_ADOBE_5)) {
3637 INTERESTING(
lDebug ?
"Adobe(5)" :
"Adobe-EULA");
3639 else if (
INFILE(_LT_ADOBE_6)) {
3640 INTERESTING(
lDebug ?
"Adobe(6)" :
"Adobe-EULA");
3642 else if (
INFILE(_LT_ADOBE_7)) {
3643 INTERESTING(
lDebug ?
"Adobe(7)" :
"Adobe-EULA");
3645 else if (
INFILE(_LT_FRAME)) {
3646 INTERESTING(
lDebug ?
"Adobe(Frame)" :
"Adobe");
3648 else if (
INFILE(_LT_ADOBE_SRC) ||
INFILE(_TITLE_ADOBE_SRC)) {
3649 INTERESTING(
lDebug ?
"Adobe(src)" :
"Adobe-2006");
3651 else if (
INFILE(_LT_ADOBE_DATA)) {
3652 INTERESTING(
lDebug ?
"Adobe(data)" :
"Adobe");
3654 else if (
INFILE(_LT_ADOBE_EULA)) {
3655 INTERESTING(
"Adobe-EULA");
3657 else if (
INFILE(_LT_ADOBE_AFM)) {
3658 INTERESTING(
"APAFML");
3660 else if (
HASTEXT(_TITLE_ADOBE_DNG, 0)) {
3661 INTERESTING(
"Adobe-DNG");
3663 else if (
INFILE(_LT_ADOBE_AFMPARSE_1) &&
INFILE(_LT_ADOBE_AFMPARSE_2)) {
3664 INTERESTING(
"Afmparse");
3666 else if (
INFILE(_LT_ADOBE_OTHER)) {
3667 INTERESTING(
lDebug ?
"Adobe(other)" :
"Adobe");
3669 else if (
INFILE(_LT_ADOBE_SUB)) {
3670 INTERESTING(
lDebug ?
"Adobe(sub)" :
"Adobe");
3677 if (
INFILE(_LT_DOCBOOK)) {
3678 if (
HASTEXT(_TEXT_DOCBOOK, 0)) {
3679 INTERESTING(
"DOCBOOK");
3681 else if (
HASTEXT(_TEXT_METADATA, 0)) {
3685 INTERESTING(
"DOCBOOK-style");
3693 INTERESTING(
"MPEG3-decoder");
3699 if (
INFILE(_LT_GOOGLE_1)) {
3700 INTERESTING(
lDebug ?
"Google(1)" :
"Google");
3702 else if (
INFILE(_LT_GOOGLE_2)) {
3703 INTERESTING(
lDebug ?
"Google(2)" :
"Google");
3709 if (
INFILE(_LT_MANDRIVA)) {
3710 INTERESTING(
"Mandriva");
3716 if (
INFILE(_LT_IRONDOC)) {
3717 INTERESTING(
"IronDoc");
3723 if (
INFILE(_LT_QUARTERDECK) &&
INFILE(_CR_QUARTERDECK)) {
3724 INTERESTING(
"QuarterDeck");
3734 INTERESTING(
"EBT-style");
3742 INTERESTING(
"SGML");
3748 if (
HASTEXT(_TEXT_LATEX, REG_EXTENDED)) {
3752 INTERESTING(
lDebug ?
"LPPL(1)" : cp);
3754 else if (
INFILE(_LT_LATEX)) {
3756 INTERESTING(
lDebug ?
"LPPL(2)" : cp);
3758 else if (
INFILE(_LT_LATEXPLref1) ||
INFILE(_LT_LATEXPLref2) ||
3759 INFILE(_LT_LATEXPLref3)) {
3761 INTERESTING(
lDebug ?
"LPPL(3)" : cp);
3763 else if (
INFILE(_LT_LATEXref1)) {
3765 INTERESTING(
lDebug ?
"LPPL(4)" : cp);
3767 else if (
INFILE(_LT_LATEXref2)) {
3769 INTERESTING(
lDebug ?
"LPPL(5)" : cp);
3771 else if (
INFILE(_LT_LATEXref3)) {
3773 INTERESTING(
lDebug ?
"LPPL(6)" : cp);
3775 else if (
INFILE(_LT_LATEXref4)) {
3777 INTERESTING(
lDebug ?
"LPPL(7)" : cp);
3779 else if (
INFILE(_LT_LATEXref5)) {
3781 INTERESTING(
lDebug ?
"LPPL(8)" : cp);
3785 INTERESTING(
lDebug ?
"LPPL(url)" : cp);
3793 if (
INFILE(_TITLE_QPL10_1) ||
INFILE(_TITLE_QPL10_2)) {
3794 INTERESTING(
"QPL-1.0");
3797 else if (
INFILE(_TITLE_QPL)) {
3806 if (
HASTEXT(_TEXT_GHOSTSCRIPT, 0)) {
3808 if (
INFILE(_TITLE_GS11)) {
3809 INTERESTING(
"Ghostscript-GPL-1.1");
3812 INTERESTING(
lDebug ?
"GS-GPL(1)" :
"Ghostscript-GPL");
3815 else if (
INFILE(_CR_ALADDIN) ||
INFILE(_CR_ARTOFCODE)) {
3817 INTERESTING(
"GNU-Ghostscript");
3820 INTERESTING(
lDebug ?
"GS-GPL(2)" :
"Ghostscript-GPL");
3822 else if (
INFILE(_LT_FREEPL) ||
INFILE(_LT_FREEPLref)) {
3823 INTERESTING(
lDebug ?
"Aladdin(Closed-Source!)" :
"Aladdin");
3824 if (
INFILE(_PHR_NOT_OPEN)) {
3825 INTERESTING(
lDebug ?
"Aladdin(Closed-Source!)" :
"Aladdin");
3826 lmem[_mALADDIN] = 1;
3829 INTERESTING(
lDebug ?
"Aladdin-Ghostscript" :
"Aladdin");
3832 else if (
INFILE(_LT_ALADDIN_RESTRICT)) {
3833 INTERESTING(
lDebug ?
"Aladdin(RESTRICTED)":
"Aladdin");
3836 else if (
INFILE(_LT_AFPL)) {
3837 INTERESTING(
"AFPL-Ghostscript");
3840 else if (
INFILE(_LT_FREEPLref_1)) {
3841 INTERESTING(
"Aladdin");
3843 else if (
INFILE(_LT_FREEPL) ||
INFILE(_LT_FREEPLref)) {
3844 INTERESTING(
"Free-PL");
3850 INTERESTING(
"IPTC");
3852 else if (
INFILE(_LT_IPTC_1) && mCR_IPTC()) {
3853 INTERESTING(
"IPTC");
3858 else if (
INFILE(_TITLE_MACROMEDIA_EULA)) {
3859 INTERESTING(
"MacroMedia-RPSL");
3864 else if (
INFILE(_LT_ONTOPIA) &&
INFILE(_TITLE_ONTOPIA)) {
3865 INTERESTING(
"Ontopia");
3871 if (
INFILE(_LT_ASCENDER_EULA) &&
INFILE(_TITLE_ASCENDER_EULA)) {
3872 INTERESTING(
"Ascender-EULA");
3879 INTERESTING(
"JPNIC");
3885 if (
INFILE(_LT_ADAPTEC_OBJ)) {
3886 INTERESTING(
"Adaptec.RESTRICTED");
3888 else if (
INFILE(_CR_ADAPTEC) &&
INFILE(_LT_ADAPTEC_GPL)) {
3889 INTERESTING(
"Adaptec-GPL");
3895 if (
INFILE(_LT_PERL_1)) {
3896 INTERESTING(
lDebug ?
"Artistic(Perl#1)" :
"Artistic-1.0");
3898 INTERESTING(
"Dual-license");
3899 INTERESTING(
lDebug ?
"GPL(Perl#1)" :
"GPL-1.0+");
3902 else if (
INFILE(_LT_PERL_2)) {
3903 INTERESTING(
lDebug ?
"Artistic(Perl#2)" :
"Artistic-1.0");
3905 INTERESTING(
"Dual-license");
3906 INTERESTING(
lDebug ?
"GPL(Perl#2)" :
"GPL-1.0+");
3909 else if (
INFILE(_LT_PERL_3)) {
3910 if (!lmem[_fOPENLDAP] && !TRYGROUP(
famOPENLDAP)) {
3911 INTERESTING(
lDebug ?
"Artistic(Perl#3)" :
"Artistic-1.0");
3918 else if (
INFILE(_LT_PERLref1)) {
3919 INTERESTING(
lDebug ?
"Artistic(Perl-ref1)" :
"Artistic-1.0");
3921 INTERESTING(
"Dual-license");
3922 INTERESTING(
lDebug ?
"GPL(Perl-ref1)" :
"GPL-1.0+");
3926 INTERESTING(
lDebug ?
"Artistic(Perl-ref2)" :
"Artistic-1.0");
3928 INTERESTING(
"Dual-license");
3929 INTERESTING(
lDebug ?
"GPL(Perl-ref2)" :
"GPL-1.0+");
3932 else if (
INFILE(_LT_PERLref3)) {
3933 INTERESTING(
lDebug ?
"Artistic(Perl-ref3)" :
"Artistic-1.0");
3935 INTERESTING(
"Dual-license");
3936 INTERESTING(
lDebug ?
"GPL(Perl-ref3)" :
"GPL-1.0+");
3939 else if (
INFILE(_LT_PERLref4)) {
3940 INTERESTING(
lDebug ?
"Artistic(Perl-ref4)" :
"Artistic-1.0");
3942 INTERESTING(
"Dual-license");
3943 INTERESTING(
lDebug ?
"GPL(Perl-ref4)" :
"GPL-1.0+");
3946 else if (
INFILE(_LT_PERLref5)) {
3947 INTERESTING(
lDebug ?
"Artistic(Perl-ref5)" :
"Artistic-1.0");
3949 INTERESTING(
"Dual-license");
3950 INTERESTING(
lDebug ?
"GPL(Perl-ref5)" :
"GPL-1.0+");
3953 else if (
INFILE(_TITLE_CLARTISTIC)) {
3954 INTERESTING(
"ClArtistic");
3957 else if (!lmem[_fREAL] && !
LVAL(_TEXT_GNU_LIC_INFO) &&
3962 if (
INFILE(_TITLE_OGTSL)) {
3963 INTERESTING(
"OGTSL");
3965 else if (!lmem[_mLIBRE] && !lmem[_fOPENLDAP] &&
3968 INTERESTING(
lDebug ?
"Artistic(v2.0#1)" :
"Artistic-2.0");
3970 else if (
INFILE(_TITLE_NBPL_V10)) {
3971 INTERESTING(
"NBPL-1.0");
3972 lmem[_fARTISTIC] = 1;
3974 else if(
HASTEXT(_PHR_ARTISTIC_PERL, 0)) {
3975 INTERESTING(
"Artistic-1.0-Perl");
3976 lmem[_fARTISTIC] = 1;
3978 else if (
HASTEXT(_PHR_ARTISTIC_CLAUSE8, 0))
3980 INTERESTING(
"Artistic-1.0-cl8");
3981 lmem[_fARTISTIC] = 1;
3984 INTERESTING(
lDebug ?
"Artistic(v1.0#other)" :
"Artistic-1.0");
3985 lmem[_fARTISTIC] = 1;
3990 INTERESTING(
lDebug ?
"Artistic(v2.0#2)" :
"Artistic-2.0");
3993 INTERESTING(
lDebug ?
"Artistic(deb)" :
"Artistic-1.0");
3996 INTERESTING(
lDebug ?
"Artistic(url)" :
"Artistic-1.0");
4002 if (
INFILE(_TITLE_LDPL20)) {
4003 INTERESTING(
"LDPL-2.0");
4005 else if (
INFILE(_TITLE_LDPL1A)) {
4006 INTERESTING(
"LDPL-1A");
4008 else if (
INFILE(_LT_LDPL)) {
4009 INTERESTING(
lDebug ?
"LDPL(1)" :
"LDPL");
4011 else if (
INFILE(_LT_LDPLref1)) {
4012 INTERESTING(
lDebug ?
"LDPL(ref1)" :
"LDPL");
4014 else if (
INFILE(_LT_LDPLref2)) {
4015 INTERESTING(
lDebug ?
"LDPL(ref2)" :
"LDPL");
4017 else if (
INFILE(_LT_LDPLref3)) {
4018 INTERESTING(
lDebug ?
"LDPL(ref3)" :
"LDPL");
4023 else if (
INFILE(_LT_SPI)) {
4024 if (
INFILE(_LT_MANPAGE)) {
4025 INTERESTING(
"GNU-Manpages");
4027 else if (!lmem[_fGPL]) {
4029 INTERESTING(
"Debian-SPI");
4032 INTERESTING(
"Debian-SPI-style");
4036 else if (
INFILE(_LT_GPDLref)) {
4037 INTERESTING(
lDebug ?
"GPDL(1)" :
"GPDL");
4039 else if (
INFILE(_TITLE_GPDL)) {
4040 INTERESTING(
lDebug ?
"GPDL(2)" :
"GPDL");
4042 else if (
INFILE(_LT_FREEBSD_DOC) &&
INFILE(_TITLE_FREEBSD_DOC)) {
4043 INTERESTING(
"FreeBSD-Doc");
4045 else if (
INFILE(_LT_LINUX_HOWTO)) {
4046 INTERESTING(
"Linux-HOWTO");
4048 else if (
INFILE(_LT_LINUXDOC)) {
4049 INTERESTING(
"LinuxDoc");
4051 else if (
INFILE(_LT_IEEE_DOC)) {
4052 INTERESTING(
"IEEE-Doc");
4059 if (
INFILE(_CR_UWASHINGTON)) {
4060 INTERESTING(
"U-Wash.Free-Fork");
4063 INTERESTING(
lDebug ?
"U-Wash-style(1)" :
"U-Wash-style");
4066 else if (
INFILE(_LT_UW2)) {
4067 if (
INFILE(_CR_UWASHINGTON)) {
4068 INTERESTING(
lDebug ?
"U-Wash(2)" :
"U-Washington");
4071 INTERESTING(
lDebug ?
"U-Wash-style(2)" :
"U-Wash-style");
4074 else if (
INFILE(_LT_UW3)) {
4075 if (
INFILE(_CR_UWASHINGTON)) {
4076 INTERESTING(
lDebug ?
"U-Wash(3)" :
"U-Washington");
4079 INTERESTING(
lDebug ?
"U-Wash-style(3)" :
"U-Wash-style");
4082 else if (
INFILE(_LT_UW4)) {
4083 if (
INFILE(_CR_UWASHINGTON)) {
4084 INTERESTING(
lDebug ?
"U-Wash(4)" :
"U-Washington");
4087 INTERESTING(
lDebug ?
"U-Wash-style(4)" :
"U-Wash-style");
4094 if (
INFILE(_LT_WU_FTPD)) {
4096 INTERESTING(
lDebug ?
"Wash-U(1)" :
"Wash-U-StLouis");
4099 INTERESTING(
"Wash-U-style");
4102 else if (
INFILE(_LT_WU_FTPDref)) {
4103 INTERESTING(
lDebug ?
"Wash-U(ref)" :
"Wash-U-StLouis");
4108 else if (
INFILE(_LT_DELAWARE)) {
4109 if (
INFILE(_CR_DELAWARE)) {
4110 INTERESTING(
"U-Del");
4113 INTERESTING(
"U-Del-style");
4120 if (
INFILE(_CR_PRINCETON)) {
4121 INTERESTING(
"Princeton");
4124 INTERESTING(
"Princeton-style");
4130 else if (
INFILE(_LT_UMICHIGAN_1)) {
4131 if (
INFILE(_CR_MICHIGAN)) {
4132 INTERESTING(
lDebug ?
"U-Mich(1)" :
"U-Michigan");
4135 INTERESTING(
lDebug ?
"U-Mich-style(1)" :
"U-Mich-style");
4138 else if (
INFILE(_LT_UMICHIGAN_2)) {
4139 if (
INFILE(_CR_MICHIGAN)) {
4140 INTERESTING(
lDebug ?
"U-Mich(2)" :
"U-Michigan");
4143 INTERESTING(
lDebug ?
"U-Mich-style(2)" :
"U-Mich-style");
4149 else if (
INFILE(_LT_USC_NC)) {
4151 INTERESTING(
"USC.Non-commercial");
4154 INTERESTING(
lDebug ?
"NonC(5)" :
"Non-commercial");
4157 else if (
INFILE(_LT_USC)) {
4162 INTERESTING(
"USC-style");
4169 INTERESTING(
"UCAR");
4173 INTERESTING(
"UCAR");
4176 INTERESTING(
"UCAR-style");
4182 else if (
INFILE(_LT_STANFORD)) {
4183 if (
INFILE(_CR_STANFORD)) {
4184 INTERESTING(
"Stanford");
4187 INTERESTING(
"Stanford-style");
4193 else if (
INFILE(_LT_CAMBRIDGE)) {
4195 INTERESTING(
"MSNTP");
4197 else if (
INFILE(_CR_CAMBRIDGE_1) ||
INFILE(_CR_CAMBRIDGE_2)) {
4198 INTERESTING(
"U-Cambridge");
4201 INTERESTING(
"U-Cambridge-style");
4207 else if (
INFILE(_CR_COLUMBIA) &&
INFILE(_LT_COLUMBIA)) {
4208 INTERESTING(
"U-Columbia");
4214 if (
INFILE(_CR_NOTREDAME)) {
4215 INTERESTING(
lDebug ?
"ND(1)" :
"NotreDame");
4218 INTERESTING(
lDebug ?
"ND-style(1)" :
"NotreDame-style");
4221 else if (
INFILE(_LT_ND_2)) {
4222 if (
INFILE(_CR_NOTREDAME)) {
4223 INTERESTING(
lDebug ?
"ND(2)" :
"NotreDame");
4226 INTERESTING(
lDebug ?
"ND-style(2)" :
"NotreDame-style");
4229 else if (
INFILE(_LT_ND_3)) {
4230 if (
INFILE(_CR_NOTREDAME)) {
4231 INTERESTING(
lDebug ?
"ND(3)" :
"NotreDame");
4234 INTERESTING(
lDebug ?
"ND-style(3)" :
"NotreDame-style");
4241 if (!lmem[_mMIT] &&
INFILE(_LT_BOOST_2)) {
4243 INTERESTING(
lDebug ?
"Boost(2)" :
"BSL-1.0");
4246 INTERESTING(
lDebug ?
"Boost-style(2)" :
"BSL-style");
4249 else if (
INFILE(_LT_BOOSTref1)) {
4250 if (
INFILE(_TITLE_BOOST10) ||
INFILE(_PHR_BOOST_V10) ||
4252 INTERESTING(
lDebug ?
"Boost1.0(ref)" :
"BSL-1.0");
4255 INTERESTING(
lDebug ?
"Boost(ref)" :
"BSL-1.0");
4258 else if (
INFILE(_LT_BOOST_GRAPH)) {
4259 INTERESTING(
lDebug ?
"Boost(graph)" :
"BSL-1.0");
4261 else if (
INFILE(_LT_BOOST_LAMBDA)) {
4262 INTERESTING(
lDebug ?
"Boost(lambda)" :
"BSL-1.0");
4265 INTERESTING(
lDebug ?
"Boost-1.0(ref)" :
"BSL-1.0");
4270 else if (
INFILE(_LT_SLEEPYCAT_NC)) {
4271 INTERESTING(
"Sleepycat.Non-commercial");
4285 INTERESTING(
"Vixie-license");
4291 if (
INFILE(_LT_YAHOO_1)) {
4292 if (
INFILE(_LT_YAHOO_BINARY)) {
4293 INTERESTING(
"Yahoo-EULA");
4299 if(
INFILE(_TITLE_YPL_V10)) {
4300 INTERESTING(
"YPL-1.0");
4302 else if(
INFILE(_TITLE_YPL_V11)) {
4303 INTERESTING(
"YPL-1.1");
4309 if (
INFILE(_LT_PUBLIC_USE)) {
4310 if (
INFILE(_TITLE_PUBUSE_V10)) {
4311 INTERESTING(
"Public-Use-1.0");
4314 INTERESTING(
"Public-Use");
4321 if (
INFILE(_TEXT_APPLE)) {
4322 if (
INFILE(_LT_MIT_12)) {
4323 INTERESTING(
lDebug ?
"Apple MIT License" :
"AML");
4325 else if (
INFILE(_LT_APPLE_1)) {
4326 INTERESTING(
lDebug ?
"Apple(1)" :
"Apple");
4328 else if (
INFILE(_LT_APPLE_2)) {
4329 INTERESTING(
lDebug ?
"Apple(2)" :
"Apple");
4331 else if (
INFILE(_LT_APPLE_3)) {
4332 INTERESTING(
lDebug ?
"Apple(3)" :
"Apple");
4334 else if (
INFILE(_LT_APPLE_4)) {
4335 INTERESTING(
lDebug ?
"Apple(4)" :
"Apple-EULA");
4337 else if (
INFILE(_LT_APPLE_FONTFORGE)) {
4338 INTERESTING(
"Apple.FontForge");
4340 else if (
INFILE(_LT_APPLE_SAMPLE)) {
4341 INTERESTING(
"Apple.Sample");
4343 else if (
INFILE(_LT_APSLref1) ||
INFILE(_LT_APSLref2) ||
4345 if (
INFILE(_TITLE_APSL20)) {
4346 INTERESTING(
"APSL-2.0");
4348 else if (
INFILE(_TITLE_Ferris)) {
4349 INTERESTING(
lDebug ?
"Ferris-1.2" :
"APSL-style");
4351 else if (
INFILE(_TITLE_APSL_style)) {
4352 INTERESTING(
"APSL-style");
4354 else if (
INFILE(_TITLE_APSL12)) {
4355 INTERESTING(
"APSL-1.2");
4357 else if (
INFILE(_TITLE_APSL11)) {
4358 INTERESTING(
"APSL-1.1");
4360 else if (
INFILE(_TITLE_APSL10)) {
4361 INTERESTING(
"APSL-1.0");
4364 INTERESTING(
"APSL");
4367 else if (
INFILE(_LT_ACDL)) {
4368 INTERESTING(
"ACDL");
4370 else if (
INFILE(_TITLE_APPLE_SLA)) {
4371 INTERESTING(
lDebug ?
"Apple(SLA)" :
"Apple-EULA");
4374 INTERESTING(
lDebug ?
"APSL(url)" :
"APSL");
4377 INTERESTING(
lDebug ?
"ACDL(url)" :
"ACDL");
4384 if (
INFILE(_LT_REDLAND)) {
4385 INTERESTING(
"Redland");
4391 if (
INFILE(_LT_RH_PKGS)) {
4392 if (
INFILE(_LT_RH_NONCOMMERCIAL)) {
4393 INTERESTING(
lDebug ?
"RH(NC)" :
"RedHat.Non-commercial");
4396 else if (
INFILE(_LT_RH_FEDORA)) {
4397 INTERESTING(
lDebug ?
"Fedora(1)" :
"Fedora");
4401 else if (
INFILE(_LT_RH_REDHAT)) {
4402 INTERESTING(
lDebug ?
"RH(2)" :
"RedHat");
4405 else if (
INFILE(_LT_RH_SPECIFIC)) {
4406 INTERESTING(
lDebug ?
"RH(4)" :
"RedHat-specific");
4409 else if (
INFILE(_LT_FEDORA)) {
4410 INTERESTING(
lDebug ?
"Fedora(2)" :
"Fedora");
4413 else if (
INFILE(_LT_FEDORA_CLA) ||
INFILE(_TITLE_FEDORA_CLA)) {
4414 INTERESTING(
"FedoraCLA");
4417 else if (
INFILE(_CR_REDHAT)) {
4419 INTERESTING(
lDebug ?
"RH(1)" :
"RedHat");
4422 else if (
INFILE(_LT_RH_EULA)) {
4423 INTERESTING(
"RedHat-EULA");
4432 INTERESTING(
"YaST.SuSE");
4434 else if (
INFILE(_TITLE_NOVELL_EULA)) {
4435 INTERESTING(
"Novell-EULA");
4437 else if (
INFILE(_TITLE_UL_EULA)) {
4438 INTERESTING(
"UnitedLinux-EULA");
4440 else if (
INFILE(_LT_NOVELL)) {
4441 INTERESTING(
"Novell");
4444 else if (
INFILE(_LT_NOVELL_IP_1)) {
4445 INTERESTING(
lDebug ?
"Novell-IP(1)" :
"Novell-IP");
4448 else if (
INFILE(_LT_NOVELL_IP_2)) {
4449 INTERESTING(
lDebug ?
"Novell-IP(2)" :
"Novell-IP");
4457 INTERESTING(
"Epson-PL");
4459 else if (
INFILE(_LT_EPSON_EULA) &&
INFILE(_TITLE_EPSON_EULA)) {
4460 INTERESTING(
"Epson-EULA");
4466 if (
INFILE(_LT_OPENPUBL_1) ||
INFILE(_LT_OPENPUBL_2)) {
4467 if (
INFILE(_TITLE_OPENPUBL04)) {
4468 INTERESTING(
"Open-PL-0.4");
4471 INTERESTING(
"Open-PL-1.0");
4473 else if (
INFILE(_TITLE_OPENPUBL)) {
4474 INTERESTING(
"Open-PL");
4477 INTERESTING(
"Open-PL-style");
4480 else if (
INFILE(_LT_OPENPUBLref)) {
4481 INTERESTING(
lDebug ?
"Open-PL(ref)" :
"Open-PL");
4487 if (
INFILE(_LT_FREEART_V10)) {
4488 INTERESTING(
"FAL-1.0");
4490 else if (
INFILE(_LT_FREEART_V13)) {
4491 INTERESTING(
"FAL-1.3");
4499 INTERESTING(
lDebug ?
"RSA(1)" :
"RSA-Security");
4501 else if (
INFILE(_LT_RSA_2)) {
4502 INTERESTING(
lDebug ?
"RSA(2)" :
"RSA-Security");
4505 else if (
INFILE(_LT_RSA_3)) {
4506 INTERESTING(
lDebug ?
"RSA(3)" :
"RSA-Security");
4508 else if (
INFILE(_LT_RSA_4)) {
4509 INTERESTING(
lDebug ?
"RSA(4)" :
"RSA-Security");
4511 else if (
INFILE(_LT_RSA_5)) {
4512 INTERESTING(
lDebug ?
"RSA(5)" :
"RSA-DNS");
4514 else if (
INFILE (_LT_RSA_CRYPTOKI_1) &&
INFILE(_LT_RSA_CRYPTOKI_2)){
4515 INTERESTING(
"RSA-Cryptoki");
4524 INTERESTING(
"AGFA.RESTRICTED");
4526 else if (
INFILE(_LT_AGFA_EULA)) {
4527 INTERESTING(
"AGFA-EULA");
4532 if (
INFILE(_LT_BH_FONT)) {
4534 INTERESTING(
"BH-Font");
4537 INTERESTING(
"BH-Font-style");
4544 if (
INFILE(_LT_BIZNET)) {
4545 if (
INFILE(_CR_BIZNET)) {
4546 INTERESTING(
"BIZNET");
4549 INTERESTING(
"BIZNET-style");
4556 if (
INFILE(_LT_BITSTREAM_1)) {
4557 INTERESTING(
lDebug ?
"Bitstream(2)" :
"Bitstream");
4559 else if (
INFILE(_LT_BITSTREAM_2)) {
4560 INTERESTING(
lDebug ?
"Bitstream(3)" :
"Bitstream");
4566 if (
INFILE(_LT_LARABIE_EULA) &&
INFILE(_TITLE_LARABIE_EULA)) {
4567 INTERESTING(
"Larabie-EULA");
4573 if (
INFILE(_LT_BAEKMUK_1)) {
4574 INTERESTING(
"Baekmuk-Font");
4576 else if (
INFILE(_LT_BAEKMUK_2)) {
4577 INTERESTING(
"Baekmuk.Hwan");
4583 if (
INFILE(_LT_IPA_EULA)) {
4584 INTERESTING(
"IPA-Font-EULA");
4590 if (
INFILE(_LT_ARPHIC)) {
4591 if (
INFILE(_CR_ARPHIC)) {
4592 INTERESTING(
"Arphic-Font-PL");
4595 INTERESTING(
"Arphic-style");
4605 INTERESTING(
lDebug ?
"ATT(1)" :
"ATT");
4608 INTERESTING(
lDebug ?
"ATT-style(1)" :
"ATT-style");
4611 else if (
INFILE(_LT_ATT_2)) {
4612 if (!lmem[_fBSD] &&
INFILE(_CR_BSDCAL)) {
4613 INTERESTING(
lDebug ?
"BSD(14)" :
"BSD");
4617 INTERESTING(
lDebug ?
"ATT(2)" :
"ATT");
4620 INTERESTING(
lDebug ?
"ATT-style(2)" :
"ATT-style");
4623 else if (
INFILE(_LT_ATT_SRC_1) ||
INFILE(_LT_ATT_SRC_2)) {
4624 if (
INFILE(_TITLE_ATT_SRC_12D)) {
4625 INTERESTING(
"ATT-Source-1.2d");
4627 else if (
INFILE(_TITLE_ATT_SRC_10)) {
4628 INTERESTING(
"ATT-Source-1.0");
4631 INTERESTING(
"ATT-Source");
4634 else if (
INFILE(_LT_ATT_NONCOMMERC1) ||
INFILE(_LT_ATT_NONCOMMERC2)) {
4635 INTERESTING(
"ATT.Non-commercial");
4641 if (
INFILE(_TITLE_SGI_V10)) {
4642 INTERESTING(
"SGI-B-1.0");
4644 else if (
INFILE(_TITLE_SGI_V11)) {
4645 INTERESTING(
"SGI-B-1.1");
4647 else if (
INFILE(_TITLE_SGI_V20)) {
4648 INTERESTING(
"SGI-B-2.0");
4650 else if (
INFILE(_LT_SGI_1)) {
4651 if (
HASTEXT(_PHR_SGI_LIBTIFF, REG_EXTENDED)) {
4652 INTERESTING(
"libtiff");
4654 else if (
HASTEXT(_PHR_LIBTIFF_STYLE, REG_EXTENDED)) {
4655 INTERESTING(
"libtiff-style");
4658 else if (
INFILE(_LT_SGI_2)) {
4659 if (
INFILE(_LT_SGI_V10)) {
4660 INTERESTING(
"SGI-B-1.0");
4662 else if (
INFILE(_LT_SGI_V11)) {
4663 INTERESTING(
"SGI-B-1.1");
4665 else if (
INFILE(_LT_SGI_V20)) {
4666 INTERESTING(
"SGI-B-2.0");
4672 else if (
INFILE(_LT_SGI_1)) {
4674 INTERESTING(
"SGI-style");
4677 else if (
INFILE(_LT_SGI_FREEW)) {
4678 INTERESTING(
"SGI-Freeware");
4680 else if (
INFILE(_LT_SGI_GLX)) {
4681 if (
INFILE(_TITLE_SGI_GLX_V10)) {
4682 INTERESTING(
lDebug ?
"SGI_GLX(1.0)" :
"SGI_GLX-1.0");
4685 INTERESTING(
"SGI_GLX");
4689 if (
INFILE(_TITLE_SGI_GLX_V10)) {
4690 INTERESTING(
lDebug ?
"SGI_GLX(10ref)" :
"SGI_GLX-1.0");
4693 INTERESTING(
lDebug ?
"SGI_GLX(ref)" :
"SGI_GLX");
4696 else if (
INFILE(_LT_SGI_PROPRIETARY) &&
INFILE(_CR_SGI)) {
4697 INTERESTING(
"SGI-Proprietary");
4704 if (
INFILE(_LT_GLIDE_3DFX)) {
4705 INTERESTING(
"Glide");
4707 else if (
INFILE(_LT_GLIDE_GPL)) {
4708 INTERESTING(
"3DFX-PL");
4714 else if (
INFILE(_LT_NVIDIA_EULA_3)) {
4715 INTERESTING(
lDebug ?
"Nvidia(1)" :
"Nvidia-EULA-a");
4718 INTERESTING(
lDebug ?
"Nvidia(2)" :
"Nvidia");
4720 else if (
INFILE(_LT_NVIDIA_EULA_2)) {
4721 INTERESTING(
lDebug ?
"Nvidia(3)" :
"Nvidia-EULA-b");
4723 else if (
INFILE(_LT_NVIDIA_EULA_1) ||
INFILE(_TITLE_NVIDIA)) {
4724 INTERESTING(
lDebug ?
"Nvidia(4)" :
"Nvidia-EULA-b");
4729 else if (
INFILE(_TITLE_ATI_EULA) &&
INFILE(_LT_ATI_EULA)) {
4730 INTERESTING(
"ATI-EULA");
4735 else if (
INFILE(_TITLE_AGERE_EULA) &&
INFILE(_LT_AGERE_EULA)) {
4736 INTERESTING(
"Agere-EULA");
4742 if (
INFILE(_TITLE_KDAB_EULA)) {
4743 if (
INFILE(_LT_KDAB_1)) {
4744 INTERESTING(
lDebug ?
"KDAB(1)" :
"KD-Tools-EULA");
4746 if (
INFILE(_LT_KDAB_2)) {
4747 INTERESTING(
lDebug ?
"KDAB(2)" :
"KD-Tools-EULA");
4761 if (
INFILE(_LT_BROADCOM_EULA) &&
INFILE(_CR_BROADCOM)) {
4762 INTERESTING(
"Broadcom-EULA");
4768 if (
INFILE(_LT_DARPA_COUGAAR)) {
4769 INTERESTING(
"DARPA-Cougaar");
4771 else if (
INFILE(_LT_DARPA)) {
4772 INTERESTING(
"DARPA");
4778 if (
INFILE(_LT_TEKTRONIX)) {
4779 if (
INFILE(_CR_TEKTRONIX)) {
4780 INTERESTING(
"Tektronix");
4783 INTERESTING(
"Tektronix-style");
4791 INTERESTING(
"Cadence");
4797 if (
INFILE(_LT_OPENMKT)) {
4798 INTERESTING(
"OpenMarket");
4804 if (!lmem[_fUNICODE]) {
4805 if (
INFILE(_TITLE_UNICODE)) {
4806 INTERESTING(
lDebug ?
"Unicode(4)" :
"Unicode");
4808 else if (
INFILE(_LT_UNICODE_1) &&
INFILE(_CR_UNICODE)) {
4809 INTERESTING(
lDebug ?
"Unicode(1)" :
"Unicode");
4811 else if (
INFILE(_LT_UNICODE_2)) {
4812 INTERESTING(
lDebug ?
"Unicode(2)" :
"Unicode");
4814 else if (
INFILE(_LT_UNICODE_3)) {
4815 INTERESTING(
lDebug ?
"Unicode(3)" :
"Unicode");
4817 else if (
INFILE(_LT_UNICODE_4)) {
4818 INTERESTING(
lDebug ?
"Unicode(4)" :
"Unicode-TOU");
4821 INTERESTING(
lDebug ?
"Unicode(5)" :
"Unicode-TOU");
4823 else if (
INFILE(_TITLE_UNICODE_TOU) &&
INFILE(_LT_UNICODE_TOU)) {
4824 INTERESTING(
"Unicode-TOU");
4832 INTERESTING(
"SW-Research");
4838 if (
INFILE(_LT_MITRE_1)) {
4840 INTERESTING(
lDebug ?
"MitreCVW(1)" :
"MitreCVW");
4842 else if (
INFILE(_TITLE_CVW)) {
4843 INTERESTING(
lDebug ?
"MitreCVW(2)" :
"MitreCVW");
4846 INTERESTING(
"MitreCVW-style");
4849 else if (
INFILE(_LT_MITRE_2)) {
4850 INTERESTING(
lDebug ?
"Mitre(2)" :
"Mitre");
4856 if (
INFILE(_LT_JABBER_1)) {
4857 if (
INFILE(_TITLE_MOTOSOTO091)) {
4858 INTERESTING(
"Motosoto");
4860 else if (
INFILE(_TITLE_JABBER)) {
4861 INTERESTING(
"Jabber");
4864 else if (
INFILE(_LT_JABBER_2)) {
4865 if (
INFILE(_TITLE_JABBER_V10)) {
4866 INTERESTING(
lDebug ?
"Jabber(1.0)" :
"Jabber-1.0");
4869 INTERESTING(
lDebug ?
"Jabber(2)" :
"Jabber");
4873 INTERESTING(
lDebug ?
"Jabber(url)" :
"Jabber");
4881 if (
INFILE(_TITLE_IBM_PL20)) {
4882 INTERESTING(
"IPL-2.0");
4884 else if (
INFILE(_TITLE_IBM_PL10)) {
4885 INTERESTING(
"IPL-1.0");
4887 else if (
INFILE(_TITLE_IBM_PL)) {
4890 else if (
INFILE(_TITLE_OpenGroup)) {
4891 INTERESTING(
"OpenGroup");
4893 else if (
INFILE(_TITLE_EPL10)) {
4894 INTERESTING(
lDebug ?
"Eclipse(v.0#1)" :
"EPL-1.0");
4897 else if (
INFILE(_TITLE_EPL20)) {
4898 INTERESTING(
lDebug ?
"Eclipse(v.2#1)" :
"EPL-2.0");
4902 INTERESTING(
lDebug ?
"Eclipse(#1)" :
"EPL");
4905 else if (
INFILE(_TITLE_LUCENT102)) {
4906 INTERESTING(
"LPL-1.02");
4908 else if (
INFILE(_TITLE_LUCENT10)) {
4909 INTERESTING(
"LPL-1.0");
4913 INTERESTING(
lDebug ?
"CPL(#1)" : cp);
4916 else if (
INFILE(_LT_LPL_102)) {
4917 INTERESTING(
"LPL-1.02");
4919 else if (!lmem[_fREAL] &&
INFILE(_LT_CPLref1) &&
NOT_INFILE(_TITLE_EPL10)) {
4921 INTERESTING(
lDebug ?
"CPL(ref)" : cp);
4925 INTERESTING(
lDebug ?
"CPL(url)" : cp);
4927 else if (
INFILE(_PHR_CPL_05)) {
4928 INTERESTING(
lDebug ?
"CPL(0.5)" :
"CPL-0.5");
4930 else if (
INFILE(_PHR_CPL_10)) {
4931 INTERESTING(
lDebug ?
"CPL(0.5)" :
"CPL-1.0");
4933 else if (
INFILE(_LT_IBM_PLref1)) {
4934 INTERESTING(
lDebug ?
"IBM-PL(ref)" :
"IPL");
4937 INTERESTING(
lDebug ?
"IBM-PL(url)" :
"IPL");
4942 if (
INFILE(_LT_EPL20ref_1)) {
4943 INTERESTING(
lDebug ?
"Eclipse(ref#2)" :
"EPL-2.0");
4945 else if (
INFILE(_LT_EPL10ref_1) ||
INFILE(_LT_EPL10ref_2) ||
HASTEXT(_LT_EPL10ref_3, REG_EXTENDED)) {
4946 INTERESTING(
lDebug ?
"Eclipse(ref#2)" :
"EPL-1.0");
4948 else if (
INFILE(_LT_EPLref)) {
4949 if (
INFILE(_TITLE_EPL10)) {
4950 INTERESTING(
lDebug ?
"Eclipse(v.0#2)" :
"EPL-1.0");
4952 else if (
INFILE(_TITLE_EPL20)) {
4953 INTERESTING(
lDebug ?
"Eclipse(v.2#2)" :
"EPL-2.0");
4956 INTERESTING(
lDebug ?
"Eclipse(#2)" :
"EPL");
4959 else if (
INFILE(_LT_EPL10ref_1)) {
4960 INTERESTING(
lDebug ?
"Eclipse(ref#2)" :
"EPL-1.0");
4963 if (
INFILE(_TITLE_EPL10ref_1)) {
4964 INTERESTING(
lDebug ?
"Eclipse(v1.0#2)" :
"EPL-1.0");
4966 if (
INFILE(_TITLE_EPL20ref_1)) {
4967 INTERESTING(
lDebug ?
"Eclipse(v1.0#2)" :
"EPL-2.0");
4975 if (
INFILE(_LT_SYBASE)) {
4976 if (
INFILE(_TITLE_SYBASE10)) {
4977 INTERESTING(
"Watcom-1.0");
4980 INTERESTING(
"Watcom");
4988 if (
INFILE(_TITLE_RICOH10)) {
4989 INTERESTING(
"RSCPL");
4997 if (
INFILE(_TITLE_OCLC20)) {
4998 INTERESTING(
"OCLC-2.0");
5000 else if (
INFILE(_TITLE_OCLC10)) {
5001 INTERESTING(
"OCLC-1.0");
5004 INTERESTING(
"OCLC");
5012 INTERESTING(
"ECL-1.0");
5015 else if (
INFILE(_LT_ECL2)) {
5016 INTERESTING(
"ECL-2.0");
5019 else if (
INFILE(_LT_ECL)) {
5020 INTERESTING(
lDebug ?
"ECL(1)" :
"ECL-1.0");
5028 if (
INFILE(_TITLE_CONDOR_V10)) {
5029 INTERESTING(
"Condor-1.0");
5030 }
else if (
INFILE(_TITLE_CONDOR_V11)) {
5031 INTERESTING(
"Condor-1.1");
5034 INTERESTING(
"EUDatagrid");
5038 INTERESTING(
"EUDatagrid");
5044 if (
INFILE(_LT_ADAPTIVE)) {
5045 if (
INFILE(_TITLE_ADAPTIVE10)) {
5046 INTERESTING(
"APL-1.0");
5057 if (!lmem[_mGSOAP] &&
INFILE(_LT_GSOAPref13)) {
5058 INTERESTING(
"gSOAP-1.3b");
5060 else if (!lmem[_mGSOAP] &&
INFILE(_LT_GSOAPref)) {
5061 INTERESTING(
"gSOAP");
5068 if (
INFILE(_TITLE_CA11)) {
5069 INTERESTING(
"CATOSL-1.1");
5075 else if (
INFILE(_TITLE_CA)) {
5076 INTERESTING(
"CATOSL");
5082 if (
INFILE(_LT_FRAMEWORX)) {
5083 if (
INFILE(_TITLE_FRAMEWORX10)) {
5084 INTERESTING(
"Frameworx-1.0");
5087 INTERESTING(
"Frameworx");
5095 if (
INFILE(_TITLE_NASA13)) {
5096 INTERESTING(
"NASA-1.3");
5099 INTERESTING(
"NASA");
5106 if (
INFILE(_LT_FREETYPE)) {
5107 if (
INFILE(_TITLE_CATHARON)) {
5108 INTERESTING(
lDebug ?
"Catharon(1)" :
"Catharon");
5110 else if (
INFILE(_CR_CATHARON)) {
5111 INTERESTING(
lDebug ?
"Catharon(2)" :
"Catharon");
5113 else if (
INFILE(_TITLE_FREETYPE)) {
5117 INTERESTING(
"FTL-style");
5120 else if (
INFILE(_LT_FTL)) {
5126 else if (
INFILE(_LT_CATHARON)) {
5127 INTERESTING(
lDebug ?
"Catharon(3)" :
"Catharon");
5129 else if (
INFILE(_LT_FREETYPEref)) {
5130 INTERESTING(
lDebug ?
"FTL(ref)" :
"FTL");
5136 if (
INFILE(_LT_EIFFEL)) {
5137 if (
INFILE(_TITLE_EIFFEL2)) {
5138 INTERESTING(
"EFL-2.0");
5140 else if (
INFILE(_TITLE_EIFFEL1)) {
5141 INTERESTING(
"EFL-1.0");
5147 else if (
INFILE(_LT_EIFFEL_20)) {
5148 INTERESTING(
"EFL-2.0");
5150 else if (
INFILE(_LT_EIFFEL_1)) {
5157 if (!lmem[_fGPL] && (
INFILE(_LT_BISON) ||
INFILE(_LT_BISONref))) {
5158 if (
INFILE(_TITLE_NETHACK)) {
5159 INTERESTING(
"NGPL");
5162 INTERESTING(
"BISON");
5169 if (
INFILE(_LT_OSL_BAD)) {
5170 cp = (
INFILE(_TITLE_AFL) ? AFLVERS() : OSLVERS());
5171 INTERESTING(
lDebug?
"OSL(bad)" : cp);
5173 else if (
INFILE(_LT_OSLref1)) {
5175 INTERESTING(
lDebug?
"OSL(ref1)" : cp);
5177 else if (
INFILE(_LT_OSLref2)) {
5179 INTERESTING(
lDebug?
"OSL(ref2)" : cp);
5181 else if (
INFILE(_LT_AFL)) {
5182 cp = (
INFILE(_TITLE_AFL) ? AFLVERS() : OSLVERS());
5183 INTERESTING(
lDebug?
"AFL#1" : cp);
5187 INTERESTING(
lDebug?
"OSL(T2.1)" : cp);
5189 else if (
INFILE(_TITLE_AFL21)) {
5191 INTERESTING(
lDebug?
"AFL(T2.1)" : cp);
5195 INTERESTING(
lDebug?
"OSL(T3.0)" : cp);
5197 else if (
INFILE(_TITLE_AFL30)) {
5199 INTERESTING(
lDebug?
"AFL(T3.0)" : cp);
5202 INTERESTING(
lDebug ?
"OSL_v1.1(url)" :
"OSL-1.1");
5205 INTERESTING(
lDebug ?
"OSL(url)" :
"OSL");
5208 INTERESTING(
lDebug ?
"AFL(url)" :
"AFL");
5215 if (
INFILE(_LT_AFLref1)) {
5217 INTERESTING(
lDebug?
"AFL(ref1)" : cp);
5219 else if (
INFILE(_LT_AFLref2)) {
5221 INTERESTING(
lDebug?
"AFL(ref2)" : cp);
5227 if (
INFILE(_LT_INNERNET)) {
5228 if (
INFILE(_TITLE_INNERNET200)) {
5229 INTERESTING(
"InnerNet-2.00");
5231 else if (
HASTEXT(_TEXT_INNERNET, 0)) {
5232 INTERESTING(
"InnerNet");
5235 INTERESTING(
"InnerNet-style");
5238 else if (
INFILE(_LT_INNERNETref_V2)) {
5239 INTERESTING(
lDebug ?
"InnetNet(v2ref)" :
"InnerNet-2.00");
5245 if (
INFILE(_TITLE_OGL_UK)) {
5246 if (
INFILE(_TITLE_OGL_UK_10)) {
5247 INTERESTING(
"OGL-UK-1.0");
5249 else if (
INFILE(_TITLE_OGL_UK_20)) {
5250 INTERESTING(
"OGL-UK-2.0");
5252 else if (
INFILE(_TITLE_OGL_UK_30)) {
5253 INTERESTING(
"OGL-UK-3.0");
5256 if (
HASTEXT(_LT_CC_ref, REG_EXTENDED)) {
5264 if (!lmem[_fCCBY] &&
HASTEXT(_LT_CC_ref, REG_EXTENDED)) {
5266 INTERESTING(
lDebug ?
"CC(ref)" : cp);
5268 else if (
INFILE(_LT_CCPL)) {
5270 if (
INFILE(_TITLE_RPL15)) {
5271 INTERESTING(
lDebug ?
"RPL-1.5#1" :
"RPL-1.5");
5273 else if (
INFILE(_TITLE_RPL11)) {
5274 INTERESTING(
lDebug ?
"RPL-1.1#1" :
"RPL-1.1");
5276 else if (
INFILE(_TITLE_RPL10)) {
5277 INTERESTING(
lDebug ?
"RPL-1.0#1" :
"RPL-1.0");
5280 INTERESTING(
lDebug ?
"RPL#1" :
"RPL");
5284 else if (
INFILE(_LT_RECIP15)) {
5285 INTERESTING(
"RPL-1.5");
5287 else if (
INFILE(_TITLE_MINDTERM)) {
5288 INTERESTING(
"MindTerm");
5291 if (
INFILE(_TITLE_RPL15)) {
5292 INTERESTING(
lDebug ?
"RPL-1.5#2" :
"RPL-1.5");
5294 else if (
INFILE(_TITLE_RPL11)) {
5295 INTERESTING(
lDebug ?
"RPL-1.1#2" :
"RPL-1.1");
5297 else if (
INFILE(_TITLE_RPL10)) {
5298 INTERESTING(
lDebug ?
"RPL-1.0#2" :
"RPL-1.0");
5301 INTERESTING(
lDebug ?
"RPL#2" :
"RPL");
5308 else if (
INFILE(_LT_CC_BY_SA_30)) {
5309 INTERESTING(
"CC-BY-SA-3.0");
5311 else if (
INFILE(_LT_CC_BY_SA_25)) {
5312 INTERESTING(
"CC-BY-SA-2.5");
5314 else if (
INFILE(_LT_CC_BY_NC_30)) {
5315 INTERESTING(
"CC-BY-NC-3.0");
5317 else if (
INFILE(_LT_CC_BY_ND_30)) {
5318 INTERESTING(
"CC-BY-ND-3.0");
5322 INTERESTING(
lDebug ?
"RPL(url)" :
"RPL");
5326 INTERESTING(
lDebug ?
"CC-LGPL(url)" : cp);
5330 INTERESTING(
lDebug ?
"CC-GPL(url)" : cp);
5336 if (
INFILE(_CR_SPIKESOURCE) &&
INFILE(_LT_SPIKESOURCE)) {
5337 INTERESTING(
"SpikeSource");
5344 INTERESTING(
"Legato");
5351 INTERESTING(
"Paradigm");
5357 if (
INFILE(_LT_WINTERTREE)) {
5358 INTERESTING(
"Wintertree");
5364 if (
INFILE(_LT_GENIVIAref)) {
5365 INTERESTING(
"Genivia.Commercial");
5386 INTERESTING(
"Zveno");
5392 if (
INFILE(_LT_BRAINSTORM_EULA) &&
INFILE(_TITLE_BRAINSTORM_EULA)) {
5393 INTERESTING(
"BrainStorm-EULA");
5399 if (
INFILE(_LT_AOL_EULA)) {
5400 INTERESTING(
"AOL-EULA");
5406 if (
INFILE(_LT_ALGORITHMICS)) {
5407 INTERESTING(
"Algorithmics");
5413 if (
INFILE(_LT_PIXWARE_EULA)) {
5414 INTERESTING(
"Pixware-EULA");
5420 if (
HASTEXT(_TEXT_COMPUSERVE, 0) &&
INFILE(_LT_COMPUSERVE)) {
5421 INTERESTING(
"CompuServe");
5430 else if (
INFILE(_LT_AMD_EULA) &&
INFILE(_TITLE_AMD_EULA)) {
5431 INTERESTING(
"AMD-EULA");
5439 INTERESTING(
lDebug ?
"OMRON(2)" :
"OMRON");
5445 if (
INFILE(_TITLE_METROLINK)) {
5447 if (
INFILE(_LT_METRO_NONFREE)) {
5448 INTERESTING(
"MetroLink-nonfree");
5451 INTERESTING(
"MetroLink");
5455 else if (
INFILE(_LT_METROLINKref)) {
5456 INTERESTING(
lDebug ?
"MetroLink(ref)" :
"MetroLink");
5462 if (
INFILE(_LT_EDINBURGH_1)) {
5464 INTERESTING(
lDebug ?
"CMU(3)" :
"CMU");
5467 else if (mCR_EDIN()) {
5468 INTERESTING(
lDebug ?
"U-Edinburgh(1)" :
"U-Edinburgh");
5471 INTERESTING(
lDebug ?
"UE-style(1)" :
"U-Edinburgh-style");
5474 else if (
INFILE(_LT_EDINBURGH_2)) {
5476 INTERESTING(
lDebug ?
"U-Edinburgh(2)" :
"U-Edinburgh");
5479 INTERESTING(
lDebug ?
"UE-style(2)" :
"U-Edinburgh-style");
5487 if (!lmem[_mCMU] &&
INFILE(_LT_CMU_1)) {
5488 if (!lmem[_mREDHAT] &&
INFILE(_CR_REDHAT)) {
5489 INTERESTING(
lDebug ?
"RH(5)" :
"RedHat");
5492 else if (
INFILE(_CR_NRL)) {
5495 else if (!lmem[_mCMU] && mCR_CMU()) {
5496 INTERESTING(
lDebug ?
"CMU(5)" :
"CMU");
5500 INTERESTING(
"CMU-style");
5504 else if (!lmem[_mCMU] &&
INFILE(_LT_CMU_2) && mCR_CMU()) {
5505 INTERESTING(
lDebug ?
"CMU(6)" :
"CMU");
5508 else if (
INFILE(_LT_CMU_3)) {
5509 INTERESTING(
lDebug ?
"CMU(7)" :
"CMU");
5512 else if (
INFILE(_LT_CMU_4)) {
5513 INTERESTING(
lDebug ?
"CMU(8)" :
"CMU");
5516 else if (
INFILE(_LT_CMU_5)) {
5517 INTERESTING(
lDebug ?
"CMU(9)" :
"CMU");
5520 else if (
INFILE(_LT_CMU_6)) {
5521 INTERESTING(
lDebug ?
"CMU(10)" :
"CMU");
5529 INTERESTING(
"U-Chicago");
5536 INTERESTING(
"U-Utah");
5543 INTERESTING(
"U-BC");
5549 if (
INFILE(_LT_IMAGEMAGICK)) {
5550 if (
INFILE(_CR_IMAGEMAGICK)) {
5551 INTERESTING(
"ImageMagick");
5554 INTERESTING(
"ImageMagick-style");
5558 INTERESTING(
lDebug ?
"ImageMagick(url)" :
"ImageMagick");
5564 if (
INFILE(_LT_RIVERBANK) &&
INFILE(_TITLE_RIVERBANK_EULA)) {
5565 INTERESTING(
"Riverbank-EULA");
5572 INTERESTING(
"Polyserve-CONFIDENTIAL");
5579 INTERESTING(
"Fujitsu");
5586 INTERESTING(
"Cypress-FW");
5592 INTERESTING(
"Keyspan-FW");
5598 INTERESTING(
"ATMEL-FW");
5604 if (
INFILE(_LT_QUEST_EULA) &&
INFILE(_TITLE_QUEST_EULA)) {
5605 INTERESTING(
"Quest-EULA");
5618 if (
INFILE(_LT_GARMIN_EULA) &&
INFILE(_TITLE_GARMIN_EULA)) {
5619 INTERESTING(
"Garmin-EULA");
5627 INTERESTING(
lDebug ?
"AVM(1)" :
"AVM");
5629 else if (
INFILE(_LT_AVM_2)) {
5630 INTERESTING(
lDebug ?
"AVM(2)" :
"AVM");
5633 else if (
INFILE(_LT_AVM_3)) {
5634 INTERESTING(
lDebug ?
"AVM(3)" :
"AVM");
5641 if (
INFILE(_TITLE_FAIR)) {
5642 INTERESTING(
"Fair");
5645 INTERESTING(
"Fair-style");
5653 if (
INFILE(_TITLE_MAJORDOMO11)) {
5654 INTERESTING(
"Majordomo-1.1");
5657 INTERESTING(
"Majordomo");
5667 INTERESTING(
"Zeus");
5673 if (!lmem[_mXOPEN] &&
INFILE(_LT_XOPEN_1)) {
5674 if (!lmem[_mOSF] &&
INFILE(_CR_OSF)) {
5675 INTERESTING(
lDebug ?
"OSF(2)" :
"OSF");
5678 else if (
INFILE(_CR_UI)) {
5679 INTERESTING(
lDebug ?
"UI(2)" :
"Unix-Intl");
5681 else if (
INFILE(_CR_XOPEN)) {
5682 INTERESTING(
lDebug ?
"XOpen(2)" :
"X/Open");
5685 else if (
INFILE(_CR_IPA)) {
5688 else if (!lmem[_mSUN] &&
INFILE(_CR_SUN)) {
5689 INTERESTING(
lDebug ?
"Sun(10)" :
"Sun");
5693 INTERESTING(
"X/Open-style");
5697 else if (!lmem[_mXOPEN] &&
INFILE(_LT_XOPEN_2)) {
5698 INTERESTING(
lDebug ?
"XOpen(3)" :
"X/Open");
5705 if (
INFILE(_LT_INTERLINK_EULA) &&
INFILE(_TITLE_INTERLINK_EULA)) {
5706 INTERESTING(
"Interlink-EULA");
5713 INTERESTING(
"Mellanox");
5720 INTERESTING(
"nCipher");
5727 INTERESTING(
"DPTC");
5732 else if (
HASTEXT(_TEXT_REPRODUCED, 0) &&
INFILE(_CR_DMTF) &&
5734 INTERESTING(
"DMTF");
5742 INTERESTING(
"DSCT");
5749 INTERESTING(
"Epinions");
5756 INTERESTING(
"MITEM");
5762 if ((
INFILE(_LT_CYLINK_ISC_1) ||
INFILE(_LT_CYLINK_ISC_2))) {
5763 INTERESTING(
"Cylink-ISC");
5770 INTERESTING(
"SciTech");
5776 if (
INFILE(_LT_OREILLY_1)) {
5777 if (
INFILE(_CR_OREILLY)) {
5778 INTERESTING(
"OReilly");
5781 INTERESTING(
"OReilly-style");
5784 else if (
INFILE(_LT_OREILLY_2)) {
5785 if (
INFILE(_CR_OREILLY)) {
5786 INTERESTING(
lDebug ?
"OReilly-2" :
"OReilly");
5789 INTERESTING(
lDebug ?
"OReilly-st-2" :
"OReilly-style");
5796 if (
INFILE(_LT_BITTORRENT)) {
5797 if (
INFILE(_TITLE_BITTORRENT11)) {
5798 INTERESTING(
"BitTorrent-1.1");
5800 else if (
INFILE(_TITLE_BITTORRENT10)) {
5801 INTERESTING(
"BitTorrent-1.0");
5804 INTERESTING(
"BitTorrent");
5807 else if (
INFILE(_LT_BITTORRENT_V11)) {
5808 INTERESTING(
"BitTorrent-1.1");
5810 else if (
INFILE(_LT_BITTORRENT_V10)) {
5811 INTERESTING(
"BitTorrent-1.0");
5813 else if (
INFILE(_LT_BITTORRENTref)) {
5814 INTERESTING(
lDebug ?
"BitTorrent(ref)" :
"BitTorrent");
5822 INTERESTING(
lDebug ?
"OSF(3)" :
"OSF");
5826 INTERESTING(
lDebug ?
"OSF-style(1)" :
"OSF-style");
5829 else if (
INFILE(_LT_OSF_2)) {
5831 INTERESTING(
lDebug ?
"OSF(4)" :
"OSF");
5834 else if (
INFILE(_LT_CMU_8)) {
5835 INTERESTING(
lDebug ?
"CMU(11)" :
"CMU");
5838 INTERESTING(
lDebug ?
"OSF-style(2)" :
"OSF-style");
5846 if (!lmem[_fBSD] && lmem[_tOPENLDAP] && !lmem[_fOPENLDAP]) {
5847 if (
INFILE(_LT_OPENLDAP_1)) {
5849 INTERESTING(
"OLDAP-style");
5852 else if (
INFILE(_LT_OPENLDAP_2)) {
5853 INTERESTING(
"OLDAP");
5865 INTERESTING(
lDebug ?
"Knuth(1)" :
"D.E.Knuth");
5867 else if (
INFILE(_LT_KNUTH_2)) {
5868 INTERESTING(
lDebug ?
"Knuth(2)" :
"D.E.Knuth");
5870 else if (
INFILE(_LT_KNUTH_STYLE)) {
5871 INTERESTING(
"Knuth-style");
5873 else if (
INFILE(_LT_LACHMAN_SECRET)) {
5874 INTERESTING(
"Lachman-Proprietary");
5876 else if (
INFILE(_LT_IOSOFT_SRCONLY)) {
5877 INTERESTING(
"IoSoft.COMMERCIAL");
5883 if (
INFILE(_LT_FREE_SW)) {
5884 INTERESTING(
"Free-SW");
5889 else if (
INFILE(_PHR_NOT_FREE_SW)) {
5891 INTERESTING(
"WTI.Not-free");
5894 INTERESTING(
"Not-Free");
5902 if (
HASTEXT(_LT_CPOL_V102, REG_EXTENDED)) {
5903 INTERESTING(
"CPOL-1.02");
5905 INTERESTING(
"CPOL");
5912 if (
INFILE(_LT_MACROV_IA) &&
INFILE(_PHR_MACROVISION)) {
5914 INTERESTING(
"Macrovision-EULA");
5917 INTERESTING(
"Macrovision");
5925 INTERESTING(
"VMware-EULA");
5931 if (
INFILE(_LT_UCWARE_EULA_1) ||
INFILE(_LT_UCWARE_EULA_2)) {
5932 INTERESTING(
"UCWare-EULA");
5939 INTERESTING(
"InfoSeek");
5946 INTERESTING(
"Trident-EULA");
5960 INTERESTING(
"Piriform");
5974 INTERESTING(
"Skype-EULA");
5980 if (
INFILE(_LT_HAUPPAUGE)) {
5981 INTERESTING(
"Hauppauge");
5987 if (
INFILE(_LT_INTRANET_ONLY)) {
5988 if (
INFILE(_CR_PLATFORM_COMP)) {
5989 INTERESTING(
lDebug ?
"Platfm(1)" :
"Platform-Computing(RESTRICTED)");
5991 MEDINTEREST(
"Intranet-only");
5993 }
else if (
INFILE(_LT_NOT_INTERNET)) {
5994 if (
INFILE(_CR_PLATFORM_COMP)) {
5995 INTERESTING(
lDebug ?
"Platfm(2)" :
"Platform-Computing(RESTRICTED)");
5997 MEDINTEREST(
"Not-Internet");
6005 INTERESTING(
lDebug ?
"Curl(URL)" :
"curl");
6011 if (
INFILE(_LT_ID_EULA)) {
6012 INTERESTING(
"ID-EULA");
6019 INTERESTING(
"M-Plus-Project");
6025 if (
INFILE(_LT_POWDER)) {
6026 INTERESTING(
"Powder-Proprietary");
6032 if (
INFILE(_LT_AGAINST_DRM)) {
6033 INTERESTING(
"AgainstDRM");
6039 if (
INFILE(_LT_TEX_EXCEPT)) {
6040 INTERESTING(
lDebug ?
"TeX-except" :
"TeX-exception");
6046 if (
INFILE(_LT_USGOVT_1)) {
6048 MEDINTEREST(
"URA.govt");
6051 MEDINTEREST(
lDebug ?
"Govt-Wk(1)" :
"Govt-work");
6054 else if (
INFILE(_LT_USGOVT_2)) {
6058 if (
INFILE(_LT_MPICH2)) {
6059 INTERESTING(
"mpich2");
6062 MEDINTEREST(
lDebug ?
"Govt-Wk(2)" :
"Govt-work");
6065 else if (
INFILE(_LT_USGOVT_RIGHTS1) &&
INFILE(_LT_PUBLIC)) {
6066 MEDINTEREST(
lDebug ?
"US-Govt(1)" :
"Govt-rights");
6068 else if (
INFILE(_LT_USGOVT_RIGHTS2)) {
6069 MEDINTEREST(
lDebug ?
"US-Govt(2)" :
"Govt-rights");
6076 INTERESTING(
"ACAA");
6083 INTERESTING(
"Zend-2.0");
6085 else if (
INFILE(_LT_ZEND_2)) {
6086 INTERESTING(
"Zend-1.0");
6094 INTERESTING(
lDebug ?
"WebM" :
"BSD-3-Clause");
6102 INTERESTING(
"Dyade");
6107 if (
INFILE(_TITLE_ZIMBRA_13)) {
6108 INTERESTING(
"Zimbra-1.3");
6110 else if (
INFILE(_TITLE_ZIMBRA_12)) {
6111 INTERESTING(
"Zimbra-1.2");
6113 else if (
INFILE(_TITLE_ZIMBRA)) {
6114 INTERESTING(
"Zimbra");
6120 if (
INFILE(_TITLE_ODBL)) {
6121 INTERESTING(
"ODbL-1.0");
6128 if (
INFILE(_LT_MULTICS)) {
6129 INTERESTING(
"Multics");
6136 if (
INFILE(_TITLE_H2_V10)) {
6137 INTERESTING(
"H2-1.0");
6143 if (
INFILE(_LT_CRYPTOGAMS)) {
6144 INTERESTING(
"Cryptogams");
6151 if (
INFILE(_TITLE_CYGNUS_ECOS_V10)) {
6152 INTERESTING(
"Cygnus-eCos-1.0");
6159 if (
INFILE(_TITLE_RHeCos_V11)) {
6160 INTERESTING(
"RHeCos-1.1");
6167 if (
INFILE(_TITLE_TMATE)) {
6168 INTERESTING(
"TMate");
6174 if (
INFILE(_LT_ABSTYLES_1) &&
INFILE(_LT_ABSTYLES_2)) {
6175 INTERESTING(
"Abstyles");
6182 INTERESTING(
"ADSL");
6188 if (
HASTEXT(_LT_CRYSTALSTACKER, REG_EXTENDED)) {
6189 INTERESTING(
"CrystalStacker");
6196 INTERESTING(
"3GPP");
6203 INTERESTING(
"ITU-T");
6209 if (!lmem[_mSUN] && !lmem[_mMPL]) {
6210 if (
INFILE(_TITLE_SUN_PL10)) {
6211 INTERESTING(
"SPL-1.0");
6213 else if (!lmem[_fREAL] &&
INFILE(_TITLE_SUN_PL)) {
6221 if (
INFILE(_PHR_LIBTIFF)) {
6222 INTERESTING(
"libtiff");
6228 if (
INFILE(_PHR_Imlib2)) {
6229 INTERESTING(
"Imlib2");
6243 INTERESTING(
"naist-2003");
6249 if (
INFILE(_TITLE_EDL_V10)) {
6250 INTERESTING(
"EDL-1.0");
6257 INTERESTING(
"HSQLDB");
6263 if (
INFILE(_TITLE_SCEA)) {
6264 INTERESTING(
"SCEA");
6270 if (
INFILE(_TITLE_OPENMAP)) {
6271 INTERESTING(
"OpenMap");
6281 else if (
INFILE(_PHR_ICU_1)) {
6288 if (
INFILE(_TITLE_UBUNTU_FONT)) {
6289 INTERESTING(
"ubuntu-font-1.0");
6297 INTERESTING(
"ODC-By-1.0");
6304 if (
INFILE(_TITLE_CDLA_Permissive_10)) {
6305 INTERESTING(
"CDLA-Permissive-1.0");
6307 else if (
INFILE(_TITLE_CDLA_Sharing_10)) {
6308 INTERESTING(
"CDLA-Sharing-1.0");
6314 if (
INFILE(_TITLE_Toolbar2000) ||
INFILE(_URL_Toolbar2000)) {
6315 INTERESTING(
"Toolbar2000");
6321 if (
INFILE(_TITLE_unboundID_ldap_sdk) ||
INFILE(_LT_unboundID_ldap_sdk)) {
6322 INTERESTING(
"unboundID-ldap-sdk");
6338 printf(
"... RMS propaganda\n");
6347 if (maxInterest != IL_HIGH) {
6348 for (i = 0; i < NNOWARRANTY; i++) {
6349 if (
INFILE((j = _NO_WARRANTY_first+i))) {
6360 if (!lmem[_fIP] &&
INFILE(_LT_GEN_IP_1)) {
6361 INTERESTING(
lDebug ?
"IP(1)" :
"IP-claim");
6363 else if (!lmem[_fIP] &&
INFILE(_LT_GEN_IP_2) &&
NOT_INFILE(_TITLE_MIROS)) {
6364 INTERESTING(
lDebug ?
"IP(2)" :
"IP-claim");
6366 else if (!lmem[_fIP] &&
INFILE(_LT_GEN_IP_3)) {
6367 INTERESTING(
lDebug ?
"IP(3)" :
"IP-claim");
6374 MEDINTEREST(
lDebug ?
"Dual-license(0)" :
"Dual-license");
6376 else if (
INFILE(_LT_DUAL_LICENSE_22)) {
6377 MEDINTEREST(
lDebug ?
"Dual-license(22)" :
"Dual-license");
6380 MEDINTEREST(
lDebug ?
"Dual-license(1)" :
"Dual-license");
6382 else if (
INFILE(_LT_DUAL_LICENSE_2)) {
6383 MEDINTEREST(
lDebug ?
"Dual-license(2)" :
"Dual-license");
6385 else if (
INFILE(_LT_DUAL_LICENSE_3) &&
NOT_INFILE(_LT_DUAL_LICENSE_3_EXHIBIT)) {
6386 MEDINTEREST(
lDebug ?
"Dual-license(3)" :
"Dual-license");
6388 else if (
INFILE(_LT_DUAL_LICENSE_4)) {
6389 MEDINTEREST(
lDebug ?
"Dual-license(4)" :
"Dual-license");
6391 else if (
INFILE(_LT_DUAL_LICENSE_5)) {
6392 MEDINTEREST(
lDebug ?
"Dual-license(5)" :
"Dual-license");
6394 else if (
INFILE(_LT_DUAL_LICENSE_6)) {
6395 MEDINTEREST(
lDebug ?
"Dual-license(6)" :
"Dual-license");
6397 else if (
INFILE(_LT_DUAL_LICENSE_7)) {
6398 MEDINTEREST(
lDebug ?
"Dual-license(7)" :
"Dual-license");
6400 else if (
INFILE(_LT_DUAL_LICENSE_8)) {
6401 MEDINTEREST(
lDebug ?
"Dual-license(8)" :
"Dual-license");
6403 else if (
INFILE(_LT_DUAL_LICENSE_9)) {
6404 MEDINTEREST(
lDebug ?
"Dual-license(9)" :
"Dual-license");
6406 else if (
INFILE(_LT_DUAL_LICENSE_10)) {
6407 MEDINTEREST(
lDebug ?
"Dual-license(10)" :
"Dual-license");
6409 else if (
INFILE(_LT_DUAL_LICENSE_11)) {
6410 MEDINTEREST(
lDebug ?
"Dual-license(11)" :
"Dual-license");
6412 else if (
INFILE(_LT_DUAL_LICENSE_12)) {
6413 MEDINTEREST(
lDebug ?
"Dual-license(12)" :
"Dual-license");
6415 else if (
INFILE(_LT_DUAL_LICENSE_13)) {
6416 INTERESTING(
lDebug ?
"Dual-license(13)" :
"Dual-license");
6424 if (
INFILE(_LT_DUAL_LICENSE_16)) {
6425 INTERESTING(
lDebug ?
"GPLV2(Dual-license(16))" :
"GPL-2.0");
6429 else if (
INFILE(_LT_DUAL_LICENSE_14)) {
6430 INTERESTING(
lDebug ?
"Dual-license(14)" :
"Dual-license");
6436 else if (
INFILE(_LT_DUAL_LICENSE_15)) {
6437 MEDINTEREST(
lDebug ?
"Dual-license(15)" :
"Dual-license");
6439 else if (
INFILE(_LT_DUAL_LICENSE_16)) {
6440 INTERESTING(
lDebug ?
"Dual-license(16)" :
"Dual-license");
6442 INTERESTING(
lDebug ?
"GPLV2(Dual-license(16))" :
"GPL-2.0");
6444 else if (
INFILE(_LT_DUAL_LICENSE_17)) {
6445 MEDINTEREST(
lDebug ?
"Dual-license(17)" :
"Dual-license");
6447 else if (
INFILE(_LT_DUAL_LICENSE_18)) {
6448 MEDINTEREST(
lDebug ?
"Dual-license(18)" :
"Dual-license");
6450 else if (
INFILE(_LT_DUAL_LICENSE_19)) {
6451 MEDINTEREST(
lDebug ?
"Dual-license(19)" :
"Dual-license");
6453 else if (
INFILE(_LT_DUAL_LICENSE_20)) {
6454 MEDINTEREST(
lDebug ?
"Dual-license(20)" :
"Dual-license");
6456 else if (
INFILE(_LT_DUAL_LICENSE_21)) {
6457 MEDINTEREST(
lDebug ?
"Dual-license(21)" :
"Dual-license");
6459 else if (
INFILE(_LT_DUAL_LICENSE_23)) {
6460 MEDINTEREST(
lDebug ?
"Dual-license(23)" :
"Dual-license");
6462 else if (
INFILE(_LT_DUAL_LICENSE_24)) {
6463 MEDINTEREST(
lDebug ?
"Dual-license(24)" :
"Dual-license");
6465 else if (
INFILE(_LT_DUAL_LICENSE_25)) {
6466 MEDINTEREST(
lDebug ?
"Dual-license(25)" :
"Dual-license");
6468 else if (
INFILE(_LT_DUAL_LICENSE_26)) {
6469 MEDINTEREST(
lDebug ?
"Dual-license(26)" :
"Dual-license");
6471 else if (
INFILE(_LT_DUAL_LICENSE_27)) {
6472 MEDINTEREST(
lDebug ?
"Dual-license(27)" :
"Dual-license");
6474 else if (
INFILE(_LT_DUAL_LICENSE_28)) {
6475 MEDINTEREST(
lDebug ?
"Dual-license(28)" :
"Dual-license");
6477 else if (
INFILE(_LT_DUAL_LICENSE_29) &&
NOT_INFILE(_LT_MPL_SECONDARY_LICENSE)) {
6478 MEDINTEREST(
lDebug ?
"Dual-license(29)" :
"Dual-license");
6480 else if (
INFILE(_LT_DUAL_LICENSE_30)) {
6481 MEDINTEREST(
lDebug ?
"Dual-license(30)" :
"Dual-license");
6483 else if (
INFILE(_LT_DUAL_LICENSE_31)) {
6484 MEDINTEREST(
lDebug ?
"Dual-license(31)" :
"Dual-license");
6486 else if (
INFILE(_LT_DUAL_LICENSE_32)) {
6487 MEDINTEREST(
lDebug ?
"Dual-license(32)" :
"Dual-license");
6489 else if (
INFILE(_LT_DUAL_LICENSE_33)) {
6490 MEDINTEREST(
lDebug ?
"Dual-license(33)" :
"Dual-license");
6492 else if (
INFILE(_LT_DUAL_LICENSE_34)) {
6493 MEDINTEREST(
lDebug ?
"Dual-license(34)" :
"Dual-license");
6495 else if (
HASTEXT(_LT_DUAL_LICENSE_35, 0)) {
6496 MEDINTEREST(
lDebug ?
"Dual-license(35)" :
"Dual-license");
6502 else if (
INFILE(_LT_DUAL_LICENSE_36)) {
6503 MEDINTEREST(
lDebug ?
"Dual-license(36)" :
"Dual-license");
6505 else if (
INFILE(_LT_DUAL_LICENSE_37)) {
6506 MEDINTEREST(
lDebug ?
"Dual-license(37)" :
"Dual-license");
6508 else if (
INFILE(_LT_DUAL_LICENSE_38)) {
6509 MEDINTEREST(
lDebug ?
"Dual-license(38)" :
"Dual-license");
6511 else if (
INFILE(_LT_DUAL_LICENSE_39)) {
6512 MEDINTEREST(
lDebug ?
"Dual-license(39)" :
"Dual-license");
6514 else if (
INFILE(_LT_DUAL_LICENSE_40)) {
6515 MEDINTEREST(
lDebug ?
"Dual-license(40)" :
"Dual-license");
6517 else if (
INFILE(_LT_DUAL_LICENSE_41)) {
6518 MEDINTEREST(
lDebug ?
"Dual-license(41)" :
"Dual-license");
6520 else if (
INFILE(_LT_DUAL_LICENSE_42)) {
6521 MEDINTEREST(
lDebug ?
"Dual-license(42)" :
"Dual-license");
6523 else if (
INFILE(_LT_DUAL_LICENSE_43)) {
6524 MEDINTEREST(
lDebug ?
"Dual-license(43)" :
"Dual-license");
6526 else if (
HASTEXT(_LT_DUAL_LICENSE_44, 0)) {
6527 MEDINTEREST(
lDebug ?
"Dual-license(44)" :
"Dual-license");
6529 else if (
INFILE(_LT_DUAL_LICENSE_45)) {
6530 MEDINTEREST(
lDebug ?
"Dual-license(45)" :
"Dual-license");
6533 else if (
HASTEXT(_LT_DUAL_LICENSE_46, REG_EXTENDED)) {
6534 MEDINTEREST(
lDebug ?
"Dual-license(46)" :
"Dual-license");
6536 else if (
HASTEXT(_LT_DUAL_LICENSE_47, REG_EXTENDED) &&
NOT_INFILE(_LT_MPL_SECONDARY_LICENSE)) {
6537 MEDINTEREST(
lDebug ?
"Dual-license(47)" :
"Dual-license");
6539 else if (
INFILE(_LT_DUAL_LICENSE_48)) {
6540 MEDINTEREST(
lDebug ?
"Dual-license(48)" :
"Dual-license");
6542 else if (
INFILE(_LT_DUAL_LICENSE_49)) {
6543 MEDINTEREST(
lDebug ?
"Dual-license(49)" :
"Dual-license");
6549 if (
INFILE(_LT_BEERWARE)) {
6550 INTERESTING(
"Beerware");
6557 INTERESTING(
"CMake");
6564 INTERESTING(
"unRAR restriction");
6571 INTERESTING(
"ANTLR-PD");
6578 if (
INFILE(_SPDX_CC0_10)) {
6579 INTERESTING(
"CC0-1.0");
6582 INTERESTING(
"CC0-1.0");
6588 if (
INFILE(_TITLE_IPA)) {
6596 INTERESTING(
"EUPL-1.0");
6598 else if (
INFILE(_PHR_EUPL_11) ||
INFILE(_TITLE_EUPL_11)) {
6599 INTERESTING(
"EUPL-1.1");
6601 else if (
INFILE(_TITLE_EUPL_12)) {
6602 INTERESTING(
"EUPL-1.2");
6604 else if (
INFILE(_PHR_EUPL)) {
6605 INTERESTING(
"EUPL");
6609 if (!lmem[_fNCSA] &&
INFILE(_TITLE_NCSA) &&
NOT_INFILE(_TITLE_NCSA_EXHIBIT)) {
6610 INTERESTING(
lDebug ?
"NCSA(2)" :
"NCSA");
6612 if (
INFILE(_TITLE_OZPLB_11)) {
6613 INTERESTING(
"OZPLB-1.1");
6620 if (
INFILE(_TITLE_PDDL)) {
6621 INTERESTING(
"PDDL-1.0");
6626 if (
INFILE(_TITLE_POSTGRES) ||
INFILE(_TITLE_POSTGRES_1)) {
6627 INTERESTING(
"PostgreSQL");
6632 if (
INFILE(_LT_SAX_PD)) {
6633 INTERESTING(
"SAX-PD");
6641 INTERESTING(
"WTFPL");
6643 else if (
INFILE(_LT_WTFPLref)) {
6644 INTERESTING(
lDebug ?
"WTFPL(ref)" :
"WTFPL");
6646 else if (
INFILE(_LT_WTFPLref_1)) {
6647 INTERESTING(
lDebug ?
"WTFPL(ref#1)" :
"WTFPL");
6649 else if (
INFILE(_PHR_WTFPL)) {
6650 INTERESTING(
lDebug ?
"WTFPL(phr)" :
"WTFPL");
6655 if (
HASTEXT(_PHR_IJG_1, REG_EXTENDED)) {
6658 else if (
HASTEXT(_PHR_IJG_2, 0)) {
6661 else if (
HASTEXT(_TITLE_IJG_1, 0) && !
HASTEXT(_PHR_IJG_INTERFACE_1, 0) && !
HASTEXT(_PHR_IJG_INTERFACE_2, 0)) {
6665 else if (
HASTEXT(_TITLE_IJG_2, 0) && !
HASTEXT(_PHR_IJG_INTERFACE_1, 0) && !
HASTEXT(_PHR_IJG_INTERFACE_2, 0)) {
6666 INTERESTING(
"IJG-possibility");
6671 if (!lmem[_mMPL] &&
INFILE(_TITLE_NOSL)) {
6672 INTERESTING(
lDebug ?
"NOSL(#2)" :
"NOSL");
6676 if (
INFILE(_TITLE_NBPL_V10)) {
6677 INTERESTING(
"NBPL-1.0");
6681 if (
INFILE(_TITLE_Flora_V10)) {
6682 INTERESTING(
"Flora-1.0");
6684 else if (
INFILE(_TITLE_Flora_V11)) {
6685 INTERESTING(
"Flora-1.1");
6688 INTERESTING(
"Flora");
6692 if (
INFILE(_TITLE_SMLNJ)) {
6693 INTERESTING(
"SMLNJ");
6697 if (!lmem[_mMPL] &&
URL_INFILE(_URL_MPL_LATEST)) {
6698 INTERESTING(
lDebug ?
"MPL(latest)" :
"MPL");
6702 if (
INFILE(_TITLE_CITRIX)) {
6703 INTERESTING(
"Citrix");
6708 if (
INFILE(_TITLE_CUA10)) {
6709 INTERESTING(
"CUA-OPL-1.0");
6713 if (
INFILE(_TITLE_ERLPL_ref)) {
6714 INTERESTING(
"ErlPL-1.1");
6718 if (
INFILE(_TITLE_D_FSL_10) ||
INFILE(_TITLE_D_FSL_DE1_10) ||
INFILE(_TITLE_D_FSL_DE2_10) ||
INFILE(_TITLE_D_FSL_DE3_10) ||
INFILE(_TITLE_D_FSL_DE4_10))
6720 INTERESTING(
"D-FSL-1.0");
6725 if (
INFILE(_TITLE_CCLRC)) {
6726 INTERESTING(
"CCLRC");
6731 if (!lmem[_mGPL] && (
INFILE(_LT_GPL_V2_ref) ||
INFILE(_LT_GPL_V2_ref1) ||
INFILE(_LT_GPL_V2_ref2) ||
INFILE(_LT_GPL_V2_ref3) ||
INFILE(_LT_GPL_V2_ref4)))
6733 INTERESTING(
lDebug ?
"GPL_V2_ref" :
"GPL-2.0");
6736 else if (!lmem[_mGPL] &&
INFILE(_LT_GPL_V3_ref))
6738 INTERESTING(
lDebug ?
"GPL_V3_ref" :
"GPL-3.0");
6741 else if (!lmem[_mGPL] &&
INFILE(_LT_GPLref22))
6743 INTERESTING(
lDebug ?
"GPLref22" :
"GPL");
6746 else if (!lmem[_mGPL] &&
NOT_INFILE(_LT_IGNORE_CLAUSE_2) &&
INFILE(_LT_GPLref21))
6748 INTERESTING(
lDebug ?
"GPLref21" :
"GPL");
6754 if (
INFILE(_LT_MX4J_V10))
6756 INTERESTING(
"MX4J-1.0");
6758 else if (
INFILE(_LT_MX4J))
6760 INTERESTING(
"MX4J");
6764 if (
INFILE(_TITLE_POSTFIX))
6766 INTERESTING(
"Postfix");
6770 if (
HASTEXT(_LT_PUBDOM_NOTclaim, REG_EXTENDED)) {
6771 if (
INFILE(_LT_PUBDOM_CC)) {
6772 INTERESTING(
lDebug ?
"Pubdom(CC)" : LS_PD_CLM);
6775 INTERESTING(LS_NOT_PD);
6783 INTERESTING(
"LIBGCJ");
6787 if (
INFILE(_TITLE_OPEN_CASCADE))
6789 INTERESTING(
"OpenCASCADE-PL");
6793 if (
INFILE(_LT_KnowledgeTree_V11))
6795 INTERESTING(
"KnowledgeTree-1.1");
6799 if (
INFILE(_LT_Interbase_V10))
6801 INTERESTING(
"Interbase-1.0");
6805 if (
INFILE(_LT_ClearSilver))
6807 INTERESTING(
"ClearSilver");
6814 else if(
INFILE(_LT_FACE)) {
6815 INTERESTING(
"FaCE");
6820 INTERESTING(
"JISP");
6825 INTERESTING(
"Qmail");
6830 INTERESTING(
"Migemo");
6834 if(
INFILE(_LT_Sendmail_title) ) {
6835 INTERESTING(
"Sendmail");
6839 if(
INFILE(_LT_GIFTWARE)) {
6840 INTERESTING(
"Giftware");
6845 INTERESTING(
"Logica-OSL-1.0");
6850 INTERESTING(
"Unidex");
6855 if (
INFILE(_TITLE_TCL)) {
6858 else if (
INFILE(_SPDX_TCL)) {
6861 else if (
INFILE(_LT_TCL)) {
6867 if (
INFILE(_LT_GOOGLE_SDK)) {
6868 INTERESTING(
"AndroidSDK.Commercial");
6872 if (
INFILE(_PHR_Qhull)) {
6873 INTERESTING(
"Qhull");
6877 if (
INFILE(_PHR_OZPLB_10)) {
6878 INTERESTING(
"OZPLB-1.0");
6888 if (
INFILE(_LT_SAME_LICENSE_1)) {
6889 INTERESTING(
lDebug ?
"Same-lic-1" :
"Same-license-as");
6891 }
else if (
INFILE(_LT_SAME_LICENSE_2)) {
6892 INTERESTING(
lDebug ?
"Same-lic-2" :
"Same-license-as");
6897 saveLicenseParagraph(cur.matchBase, isML, isPS,
NO);
6910 for (i = 0; i < NFREECLAIM; i++) {
6911 if (CANSKIP(i, _KW_permission, _FREE_first_perm,
6913 i = _FREE_last_perm;
6916 if (CANSKIP(i, _KW_distribut, _FREE_first_dist,
6918 i = _FREE_last_dist;
6921 if (
INFILE(_FREECLAIM_first+i)) {
6922 (void) strcpy(name,
"Freeware");
6924 (void) sprintf(name+8,
"(%d)", i+1);
6933 if (!lmem[_fANTLR] && !lmem[_fCLA] && !lmem[_mPYTHON] && !lmem[_mGFDL] &&
6934 !lmem[_fODBL] && !lmem[_fPDDL] && !lmem[_fRUBY] && !lmem[_fSAX] && !lmem[_fAPL] && !lmem[_mAPACHE] && !lmem[_mAPACHE10] && !lmem[_mAPACHE11] &&
6935 !lmem[_fARTISTIC] && !lmem[_fCITRIX] && !lmem[_mLGPL] && !lmem[_fBSD]&&
NOT_INFILE(_TITLE_D_FSL_10)
6937 pd = checkPublicDomain(filetext, size, score, kwbm, isML, isPS);
6954 if (maxInterest != IL_HIGH && !HASKW(kwbm, _KW_public_domain) &&
6956 if (
INFILE(_LT_NONCOMMERCIAL_1)) {
6957 INTERESTING(
lDebug ?
"NonC(1)" :
"Non-commercial");
6959 else if (
INFILE(_LT_ZZNON_COMMERC1)) {
6960 INTERESTING(
lDebug ?
"NonC(2)" :
"Non-commercial");
6962 else if (
INFILE(_LT_ZZNON_COMMERC2)) {
6963 INTERESTING(
lDebug ?
"NonC(3)" :
"Non-commercial");
6965 else if (
HASTEXT(_TEXT_COMMERC, 0) &&
6966 INFILE(_PHR_NONCOMMERCIAL)) {
6967 INTERESTING(
lDebug ?
"NonC(4)" :
"Non-commercial");
6970 if (
INFILE(_LT_NOT_OPENSOURCE)) {
6971 INTERESTING(
"Not-OpenSource");
6979 if (maxInterest != IL_HIGH) {
6981 if (
INFILE(_LT_GEN_PROPRIETARY_1)) {
6982 INTERESTING(
lDebug ?
"Prop(1)" :
"COMMERCIAL");
6985 else if (
INFILE(_LT_GEN_PROPRIETARY_2)) {
6986 INTERESTING(
lDebug ?
"Prop(2)" :
"COMMERCIAL");
6989 else if (
INFILE(_LT_GEN_PROPRIETARY_3)) {
6990 INTERESTING(
lDebug ?
"Prop(3)" :
"COMMERCIAL");
6993 else if (
INFILE(_LT_GEN_PROPRIETARY_4)) {
6994 INTERESTING(
lDebug ?
"Prop(4)" :
"COMMERCIAL");
6997 else if (
INFILE(_LT_GEN_PROPRIETARY_5)) {
6998 INTERESTING(
lDebug ?
"Prop(5)" :
"COMMERCIAL");
7001 else if (
INFILE(_LT_GEN_PROPRIETARY_6)) {
7002 INTERESTING(
lDebug ?
"Prop(6)" :
"COMMERCIAL");
7005 else if (
INFILE(_LT_GEN_PROPRIETARY_7)) {
7006 INTERESTING(
lDebug ?
"Prop(7)" :
"COMMERCIAL");
7009 else if (
INFILE(_LT_GEN_PROPRIETARY_8)) {
7010 INTERESTING(
lDebug ?
"Prop(8)" :
"COMMERCIAL");
7028 if (maxInterest != IL_HIGH) {
7029 if (
INFILE(_LT_COMMERCIAL_1)) {
7030 INTERESTING(
lDebug ?
"COMM(1)" :
"COMMERCIAL");
7032 else if (
INFILE(_LT_COMMERCIAL_2)) {
7033 INTERESTING(
lDebug ?
"COMM(2)" :
"COMMERCIAL");
7035 else if (
HASTEXT(_LT_COMMERCIAL_3, REG_EXTENDED)) {
7036 if (
HASTEXT(_LT_COMMERCIAL_Intel, REG_EXTENDED)) {
7037 INTERESTING(
"Intel.Commercial");
7038 }
else if (
HASTEXT(_LT_COMMERCIAL_Broadcom, REG_EXTENDED)) {
7039 INTERESTING(
"Broadcom.Commercial");
7041 INTERESTING(
lDebug ?
"COMM(3)" :
"COMMERCIAL");
7044 else if (
INFILE(_LT_COMMERCIAL_4)) {
7045 if (
HASTEXT(_LT_COMMERCIAL_Android_Fraunhofer, 0)) {
7046 INTERESTING(
"AndroidFraunhofer.Commercial");
7048 INTERESTING(
lDebug ?
"COMM(4)" :
"COMMERCIAL");
7051 else if (
HASTEXT(_TEXT_BOOK, 0) &&
INFILE(_LT_BOOKPURCHASE)) {
7052 INTERESTING(
lDebug ?
"PurchBook" :
"COMMERCIAL");
7054 else if (
INFILE(_LT_COMMERCIAL_5)) {
7055 INTERESTING(
lDebug ?
"COMM(5)" :
"COMMERCIAL");
7057 else if (
INFILE(_LT_COMMERCIAL_6)) {
7058 INTERESTING(
lDebug ?
"COMM(6)" :
"COMMERCIAL");
7060 if (
INFILE(_LT_NONPROFIT_1)) {
7061 MEDINTEREST(
lDebug ?
"NonP(1)" :
"Non-profit");
7063 else if (!lmem[_mPYTH_TEXT] &&
HASTEXT(_TEXT_PROFIT, 0) &&
7064 INFILE(_PHR_NONPROFIT)) {
7065 if (!(lmem[_fIETF] + lmem[_fDOC])) {
7066 MEDINTEREST(
lDebug ?
"NonP(2)" :
"Non-profit");
7069 if (
INFILE(_PHR_NO_SALE)) {
7070 MEDINTEREST(
"Not-for-sale");
7072 if (!lmem[_mALADDIN] &&
INFILE(_PHR_NOT_OPEN)) {
7073 MEDINTEREST(
"NOT-Open-Source");
7075 if (HASKW(kwbm, _KW_patent) &&
INFILE(_PHR_PATENT) &&
NOT_INFILE(_PHR_PATENT_NOT)) {
7076 MEDINTEREST(
"Patent-ref");
7078 if (
INFILE(_PHR_RESTRICT_RIGHTS)) {
7079 if (
INFILE(_PHR_USGOVT_RESTRICT)) {
7080 MEDINTEREST(
"Govt-restrict");
7083 MEDINTEREST(
"Restricted-rights");
7086 if (
INFILE(_LT_EXPORTS_USA)) {
7087 MEDINTEREST(
"US-Export-restrict");
7090 checkPublicDomain(filetext, size, score, kwbm, isML, isPS);
7107 for (i = 0, j = _MINlicense_first; i < NMINlicense; i++, j++) {
7109 cp = strchr(
_REGEX(j),
' ');
7111 Assert(
NO,
"Bad reference[1] %d", j);
7117 (void) sprintf(name,
"%s-possibility",
7128 for (i = 0, j = _MINsource_first; i < NMINsource; i++, j++) {
7130 cp = strchr(
_REGEX(j),
' ');
7132 Assert(
NO,
"Bad reference[2] %d", j);
7138 (void) sprintf(name,
"%s-possibility",
7149 for (i = 0, j = _MINcpyrt_first; i < NMINcpyrt; i++, j++) {
7151 cp = strchr(
_REGEX(j),
' ');
7153 Assert(
NO,
"Bad reference[2] %d", j);
7159 (void) sprintf(name,
"%s-possibility",
7178 if (maxInterest != IL_HIGH && !lmem[_fDOC]) {
7182 strcpy(name, LS_UNCL);
7184 strcat(name,
"(PS)");
7189 #ifdef UNKNOWN_CHECK_DEBUG 7191 printf(
"... NOT an Unclassified license, NW %d PD %d\n",
7202 if (maxInterest != IL_HIGH &&
pd <= 0) {
7207 printf(
"DEBUG: static lists in parseLicenses():\n");
7209 memStats(
"parseLicenses: pre-Free");
7213 memStats(
"parseLicenses: EOP");
7216 showLTCache(
"LTSR-results AFTER:");
7218 #ifdef FLAG_NO_COPYRIGHT 7219 if (!
SEEN(_CR_ZZZANY)) {
7220 (void)
INFILE(_CR_ZZZANY);
7222 if (!
SEEN(_CR_ZZZWRONG_1)) {
7223 (void)
INFILE(_CR_ZZZWRONG_1);
7225 if (
LVAL(_CR_ZZZANY)+
LVAL(_CR_ZZZWRONG_1)+
7226 HASREGEX(_CR_ZZZWRONG_2, filetext) == 0) {
7227 gl.
flags |= FL_NOCOPYRIGHT;
7231 if (whereList.
used) {
7250 traceFunc(
"== sisslVersion()\n");
7253 if (
INFILE(_TITLE_SISSL_V11)) {
7256 else if (
INFILE(_TITLE_SISSL_V12)) {
7277 traceFunc(
"== aslVersion()\n");
7287 else if (
INFILE(_CR_IMAGEMAGICK)) {
7288 lstr =
"ImageMagick(Apache)";
7294 else if (
INFILE(_SPDX_Apache_20)) {
7295 lstr = (
lDebug ?
"Apache-2.0(SPDX)" :
"Apache-2.0");
7298 else if (
INFILE(_TITLE_Apache_20)) {
7299 lstr = (
lDebug ?
"Apache-2(f)" :
"Apache-2.0");
7302 else if (
INFILE(_PHR_Apache_20_ref1) ||
INFILE(_PHR_Apache_20_ref2) ||
INFILE(_PHR_Apache_20_ref3))
7304 lstr = (
lDebug ?
"PHR_Apache_20_ref(1-5)" :
"Apache-2.0");
7308 lstr = (
lDebug ?
"Apache-2.0(u)" :
"Apache-2.0");
7313 lstr = (
lDebug ?
"Apache(2.0#2)" :
"Apache-2.0");
7316 else if (
INFILE(_PHR_Apache_20_ref4) ||
INFILE(_PHR_Apache_20_ref5) ||
INFILE(_PHR_Apache_20_ref6)) {
7317 lstr = (
lDebug ?
"Apache(2.0#3)" :
"Apache-2.0");
7320 else if (
INFILE(_TITLE_Apache_20)) {
7321 lstr = (
lDebug ?
"Apache(2.0#4)" :
"Apache-2.0");
7325 lstr = (
lDebug ?
"Apache2(url#1)" :
"Apache-2.0");
7329 lstr = (
lDebug ?
"Apache2(url#2)" :
"Apache-2.0");
7335 else if (
INFILE(_SPDX_Apache_11)) {
7336 lstr = (
lDebug ?
"Apache-1.1(SPDX)" :
"Apache-1.1");
7337 lmem[_mAPACHE11] = 1;
7339 else if (
INFILE(_TITLE_Apache_11)) {
7340 lstr = (
lDebug ?
"Apache-1.1(f)" :
"Apache-1.1");
7341 lmem[_mAPACHE11] = 1;
7344 lstr = (
lDebug ?
"Apache-1.1(u)" :
"Apache-1.1");
7345 lmem[_mAPACHE11] = 1;
7347 else if (
INFILE(_LT_Apache_11_CLAUSE_3) &&
INFILE(_LT_Apache_11_CLAUSE_4) &&
INFILE(_LT_Apache_11_CLAUSE_5)) {
7348 lstr = (
lDebug ?
"Apache-1.1(clauses)" :
"Apache-1.1");
7349 lmem[_mAPACHE11] = 1;
7351 else if (
INFILE(_PHR_Apache_11_ref1)) {
7352 lstr = (
lDebug ?
"Apache(1.1#phr)" :
"Apache-1.1");
7353 lmem[_mAPACHE11] = 1;
7358 else if (
INFILE(_SPDX_Apache_10)) {
7359 lstr = (
lDebug ?
"Apache-1.0(SPDX)" :
"Apache-1.0");
7360 lmem[_mAPACHE10] = 1;
7362 else if (
INFILE(_PHR_Apache_ref2)) {
7363 lstr = (
lDebug ?
"Apache-1.0(f)" :
"Apache-1.0");
7364 lmem[_mAPACHE10] = 1;
7366 else if (
INFILE(_LT_Apache_10_CLAUSE_4)) {
7367 lstr = (
lDebug ?
"Apache-1.0(g)" :
"Apache-1.0");
7368 lmem[_mAPACHE10] = 1;
7371 lstr = (
lDebug ?
"Apache-1.0(u)" :
"Apache-v1.0");
7372 lmem[_mAPACHE10] = 1;
7377 else if (
INFILE(_LT_BSD_1)) {
7379 if (
INFILE(_PHR_Apache_20_ref6)) {
7380 lstr = (
lDebug ?
"Apache-20_ref6" :
"Apache-2.0");
7383 else if (
INFILE(_PHR_Apache_11_ref2)) {
7384 lstr = (
lDebug ?
"Apache(1.1#2)" :
"Apache-1.1");
7385 lmem[_mAPACHE11] = 1;
7387 else if ((
INFILE(_PHR_Apache_ref2) ||
INFILE(_LT_Apache_10_CLAUSE_4))) {
7388 lstr = (
lDebug ?
"Apache(1.0#2)" :
"Apache-1.0");
7389 lmem[_mAPACHE10] = 1;
7392 lstr = (
lDebug ?
"Apache(title)" :
"Apache");
7400 else if (!lmem[_fREAL] &&
INFILE(_SPDX_Apache)) {
7401 lstr = (
lDebug ?
"Apache(SPDX)" :
"Apache");
7404 else if (
INFILE(_PHR_Apache_ref1)) {
7405 INTERESTING(
lDebug ?
"Apache(ref#1)" :
"Apache");
7408 else if (
INFILE(_PHR_Apache_ref4)) {
7409 lstr = (
lDebug ?
"Apache(ref#3)" :
"Apache");
7412 else if (
INFILE(_PHR_Apache_ref3)) {
7413 lstr = (
lDebug ?
"Apache(ref#4)" :
"Apache");
7417 lstr = (
lDebug ?
"Apache(url#1)" :
"Apache");
7421 lstr = (
lDebug ?
"Apache(url#2)" :
"Apache");
7424 else if (
INFILE(_PHR_Apache_ref6)) {
7425 lstr = (
lDebug ?
"Apache(ref#6)" :
"Apache");
7433 else if (
INFILE(_LT_Apache_1)) {
7434 lstr = (
lDebug ?
"Apache(1)" :
"Apache");
7437 else if (
INFILE(_LT_Apache_2)) {
7438 lstr = (
lDebug ?
"Apache(2)" :
"Apache");
7441 else if (
INFILE(_LT_APACHESTYLEref)) {
7442 lstr = (
"Apache-style");
7461 traceFunc(
"== mplNplVersion()\n");
7464 if (
INFILE(_TITLE_MPL11_OR_LATER)) {
7467 else if (
INFILE(_LT_MPL11_ref)) {
7470 else if (
INFILE(_TITLE_NPL11_MPL)) {
7473 else if (
INFILE(_TITLE_MPL11) &&
INFILE(_TITLE_MPL_style)) {
7474 lstr =
"MPL-1.1-style";
7476 else if (
INFILE(_TITLE_SUGARCRM_PL)) {
7477 lstr =
"SugarCRM-1.1.3";
7481 else if (
INFILE(_TITLE_MPL11) && !
HASTEXT(_LT_NP_AME, REG_EXTENDED)) {
7484 else if (
INFILE(_TITLE_MPL20_EXCEPTION)) {
7485 lstr =
"MPL-2.0-no-copyleft-exception";
7490 else if (
INFILE(_TITLE_MPL10) &&
INFILE(_TITLE_ERLPL)) {
7493 else if (
INFILE(_TITLE_MPL10)) {
7496 else if (
INFILE(_TITLE_MPL_EULA_30)) {
7497 lstr =
"MPL-EULA-3.0";
7499 else if (
INFILE(_TITLE_MPL_EULA_20)) {
7500 lstr =
"MPL-EULA-2.0";
7502 else if (
INFILE(_TITLE_MPL_EULA_11)) {
7503 lstr =
"MPL-EULA-1.1";
7506 lstr = (
lDebug ?
"NPL1.0(url)" :
"NPL-1.0");
7509 lstr = (
lDebug ?
"NPL1.1(url)" :
"NPL-1.1");
7512 lstr = (
lDebug ?
"MPL1.0(url)" :
"MPL-1.0");
7515 lstr = (
lDebug ?
"MPL1.1(url)" :
"MPL-1.1");
7517 else if (
INFILE(_FILE_MPL10)) {
7518 lstr = (
lDebug ?
"MPL1.0(file)" :
"MPL-1.0");
7520 else if (
INFILE(_FILE_MPL11)) {
7521 lstr = (
lDebug ?
"MPL1.1(file)" :
"MPL-1.1");
7523 else if (
INFILE(_TITLE_NPL11_OR_LATER)) {
7526 else if (
INFILE(_TITLE_NPL11)) {
7529 else if (
INFILE(_TITLE_NPL10)) {
7533 lstr = (
lDebug ?
"NPL(url)" :
"NPL");
7535 else if (
INFILE(_SPDX_MPL_10)) {
7538 else if (
INFILE(_SPDX_MPL_11)) {
7541 else if (
INFILE(_SPDX_MPL_20_no_copyleft_exception)) {
7542 lstr =
"MPL-2.0-no-copyleft-exception";
7544 else if (
INFILE(_SPDX_MPL_20)) {
7548 lstr = (
lDebug ?
"MPL(latest)" :
"MPL");
7551 lstr = (
lDebug ?
"MPL(url)" :
"MPL");
7553 else if (
INFILE(_TITLE_NPL)) {
7556 else if (
INFILE(_TITLE_MPL)) {
7560 lstr = (
lDebug ?
"MPL(last)" :
"MPL");
7573 char *
realVersion(
char *filetext,
int size,
int isML,
int isPS,
int ref)
7578 traceFunc(
"== realVersion()\n");
7581 if (ref == _TITLE_RPSL) {
7582 if (
INFILE(_TITLE_RPSL_V30)) {
7585 else if (
INFILE(_TITLE_RPSL_V20)) {
7588 else if (
INFILE(_TITLE_RPSL_V10)) {
7591 else if (
INFILE(_TITLE_RPSL)) {
7595 else if (ref == _TITLE_RCSL) {
7596 if (
INFILE(_TITLE_RCSL_V30)) {
7599 else if (
INFILE(_TITLE_RCSL_V20)) {
7602 else if (
INFILE(_TITLE_RCSL_V10)) {
7605 else if (
INFILE(_TITLE_RCSL)) {
7610 lstr =
"RealNetworks-Unknown";
7628 traceFunc(
"== pythonVersion()\n");
7631 if (
INFILE(_TITLE_PYTHON201)) {
7632 lstr =
"Python-2.0.1";
7634 else if (
INFILE(_TITLE_PYTHON202)) {
7635 lstr =
"Python-2.0.2";
7637 else if (
INFILE(_TITLE_PYTHON211)) {
7638 lstr =
"Python-2.1.1";
7640 else if (
INFILE(_TITLE_PYTHON213)) {
7641 lstr =
"Python-2.1.3";
7643 else if (
INFILE(_TITLE_PYTHON223)) {
7644 lstr =
"Python-2.2.3";
7646 else if (
INFILE(_TITLE_PYTHON227)) {
7647 lstr =
"Python-2.2.7";
7649 else if (
INFILE(_TITLE_PYTHON237)) {
7650 lstr =
"Python-2.3.7";
7652 else if (
INFILE(_TITLE_PYTHON244)) {
7653 lstr =
"Python-2.4.4";
7655 else if (
INFILE(_TITLE_PYTHON22)) {
7656 lstr =
"Python-2.2";
7658 else if (
INFILE(_TITLE_PYTHON23)) {
7659 lstr =
"Python-2.3";
7661 else if (
INFILE(_TITLE_PYTHON2)) {
7662 lstr =
"Python-2.0";
7683 traceFunc(
"== aflVersion()\n");
7686 if (
INFILE(_TITLE_AFL30)) {
7687 lstr =
lDebug?
"AFL(v3.0#1)" :
"AFL-3.0";
7689 else if (
INFILE(_TITLE_AFL21)) {
7690 lstr =
lDebug?
"AFL(v2.1#1)" :
"AFL-2.1";
7692 else if (
INFILE(_TITLE_AFL20)) {
7693 lstr =
lDebug?
"AFL(v2.0#1)" :
"AFL-2.0";
7695 else if (
INFILE(_TITLE_AFL12)) {
7696 lstr =
lDebug?
"AFL(v1.2#1)" :
"AFL-1.2";
7698 else if (
INFILE(_TITLE_AFL11)) {
7699 lstr =
lDebug?
"AFL(v1.1#1)" :
"AFL-1.1";
7701 else if (
INFILE(_TITLE_AFL10)) {
7702 lstr =
lDebug?
"AFL(v1.0#1)" :
"AFL-1.0";
7723 traceFunc(
"== oslVersion()\n");
7726 if (
INFILE(_TITLE_NON_PROFIT_OSL30)) {
7729 else if (
INFILE(_TITLE_OSL30)) {
7730 lstr =
lDebug?
"OSL(v3.0#1)" :
"OSL-3.0";
7732 else if (
INFILE(_TITLE_OSL21)) {
7733 lstr =
lDebug?
"OSL(v2.1#1)" :
"OSL-2.1";
7735 else if (
INFILE(_TITLE_OSL20)) {
7736 lstr =
lDebug?
"OSL(v2.0#1)" :
"OSL-2.0";
7738 else if (
INFILE(_TITLE_OSL11)) {
7739 lstr =
lDebug?
"OSL(v1.1#1)" :
"OSL-1.1";
7741 else if (
INFILE(_TITLE_OSL10)) {
7742 lstr =
lDebug?
"OSL(v1.0#1)" :
"OSL-1.0";
7763 traceFunc(
"== cddlVersion()\n");
7766 if (
INFILE(_TITLE_CDDL_10)) {
7769 else if (
INFILE(_SPDX_CDDL_10)) {
7770 INTERESTING(
"CDDL-1.0");
7775 else if (
INFILE(_TITLE_CDDL_11)) {
7778 else if (
INFILE(_SPDX_CDDL_11)) {
7779 INTERESTING(
"CDDL-1.1");
7803 traceFunc(
"== lpplVersion()\n");
7806 if (
INFILE(_PHR_LATEX_PL13A_OR_LATER_1) ||
7807 INFILE(_PHR_LATEX_PL13A_OR_LATER_2)) {
7808 if (
INFILE(_LT_LATEX_PREAMBLE)) {
7809 lstr =
lDebug ?
"LPPL-v1.3a(#1)" :
"LPPL-1.3a";
7812 lstr =
"LPPL-1.3a+";
7815 else if (
INFILE(_TITLE_LATEX_PL13A) ||
INFILE(_PHR_LATEX_PL13A)) {
7816 lstr =
lDebug ?
"LPPL-v1.3a(#2)" :
"LPPL-1.3a";
7818 else if (
INFILE(_PHR_LATEX_PL13B_OR_LATER_1) ||
7819 INFILE(_PHR_LATEX_PL13B_OR_LATER_2)) {
7820 if (
INFILE(_LT_LATEX_PREAMBLE)) {
7821 lstr =
lDebug ?
"LPPL-v1.3b(#1)" :
"LPPL-1.3b";
7824 lstr =
"LPPL-1.3b+";
7827 else if (
INFILE(_TITLE_LATEX_PL13B) ||
INFILE(_PHR_LATEX_PL13B)) {
7828 lstr =
lDebug ?
"LPPL-v1.3b(#2)" :
"LPPL-1.3b";
7830 else if (
INFILE(_PHR_LATEX_PL13C_OR_LATER_1) ||
7831 INFILE(_PHR_LATEX_PL13C_OR_LATER_2)) {
7832 if (
INFILE(_LT_LATEX_PREAMBLE)) {
7833 lstr =
lDebug ?
"LPPL-v1.3c(#1)" :
"LPPL-1.3c";
7836 lstr =
"LPPL-1.3c+";
7839 else if (
INFILE(_TITLE_LATEX_PL13C) ||
INFILE(_PHR_LATEX_PL13C)) {
7840 lstr =
lDebug ?
"LPPL-v1.3c(#2)" :
"LPPL-1.3c";
7842 else if (
INFILE(_PHR_LATEX_PL13_OR_LATER_1) ||
7843 INFILE(_PHR_LATEX_PL13_OR_LATER_2)) {
7844 if (
INFILE(_LT_LATEX_PREAMBLE)) {
7845 lstr =
lDebug ?
"LPPL-v1.3(#1)" :
"LPPL-1.3";
7851 else if (
INFILE(_TITLE_LATEX_PL13) ||
INFILE(_PHR_LATEX_PL13)) {
7852 lstr =
lDebug ?
"LPPL-v1.3(#2)" :
"LPPL-1.3";
7854 else if (
INFILE(_PHR_LATEX_PL12_OR_LATER_1) ||
7855 INFILE(_PHR_LATEX_PL12_OR_LATER_2)) {
7856 if (
INFILE(_LT_LATEX_PREAMBLE)) {
7857 lstr =
lDebug ?
"LPPL-v1.2(#1)" :
"LPPL-1.2";
7863 else if (
INFILE(_TITLE_LATEX_PL12) ||
INFILE(_PHR_LATEX_PL12)) {
7864 lstr =
lDebug ?
"LPPL-v1.2(#2)" :
"LPPL-1.2";
7866 else if (
INFILE(_PHR_LATEX_PL11_OR_LATER_1) ||
7867 INFILE(_PHR_LATEX_PL11_OR_LATER_2)) {
7868 if (
INFILE(_LT_LATEX_PREAMBLE)) {
7869 lstr =
lDebug ?
"LPPL-v1.1(#1)" :
"LPPL-1.1";
7875 else if (
INFILE(_TITLE_LATEX_PL11) ||
INFILE(_PHR_LATEX_PL11)) {
7876 lstr =
lDebug ?
"LPPL-v1.1(#2)" :
"LPPL-1.1";
7878 else if (
INFILE(_PHR_LATEX_PL10_OR_LATER_1) ||
7879 INFILE(_PHR_LATEX_PL10_OR_LATER_2)) {
7880 if (
INFILE(_LT_LATEX_PREAMBLE)) {
7881 lstr =
lDebug ?
"LPPL-v1.0(#1)" :
"LPPL-1.0";
7887 else if (
INFILE(_TITLE_LATEX_PL10) ||
INFILE(_PHR_LATEX_PL10)) {
7888 lstr =
lDebug ?
"LPPL-v1.0(#2)" :
"LPPL-1.0";
7909 traceFunc(
"== agplVersion()\n");
7917 if (
INFILE(_PHR_AGPL_10_or_later)
7918 ||
INFILE(_TITLE_AGPL_10_or_later)
7919 ||
INFILE(_SPDX_AGPL_10_or_later)
7920 ||
HASTEXT(_SPDX_AGPL_10plus, REG_EXTENDED)
7921 ||
HASTEXT(_PHR_AGPL_10plus, REG_EXTENDED))
7925 else if (
INFILE(_PHR_FSF_V1_ONLY)
7926 ||
INFILE(_TITLE_AGPL_10_only)
7927 ||
INFILE(_SPDX_AGPL_10))
7931 else if (
INFILE(_PHR_AGPL_30_or_later)
7932 ||
INFILE(_TITLE_AGPL_30_or_later_ref1)
7933 ||
INFILE(_TITLE_AGPL_30_or_later)
7934 ||
INFILE(_SPDX_AGPL_30_or_later)
7935 ||
HASTEXT(_SPDX_AGPL_30plus, REG_EXTENDED)
7936 ||
HASTEXT(_PHR_AGPL_30plus, REG_EXTENDED))
7938 if (
INFILE(_LT_AGPL_30)) {
7939 lstr =
lDebug ?
"Affero-v3(#1)" :
"AGPL-3.0";
7945 else if (
HASTEXT(_PHR_AGPL_30_1, REG_EXTENDED) ||
INFILE(_SPDX_AGPL_30)) {
7949 if (
INFILE(_TITLE_GPL3)) {
7950 lstr =
lDebug ?
"GPLv3(Affero#1)" :
"GPL-3.0";
7952 else if (
INFILE(_LT_GPL3ref3)){
7953 lstr =
lDebug ?
"GPLv3(special)" :
"GPL-3.0";
7956 lstr =
lDebug ?
"Affero-v3(#2)" :
"AGPL-3.0";
7959 else if (
INFILE(_TITLE_AGPL_30_only)) {
7960 lstr =
lDebug ?
"Affero-v3(#3)" :
"AGPL-3.0";
7962 else if (
INFILE(_TITLE_GPL3)) {
7963 lstr =
lDebug ?
"GPLv3(Affero#2)" :
"GPL-3.0";
7966 lstr =
lDebug ?
"Affero-v3(url)" :
"AGPL-3.0";
7987 traceFunc(
"== gfdlVersion()\n");
7995 if (
INFILE(_TITLE_GFDL_V13_FULL_LICENSE)) {
7998 if (
HASTEXT(_LT_CC_ref, REG_EXTENDED)) {
8002 else if (
INFILE(_TITLE_GFDL_V13_OR_LATER)) {
8005 else if (
INFILE(_TITLE_GFDL_V13_ONLY)) {
8006 lstr =
lDebug ?
"GFDL-1.3(#1)" :
"GFDL-1.3";
8008 else if (
INFILE(_TITLE_GFDL_V12_FULL_LICENSE)) {
8009 lstr =
lDebug ?
"GFDL-1.2(#1)" :
"GFDL-1.2";
8011 else if (
INFILE(_PHR_FSF_V12_OR_LATER) ||
8012 INFILE(_TITLE_GFDL_V12_OR_LATER)) {
8015 else if (
INFILE(_TITLE_GFDL_V12_ONLY)) {
8016 lstr =
lDebug ?
"GFDL-1.2(#1)" :
"GFDL-1.2";
8018 else if (
INFILE(_TITLE_GFDL_V11_FULL_LICENSE)) {
8019 lstr =
lDebug ?
"GFDL-1.1(#1)" :
"GFDL-1.1";
8021 else if (
INFILE(_PHR_FSF_V11_OR_LATER) ||
8022 INFILE(_TITLE_GFDL_V11_OR_LATER)) {
8025 else if (
INFILE(_TITLE_GFDL_V11_ONLY)) {
8026 lstr =
lDebug ?
"GFDL-1.1(#1)" :
"GFDL-1.1";
8028 else if (
INFILE(_PHR_FSF_V12_ONLY)) {
8029 lstr =
lDebug ?
"GFDL-1.2(#2)" :
"GFDL-1.2";
8031 else if (
INFILE(_PHR_FSF_V11_ONLY)) {
8032 lstr =
lDebug ?
"GFDL-1.1(#2)" :
"GFDL-1.1";
8053 traceFunc(
"== lgplVersion()\n");
8056 if ((
INFILE(_PHR_LGPL21_OR_LATER_1)
8057 ||
INFILE(_PHR_LGPL21_OR_LATER_2)
8058 ||
HASTEXT(_PHR_LGPL21_OR_LATER_3, REG_EXTENDED)
8059 ||
HASTEXT(_PHR_LGPL21_OR_LATER_4, REG_EXTENDED))
8060 && !
HASTEXT(_LT_IGNORE_CLAUSE, REG_EXTENDED))
8062 if (
INFILE(_TITLE_LGPL_KDE)) {
8063 lstr =
"LGPL-2.1+-KDE-exception";
8069 else if ((
INFILE(_PHR_LGPL3_OR_LATER)
8070 ||
INFILE(_PHR_LGPL3_OR_LATER_ref1)
8071 ||
INFILE(_PHR_LGPL3_OR_LATER_ref2)
8072 ||
HASTEXT(_PHR_LGPL3_OR_LATER_ref3, REG_EXTENDED)
8073 ||
HASTEXT(_SPDX_LGPL_30plus, REG_EXTENDED)
8074 ||
HASTEXT(_PHR_LGPL_30plus, REG_EXTENDED))
8075 && !
HASTEXT(_LT_IGNORE_CLAUSE, REG_EXTENDED))
8090 else if (
INFILE(_PHR_LGPL21_ONLY)
8093 ||
INFILE(_PHR_LGPL21_ONLY_ref)
8094 ||
INFILE(_PHR_LGPL21_ONLY_ref2)
8095 ||
INFILE(_PHR_LGPL21_ONLY_ref3)
8096 ||
INFILE(_PHR_LGPL21_ONLY_ref4))
8100 else if ((
INFILE(_PHR_LGPL2_OR_LATER)
8101 ||
HASTEXT(_PHR_LGPL2_OR_LATER_2, REG_EXTENDED)
8102 ||
HASTEXT(_PHR_LGPL2_OR_LATER_3, REG_EXTENDED))
8103 && !
HASTEXT(_LT_IGNORE_CLAUSE, REG_EXTENDED))
8110 else if (
INFILE(_PHR_LGPL1_OR_LATER) && !
HASTEXT(_LT_IGNORE_CLAUSE, REG_EXTENDED)) {
8113 else if (
INFILE(_PHR_LGPL1_ONLY) ||
INFILE(_PHR_FSF_V1_ONLY)) {
8117 lstr =
lDebug ?
"CC-LGPL-2.1" :
"LGPL-2.1";
8119 else if (
INFILE(_LT_CC_GPL) ||
INFILE(_TITLE_CC_LGPL)) {
8123 HASREGEX(_TEXT_LGPLV3, filetext)) {
8124 lstr =
lDebug ?
"LGPL-v3(#2)" :
"LGPL-3.0";
8126 else if (
INFILE(_TEXT_LGPLV21) &&
8127 HASREGEX(_TEXT_LGPLV21, filetext)) {
8128 lstr =
lDebug ?
"LGPL-v2.1(#2)" :
"LGPL-2.1";
8130 else if (
INFILE(_TEXT_LGPLV2) &&
8131 HASREGEX(_TEXT_LGPLV2, filetext)) {
8132 lstr =
lDebug ?
"LGPL-v2(#2)" :
"LGPL-2.0";
8134 else if (
INFILE(_SPDX_LGPL_20)) {
8137 else if (
INFILE(_SPDX_LGPL_21)) {
8140 else if (
INFILE(_SPDX_LGPL_30)) {
8162 traceFunc(
"== gplVersion()\n");
8166 if (
INFILE(_PHR_GPL21_OR_LATER) && !
HASTEXT(_LT_IGNORE_CLAUSE, REG_EXTENDED)) {
8167 lstr =
"GPL-2.1+[sic]";
8173 &&
INFILE(_PHR_GPL2_OR_LATER_1))
8175 lstr =
"GPL-2.0+,GPL-3.0";
8177 else if (
HASTEXT(_LT_GPL_V2_NAMED_later, REG_EXTENDED) ||
INFILE(_TITLE_GPL2_ref1_later)) {
8178 lstr =
lDebug ?
"GPLV2+(named)" :
"GPL-2.0+";
8180 else if (
INFILE(_PHR_GPL2_OR_LATER_1)) {
8181 if (
INFILE(_TITLE_GPL_KDE)) {
8182 lstr =
"GPL-2.0+KDEupgradeClause";
8184 else if (
INFILE(_PHR_GPL2_ONLY_2) ||
INFILE(_PHR_GPL2_ONLY_3)) {
8189 lstr =
"GPL-2.0+,GPL-3.0+";
8191 else if (!
HASTEXT(_LT_IGNORE_CLAUSE, REG_EXTENDED)) {
8192 lstr =
lDebug ?
"PHR(GPL2_OR_LATER#3)" :
"GPL-2.0+";
8194 else if (
INFILE(_TITLE_GPL2_ref1) ||
INFILE(_TITLE_GPL2_ref2)) {
8195 lstr =
lDebug ?
"GPL-2.0(title)" :
"GPL-2.0";
8198 else if (
INFILE(_PHR_GPL2_ONLY_4)) {
8201 else if (
INFILE(_PHR_GPL2_ONLY_5)) {
8205 lstr =
"GPL-2.0,GPL-3.0";
8211 ||
HASTEXT(_SPDX_GPL_30plus, REG_EXTENDED)
8212 ||
HASTEXT(_PHR_GPL_30plus, REG_EXTENDED))
8214 if (!
HASTEXT(_LT_IGNORE_CLAUSE, REG_EXTENDED)) {
8220 lstr =
lDebug ?
"GPL-v3(#2)" :
"GPL-3.0";
8222 else if (
INFILE(_PHR_FSF_V21_ONLY) ||
INFILE(_PHR_GPL21_ONLY)) {
8223 lstr =
lDebug ?
"GPL-v2.1[sic]" :
"GPL-2.1[sic]";
8225 else if (
INFILE(_PHR_FSF_V2_ONLY) ||
INFILE(_PHR_GPL2_ONLY) ||
INFILE(_PHR_GPL2_ONLY_1) ||
8227 lstr =
lDebug ?
"GPL-v2(#2)" :
"GPL-2.0";
8230 ||
INFILE(_PHR_GPL1_OR_LATER)
8231 ||
HASTEXT(_SPDX_GPL_10plus, REG_EXTENDED)
8232 ||
HASTEXT(_PHR_GPL_10plus, REG_EXTENDED))
8234 if (
INFILE(_TITLE_GPL1)) {
8235 lstr =
lDebug ?
"GPL-v1(#1)" :
"GPL-1.0";
8237 else if (!
HASTEXT(_LT_IGNORE_CLAUSE, REG_EXTENDED)) {
8241 else if (
INFILE(_PHR_FSF_V1_ONLY) ||
INFILE(_PHR_GPL1_ONLY)) {
8242 lstr =
lDebug ?
"GPL-v1(#2)" :
"GPL-1.0";
8247 else if (
INFILE(_LT_GPL_V2_ref5)) {
8248 lstr =
lDebug ?
"GPL-2.0(ref5)" :
"GPL-2.0";
8250 else if (
INFILE(_LT_CC_GPL) ||
INFILE(_TITLE_CC_GPL)) {
8251 lstr =
lDebug ?
"GPL(CC_GPL)" :
"GPL";
8255 lstr =
lDebug ?
"GPL-v3(#3)" :
"GPL-3.0";
8258 lstr =
lDebug ?
"GPL-v2(#3)" :
"GPL-2.0";
8262 lstr =
lDebug ?
"GPL-v1(#3)" :
"GPL-1.0";
8264 else if (
HASTEXT(_SPDX_GPL_10, REG_EXTENDED)) {
8265 lstr =
lDebug ?
"GPL-1.0(SPDX)" :
"GPL-1.0";
8267 else if (
HASTEXT(_SPDX_GPL_20, REG_EXTENDED)) {
8268 lstr =
lDebug ?
"GPL-2.0(SPDX)" :
"GPL-2.0";
8270 else if (
HASTEXT(_SPDX_GPL_30, REG_EXTENDED)) {
8271 lstr =
lDebug ?
"GPL-3.0(SPDX)" :
"GPL-3.0";
8276 else if (
INFILE(_TEXT_GPLV3_CR) && !
HASTEXT(_LT_IGNORE_CLAUSE, REG_EXTENDED)) {
8280 lstr =
lDebug ?
"GPL(deb)" :
"GPL";
8289 else if (
INFILE(_TITLE_MODULE_LICENSE_GPL)) {
8290 lstr =
lDebug ?
"GPL(linux-kernel)" :
"GPL";
8300 printf(
"GPL-META-CHECK: base %p, so %d eo %d\n",
8304 if (
HASREGEX(_LT_GPL_META_DEBIAN, cp)) {
8310 lstr =
lDebug ?
"GPL(NULL)" :
"GPL";
8328 traceFunc(
"== cplVersion()\n");
8331 if (
INFILE(_TITLE_CPL_10)) {
8337 else if (
INFILE(_TITLE_CPL_05)) {
8354 char *
ccVersion(
char *filetext,
int size,
int isML,
int isPS)
8359 traceFunc(
"== ccVersion()\n");
8365 lstr =
"CC-BY-SA-1.0";
8368 lstr =
"CC-BY-SA-2.0";
8371 lstr =
"CC-BY-SA-2.5";
8374 lstr =
"CC-BY-SA-3.0";
8376 else if (
INFILE(_PHR_CC_BY_SA_30)) {
8377 lstr =
"CC-BY-SA-3.0";
8380 lstr =
"CC-BY-SA-4.0";
8383 lstr =
"CC-BY-SA-2.0";
8386 lstr =
lDebug ?
"CCA-SA(1)" :
"CC-BY-SA";
8391 else if (
INFILE(_TITLE_CC_BY_NC_SA_40) ||
URL_INFILE(_URL_CC_BY_NC_SA_40)) {
8392 lstr =
"CC-BY-NC-SA-4.0";
8394 else if (
INFILE(_TITLE_CC_BY_NC_SA_30) ||
URL_INFILE(_URL_CC_BY_NC_SA_30)) {
8395 lstr =
"CC-BY-NC-SA-3.0";
8397 else if (
INFILE(_TITLE_CC_BY_NC_SA_25) ||
URL_INFILE(_URL_CC_BY_NC_SA_25)) {
8398 lstr =
"CC-BY-NC-SA-2.5";
8400 else if (
INFILE(_TITLE_CC_BY_NC_SA_20) ||
URL_INFILE(_URL_CC_BY_NC_SA_20)) {
8401 lstr =
"CC-BY-NC-SA-2.0";
8403 else if (
INFILE(_TITLE_CC_BY_NC_SA_10) ||
URL_INFILE(_URL_CC_BY_NC_SA_10)) {
8404 lstr =
"CC-BY-NC-SA-1.0";
8409 else if (
INFILE(_TITLE_CC_BY_NC_ND_40) ||
URL_INFILE(_URL_CC_BY_NC_ND_40)) {
8410 lstr =
"CC-BY-NC-ND-4.0";
8412 else if (
INFILE(_TITLE_CC_BY_NC_ND_30) ||
URL_INFILE(_URL_CC_BY_NC_ND_30)) {
8413 lstr =
"CC-BY-NC-ND-3.0";
8415 else if (
INFILE(_TITLE_CC_BY_NC_ND_25) ||
URL_INFILE(_URL_CC_BY_NC_ND_25)) {
8416 lstr =
"CC-BY-NC-ND-2.5";
8418 else if (
INFILE(_TITLE_CC_BY_NC_ND_20) ||
URL_INFILE(_URL_CC_BY_NC_ND_20)) {
8419 lstr =
"CC-BY-NC-ND-2.0";
8421 else if (
INFILE(_TITLE_CC_BY_NC_ND_10) ||
INFILE(_TITLE_CC_BY_NC_ND_10_1) ||
URL_INFILE(_URL_CC_BY_NC_ND_10)) {
8422 lstr =
"CC-BY-NC-ND-1.0";
8428 lstr =
"CC-BY-NC-4.0";
8431 lstr =
"CC-BY-NC-3.0";
8434 lstr =
"CC-BY-NC-2.5";
8437 lstr =
"CC-BY-NC-2.0";
8440 lstr =
"CC-BY-NC-1.0";
8446 lstr =
"CC-BY-ND-4.0";
8449 lstr =
"CC-BY-ND-3.0";
8452 lstr =
"CC-BY-ND-2.5";
8455 lstr =
"CC-BY-ND-2.0";
8458 lstr =
"CC-BY-ND-1.0";
8481 else if (
INFILE(_TITLE_CC0_10_2)) {
8482 lstr =
lDebug ?
"CC0(2)" :
"CC0-1.0";
8484 else if (
INFILE(_PHR_CC0_2)) {
8485 lstr =
lDebug ?
"CC0(2)" :
"CC0-1.0";
8488 lstr =
lDebug ?
"CC0(URL)" :
"CC0-1.0";
8491 lstr =
lDebug ?
"CC(PD)" :
"Public-domain";
8493 else if (
INFILE(_TITLE_CCPL)) {
8494 INTERESTING(
"CCPL");
8496 else if (
INFILE(_TITLE_CC_BY)) {
8497 lstr =
lDebug ?
"CCA(1)" :
"CC-BY";
8500 lstr =
lDebug ?
"CCA(def)" :
"CC-BY";
8522 int findPhrase(
int index,
char *filetext,
int size,
int isML,
int isPS,
8526 char *q =
ltsr+index;
8541 #ifdef PARSE_STOPWATCH 8546 #if defined(PROC_TRACE) || defined(PHRASE_DEBUG) || defined(DOCTOR_DEBUG) 8547 traceFunc(
"== findPhrase(%d, %p, %d, %d, %d, %d)\n", index, filetext,
8548 size, isML, isPS, qType);
8549 traceFunc(
"... (regex) \"%s\"\n",
_REGEX(index));
8550 traceFunc(
"... (seed) \"%s\"\n",
_SEED(index));
8555 LOG_FATAL(
"Regex #%d not suitable for findPhrase()", index)
8559 #ifdef PARSE_STOPWATCH 8560 (void) sprintf(timerName,
"findPhrase(%03d): ", index);
8564 printf(
"findPhrase: firstword[%d] == \"%s\", used = %d\n", index,
8575 LOG_FATAL(
"search cache")
8578 if (sp->refCount < 0) {
8580 #ifdef PARSE_STOPWATCH 8582 (void) strcat(timerName,
"Cache-NO - ");
8583 (void) strcat(timerName, ltp->
tseed);
8584 PRINT_TIMER(timerName, 0);
8588 else if (sp->refCount == 0) {
8594 if ((cur.nLines) <= 5) {
8597 }
else if ((size / cur.nLines) <= 10) {
8613 #ifdef PARSE_STOPWATCH 8615 (void) strcat(timerName,
"tseed-NO - ");
8616 (void) strcat(timerName, ltp->
tseed);
8617 PRINT_TIMER(timerName, 0);
8623 printf(
"... adding %d bytes (search-lookup: \"%s\")\n",
8624 strlen(sp->
buf), sp->
str);
8631 #ifdef PARSE_STOPWATCH 8635 printf(
" ... doctoring buffer for \"%s\"\n", sp->
str);
8638 #ifdef PARSE_STOPWATCH 8640 (void) sprintf(timerName,
"... doctor(%03d): %s (%d)",
8641 index, ltp->
tseed, strlen(sp->
buf));
8642 PRINT_TIMER(timerName, 0);
8651 if (op->nMatch <= 0) {
8652 LOG_FATAL(
"File-offset list, nMatch(%s): bad entry", sp->
str)
8656 printf(
"matches for key \"%s\": %d\n", sp->
str, op->nMatch);
8658 n = strlen(sp->
buf);
8659 lp = (
list_t *)op->bList;
8660 if ((lp) && (lp->
items[0].bDocLen == 0)) {
8661 if (op->nMatch == 1) {
8662 lp->
items[0].bDocLen = n;
8666 while (
strGrep(
" xyzzy ", ptr, REG_ICASE)) {
8667 lp->
items[i++].bDocLen = j + cur.regm.rm_so;
8668 ptr += cur.regm.rm_eo;
8669 j += (cur.regm.rm_eo + 7);
8671 lp->
items[i].bDocLen = n + 7;
8678 metaKludge = ((qType == 2) && (index == _LT_GPLref1));
8679 if (metaKludge || qType == 4) {
8686 kludge.base = cur.matchBase;
8687 kludge.sso = cur.regm.rm_so;
8688 kludge.seo = cur.regm.rm_eo;
8693 sso = cur.regm.rm_so;
8694 seo = cur.regm.rm_eo;
8695 if (ret && !wordMatch) {
8713 if ((qType > 0) && !wordMatch) {
8714 if ((qType > 4) || (qType < 0)) {
8715 LOG_FATAL(
"Unknown string-search kludge %d", qType)
8731 printf(
"Now, buf %p contains:\n%s\n",
8732 sp->
buf, (
char *)sp->
buf);
8748 printf(
"... \"GPL\" -> LGPL (%d)\n",
8754 }
else if ((qType == 2) &&
8757 printf(
"... \"GPL\" -> GFDL (%d)\n",
8763 }
else if ((index == _LT_GPL3ref) && (qType == 2)) {
8766 printf(
"... \"GPL\" -> QEMU\n");
8771 }
else if (
INFILE(_PHR_SCF_HOWTO)) {
8773 printf(
"... SCF-Howto\n");
8777 }
else if (
HASREGEX(_TEXT_DRBD_NOT_GPL3, sp->
buf)) {
8779 printf(
"... mysgl/DRBD\n");
8785 #ifdef GPLV2_BEATS_GPLV3 8786 else if (
strNbuf(sp->
buf+sso,
"version 2")) {
8787 if (sp->
buf + sso + cur.regm.rm_eo <
8790 printf(
"... v%c!\n", *cp);
8797 }
else if ((index == _PHR_GPL3_OR_LATER) &&
8801 printf(
"... v2 and version 3\"\n");
8805 }
else if ((index == _PHR_GPL3_OR_LATER) &&
8809 printf(
"... exclude \"GPLv3 draft\"\n");
8814 }
else if ((index == _PHR_GPL3_ONLY) &&
8818 printf(
"... exclude libstdc vers\"\n");
8837 else if ((qType == 2) &&
8838 ((index == _PHR_GPL3_ONLY) || (index == _PHR_LGPL3_ONLY))) {
8841 cp = sp->
buf + cur.regm.rm_eo;
8845 for (ptr = sp->
buf+seo; cp < ptr; cp++) {
8846 if (isdigit(*cp) && *cp !=
'3') {
8848 printf(
"... vers %c!\n",
8856 }
else if (index == _PHR_FSF_V3_ONLY && qType == 2) {
8858 #ifdef GPLV2_BEATS_GPLV3 8859 ptr = sp->
buf + sso + cur.regm.rm_so + 7;
8861 cp = strchr(sp->
buf+sso,
'3');
8862 if (strncasecmp(cp,
"3 tlb", 5) == 0) {
8864 printf(
"... v3 tlb\n");
8869 #ifdef GPLV2_BEATS_GPLV3 8870 else if ((*ptr ==
' ') && (*(ptr+1) ==
'2')) {
8872 printf(
"... v2, !v3\n");
8880 cp = sp->
buf + sso + cur.regm.rm_so;
8881 if (strncasecmp(cp-4,
"arm ", 4) == 0) {
8883 printf(
"... arm v3\n");
8887 }
else if (strncasecmp(cp,
"v3020 ",
8890 printf(
"... v3020\n");
8896 }
else if ((index == _LT_LGPL_OR) &&
8897 (strncasecmp(sp->
buf+sso,
"or fitness f", 12) == 0)) {
8899 printf(
"... merch-or-fitness\n");
8903 }
else if ((index == _LT_GPLref1) &&
8905 INFILE(_PHR_LIC_CHANGE)) {
8907 printf(
"... exclude lic-change\"\n");
8911 }
else if ((qType == 2) && (sso > 4)) {
8913 if (strncasecmp(cp,
"not ", 4) == 0) {
8915 printf(
"... NOT l?gpl-ish\n");
8920 }
else if (qType == 3 &&
INFILE(_PHR_ARTISTIC_DESC1)) {
8926 printf(
"... exclude artistic defn\"\n");
8930 }
else if (qType == 4) {
8937 x = cp = cur.matchBase + sso;
8938 ptr = cp - (sso < 100 ? sso : 100);
8939 while (!isdigit(*cp)) {
8942 if (isdigit(*(cp+1)) && isdigit(*(cp+2)) && isdigit(*(cp+3))) {
8944 printf(
"... don't want year\n");
8948 }
else if (
HASREGEX(_TEXT_GNU_HELLO_23, ptr)) {
8950 printf(
"... gnu example\n");
8955 #ifdef GPLV2_BEATS_GPLV3 8956 else if (strncasecmp(x-5,
"v2 or ", 5) == 0) {
8958 printf(
"... v2 or v3\n");
8969 else if (index == _TEXT_GPLV3) {
8970 x = cur.matchBase + seo;
8971 if (isdigit(*x) && *x !=
'0') {
8973 printf(
"... v3#!0\n");
8982 printf(
">>===> \"%s\"\n", ltp->
regex);
8985 #ifdef PARSE_STOPWATCH 8987 (void) sprintf(timerName,
"findPhrase(%03d): RET=%d (%s:%d)", index,
8989 PRINT_TIMER(timerName, 0);
9026 #
if defined(PROC_TRACE) || defined(PHRASE_DEBUG)
9027 traceFunc(
"== locateRegex(%p, %p, %d, %d, %d, %d)\n", text, op, index,
9035 if (
idxGrep(index, text, REG_ICASE|REG_EXTENDED)) {
9037 cur.regm.rm_eo - cur.regm.rm_so,
YES);
9047 printf(
"Doc-buffer match @ %d:%d\n", sso, seo);
9048 printf(
"Possible \"%s\" entries to search: %d (%d)\n", op->
str,
9049 op->nMatch, lp->
used);
9051 printf(
"Ent[%d]: bDocLen %d (len %d) == file %d+%d (%d)\n",
9052 i, sp->bDocLen, (sp->bDocLen)-n, sp->bStart, sp->bLen,
9053 sp->bStart+sp->bLen);
9069 if (sso > sp->bDocLen) {
9076 printf(
"sso(%d), limit(%d), Possible: @%d+%d\n", sso,
9083 LOG_FATAL(
"Cannot map reduced-text to raw file contents (#%d)", index)
9099 printf(
"WINDOW-first: offset %d, len %d\n", off, len);
9105 printf(
"EO-Regex, cp == '%c'\n", *cp);
9108 while (*cp ==
' ') {
9111 while ((n == 1) || ((cp !=
start) && (*cp !=
' ') && (*cp !=
')') &&
9115 }
else if (*cp ==
'[') {
9118 if (cp ==
_REGEX(index)) {
9130 }
else if (*cp ==
')') {
9138 while ((cp !=
start) && (*cp !=
' ') && (*cp !=
'.') && (*cp !=
')')
9139 && (*cp !=
']') && (*cp !=
'}')) {
9144 printf(
"_END_@%ld '%c'\n", cp-
_REGEX(index), *cp);
9151 if ((*cp ==
'?') || (*cp ==
'+')) {
9155 ptr = sp->
buf + sso;
9158 printf(
"SEARCH @foot is now \"%s\"\n", cp);
9160 while (
strGrep(cp, ptr, REG_ICASE|REG_EXTENDED)) {
9162 ptr += cur.regm.rm_eo;
9163 j += cur.regm.rm_eo;
9165 printf(
"Found match (%d bytes) @ offset %d (%d tot)\n",
9166 cur.regm.rm_eo - cur.regm.rm_so, cur.regm.rm_so, j);
9170 printf(
"Total # of matches == %d\n", i);
9175 printf(
"WINDOW-adjst: offset %d, len %d\n", off, len);
9178 Assert(
NO,
"Regex \"%s\" (foot-end) not in raw text", cp);
9189 printf(
"BO-Regex, cp == '%c'\n", *cp);
9191 while (*cp ==
' ') {
9194 while (*cp && (*cp !=
' ') && (*cp !=
'.') && (*cp !=
'(') &&
9197 if (*(cp + 1) ==
'^') {
9200 while (*cp && (*cp !=
']')) {
9203 if (*(cp+1) && (*(cp+1) ==
'?')) {
9215 for (n = 1, cp++; n; cp++) {
9217 if ((*cp ==
'(') && (*(cp-1) !=
'\\')) {
9219 }
else if ((*cp ==
')') && (*(cp-1) !=
'\\')) {
9223 while (*cp && (*cp !=
' ') && (*cp !=
'.') && (*cp !=
'(') &&
9231 ((*cp ==
'.') && (*(cp-1) ==
'\\'))) {
9238 printf(
"SEARCH @head is now \"%s\"\n",
_REGEX(index));
9242 REG_ICASE|REG_EXTENDED)) {
9243 len -= cur.regm.rm_so;
9244 off += cur.regm.rm_so;
9246 LOG_NOTICE(
"Regex \"%s\" (foot-start) not in raw text",
_REGEX(index));
9252 LOG_NOTICE(
"Nothing to trim from the front (*cp == NULL)");
9258 printf(
"Hey, last-word IS the entire regex!\n");
9263 printf(
"WINDOW-FINAL: offset %d, len %d\n", off, len);
9279 if ((off + len) > size) {
9280 LOG_FATAL(
"off %d + len %d (== %d) exceeds filesize %d!", off, len, off + len, size);
9298 #if defined(PROC_TRACE) || defined(PHRASE_DEBUG) 9299 traceFunc(
"== saveRegexLocation(%d, %d, %d, %d)\n", index, offset, length,
9303 (void) sprintf(name,
"reg%04d", index);
9305 sp->bIndex = whereList.
used;
9306 sp->bStart = offset;
9311 ip->bStart = offset;
9318 void saveUnclBufLocation(
int bufNum)
9324 #if defined(PROC_TRACE) || defined(PHRASE_DEBUG) 9325 traceFunc(
"== saveUnclBufLocation(%d, %d, %d, %d)\n", bufNum);
9330 lp = (
list_t *) p->bList;
9331 (
void) sprintf(name,
"buf%05d", bufNum);
9334 bp->bStart = p->bStart;
9350 if(!(str && str[0]))
9354 traceFunc(
"== addRef(\"%s\", %d)\n", str, interest);
9372 Assert(
YES,
"license detected != NULL");
9375 Assert(
YES,
"license string not start with NULL");
9395 if (interest > IL_LOW) {
9396 p->iLevel = interest;
9399 if (interest > maxInterest) {
9400 maxInterest = interest;
9404 listSort(&whereList, SORT_BY_COUNT_ASC);
9405 printf(
"WINDOW for \"%s\": ", str);
9410 printf(
"%d+%d", p->bStart, p->bLen);
9417 printf(
"++ \"%s\" [int=%d]\n", str, interest);
9435 if (lmem[_tOPENLDAP]) {
9436 if (
INFILE(_TITLE_OPENLDAP25)) {
9437 INTERESTING(
"OLDAP-2.5");
9440 else if (
INFILE(_TITLE_OPENLDAP26)) {
9441 INTERESTING(
"OLDAP-2.6");
9444 else if (
INFILE(_TITLE_OPENLDAP27)) {
9445 INTERESTING(
"OLDAP-2.7");
9448 else if (
INFILE(_TITLE_OPENLDAP28)) {
9449 INTERESTING(
"OLDAP-2.8");
9452 else if (
INFILE(_TITLE_OPENLDAP201)) {
9453 INTERESTING(
"OLDAP-2.0.1");
9456 else if (
INFILE(_TITLE_OPENLDAP20)) {
9457 INTERESTING(
"OLDAP-2.0");
9460 else if (
INFILE(_TITLE_OPENLDAP21)) {
9461 INTERESTING(
"OLDAP-2.1");
9464 else if (
INFILE(_TITLE_OPENLDAP221) ||
INFILE(_SPDX_OLDAP_221)) {
9465 INTERESTING(
"OLDAP-2.2.1");
9468 else if (
INFILE(_TITLE_OPENLDAP222) ||
INFILE(_SPDX_OLDAP_222)) {
9469 INTERESTING(
"OLDAP-2.2.2");
9472 else if (
INFILE(_TITLE_OPENLDAP22)) {
9473 INTERESTING(
"OLDAP-2.2");
9476 else if (
INFILE(_TITLE_OPENLDAP11)) {
9477 INTERESTING(
"OLDAP-1.1");
9480 else if (
INFILE(_TITLE_OPENLDAP23)) {
9481 INTERESTING(
"OLDAP-2.3");
9484 else if (
INFILE(_TITLE_OPENLDAP24)) {
9485 INTERESTING(
"OLDAP-2.4");
9488 else if (
INFILE(_TITLE_OPENLDAP12)) {
9489 INTERESTING(
"OLDAP-1.2");
9492 else if (
INFILE(_TITLE_OPENLDAP13)) {
9493 INTERESTING(
"OLDAP-1.3");
9496 else if (
INFILE(_TITLE_OPENLDAP14)) {
9497 INTERESTING(
"OLDAP-1.4");
9500 else if (
INFILE(_CR_OPENLDAP) &&
INFILE(_TITLE_OPENLDAP)) {
9501 INTERESTING(
"OLDAP");
9505 lmem[_fOPENLDAP] = ret;
9534 int isML,
int isPS,
int nw)
9540 #ifdef UNKNOWN_CHECK_DEBUG 9546 traceFunc(
"== checkUnclassified(%p, %d, %d, %d, %d, %d)\n", filetext,
9547 size, score, isML, isPS, nw);
9563 if (
INFILE(_LT_DEB_CONTRACT) ||
INFILE(_LT_DEB_CONTRACTref)){
9564 INTERESTING(
"Debian-social-DFSG");
9567 if (
INFILE(_LT_TROLLTECH)) {
9579 if (cur.licPara ==
NULL_STR && cur.matchBase) {
9580 saveLicenseParagraph(cur.matchBase, isML, isPS,
NO);
9591 #ifdef UNKNOWN_CHECK_DEBUG 9592 printf(
"... first regex: \"%s\"\n",
_REGEX(_LEGAL_first));
9596 #ifdef UNKNOWN_CHECK_DEBUG 9597 printf(
"... getInstances returns NULL\n");
9609 !match3(_LEGAL_first, buf, score,
NO, isML, isPS)) {
9610 #ifdef UNKNOWN_CHECK_DEBUG 9611 printf(
"... first check fails\n");
9623 while (
idxGrep(_UTIL_XYZZY, curptr, 0)) {
9624 cp = curptr + cur.regm.rm_so;
9626 #ifdef UNKNOWN_CHECK_DEBUG 9627 printf(
"DEBUG: paragraph #%d:\n[START-PARA]\n%s\n[END-PARA]\n",
9640 if (match3(_LEGAL_first, curptr, score,
YES, isML, isPS)) {
9641 saveUnclBufLocation(i);
9644 #ifdef UNKNOWN_CHECK_DEBUG 9646 printf(
"DEBUG: match() returns 0, look again\n");
9657 LOG_FATAL(
"Cannot find delimeter!")
9665 #ifdef UNKNOWN_CHECK_DEBUG 9666 printf(
"DEBUG: %s paragraph (#%d):\n[START-PARA]\n%s\n[END-PARA]\n",
9667 pNum == 0 ?
"ONLY" :
"LAST", ++pNum, curptr);
9669 if (match3(_LEGAL_first, curptr, score,
YES, isML, isPS)) {
9670 saveUnclBufLocation(++i);
9686 traceFunc(
"== checkFileReferences(%p, %d, %d, 0x%x, %d, %d)\n", filetext,
9687 size, score, kwbm, isML, isPS);
9689 for (i = 0; i < NSEECOPYING; i++) {
9690 if (
INFILE(_SEECOPYING_first+i)) {
9692 (void) sprintf(name,
"Gen-CPY-%d", ++i);
9695 INTERESTING(
"See-file.COPYING");
9701 for (i = 0; i < NSEELICENSE; i++) {
9702 if (
INFILE(_SEELICENSE_first+i)) {
9704 (void) sprintf(name,
"Gen-CPY-%d", ++i);
9707 INTERESTING(
"See-file.LICENSE");
9713 for (i = 0; i < NSEEREADME; i++) {
9714 if (
INFILE(_SEEREADME_first+i)) {
9716 (void) sprintf(name,
"Gen-CPY-%d", ++i);
9719 INTERESTING(
"See-file.README");
9725 for (i = 0; i < NSEEOTHER; i++) {
9726 if (
INFILE(_SEEOTHER_first+i)) {
9728 (void) sprintf(name,
"Gen-CPY-%d", ++i);
9731 INTERESTING(
"See-doc.OTHER");
9737 if (
INFILE(_LT_SEE_OUTPUT_1)) {
9738 INTERESTING(
lDebug ?
"Gen-EXC-1" :
"GNU-style.EXECUTE");
9741 else if (
INFILE(_LT_SEE_OUTPUT_2)) {
9742 INTERESTING(
lDebug ?
"Gen-EXC-2" :
"Free-SW.run-COMMAND");
9743 }
else if (
INFILE(_LT_SEE_OUTPUT_3)) {
9744 INTERESTING(
lDebug ?
"Gen-EXC-3" :
"Free-SW.run-COMMAND");
9747 if(
HASTEXT(_LT_SEE_COPYING_LICENSE_1, REG_EXTENDED) ||
HASTEXT(_LT_SEE_COPYING_LICENSE_2, REG_EXTENDED)) {
9748 INTERESTING(
"See-file");
9750 else if (
HASTEXT(_LT_SEE_URL, REG_EXTENDED) ||
HASTEXT(_LT_SEE_URL_ref1, REG_EXTENDED)) {
9751 INTERESTING(
"See-URL");
9756 if (
INFILE(_LT_SEE_COPYING_1)) {
9757 INTERESTING(
lDebug ?
"Gen-CPY-1" :
"See-file.COPYING");
9759 else if (
INFILE(_LT_SEE_COPYING_2)) {
9760 INTERESTING(
lDebug ?
"Gen-CPY-2" :
"See-file.COPYING");
9762 else if (
INFILE(_LT_SEE_COPYING_3)) {
9763 INTERESTING(
lDebug ?
"Gen-CPY-3" :
"See-file.COPYING");
9765 else if (
INFILE(_LT_SEE_COPYING_4)) {
9766 INTERESTING(
lDebug ?
"Gen-CPY-4" :
"See-file.COPYING");
9768 else if (
INFILE(_LT_SEE_COPYING_5)) {
9769 INTERESTING(
lDebug ?
"Gen-CPY-5" :
"See-file.COPYING");
9771 else if (
INFILE(_LT_SEE_COPYING_6)) {
9772 INTERESTING(
lDebug ?
"Gen-CPY-6" :
"See-file.COPYING");
9774 else if (
INFILE(_LT_SEE_COPYING_7)) {
9775 INTERESTING(
lDebug ?
"Gen-CPY-7" :
"See-file.COPYING");
9777 else if (
INFILE(_LT_SEE_COPYING_8)) {
9778 INTERESTING(
lDebug ?
"Gen-CPY-8" :
"See-file.COPYING");
9780 else if (
INFILE(_LT_SEE_COPYING_9)) {
9781 INTERESTING(
lDebug ?
"Gen-CPY-9" :
"See-file.COPYING");
9783 else if (
INFILE(_LT_SEE_COPYING_10)) {
9784 INTERESTING(
lDebug ?
"Gen-CPY-10" :
"See-file.COPYING");
9786 else if (
INFILE(_LT_SEE_COPYING_LAST1)) {
9787 INTERESTING(
lDebug ?
"Gen-CPY-L1" :
"See-file.COPYING");
9789 else if (
INFILE(_LT_SEE_COPYING_LAST2)) {
9790 INTERESTING(
lDebug ?
"Gen-CPY-L2" :
"See-file.COPYING");
9792 else if (
INFILE(_LT_SEE_LICENSE_1)) {
9793 INTERESTING(
lDebug ?
"Gen-LIC-1" :
"See-file.LICENSE");
9795 else if (
INFILE(_LT_SEE_LICENSE_2)) {
9796 INTERESTING(
lDebug ?
"Gen-LIC-2" :
"See-file.LICENSE");
9798 else if (
INFILE(_LT_SEE_LICENSE_3)) {
9799 INTERESTING(
lDebug ?
"Gen-LIC-3" :
"See-file.LICENSE");
9801 else if (
INFILE(_LT_SEE_LICENSE_4)) {
9802 INTERESTING(
lDebug ?
"Gen-LIC-4" :
"See-file.LICENSE");
9804 else if (
INFILE(_LT_SEE_LICENSE_5)) {
9805 INTERESTING(
lDebug ?
"Gen-LIC-5" :
"See-file.LICENSE");
9807 else if (
INFILE(_LT_SEE_LICENSE_6)) {
9808 INTERESTING(
lDebug ?
"Gen-LIC-6" :
"See-file.LICENSE");
9810 else if (
INFILE(_LT_SEE_LICENSE_7)) {
9811 INTERESTING(
lDebug ?
"Gen-LIC-7" :
"See-file.LICENSE");
9813 else if (
INFILE(_LT_SEE_LICENSE_8)) {
9814 INTERESTING(
lDebug ?
"Gen-LIC-8" :
"See-file.LICENSE");
9816 else if (
INFILE(_LT_SEE_LICENSE_9)) {
9817 INTERESTING(
lDebug ?
"Gen-LIC-9" :
"See-file.LICENSE");
9819 else if (
INFILE(_LT_SEE_LICENSE_10)) {
9820 INTERESTING(
lDebug ?
"Gen-LIC-10" :
"See-file.LICENSE");
9822 else if (
INFILE(_LT_SEE_LICENSE_LAST1)) {
9823 INTERESTING(
lDebug ?
"Gen-LIC-L1" :
"See-file.LICENSE");
9825 else if (
INFILE(_LT_SEE_LICENSE_LAST2)) {
9826 INTERESTING(
lDebug ?
"Gen-LIC-L2" :
"See-file.LICENSE");
9828 else if (
INFILE(_LT_SEE_README_1)) {
9829 INTERESTING(
lDebug ?
"Gen-RDM-1" :
"See-file.README");
9831 else if (
INFILE(_LT_SEE_README_2)) {
9832 INTERESTING(
lDebug ?
"Gen-RDM-2" :
"See-file.README");
9834 else if (
INFILE(_LT_SEE_README_3)) {
9835 INTERESTING(
lDebug ?
"Gen-RDM-3" :
"See-file.README");
9837 else if (
INFILE(_LT_SEE_README_4)) {
9838 INTERESTING(
lDebug ?
"Gen-RDM-4" :
"See-file.README");
9840 else if (
INFILE(_LT_SEE_README_5)) {
9841 INTERESTING(
lDebug ?
"Gen-RDM-5" :
"See-file.README");
9843 else if (
INFILE(_LT_SEE_README_6)) {
9844 INTERESTING(
lDebug ?
"Gen-RDM-6" :
"See-file.README");
9846 else if (
INFILE(_LT_SEE_README_7)) {
9847 INTERESTING(
lDebug ?
"Gen-RDM-7" :
"See-file.README");
9849 else if (
INFILE(_LT_SEE_README_LAST1)) {
9850 INTERESTING(
lDebug ?
"Gen-RDM-L1" :
"See-file.README");
9852 else if (
INFILE(_LT_SEE_README_LAST2)) {
9853 INTERESTING(
lDebug ?
"Gen-RDM-L2" :
"See-file.README");
9855 else if (
INFILE(_LT_SEE_OTHER_1)) {
9856 INTERESTING(
lDebug ?
"Gen-OTH-1" :
"See-doc.OTHER");
9858 else if (
INFILE(_LT_SEE_OTHER_2)) {
9859 INTERESTING(
lDebug ?
"Gen-OTH-2" :
"See-doc.OTHER");
9861 else if (
INFILE(_LT_SEE_OTHER_3)) {
9862 INTERESTING(
lDebug ?
"Gen-OTH-3" :
"See-doc.OTHER");
9864 else if (
INFILE(_LT_SEE_OTHER_4)) {
9865 INTERESTING(
lDebug ?
"Gen-OTH-4" :
"See-doc.OTHER");
9867 else if (
INFILE(_LT_SEE_OTHER_5)) {
9868 INTERESTING(
lDebug ?
"Gen-OTH-5" :
"See-doc.OTHER");
9870 else if (
INFILE(_LT_SEE_OTHER_6)) {
9871 INTERESTING(
lDebug ?
"Gen-OTH-6" :
"See-doc.OTHER");
9873 else if (
INFILE(_LT_SEE_OTHER_7)) {
9874 INTERESTING(
lDebug ?
"Gen-OTH-7" :
"See-doc.OTHER");
9876 else if (
INFILE(_LT_SEE_OTHER_8)) {
9877 INTERESTING(
lDebug ?
"Gen-OTH-8" :
"See-doc.OTHER");
9879 else if (
INFILE(_LT_SEE_OTHER_9)) {
9880 INTERESTING(
lDebug ?
"Gen-OTH-9" :
"See-doc.OTHER");
9882 else if (
INFILE(_LT_SEE_OTHER_10)) {
9883 INTERESTING(
lDebug ?
"Gen-OTH-10" :
"See-doc.OTHER");
9885 else if (
INFILE(_LT_SEE_OTHER_11)) {
9886 INTERESTING(
lDebug ?
"Gen-OTH-11" :
"See-doc.OTHER");
9888 else if (
INFILE(_LT_SEE_OTHER_12)) {
9889 INTERESTING(
lDebug ?
"Gen-OTH-12" :
"See-doc.OTHER");
9891 else if (
INFILE(_LT_SEE_OTHER_13)) {
9892 INTERESTING(
lDebug ?
"Gen-OTH-13" :
"See-doc.OTHER");
9894 else if (
INFILE(_LT_SEE_OTHER_14)) {
9895 INTERESTING(
lDebug ?
"Gen-OTH-14" :
"See-doc.OTHER");
9897 else if (
INFILE(_LT_SEE_OTHER_15)) {
9898 INTERESTING(
lDebug ?
"Gen-OTH-15" :
"See-doc.OTHER");
9900 else if (
INFILE(_LT_SEE_OTHER_LAST1)) {
9901 INTERESTING(
lDebug ?
"Gen-OTH-L1" :
"See-doc.OTHER");
9903 else if (
INFILE(_LT_SEE_OTHER_LAST2)) {
9904 INTERESTING(
lDebug ?
"Gen-OTH-L2" :
"See-doc.OTHER");
9906 else if (
INFILE(_LT_SEE_OTHER_LAST3)) {
9907 INTERESTING(
lDebug ?
"Gen-OTH-L3" :
"See-doc.OTHER");
9909 else if (
INFILE(_LT_SEE_OUTPUT_1)) {
9910 INTERESTING(
lDebug ?
"Gen-EXC-1" :
"GNU-style.interactive");
9917 int checkPublicDomain(
char *filetext,
int size,
int score,
int kwbm,
9923 traceFunc(
"== checkPublicDomain(%p, %d, %d, 0x%x, %d, %d)\n", filetext,
9924 size, score, kwbm, isML, isPS);
9931 if (
INFILE(_LT_PUBDOM_CC)) {
9932 INTERESTING(
lDebug ?
"Pubdom(CC)" : LS_PD_CLM);
9934 }
else if (
INFILE(_LT_PUBDOM_ODC)) {
9935 INTERESTING(
lDebug ?
"Pubdom(ODC)" : LS_PD_CLM);
9937 }
else if (
INFILE(_LT_PUBDOM_PDD)) {
9938 INTERESTING(
lDebug ?
"Pubdom(PDD)" : LS_PD_CLM);
9940 }
else if (
INFILE(_LT_PUBDOM_USE)) {
9941 INTERESTING(
lDebug ?
"Pubdom(use)" : LS_PD_CLM);
9943 }
else if (
HASTEXT(_LT_PUBDOM_NOTclaim, REG_EXTENDED)) {
9944 INTERESTING(LS_NOT_PD);
9946 }
else if (
INFILE(_CR_PUBDOM)) {
9947 if (
INFILE(_LT_PUBDOMNOTcpyrt)) {
9948 INTERESTING(LS_PD_CLM);
9950 INTERESTING(LS_PD_CPRT);
9953 }
else if (
INFILE(_CR_NONE)) {
9954 INTERESTING(
lDebug ?
"Pubdom(no-CR)" : LS_PD_CLM);
9957 INTERESTING(
"Unlicense");
9959 }
else if (
INFILE(_LT_PUBDOM_1)) {
9960 INTERESTING(
lDebug ?
"Pubdom(1)" : LS_PD_CLM);
9963 INTERESTING(
lDebug ?
"Pubdom(2)" : LS_PD_CLM);
9965 }
else if (
INFILE(_LT_PUBDOM_3)) {
9966 INTERESTING(
lDebug ?
"Pubdom(3)" : LS_PD_CLM);
9968 #ifdef REMOVED_AS_TOO_BROAD 9969 }
else if (
INFILE(_LT_PUBDOM_4)) {
9970 INTERESTING(
lDebug ?
"Pubdom(4)" : LS_PD_CLM);
9972 }
else if (
INFILE(_LT_PUBDOM_5)) {
9973 INTERESTING(
lDebug ?
"Pubdom(5)" : LS_PD_CLM);
9975 }
else if (
INFILE(_LT_PUBDOM_6)) {
9976 INTERESTING(
lDebug ?
"No-more-copyright" : LS_PD_CLM);
9978 #endif // done removing too broad signatures 9979 }
else if (
INFILE(_LT_PUBDOM_7)) {
9980 INTERESTING(
lDebug ?
"Pubdom(7)" : LS_PD_CLM);
9982 }
else if (
INFILE(_LT_PUBDOM_8)) {
9983 INTERESTING(
lDebug ?
"Pubdom(8)" : LS_PD_CLM);
9985 }
else if (
INFILE(_LT_PUBDOM_9)) {
9986 INTERESTING(
lDebug ?
"Pubdom(9)" : LS_PD_CLM);
9988 }
else if (
INFILE(_LT_PUBDOM_10)) {
9989 INTERESTING(
lDebug ?
"Pubdom(10)" : LS_PD_CLM);
9991 }
else if (
INFILE(_URL_PUBDOM)) {
9992 INTERESTING(
lDebug ?
"Pubdom(URL)" : LS_PD_CLM);
9994 }
else if (HASKW(kwbm, _KW_public_domain) && score <= 3) {
9995 INTERESTING(LS_PD_ONLY);
10010 int kwbm,
int isML,
int isPS,
int nw,
int force)
10014 traceFunc(
"== checkCornerCases(%p, %d, %d, %d, %d, %d, %d, %d)\n",
10015 filetext, size, score, kwbm, isML, isPS, nw, force);
10021 if (
INFILE(_LT_NOTATT_NOTBSD)) {
10022 LOWINTEREST(
"non-ATT-BSD");
10052 int match3(
int base,
char *buf,
int score,
int save,
int isML,
int isPS)
10059 #ifdef PROC_TRACE_SWITCH 10062 printf(
"== match3(%d, %p, %d, %d, %d, %d)\n", base, buf, score, save,
10065 #ifdef UNKNOWN_CHECK_DEBUG 10066 printf(
"== match3(%d, %p, %d, %d, %d, %d)\n", base, buf, score, save,
10071 for (i = 1; i <= 3; i++) {
10073 #ifdef UNKNOWN_CHECK_DEBUG 10074 printf(
"match3: FAILED regex (%d)!\n", base+i);
10079 #ifdef UNKNOWN_CHECK_DEBUG 10080 printf(
"match3: Success (%s)!\n",
10081 (save ?
"buffer-for-real" :
"file-initial-check"));
10092 for (j = i = 0, cp = buf; *cp; i++, cp++) {
10097 #ifdef UNKNOWN_CHECK_DEBUG 10098 printf(
"DEEBUG: %d bytes, %d 8-bit\n", i, j);
10102 printf(
"... no, >= 50 percent 8-bit characters\n");
10119 if (checknw && !
idxGrep(checknw, cp, REG_ICASE|REG_EXTENDED)) {
10121 printf(
"... no, warranty regex %d\n", checknw);
10136 printf(
"... no, FSF-GNU template\n");
10149 printf(
"... no, GNU-GPL preamble\n");
10155 printf(
"... candidate paragraph analysis:\n");
10157 for (i = j = 0; i < NKEYWORDS; i++) {
10160 printf(
"%s", j ?
", " :
"KEYWORDS: ");
10161 printf(
"%s",
_REGEX(i+_KW_first));
10170 printf(
"SCORES: para %d, file %d == %05.2f%% ", j,
10171 score, 100.0 * (
float) j / (
float) score);
10187 printf(
"(ZERO legal keywords)\n");
10192 if (j >= 3 || (j == 2 && j*2 >= score)) {
10194 printf(
"(LIKELY: para-score >= 2)\n");
10197 printf(
"(MAYBE: local percentage)\n");
10202 printf(
"(NOT LIKELY a license)\n");
10205 printf(
"[FAILED]\n%s\n[/FAILED]\n", buf);
10215 for (i = 0; i < NFILTER; i++) {
10218 printf(
"!! NO-LIC: filter %d\n", ++i);
10225 saveLicenseParagraph(buf, isML, isPS,
YES);
10229 #ifdef UNKNOWN_CHECK_DEBUG 10231 printf(
"match3: Initial-check only (save == %d)\n", save);
10237 void saveLicenseParagraph(
char *mtext,
int isML,
int isPS,
int entireBuf)
10246 LOG_FATAL(
"called saveLicenseParagraph without text")
10250 #ifdef PROC_TRACE_SWITCH 10253 printf(
"== saveLicenseParagraph(%p, %d, %d, %d)\n", mtext, isML, isPS, entireBuf);
10257 cur.licPara =
copyString(mtext, MTAG_TEXTPARA);
10259 if (cur.regm.rm_so < 50) {
10260 len = cur.regm.rm_eo + 80;
10262 len = cur.regm.rm_eo + 130 - cur.regm.rm_so;
10263 index = cur.regm.rm_so - 50;
10265 cur.licPara = memAlloc(len + 9, MTAG_TEXTPARA);
10266 (void) strcpy(cur.licPara,
"... ");
10267 (void) strncpy(cur.licPara + 4, start + index, len);
10268 (void) strcpy(cur.licPara + len + 4,
" ...");
10269 memFree(start, MTAG_TEXTPARA);
10275 for (cp = cur.licPara; *cp; cp++) {
10276 if ((*cp ==
'\n' || *cp ==
'\r') &&
10277 (*(cp+1) ==
'\r' || *(cp+1) ==
'\n')) {
10283 printf(
"[PERHAPS] (%p)\n%s\n[/PERHAPS]\n", cur.licPara, cur.licPara);
10298 if (
INFILE(_SPDX_Glide)) {
10299 INTERESTING(
"Glide");
10301 if (
INFILE(_SPDX_Abstyles)) {
10302 INTERESTING(
"Abstyles");
10304 if (
INFILE(_SPDX_AFL_11)) {
10305 INTERESTING(
"AFL-1.1");
10307 if (
INFILE(_SPDX_AFL_12)) {
10308 INTERESTING(
"AFL-1.2");
10310 if (
INFILE(_SPDX_AFL_20)) {
10311 INTERESTING(
"AFL-2.0");
10313 if (
INFILE(_SPDX_AFL_21)) {
10314 INTERESTING(
"AFL-2.1");
10316 if (
INFILE(_SPDX_AFL_30)) {
10317 INTERESTING(
"AFL-3.0");
10319 if (
INFILE(_SPDX_AMPAS)) {
10320 INTERESTING(
"AMPAS");
10322 if (
INFILE(_SPDX_APL_10)) {
10323 INTERESTING(
"APL-1.0");
10325 if (
INFILE(_SPDX_Adobe_Glyph)) {
10326 INTERESTING(
"Adobe-Glyph");
10328 if (
INFILE(_SPDX_APAFML)) {
10329 INTERESTING(
"APAFML");
10331 if (
INFILE(_SPDX_Adobe_2006)) {
10332 INTERESTING(
"Adobe-2006");
10334 if (
INFILE(_SPDX_Afmparse)) {
10335 INTERESTING(
"Afmparse");
10337 if (
INFILE(_SPDX_Aladdin)) {
10338 INTERESTING(
"Aladdin");
10340 if (
INFILE(_SPDX_ADSL)) {
10341 INTERESTING(
"ADSL");
10343 if (
INFILE(_SPDX_AMDPLPA)) {
10344 INTERESTING(
"AMDPLPA");
10346 if (
INFILE(_SPDX_ANTLR_PD)) {
10347 INTERESTING(
"ANTLR-PD");
10349 if (
INFILE(_SPDX_AML)) {
10350 INTERESTING(
"AML");
10352 if (
INFILE(_SPDX_APSL_10)) {
10353 INTERESTING(
"APSL-1.0");
10355 if (
INFILE(_SPDX_APSL_11)) {
10356 INTERESTING(
"APSL-1.1");
10358 if (
INFILE(_SPDX_APSL_12)) {
10359 INTERESTING(
"APSL-1.2");
10361 if (
INFILE(_SPDX_APSL_20)) {
10362 INTERESTING(
"APSL-2.0");
10364 if (
INFILE(_SPDX_Artistic_10_Perl)) {
10365 INTERESTING(
"Artistic-1.0-Perl");
10367 else if (
INFILE(_SPDX_Artistic_10_cl8)) {
10368 INTERESTING(
"Artistic-1.0-cl8");
10370 else if (
INFILE(_SPDX_Artistic_10)) {
10371 INTERESTING(
"Artistic-1.0");
10373 if (
INFILE(_SPDX_Artistic_20)) {
10374 INTERESTING(
"Artistic-2.0");
10376 if (
INFILE(_SPDX_AAL)) {
10377 INTERESTING(
"AAL");
10379 if (
INFILE(_SPDX_Bahyph)) {
10380 INTERESTING(
"Bahyph");
10382 if (
INFILE(_SPDX_Barr)) {
10383 INTERESTING(
"Barr");
10385 if (
INFILE(_SPDX_Beerware)) {
10386 INTERESTING(
"Beerware");
10388 if (
INFILE(_SPDX_BitTorrent_10)) {
10389 INTERESTING(
"BitTorrent-1.0");
10391 else if (
INFILE(_SPDX_BitTorrent_11)) {
10392 INTERESTING(
"BitTorrent-1.1");
10394 if (
INFILE(_SPDX_BSL_10)) {
10395 INTERESTING(
"BSL-1.0");
10397 if (
INFILE(_SPDX_Borceux)) {
10398 INTERESTING(
"Borceux");
10400 if (
INFILE(_SPDX_0BSD)) {
10401 INTERESTING(
"0BSD");
10403 if (
INFILE(_SPDX_bzip2_105)) {
10404 INTERESTING(
"bzip2-1.0.5");
10406 else if (
INFILE(_SPDX_bzip2_106)) {
10407 INTERESTING(
"bzip2-1.0.6");
10409 if (
INFILE(_SPDX_Caldera)) {
10410 INTERESTING(
"Caldera");
10412 if (
INFILE(_SPDX_ClArtistic)) {
10413 INTERESTING(
"ClArtistic");
10415 if (
INFILE(_SPDX_CNRI_Jython)) {
10416 INTERESTING(
"CNRI-Jython");
10418 if (
INFILE(_SPDX_CPOL_102)) {
10419 INTERESTING(
"CPOL-1.02");
10421 if (
INFILE(_SPDX_CPAL_10)) {
10422 INTERESTING(
"CPAL-1.0");
10424 if (
INFILE(_SPDX_CPL_10)) {
10425 INTERESTING(
"CPL-1.0");
10427 if (
INFILE(_SPDX_CATOSL_11)) {
10428 INTERESTING(
"CATOSL-1.1");
10430 if (
INFILE(_SPDX_Condor_11)) {
10431 INTERESTING(
"Condor-1.1");
10433 if (
INFILE(_SPDX_CC_BY_10)) {
10434 INTERESTING(
"CC-BY-1.0");
10436 else if (
INFILE(_SPDX_CC_BY_20)) {
10437 INTERESTING(
"CC-BY-2.0");
10439 else if (
INFILE(_SPDX_CC_BY_25)) {
10440 INTERESTING(
"CC-BY-2.5");
10442 else if (
INFILE(_SPDX_CC_BY_30)) {
10443 INTERESTING(
"CC-BY-3.0");
10445 else if (
INFILE(_SPDX_CC_BY_40)) {
10446 INTERESTING(
"CC-BY-4.0");
10448 if (
INFILE(_SPDX_CC_BY_ND_10)) {
10449 INTERESTING(
"CC-BY-ND-1.0");
10451 else if (
INFILE(_SPDX_CC_BY_ND_20)) {
10452 INTERESTING(
"CC-BY-ND-2.0");
10454 else if (
INFILE(_SPDX_CC_BY_ND_25)) {
10455 INTERESTING(
"CC-BY-ND-2.5");
10457 else if (
INFILE(_SPDX_CC_BY_ND_30)) {
10458 INTERESTING(
"CC-BY-ND-3.0");
10460 else if (
INFILE(_SPDX_CC_BY_ND_40)) {
10461 INTERESTING(
"CC-BY-ND-4.0");
10463 if (
INFILE(_SPDX_CC_BY_NC_10)) {
10464 INTERESTING(
"CC-BY-NC-1.0");
10466 else if (
INFILE(_SPDX_CC_BY_NC_20)) {
10467 INTERESTING(
"CC-BY-NC-2.0");
10469 else if (
INFILE(_SPDX_CC_BY_NC_25)) {
10470 INTERESTING(
"CC-BY-NC-2.5");
10472 else if (
INFILE(_SPDX_CC_BY_NC_30)) {
10473 INTERESTING(
"CC-BY-NC-3.0");
10475 else if (
INFILE(_SPDX_CC_BY_NC_40)) {
10476 INTERESTING(
"CC-BY-NC-4.0");
10478 if (
INFILE(_SPDX_CC_BY_NC_ND_10)) {
10479 INTERESTING(
"CC-BY-NC-ND-1.0");
10481 else if (
INFILE(_SPDX_CC_BY_NC_ND_20)) {
10482 INTERESTING(
"CC-BY-NC-ND-2.0");
10484 else if (
INFILE(_SPDX_CC_BY_NC_ND_25)) {
10485 INTERESTING(
"CC-BY-NC-ND-2.5");
10487 else if (
INFILE(_SPDX_CC_BY_NC_ND_30)) {
10488 INTERESTING(
"CC-BY-NC-ND-3.0");
10490 else if (
INFILE(_SPDX_CC_BY_NC_ND_40)) {
10491 INTERESTING(
"CC-BY-NC-ND-4.0");
10493 if (
INFILE(_SPDX_CC_BY_NC_SA_10)) {
10494 INTERESTING(
"CC-BY-NC-SA-1.0");
10496 else if (
INFILE(_SPDX_CC_BY_NC_SA_20)) {
10497 INTERESTING(
"CC-BY-NC-SA-2.0");
10499 else if (
INFILE(_SPDX_CC_BY_NC_SA_25)) {
10500 INTERESTING(
"CC-BY-NC-SA-2.5");
10502 else if (
INFILE(_SPDX_CC_BY_NC_SA_30)) {
10503 INTERESTING(
"CC-BY-NC-SA-3.0");
10505 else if (
INFILE(_SPDX_CC_BY_NC_SA_40)) {
10506 INTERESTING(
"CC-BY-NC-SA-4.0");
10508 if (
INFILE(_SPDX_CC_BY_SA_10)) {
10509 INTERESTING(
"CC-BY-SA-1.0");
10511 else if (
INFILE(_SPDX_CC_BY_SA_20)) {
10512 INTERESTING(
"CC-BY-SA-2.0");
10514 else if (
INFILE(_SPDX_CC_BY_SA_25)) {
10515 INTERESTING(
"CC-BY-SA-2.5");
10517 else if (
INFILE(_SPDX_CC_BY_SA_30)) {
10518 INTERESTING(
"CC-BY-SA-3.0");
10520 else if (
INFILE(_SPDX_CC_BY_SA_40)) {
10521 INTERESTING(
"CC-BY-SA-4.0");
10523 if (
INFILE(_SPDX_CDLA_Permissive_10)) {
10524 INTERESTING(
"CDLA-Permissive-1.0");
10526 if (
INFILE(_SPDX_CDLA_Sharing_10)) {
10527 INTERESTING(
"CDLA-Sharing-1.0");
10529 if (
INFILE(_SPDX_Crossword)) {
10530 INTERESTING(
"Crossword");
10532 if (
INFILE(_SPDX_CrystalStacker)) {
10533 INTERESTING(
"CrystalStacker");
10535 if (
INFILE(_SPDX_CUA_OPL_10)) {
10536 INTERESTING(
"CUA-OPL-1.0");
10538 if (
INFILE(_SPDX_Cube)) {
10539 INTERESTING(
"Cube");
10541 if (
INFILE(_SPDX_curl)) {
10542 INTERESTING(
"curl");
10544 if (
INFILE(_SPDX_D_FSL_10)) {
10545 INTERESTING(
"D-FSL-1.0");
10547 if (
INFILE(_SPDX_diffmark)) {
10548 INTERESTING(
"diffmark");
10550 if (
INFILE(_SPDX_WTFPL)) {
10551 INTERESTING(
"WTFPL");
10553 if (
HASTEXT(_SPDX_DOC, REG_EXTENDED) ||
HASTEXT(_PHR_DOC, REG_EXTENDED)) {
10554 INTERESTING(
"DOC");
10556 if (
INFILE(_SPDX_Dotseqn)) {
10557 INTERESTING(
"Dotseqn");
10559 if (
INFILE(_SPDX_DSDP)) {
10560 INTERESTING(
"DSDP");
10562 if (
INFILE(_SPDX_dvipdfm)) {
10563 INTERESTING(
"dvipdfm");
10565 if (
INFILE(_SPDX_EPL_10)) {
10566 INTERESTING(
"EPL-1.0");
10568 else if (
INFILE(_SPDX_EPL_20)) {
10569 INTERESTING(
"EPL-2.0");
10571 if (
INFILE(_SPDX_ECL_10)) {
10572 INTERESTING(
"ECL-1.0");
10574 if (
INFILE(_SPDX_ECL_20)) {
10575 INTERESTING(
"ECL-2.0");
10577 if (
INFILE(_SPDX_eGenix)) {
10578 INTERESTING(
"eGenix");
10580 if (
INFILE(_SPDX_EFL_10)) {
10581 INTERESTING(
"EFL-1.0");
10583 if (
INFILE(_SPDX_EFL_20)) {
10584 INTERESTING(
"EFL-2.0");
10586 if (
INFILE(_SPDX_Entessa)) {
10587 INTERESTING(
"Entessa");
10589 if (
INFILE(_SPDX_ErlPL_11)) {
10590 INTERESTING(
"ErlPL-1.1");
10592 if (
INFILE(_SPDX_EUDatagrid)) {
10593 INTERESTING(
"EUDatagrid");
10595 if (
INFILE(_SPDX_EUPL_10)) {
10596 INTERESTING(
"EUPL-1.0");
10598 else if (
INFILE(_SPDX_EUPL_11)) {
10599 INTERESTING(
"EUPL-1.1");
10601 else if (
INFILE(_SPDX_EUPL_12)) {
10602 INTERESTING(
"EUPL-1.2");
10604 if (
INFILE(_SPDX_Eurosym)) {
10605 INTERESTING(
"Eurosym");
10607 if (
HASTEXT(_SPDX_Fair, REG_EXTENDED) ||
HASTEXT(_PHR_Fair, REG_EXTENDED)) {
10608 INTERESTING(
"Fair");
10610 if (
INFILE(_SPDX_Frameworx_10)) {
10611 INTERESTING(
"Frameworx-1.0");
10613 if (
INFILE(_SPDX_FreeImage)) {
10614 INTERESTING(
"FreeImage");
10616 if (
INFILE(_SPDX_FSFAP)) {
10617 INTERESTING(
"FSFAP");
10619 if (
INFILE(_SPDX_FSFULLR)) {
10620 INTERESTING(
"FSFULLR");
10622 else if (
INFILE(_SPDX_FSFUL)) {
10623 INTERESTING(
"FSFUL");
10625 if (
INFILE(_SPDX_Giftware)) {
10626 INTERESTING(
"Giftware");
10628 if (
INFILE(_SPDX_GL2PS)) {
10629 INTERESTING(
"GL2PS");
10631 if (
INFILE(_SPDX_Glulxe)) {
10632 INTERESTING(
"Glulxe");
10634 if (
INFILE(_SPDX_GFDL_11_or_later)
10635 ||
HASTEXT(_SPDX_GFDL_11plus, REG_EXTENDED)
10636 ||
HASTEXT(_PHR_GFDL_11plus, REG_EXTENDED))
10638 INTERESTING(
"GFDL-1.1+");
10640 else if (
INFILE(_SPDX_GFDL_11)) {
10641 INTERESTING(
"GFDL-1.1");
10643 else if (
INFILE(_SPDX_GFDL_12_or_later)
10644 ||
HASTEXT(_SPDX_GFDL_12plus, REG_EXTENDED)
10645 ||
HASTEXT(_PHR_GFDL_12plus, REG_EXTENDED))
10647 INTERESTING(
"GFDL-1.2+");
10649 else if (
INFILE(_SPDX_GFDL_12)) {
10650 INTERESTING(
"GFDL-1.2");
10652 else if (
INFILE(_SPDX_GFDL_13_or_later)
10653 ||
HASTEXT(_SPDX_GFDL_13plus, REG_EXTENDED)
10654 ||
HASTEXT(_PHR_GFDL_13plus, REG_EXTENDED))
10656 INTERESTING(
"GFDL-1.3+");
10658 else if (
INFILE(_SPDX_GFDL_13)) {
10659 INTERESTING(
"GFDL-1.3");
10661 if (
INFILE(_SPDX_gnuplot)) {
10662 INTERESTING(
"gnuplot");
10664 if (
INFILE(_SPDX_gSOAP_13b)) {
10665 INTERESTING(
"gSOAP-1.3b");
10667 if (
INFILE(_SPDX_HaskellReport)) {
10668 INTERESTING(
"HaskellReport");
10670 if (
INFILE(_SPDX_HPND)) {
10671 INTERESTING(
"HPND");
10673 if (
INFILE(_SPDX_IBM_pibs)) {
10674 INTERESTING(
"IBM-pibs");
10676 if (
INFILE(_SPDX_IPL_10)) {
10677 INTERESTING(
"IPL-1.0");
10679 if (
INFILE(_SPDX_ImageMagick)) {
10680 INTERESTING(
"ImageMagick");
10682 if (
INFILE(_SPDX_iMatix)) {
10683 INTERESTING(
"iMatix");
10685 if (
INFILE(_SPDX_Imlib2)) {
10686 INTERESTING(
"Imlib2");
10688 if (
INFILE(_SPDX_IJG)) {
10689 INTERESTING(
"IJG");
10691 if (
INFILE(_SPDX_Info_ZIP)) {
10692 INTERESTING(
"Info-ZIP");
10694 if (
INFILE(_SPDX_Interbase_10)) {
10695 INTERESTING(
"Interbase-1.0");
10697 if (
INFILE(_SPDX_IPA)) {
10698 INTERESTING(
"IPA");
10700 if (
INFILE(_SPDX_ISC)) {
10701 INTERESTING(
"ISC");
10703 if (
INFILE(_SPDX_JasPer_20)) {
10704 INTERESTING(
"JasPer-2.0");
10706 if (
INFILE(_SPDX_JSON)) {
10707 INTERESTING(
"JSON");
10709 if (
INFILE(_SPDX_Latex2e)) {
10710 INTERESTING(
"Latex2e");
10712 if (
INFILE(_SPDX_Leptonica)) {
10713 INTERESTING(
"Leptonica");
10715 if (
INFILE(_SPDX_LGPLLR)) {
10716 INTERESTING(
"LGPLLR");
10718 if (
INFILE(_SPDX_Libpng)) {
10719 INTERESTING(
"Libpng");
10721 if (
INFILE(_SPDX_libtiff)) {
10722 INTERESTING(
"libtiff");
10724 if (
INFILE(_SPDX_LAL_12)) {
10725 INTERESTING(
"LAL-1.2");
10727 if (
INFILE(_SPDX_LAL_13)) {
10728 INTERESTING(
"LAL-1.3");
10730 if (
INFILE(_SPDX_LiLiQ_P_11)) {
10731 INTERESTING(
"LiLiQ-P-1.1");
10733 if (
INFILE(_SPDX_LiLiQ_Rplus_11)) {
10734 INTERESTING(
"LiLiQ-Rplus-1.1");
10736 if (
INFILE(_SPDX_LiLiQ_R_11)) {
10737 INTERESTING(
"LiLiQ-R-1.1");
10739 if (
INFILE(_SPDX_Linux_OpenIB)) {
10740 INTERESTING(
"Linux-OpenIB");
10742 if (
INFILE(_SPDX_LPL_102)) {
10743 INTERESTING(
"LPL-1.02");
10745 else if (
INFILE(_SPDX_LPL_10)) {
10746 INTERESTING(
"LPL-1.0");
10748 if (
INFILE(_SPDX_LPPL_10)) {
10749 INTERESTING(
"LPPL-1.0");
10751 if (
INFILE(_SPDX_LPPL_11)) {
10752 INTERESTING(
"LPPL-1.1");
10754 if (
INFILE(_SPDX_LPPL_12)) {
10755 INTERESTING(
"LPPL-1.2");
10757 if (
INFILE(_SPDX_LPPL_13a)) {
10758 INTERESTING(
"LPPL-1.3a");
10760 if (
INFILE(_SPDX_LPPL_13c)) {
10761 INTERESTING(
"LPPL-1.3c");
10763 if (
INFILE(_SPDX_MakeIndex)) {
10764 INTERESTING(
"MakeIndex");
10766 if (
INFILE(_SPDX_MTLL)) {
10767 INTERESTING(
"MTLL");
10769 if (
INFILE(_SPDX_MS_PL)) {
10770 INTERESTING(
"MS-PL");
10772 if (
INFILE(_SPDX_MS_RL)) {
10773 INTERESTING(
"MS-RL");
10775 if (
INFILE(_SPDX_MirOS)) {
10776 INTERESTING(
"MirOS");
10778 if (
INFILE(_SPDX_MITNFA)) {
10779 INTERESTING(
"MITNFA");
10781 if (!lmem[_fREAL] &&
INFILE(_SPDX_Motosoto)) {
10782 INTERESTING(
"Motosoto");
10784 if (
INFILE(_SPDX_mpich2)) {
10785 INTERESTING(
"mpich2");
10787 if (
INFILE(_SPDX_Multics)) {
10788 INTERESTING(
"Multics");
10790 if (
INFILE(_SPDX_Mup)) {
10791 INTERESTING(
"Mup");
10793 if (
INFILE(_SPDX_NASA_13)) {
10794 INTERESTING(
"NASA-1.3");
10796 if (
INFILE(_SPDX_Naumen)) {
10797 INTERESTING(
"Naumen");
10799 if (
INFILE(_SPDX_NBPL_10)) {
10800 INTERESTING(
"NBPL-1.0");
10802 if (
INFILE(_SPDX_Net_SNMP)) {
10803 INTERESTING(
"Net-SNMP");
10805 if (
INFILE(_SPDX_NetCDF)) {
10806 INTERESTING(
"NetCDF");
10808 if (
INFILE(_SPDX_NGPL)) {
10809 INTERESTING(
"NGPL");
10811 if (
INFILE(_SPDX_NOSL)) {
10812 INTERESTING(
"NOSL");
10814 if (
INFILE(_SPDX_NPL_10)) {
10815 INTERESTING(
"NPL-1.0");
10817 if (
INFILE(_SPDX_NPL_11)) {
10818 INTERESTING(
"NPL-1.1");
10820 if (
INFILE(_SPDX_Newsletr)) {
10821 INTERESTING(
"Newsletr");
10823 if (
INFILE(_SPDX_NLPL)) {
10824 INTERESTING(
"NLPL");
10827 INTERESTING(
"Nokia");
10829 if (
INFILE(_SPDX_NPOSL_30)) {
10830 INTERESTING(
"NPOSL-3.0");
10832 if (
INFILE(_SPDX_NLOD_10)) {
10833 INTERESTING(
"NLOD-1.0");
10835 if (
INFILE(_SPDX_Noweb)) {
10836 INTERESTING(
"Noweb");
10838 if (
INFILE(_SPDX_NRL)) {
10839 INTERESTING(
"NRL");
10841 if (
INFILE(_SPDX_NTP)) {
10842 INTERESTING(
"NTP");
10844 if (
INFILE(_SPDX_Nunit)) {
10845 INTERESTING(
"Nunit");
10847 if (
INFILE(_SPDX_OCLC_20)) {
10848 INTERESTING(
"OCLC-2.0");
10850 if (
INFILE(_SPDX_ODbL_10)) {
10851 INTERESTING(
"ODbL-1.0");
10853 if (
INFILE(_SPDX_PDDL_10)) {
10854 INTERESTING(
"PDDL-1.0");
10856 if (
INFILE(_SPDX_OCCT_PL)) {
10857 INTERESTING(
"OCCT-PL");
10859 if (
INFILE(_SPDX_ODC_By_10)) {
10860 INTERESTING(
"ODC-By-1.0");
10862 if (
INFILE(_SPDX_OGL_UK_10)) {
10863 INTERESTING(
"OGL-UK-1.0");
10865 else if (
INFILE(_SPDX_OGL_UK_20)) {
10866 INTERESTING(
"OGL-UK-2.0");
10868 else if (
INFILE(_SPDX_OGL_UK_30)) {
10869 INTERESTING(
"OGL-UK-3.0");
10871 if (
INFILE(_SPDX_OGTSL)) {
10872 INTERESTING(
"OGTSL");
10874 if (
INFILE(_SPDX_OLDAP_11)) {
10875 INTERESTING(
"OLDAP-1.1");
10877 else if (
INFILE(_SPDX_OLDAP_12)) {
10878 INTERESTING(
"OLDAP-1.2");
10880 else if (
INFILE(_SPDX_OLDAP_13)) {
10881 INTERESTING(
"OLDAP-1.3");
10883 else if (
INFILE(_SPDX_OLDAP_14)) {
10884 INTERESTING(
"OLDAP-1.4");
10886 else if (
INFILE(_SPDX_OLDAP_201)) {
10887 INTERESTING(
"OLDAP-2.0.1");
10889 else if (
INFILE(_SPDX_OLDAP_20)) {
10890 INTERESTING(
"OLDAP-2.0");
10892 else if (
INFILE(_SPDX_OLDAP_21)) {
10893 INTERESTING(
"OLDAP-2.1");
10895 else if (
INFILE(_SPDX_OLDAP_221)) {
10896 INTERESTING(
"OLDAP-2.2.1");
10898 else if (
INFILE(_SPDX_OLDAP_222)) {
10899 INTERESTING(
"OLDAP-2.2.2");
10901 else if (
INFILE(_SPDX_OLDAP_22)) {
10902 INTERESTING(
"OLDAP-2.2");
10904 else if (
INFILE(_SPDX_OLDAP_23)) {
10905 INTERESTING(
"OLDAP-2.3");
10907 else if (
INFILE(_SPDX_OLDAP_24)) {
10908 INTERESTING(
"OLDAP-2.4");
10910 else if (
INFILE(_SPDX_OLDAP_25)) {
10911 INTERESTING(
"OLDAP-2.5");
10913 else if (
INFILE(_SPDX_OLDAP_26)) {
10914 INTERESTING(
"OLDAP-2.6");
10916 else if (
INFILE(_SPDX_OLDAP_27)) {
10917 INTERESTING(
"OLDAP-2.7");
10919 else if (
INFILE(_SPDX_OLDAP_28)) {
10920 INTERESTING(
"OLDAP-2.8");
10922 if (
INFILE(_SPDX_OML)) {
10923 INTERESTING(
"OML");
10925 if (
INFILE(_SPDX_OPL_10)) {
10926 INTERESTING(
"OPL-1.0");
10928 if (
INFILE(_SPDX_OSL_10)) {
10929 INTERESTING(
"OSL-1.0");
10931 if (
INFILE(_SPDX_OSL_11)) {
10932 INTERESTING(
"OSL-1.1");
10934 if (
INFILE(_SPDX_OSL_20)) {
10935 INTERESTING(
"OSL-2.0");
10937 if (
INFILE(_SPDX_OSL_21)) {
10938 INTERESTING(
"OSL-2.1");
10940 if (
INFILE(_SPDX_OSL_30)) {
10941 INTERESTING(
"OSL-3.0");
10943 if (
INFILE(_SPDX_OSET_PL_21)) {
10944 INTERESTING(
"OSET-PL-2.1");
10946 if (
INFILE(_SPDX_PHP_301)) {
10947 INTERESTING(
"PHP-3.01");
10949 else if (
INFILE(_SPDX_PHP_30)) {
10950 INTERESTING(
"PHP-3.0");
10952 if (
INFILE(_SPDX_Plexus)) {
10953 INTERESTING(
"Plexus");
10955 if (
INFILE(_SPDX_PostgreSQL)) {
10956 INTERESTING(
"PostgreSQL");
10958 if (
INFILE(_SPDX_psfrag)) {
10959 INTERESTING(
"psfrag");
10961 if (
INFILE(_SPDX_psutils)) {
10962 INTERESTING(
"psutils");
10964 if (
INFILE(_SPDX_Python_20)) {
10965 INTERESTING(
"Python-2.0");
10967 if (
INFILE(_SPDX_QPL_10)) {
10968 INTERESTING(
"QPL-1.0");
10970 if (
INFILE(_SPDX_Qhull)) {
10971 INTERESTING(
"Qhull");
10973 if (
INFILE(_SPDX_Rdisc)) {
10974 INTERESTING(
"Rdisc");
10976 if (
INFILE(_SPDX_RPSL_10)) {
10977 INTERESTING(
"RPSL-1.0");
10979 if (
INFILE(_SPDX_RPL_11)) {
10980 INTERESTING(
"RPL-1.1");
10982 if (
INFILE(_SPDX_RPL_15)) {
10983 INTERESTING(
"RPL-1.5");
10985 if (
INFILE(_SPDX_RHeCos_11)) {
10986 INTERESTING(
"RHeCos-1.1");
10988 if (
INFILE(_SPDX_RSCPL)) {
10989 INTERESTING(
"RSCPL");
10991 if (
INFILE(_SPDX_RSA_MD)) {
10992 INTERESTING(
"RSA-MD");
10994 if (
INFILE(_SPDX_Ruby)) {
10995 INTERESTING(
"Ruby");
10997 if (
INFILE(_SPDX_SAX_PD)) {
10998 INTERESTING(
"SAX-PD");
11000 if (
INFILE(_SPDX_Saxpath)) {
11001 INTERESTING(
"Saxpath");
11003 if (
INFILE(_SPDX_SCEA)) {
11004 INTERESTING(
"SCEA");
11006 if (
INFILE(_SPDX_SWL)) {
11007 INTERESTING(
"SWL");
11009 if (
INFILE(_SPDX_SMPPL)) {
11010 INTERESTING(
"SMPPL");
11012 if (
INFILE(_SPDX_Sendmail_823)) {
11013 INTERESTING(
"Sendmail-8.23");
11015 else if (
INFILE(_SPDX_Sendmail)) {
11016 INTERESTING(
"Sendmail");
11018 if (
INFILE(_SPDX_SGI_B_10)) {
11019 INTERESTING(
"SGI-B-1.0");
11021 if (
INFILE(_SPDX_SGI_B_11)) {
11022 INTERESTING(
"SGI-B-1.1");
11024 if (
INFILE(_SPDX_SGI_B_20)) {
11025 INTERESTING(
"SGI-B-2.0");
11027 if (
INFILE(_SPDX_OFL_10)) {
11028 INTERESTING(
"OFL-1.0");
11030 if (
INFILE(_SPDX_OFL_11)) {
11031 INTERESTING(
"OFL-1.1");
11033 if (
INFILE(_SPDX_SimPL_20)) {
11034 INTERESTING(
"SimPL-2.0");
11036 if (
INFILE(_SPDX_Sleepycat)) {
11037 INTERESTING(
"Sleepycat");
11039 if (
INFILE(_SPDX_SNIA)) {
11040 INTERESTING(
"SNIA");
11042 if (
INFILE(_SPDX_Spencer_86)) {
11043 INTERESTING(
"Spencer-86");
11045 if (
INFILE(_SPDX_Spencer_94)) {
11046 INTERESTING(
"Spencer-94");
11048 if (
INFILE(_SPDX_Spencer_99)) {
11049 INTERESTING(
"Spencer-99");
11051 if (
INFILE(_SPDX_SMLNJ)) {
11052 INTERESTING(
"SMLNJ");
11054 if (
INFILE(_SPDX_SugarCRM_113)) {
11055 INTERESTING(
"SugarCRM-1.1.3");
11057 if (
INFILE(_SPDX_SISSL_12)) {
11058 INTERESTING(
"SISSL-1.2");
11060 else if (!lmem[_fREAL] &&
INFILE(_SPDX_SISSL)) {
11061 INTERESTING(
"SISSL");
11063 if (
INFILE(_SPDX_SPL_10)) {
11064 INTERESTING(
"SPL-1.0");
11066 if (
INFILE(_SPDX_Watcom_10)) {
11067 INTERESTING(
"Watcom-1.0");
11069 if (
INFILE(_SPDX_TCP_wrappers)) {
11070 INTERESTING(
"TCP-wrappers");
11072 if (
INFILE(_SPDX_Unlicense)) {
11073 INTERESTING(
"Unlicense");
11075 if (
INFILE(_SPDX_TMate)) {
11076 INTERESTING(
"TMate");
11078 if (
INFILE(_SPDX_TORQUE_11)) {
11079 INTERESTING(
"TORQUE-1.1");
11081 if (
INFILE(_SPDX_TOSL)) {
11082 INTERESTING(
"TOSL");
11084 if (
INFILE(_SPDX_TU_Berlin_10)) {
11085 INTERESTING(
"TU-Berlin-1.0");
11087 else if (
INFILE(_SPDX_TU_Berlin_20)) {
11088 INTERESTING(
"TU-Berlin-2.0");
11090 if (
INFILE(_SPDX_Unicode_DFS_2015)) {
11091 INTERESTING(
"Unicode-DFS-2015");
11093 if (
INFILE(_SPDX_Unicode_DFS_2016)) {
11094 INTERESTING(
"Unicode-DFS-2016");
11096 if (
INFILE(_SPDX_Unicode_TOU)) {
11097 INTERESTING(
"Unicode-TOU");
11099 if (
INFILE(_SPDX_UPL_10)) {
11100 INTERESTING(
"UPL-1.0");
11102 if (
INFILE(_SPDX_NCSA)) {
11103 INTERESTING(
"NCSA");
11105 if (
INFILE(_SPDX_Vim)) {
11106 INTERESTING(
"Vim");
11108 if (
INFILE(_SPDX_VOSTROM)) {
11109 INTERESTING(
"VOSTROM");
11111 if (
INFILE(_SPDX_VSL_10)) {
11112 INTERESTING(
"VSL-1.0");
11114 if (
INFILE(_SPDX_W3C_20150513)) {
11115 INTERESTING(
"W3C-20150513");
11117 else if (
INFILE(_SPDX_W3C_19980720)) {
11118 INTERESTING(
"W3C-19980720");
11120 else if (
INFILE(_SPDX_W3C)) {
11121 INTERESTING(
"W3C");
11123 if (
INFILE(_SPDX_Wsuipa)) {
11124 INTERESTING(
"Wsuipa");
11126 if (!lmem[_fREAL] &&
INFILE(_SPDX_Xnet)) {
11127 INTERESTING(
"Xnet");
11129 if (
INFILE(_SPDX_X11)) {
11130 INTERESTING(
"X11");
11132 if (
INFILE(_SPDX_Xerox)) {
11133 INTERESTING(
"Xerox");
11135 if (
INFILE(_SPDX_XFree86_11)) {
11136 INTERESTING(
"XFree86-1.1");
11138 if (
INFILE(_SPDX_xinetd)) {
11139 INTERESTING(
"xinetd");
11141 if (
INFILE(_SPDX_xpp)) {
11142 INTERESTING(
"xpp");
11144 if (
INFILE(_SPDX_XSkat)) {
11145 INTERESTING(
"XSkat");
11147 if (
INFILE(_SPDX_YPL_10)) {
11148 INTERESTING(
"YPL-1.0");
11150 if (
INFILE(_SPDX_YPL_11)) {
11151 INTERESTING(
"YPL-1.1");
11153 if (
INFILE(_SPDX_Zed)) {
11154 INTERESTING(
"Zed");
11156 if (
INFILE(_SPDX_Zend_20)) {
11157 INTERESTING(
"Zend-2.0");
11159 if (
INFILE(_SPDX_Zimbra_13)) {
11160 INTERESTING(
"Zimbra-1.3");
11162 if (
INFILE(_SPDX_Zimbra_14)) {
11163 INTERESTING(
"Zimbra-1.4");
11174 if (
INFILE(_SPDX_389_exception)) {
11175 INTERESTING(
"389-exception");
11177 if (
INFILE(_SPDX_Autoconf_exception_20)) {
11178 INTERESTING(
"Autoconf-exception-2.0");
11180 if (
INFILE(_SPDX_Autoconf_exception_30)) {
11181 INTERESTING(
"Autoconf-exception-3.0");
11183 if (
INFILE(_SPDX_Bison_exception_22)) {
11184 INTERESTING(
"Bison-exception-2.2");
11186 if (
INFILE(_SPDX_Bootloader_exception)) {
11187 INTERESTING(
"Bootloader-exception");
11189 if (
INFILE(_SPDX_Classpath_exception_20)) {
11190 INTERESTING(
"Classpath-exception-2.0");
11192 if (
INFILE(_SPDX_CLISP_exception_20)) {
11193 INTERESTING(
"CLISP-exception-2.0");
11195 if (
INFILE(_SPDX_DigiRule_FOSS_exception)) {
11196 INTERESTING(
"DigiRule-FOSS-exception");
11198 if (
INFILE(_SPDX_eCos_exception_20)) {
11199 INTERESTING(
"eCos-exception-2.0");
11201 if (
INFILE(_SPDX_Fawkes_Runtime_exception)) {
11202 INTERESTING(
"Fawkes-Runtime-exception");
11204 if (
INFILE(_SPDX_FLTK_exception)) {
11205 INTERESTING(
"FLTK-exception");
11207 if (
INFILE(_SPDX_Font_exception_20)) {
11208 INTERESTING(
"Font-exception-2.0");
11210 if (
INFILE(_SPDX_freertos_exception_20)) {
11211 INTERESTING(
"freertos-exception-2.0");
11213 if (
INFILE(_SPDX_GCC_exception_20)) {
11214 INTERESTING(
"GCC-exception-2.0");
11216 if (
INFILE(_SPDX_GCC_exception_31)) {
11217 INTERESTING(
"GCC-exception-3.1");
11219 if (
INFILE(_SPDX_gnu_javamail_exception)) {
11220 INTERESTING(
"gnu-javamail-exception");
11222 if (
INFILE(_SPDX_i2p_gpl_java_exception)) {
11223 INTERESTING(
"i2p-gpl-java-exception");
11225 if (
INFILE(_SPDX_Libtool_exception)) {
11226 INTERESTING(
"Libtool-exception");
11228 if (
INFILE(_SPDX_Linux_syscall_note)) {
11229 INTERESTING(
"Linux-syscall-note");
11231 if (
INFILE(_SPDX_LLVM_exception)) {
11232 INTERESTING(
"LLVM-exception");
11234 if (
INFILE(_SPDX_LZMA_exception)) {
11235 INTERESTING(
"LZMA-exception");
11237 if (
INFILE(_SPDX_mif_exception)) {
11238 INTERESTING(
"mif-exception");
11240 if (
INFILE(_SPDX_Nokia_Qt_exception_11)) {
11241 INTERESTING(
"Nokia-Qt-exception-1.1");
11243 if (
INFILE(_SPDX_OCCT_exception_10)) {
11244 INTERESTING(
"OCCT-exception-1.0");
11246 if (
INFILE(_SPDX_OpenJDK_assembly_exception_10)) {
11247 INTERESTING(
"OpenJDK-assembly-exception-1.0");
11249 if (
INFILE(_SPDX_openvpn_openssl_exception)) {
11250 INTERESTING(
"openvpn-openssl-exception");
11252 if (
INFILE(_SPDX_Qwt_exception_10)) {
11253 INTERESTING(
"Qwt-exception-1.0");
11255 if (
INFILE(_SPDX_u_boot_exception_20)) {
11256 INTERESTING(
"u-boot-exception-2.0");
11258 if (
INFILE(_SPDX_WxWindows_exception_31)) {
11259 INTERESTING(
"WxWindows-exception-3.1");
11266 if (
INFILE(_LT_389_exception)) {
11267 INTERESTING(
"389-exception");
11269 else if (
INFILE(_LT_Autoconf_exception_20)) {
11270 INTERESTING(
"Autoconf-exception-2.0");
11272 else if (
INFILE(_LT_GPL_EXCEPT_5) &&
INFILE(_LT_Autoconf_exception_30)) {
11273 INTERESTING(
"Autoconf-exception-3.0");
11275 else if (
INFILE(_LT_Autoconf_exception_3)) {
11276 INTERESTING(
"Autoconf-exception");
11278 else if (
INFILE(_LT_Bison_exception_22)) {
11279 INTERESTING(
"Bison-exception-2.2");
11281 else if (
INFILE(_LT_Bison_exception_1) ||
INFILE(_LT_Bison_exception_2)) {
11282 INTERESTING(
"Bison-exception");
11284 else if (
INFILE(_LT_Bootloader_exception)) {
11285 INTERESTING(
"Bootloader-exception");
11288 else if (
INFILE(_LT_OpenJDK_assembly_exception_10_1) ||
HASTEXT(_LT_OpenJDK_assembly_exception_10_2, 0)) {
11289 INTERESTING(
"OpenJDK-assembly-exception-1.0");
11291 else if (
INFILE(_LT_GPL_EXCEPT_6)) {
11292 if (
INFILE(_LT_mif_exception)) {
11293 INTERESTING(
"Fawkes-Runtime-exception");
11296 INTERESTING(
"Classpath-exception-2.0");
11299 else if (
INFILE(_LT_classpath_exception_1)) {
11300 INTERESTING(
"Classpath-exception-2.0");
11302 else if (
HASTEXT(_LT_CLISP_exception_20_1, 0) &&
INFILE(_LT_CLISP_exception_20_2)) {
11303 INTERESTING(
"CLISP-exception-2.0");
11305 else if (
HASTEXT(_TITLE_DigiRule_FOSS_exception, 0) ||
INFILE(_LT_DigiRule_FOSS_exception)) {
11306 INTERESTING(
"DigiRule-FOSS-exception");
11308 else if (
INFILE(_LT_eCos_exception) &&
INFILE(_LT_GPL_EXCEPT_7)) {
11309 INTERESTING(
"eCos-exception-2.0");
11311 else if (
HASTEXT(_LT_FLTK_exception, 0)) {
11312 INTERESTING(
"FLTK-exception");
11314 else if (
HASTEXT(_TEXT_FONT, REG_EXTENDED) ||
INFILE(_LT_FONT_EXCEPTION_20)) {
11315 INTERESTING(
"Font-exception-2.0");
11317 else if (
HASTEXT(_LT_freertos_exception_20, 0)) {
11318 INTERESTING(
"freertos-exception-2.0");
11320 else if (
INFILE(_LT_freertos_exception_1) ||
INFILE(_LT_freertos_exception_2)) {
11321 INTERESTING(
"freertos-exception");
11323 else if (
INFILE(_LT_GCC_exception_31_1) ||
INFILE(_LT_GCC_exception_31_2)) {
11324 INTERESTING(
"GCC-exception-3.1");
11326 else if (
INFILE(_LT_GCC_exception_20)) {
11327 INTERESTING(
"GCC-exception-2.0");
11330 else if (
INFILE(_LT_linking_exception_1)) {
11331 INTERESTING(
"linking-exception");
11333 else if (
HASTEXT(_TEXT_GCC, REG_EXTENDED)) {
11334 INTERESTING(
"GCC-exception");
11336 else if (
INFILE(_LT_gnu_javamail_exception_1) ||
INFILE(_LT_gnu_javamail_exception_2)) {
11337 INTERESTING(
"gnu-javamail-exception");
11339 else if (
INFILE(_LT_i2p_gpl_java_exception)) {
11340 INTERESTING(
"i2p-gpl-java-exception");
11342 else if (
INFILE(_LT_GPL_EXCEPT_1) ||
INFILE(_LT_GPL_EXCEPT_2)) {
11343 if (
HASTEXT(_LT_Libtool_exception, 0)) {
11344 INTERESTING(
"Libtool-exception");
11346 if (
HASTEXT(_LT_Autoconf_exception_2, REG_EXTENDED) ||
INFILE(_LT_Autoconf_exception_1)) {
11347 INTERESTING(
"Autoconf-exception");
11350 else if (
INFILE(_LT_Linux_syscall_note)) {
11351 INTERESTING(
"Linux-syscall-note");
11353 else if (
HASTEXT(_LT_LLVM_exception_1, 0) ||
HASTEXT(_LT_LLVM_exception_2, 0)) {
11354 INTERESTING(
"LLVM-exception");
11356 else if (
INFILE(_LT_LZMA_exception)) {
11357 INTERESTING(
"LZMA-exception");
11359 else if (
INFILE(_LT_mif_exception)) {
11360 INTERESTING(
"mif-exception");
11362 else if (
HASTEXT(_LT_OCCT_exception_10_1, REG_EXTENDED) ||
INFILE(_LT_OCCT_exception_10_2)) {
11363 INTERESTING(
"OCCT-exception-1.0");
11365 else if (
INFILE(_LT_openvpn_openssl_exception)) {
11366 INTERESTING(
"openvpn-openssl-exception");
11368 else if (
HASTEXT(_TITLE_QT_GPL_EXCEPTION_10, 0)) {
11369 INTERESTING(
"Qt-GPL-exception-1.0");
11371 else if (
HASTEXT(_LT_QT_GPL_EXCEPTION_10_1, 0) &&
INFILE(_LT_QT_GPL_EXCEPTION_10_2)) {
11372 INTERESTING(
"Qt-GPL-exception-1.0");
11374 else if (
HASTEXT(_LT_QT_GPL_EXCEPTION, 0) &&
HASTEXT(_LT_QT_GPL_EXCEPTION_10_3, 0)) {
11375 INTERESTING(
"Qt-GPL-exception-1.0");
11377 else if (
INFILE(_TITLE_Nokia_Qt_LGPL_exception_11)) {
11378 INTERESTING(
"Nokia-Qt-exception-1.1");
11380 else if (
INFILE(_TITLE_QT_LGPL_EXCEPTION_11)) {
11381 INTERESTING(
"Qt-LGPL-exception-1.1");
11383 else if (
INFILE(_LT_Qwt_exception_10_1)) {
11384 INTERESTING(
"Qwt-exception-1.0");
11386 else if (
HASTEXT(_LT_Qwt_exception_10_2, 0)) {
11387 INTERESTING(
"Qwt-exception-1.0");
11389 else if (
INFILE(_LT_WxWindows_exception_31)) {
11390 INTERESTING(
"WxWindows-exception-3.1");
11396 else if (
INFILE(_PHR_WXWINDOWS_31)) {
11397 INTERESTING(
"WxWindows-exception-3.1");
11398 INTERESTING(
"LGPL-2.0+");
11404 else if (
INFILE(_PHR_WXWINDOWS)) {
11405 INTERESTING(
"WxWindows");
11407 else if (
HASTEXT(_LT_u_boot_exception_20, REG_EXTENDED)) {
11408 INTERESTING(
"u-boot-exception-2.0");
11410 else if (
HASTEXT(_LT_GPL_EXCEPT_Trolltech, REG_EXTENDED)) {
11411 INTERESTING(
"trolltech-exception");
11413 else if (
INFILE(_LT_OpenSSL_exception_1) ||
INFILE(_LT_OpenSSL_exception_2)) {
11414 INTERESTING(
"OpenSSL-exception");
11416 else if (
INFILE(_LT_GPL_UPX_EXCEPT) && !
HASTEXT(_LT_IGNORE_CLAUSE, REG_EXTENDED)) {
11417 INTERESTING(
"UPX-exception");
11419 else if (
INFILE(_URL_mysql_floss_exception) ||
HASTEXT(_TITLE_mysql_floss_exception, 0)) {
11420 INTERESTING(
lDebug ?
"mysql-floss-exception(URL)" :
"mysql-floss-exception");
11422 else if (
INFILE(_TITLE_Oracle_foss_exception) ||
INFILE(_LT_Oracle_foss_exception)) {
11423 INTERESTING(
"Oracle-foss-exception");
11425 else if (
INFILE(_LT_linking_exception_2) || (
INFILE(_LT_linking_exception_3) &&
INFILE(_LT_GPL_EXCEPT_7))) {
11426 INTERESTING(
"linking-exception");
11428 else if (
HASTEXT(_TITLE_universal_foss_exception_10, 0)
11429 ||
URL_INFILE(_URL_universal_foss_exception_10)
11430 ||
INFILE(_LT_universal_foss_exception_10)) {
11431 INTERESTING(
"universal-foss-exception-1.0");
11433 else if (
INFILE(_LT_GPL_EXCEPT_1)) {
11434 INTERESTING(
lDebug ?
"GPL-except-1" :
"GPL-exception");
11436 else if (
INFILE(_LT_GPL_EXCEPT_2)) {
11437 INTERESTING(
lDebug ?
"GPL-except-2" :
"GPL-exception");
11439 else if (
INFILE(_LT_GPL_EXCEPT_3)) {
11440 INTERESTING(
lDebug ?
"GPL-except-3" :
"GPL-exception");
11442 else if (
INFILE(_LT_GPL_EXCEPT_4)) {
11443 INTERESTING(
lDebug ?
"GPL-except-4" :
"GPL-exception");
11445 else if (
INFILE(_LT_GPL_EXCEPT_7)) {
11446 INTERESTING(
"linking-exception");
11448 else if (
INFILE(_LT_GPL_SWI_PROLOG_EXCEPT)) {
11449 INTERESTING(
lDebug ?
"GPL-swi-prolog" :
"GPL-exception");
11456 #define LT_TARGET 1299 11457 void showLTCache(
char *msg)
11463 printf(
"%s\n", msg);
11464 if (LT_TARGET >= 0) {
11465 printf(
"... tracking string #%d\n", LT_TARGET);
11467 while (i < NFOOTPRINTS) {
11469 printf(i == LT_TARGET ?
"x" :
".");
11475 printf(i == LT_TARGET ?
"0" :
":");
11478 if ((++i % 75) == 0) {
11479 printf(
"|%04d\n", i);
11482 printf(
"\nLTSR-matches: %d, Cached: %d\n", nMatch, nCached);
11487 #ifdef DOCTOR_DEBUG 11491 void dumpMatch(
char *text,
char *label)
11493 char *x = text + cur.regm.rm_so;
11494 char *cp = text + cur.regm.rm_eo;
11497 printf(
"%s ", label);
11499 printf(
"@ %d [", cur.regm.rm_so);
11500 for (; x < cp; x++) {
void saveRegexLocation(int, int, int, int)
Save a regex in whereList.
char * oslVersion(char *, int, int, int)
Check for OSL versions.
void doctorBuffer(char *buf, int isML, int isPS, int isCR)
Convert a buffer of multiple stuff to text-only, separated by spaces.
int optionIsSet(int val)
Check if an CLI option is set.
#define NOT_INFILE(x)
Calls fileHasPatt()
tricky data structure used for a list of 'items'
#define URL_INFILE(x)
Check in file with qType 0|1.
int famOPENLDAP(char *, int, int, int)
Utility function to search for OpenLDAP licenses. So many different footprints are used by OpenLDAP...
searchString_t text
License text.
int idxGrep_recordPosition(int index, char *data, int flags)
compile a regex, perform the search and record findings
char * lgplVersion(char *, int, int, int)
Check for LGPL versions.
char * tseed
unencrypted license text
#define RM_INFILE(x)
Calls fileHasPatt() with qType 1.
int score
License match score.
static char licStr[myBUFSIZ]
void Bail(int exitval)
Close connections and exit.
#define INFILE(x)
Calls fileHasPatt()
char * getInstances(char *textp, int size, int nBefore, int nAfter, char *regex, int recordOffsets)
Get occurrence of a regex in a given string pointer.
if(!preg_match("/\s$projectGroup\s/", $groups)&&(posix_getgid()!=$gInfo['gid']))
get monk license list of one specified uploadtree_id
static int dbgIdxGrep(int, char *, int)
Debugging call for idxGrep()
int idxGrep_recordPositionDoctored(int index, char *data, int flags)
compile a regex, perform the search and record findings
void copyleftExceptions(char *, int, int, int)
#define HASREGEX_RI(x, cp)
Calls idxGrep_recordIndex()
void listInit(list_t *l, int size, char *label)
intialize a list, if the list is not empty, empty it (initialize it to zero's).
void checkFileReferences(char *, int, int, int, int, int)
Generic license-phrases referring to other files or running commands.
item_t * listGetItem(list_t *l, char *s)
get an item from the itemlist. If the item is not in the itemlist, then add it to the itemlist...
int strNbuf(char *data, char *str)
Check if a string exists in buffer (case insensitive)
static char * gplVersion(char *, int, int, int)
Check for GPL versions.
#define NULL_CHAR
NULL character.
int findPhrase(int, char *, int, int, int, int)
Check for the presence of a phrase in a file by first searching for the search key provided...
void Assert(int fatalFlag, const char *fmt,...)
Raise an assert.
start($application)
start the application Assumes application is restartable via /etc/init.d/<script>. The application passed in should match the script name in /etc/init.d
char * lpplVersion(char *, int, int, int)
Check for LPPL versions.
char * cplVersion(char *, int, int, int)
Check for CPL versions.
static char ltsr[NFOOTPRINTS]
char * ccVersion(char *, int, int, int)
Check for CC_BY-X versions.
void printRegexMatch(int n, int cached)
CDB – Need to review this code, particularly for the use of an external file (Nomos.strings.txt). Despite the fact that variable is named debugStr, the file appears to be used for more than just debugging.
FUNCTION void addLicence(GArray *theMatches, char *licenceName)
Add a license to the matches array.
int idxGrep(int index, char *data, int flags)
compile a regex, and perform the search (on data?)
char * parseLicenses(char *filetext, int size, scanres_t *scp, int isML, int isPS)
Parse a file to check all the possible licenses and add them to matches.
static char * realVersion(char *, int, int, int, int)
Check for RPSL versions.
void spdxReference(char *, int, int, int)
#define isEOL(x)
Check if x points to a EOL character.
char * cddlVersion(char *, int, int, int)
Check for CDDL versions.
char * copyString(char *s, char *label)
Create a copy of a string.
#define HASTEXT(x, fl)
Calls idxGrep_recordIndex()
void addRef(char *, int)
This function fills in a character-buffer for a license of a CURRENT file being evaluated, and enqueues a list if components to help make a package-level summary.
char * gfdlVersion(char *, int, int, int)
Check for GFDL versions.
void listIterationReset(list_t *l)
Rest list ix to -1.
void checkCornerCases(char *, int, int, int, int, int, int, int)
If we call this function, we still don't know anything about a license.
#define SEEN(x)
Check LTSR_SMASK on lstr[x].
#define HASREGEX(x, cp)
Calls idxGrep()
char * agplVersion(char *, int, int, int)
Check for AGPL versions.
#define GPL_INFILE(x)
Calls fileHasPatt() with qType 2.
#define PERL_INFILE(x)
Calls fileHasPatt() with qType 3.
char * aslVersion(char *, int, int, int)
Check for ASL Apache versions.
#define LVAL(x)
Check LTSR_RMASK on lstr[x].
void listSort(list_t *l, int sortType)
Sort the list as per the sortType passed.
#define NULL_STR
NULL string.
void locateRegex(char *, item_t *, int, int, int, int)
Locate a regex in a given file.
static int fileHasPatt(int licTextIdx, char *filetext, int size, int isML, int isPS, int qType)
Checks for a phrase in a file.
#define PARSE_ARGS
Arguments to parse.
#define NY_INFILE(x)
Calls fileHasPatt() with qType 4.
list_t type structure used to keep various lists. (e.g. there are multiple lists).
static char * sisslVersion(char *, int, int, int)
Check for SISSL versions.
int strGrep(char *regex, char *data, int flags)
General-purpose grep function, used for one-time-only searches.
char * pythonVersion(char *, int, int, int)
Check for python versions.
char * findEol(char *s)
Find first ROL in a string.
char * aflVersion(char *, int, int, int)
Check for AFL versions.
void cleanLicenceBuffer()
Clean the license buffer.
void listDump(list_t *l, int verbose)
print the passed in list
void listClear(list_t *l, int deallocFlag)
Destroy list_t.
#define NULL_ITEM
NULL item.
int checkUnclassified(char *, int, int, int, int, int)
This function is called when all the above license-checks don't turn up anything useful. Now we need to determine if the current file likely contains a license or not.
char * regex
License regex.
item_t * listIterate(list_t *l)
return a pointer to listitem, returns a NULL_ITEM when no more items to return.
char * mplNplVersion(char *, int, int, int)
Check for MPL|NPL versions.
char progName[64]
Program name.