15 #include "nomos_regex.h"
16 #include "nomos_utils.h"
17 #include <_autodefs.h>
95 #define _msize _fIJG+1
110 extern void preloadResults(
char *filetext,
char *
ltsr);
118 int findPhrase(
int,
char *,
int,
int,
int,
int);
121 int checkPublicDomain(
char *,
int,
int,
int,
int,
int);
124 void showLTCache(
char *);
130 void dumpMatch(
char *,
char *);
134 void saveUnclBufLocation(
int);
135 void saveLicenseParagraph(
char *,
int ,
int ,
int);
137 static char *
gplVersion(
char *,
int,
int,
int);
144 static char *
realVersion(
char *,
int,
int,
int,
int);
151 static int match3(
int,
char *,
int,
int,
int,
int);
168 static char name[256];
169 static char lmem[_msize];
172 static list_t whCacheList;
173 static int refOffset;
174 static int maxInterest;
188 #define PARSE_ARGS filetext, size, isML, isPS
189 #define LVAL(x) (ltsr[x] & LTSR_RMASK)
190 #define SEEN(x) (ltsr[x] & LTSR_SMASK)
191 #define INFILE(x) fileHasPatt(x, PARSE_ARGS, 0)
192 #define NOT_INFILE(x) !( fileHasPatt(x, PARSE_ARGS, 0) && clearLastElementOfLicenceBuffer() )
193 #define RM_INFILE(x) fileHasPatt(x, PARSE_ARGS, 1)
194 #define GPL_INFILE(x) fileHasPatt(x, PARSE_ARGS, 2)
195 #define PERL_INFILE(x) fileHasPatt(x, PARSE_ARGS, 3)
196 #define NY_INFILE(x) fileHasPatt(x, PARSE_ARGS, 4)
197 #define X_INFILE(x, y) fileHasPatt(x, PARSE_ARGS, y)
198 #define DEBUG_INFILE(x) printf(" Regex[%d] = \"%s\"\nINFILE(%d) = %d\n", x, _REGEX(x), x, INFILE(x));
199 #define HASREGEX(x, cp) idxGrep(x, cp, REG_ICASE|REG_EXTENDED)
200 #define HASREGEX_RI(x, cp) idxGrep_recordIndex(x, cp, REG_ICASE|REG_EXTENDED)
201 #define HASTEXT(x, fl) idxGrep_recordIndex(x, filetext, REG_ICASE|fl)
202 #define URL_INFILE(x) (INFILE(x) || fileHasPatt(x, PARSE_ARGS, -1))
203 #define CANSKIP(i,x,y,z) ((i >= y) && (i <= z) && !(kwbm & (1 << (x - _KW_first))))
204 #define HASKW(x, y) (x & (1 << (y - _KW_first)))
205 #define TRYGROUP(x) x(PARSE_ARGS)
206 #define LOWINTEREST(x) addRef(x, IL_LOW)
207 #define MEDINTEREST(x) addRef(x, IL_MED)
209 #define INTERESTING(x) addRef(x, IL_HIGH)
210 #define ASLVERS() aslVersion(PARSE_ARGS)
211 #define CCVERS() ccVersion(PARSE_ARGS)
212 #define AFLVERS() aflVersion(PARSE_ARGS)
213 #define OSLVERS() oslVersion(PARSE_ARGS)
214 #define CPLVERS() cplVersion(PARSE_ARGS)
215 #define GPLVERS() gplVersion(PARSE_ARGS)
216 #define LGPLVERS() lgplVersion(PARSE_ARGS)
217 #define AGPLVERS() agplVersion(PARSE_ARGS)
218 #define GFDLVERS() gfdlVersion(PARSE_ARGS)
219 #define CDDLVERS() cddlVersion(PARSE_ARGS)
220 #define LPPLVERS() lpplVersion(PARSE_ARGS)
221 #define MPLVERS() mplNplVersion(PARSE_ARGS)
222 #define PYTHVERS() pythonVersion(PARSE_ARGS)
223 #define SISSLVERS() sisslVersion(PARSE_ARGS)
224 #define REALVERS(x) realVersion(PARSE_ARGS, x)
225 #define PR_REGEX(x) printf("check %d = %s\n", x, _REGEX(x));
226 #define mCR_CMU() (INFILE(_CR_CMU_1) || INFILE(_CR_CMU_2))
227 #define mCR_EDIN() (INFILE(_CR_EDINBURGH_1) || INFILE(_CR_EDINBURGH_2))
228 #define mCR_FSF() (INFILE(_CR_FSF1) || INFILE(_CR_FSF2))
229 #define mCR_HP() (INFILE(_CR_HP_1)|| INFILE(_CR_HP_2) || INFILE(_CR_DEC) || INFILE(_CR_EDS))
230 #define mCR_IETF() (INFILE(_CR_IETF_1) || INFILE(_CR_IETF_2))
231 #define mCR_MIT() (INFILE(_CR_MIT1) || INFILE(_CR_MIT2))
232 #define mCR_X11() (INFILE(_CR_X11) || INFILE(_CR_XFREE86))
233 #define mCR_IPTC() (INFILE(_CR_IPTC1) || INFILE(_CR_IPTC2))
234 #define SPDXREF() spdxReference(PARSE_ARGS)
235 #define EXCEPTIONS() copyleftExceptions(PARSE_ARGS)
249 int isML,
int isPS,
int qType)
256 traceFunc(
"== fileHasPatt(size=%d, isML=%d, isPS=%d, qType=%d, idx=%d)\n",
257 size, isML, isPS, qType, licTextIdx);
266 if ((qType >= 0) && (qType & FL_SHOWMATCH)) {
267 qType &= ~FL_SHOWMATCH;
274 dumpMatch(filetext,
"RAW-Text");
278 cur.regm.rm_eo - cur.regm.rm_so,
YES);
280 printf(
"WINDOW-RAW: offset %d, length %d\n",
281 cur.regm.rm_so, cur.regm.rm_eo - cur.regm.rm_so);
286 if (
SEEN(licTextIdx)) {
288 printf(
"Cache hit: ltsr[%d] = 0x%x\n", licTextIdx,
ltsr[licTextIdx]);
292 (void) sprintf(name,
"reg%04d", licTextIdx);
294 if (ip->bIndex != licTextIdx) {
296 LOG_FATAL(
"Offset-cache (\"%s\") == %d, not %d!", name, ip->bIndex, licTextIdx)
319 int flags = REG_ICASE|REG_EXTENDED;
321 if (
SEEN(licTextIdx)) {
326 flags |= FL_SHOWMATCH;
328 ret =
idxGrep(licTextIdx, buf, flags);
332 cur.regm.rm_eo - cur.regm.rm_so,
YES);
334 ltsr[licTextIdx] |= ret;
362 static int first = 1;
367 int score = scp->
score;
368 int kwbm = scp->kwbm;
370 extern void preloadResults(
char *,
char *);
373 #if defined(PROC_TRACE) || defined(DOCTOR_DEBUG)
374 traceFunc(
"== parseLicenses(%p, %d, [%d, 0x%x], %d, %d)\n",
375 filetext, size, score, kwbm, isML, isPS );
379 LOWINTEREST(
"Empty-file-no-data!");
388 listInit(&searchList, 0,
"pattern-search list");
389 listInit(&whereList, 0,
"regex-match locations list");
390 listInit(&whCacheList, 0,
"regex-cache-match list");
405 maxInterest = IL_INIT;
407 gl.
flags &= ~FL_FRAGMENT;
408 #ifdef FLAG_NO_COPYRIGHT
409 gl.
flags &= ~FL_NOCOPYRIGHT;
411 if (scp->dataOffset &&
lDiags) {
412 LOG_NOTICE(
"%s-generated link, ignore header (%d bytes)!",
422 if (!isPS && (strncasecmp(filetext,
"%%page:", 7) == 0 || strncasecmp(filetext,
"{\\rtf", 5) == 0)) {
423 #if defined(DEBUG) || defined(DOCTOR_DEBUG)
424 printf(
"File is really postscript, %s filetext !\n", filetext);
431 (void) memset(
ltsr, 0,
sizeof(
ltsr));
432 (void) memset(lmem, 0,
sizeof(lmem));
433 #if defined(DEBUG) && defined(LTSR_DEBUG)
434 showLTCache(
"LTSR-results START:");
437 preloadResults(filetext,
ltsr);
440 memStats(
"parseLicenses: BOP");
442 lmem[_mPYTH_TEXT] =
HASTEXT(_TEXT_PYTHON, 0);
443 lmem[_tOPENLDAP] =
HASTEXT(_TEXT_OPENLDAP, 0);
444 (void)
INFILE(_TEXT_GNU_LIC_INFO);
446 showLTCache(
"LTSR-results INIT-SCAN:");
451 if (
INFILE(_LT_MYSQL_EXCEPT) ||
INFILE(_PHR_FREE_LIBRE)) {
452 if (
INFILE(_TITLE_ALFRESCO)) {
453 INTERESTING(
"Alfresco-FLOSS");
455 else if (
HASTEXT(_TEXT_ALFRESCO, 0)) {
456 INTERESTING(
"Alfresco");
458 else if (
INFILE(_CR_MYSQL) ||
INFILE(_TITLE_mysql_floss_exception)) {
459 if (
INFILE(_TITLE_MYSQL_V03)) {
460 INTERESTING(
"MySQL-0.3");
463 INTERESTING(
"mysql-floss-exception");
467 INTERESTING(
"MySQL-style");
477 if (
HASTEXT(_TEXT_REALNET, REG_EXTENDED)) {
481 if (
INFILE(_LT_RPSL_COMPATIBLE)) {
484 if (
INFILE(_LT_REAL_RPSL)) {
485 cp = REALVERS(_TITLE_RPSL);
486 INTERESTING(
lDebug ?
"RPSL" : cp);
488 else if (
INFILE(_LT_REAL_RPSLref)) {
489 cp = REALVERS(_TITLE_RPSL);
490 INTERESTING(
lDebug ?
"Real-RPSL(ref)" : cp);
492 if (
INFILE(_LT_REAL_RCSL)) {
493 cp = REALVERS(_TITLE_RCSL);
494 INTERESTING(
lDebug ?
"RCSL" : cp);
496 else if (
INFILE(_LT_REAL_RCSLref)) {
497 cp = REALVERS(_TITLE_RCSL);
498 INTERESTING(
lDebug ?
"Real-RCSL(ref)" : cp);
500 if (
INFILE(_TITLE_REAL_EULA)) {
501 INTERESTING(
"RealNetworks-EULA");
503 else if (
INFILE(_LT_HELIX_TITLE)) {
504 INTERESTING(
"Helix.RealNetworks-EULA");
512 if (!lmem[_mLIBRE] && !lmem[_fREAL] &&
INFILE(_TITLE_ZOPE)) {
513 if (
INFILE(_TITLE_ZOPE_V21)) {
514 INTERESTING(
"ZPL-2.1");
517 else if (
INFILE(_TITLE_ZOPE_V20)) {
518 INTERESTING(
"ZPL-2.0");
521 else if (
INFILE(_TITLE_ZOPE_V10)) {
522 INTERESTING(
"ZPL-1.0");
525 else if (
INFILE(_TITLE_ZOPE_V11)) {
526 INTERESTING(
"ZPL-1.1");
529 else if (
INFILE(_SPDX_ZPL_11)) {
530 INTERESTING(
"ZPL-1.1");
533 else if (
INFILE(_SPDX_ZPL_20)) {
534 INTERESTING(
"ZPL-2.0");
537 else if (
INFILE(_SPDX_ZPL_21)) {
538 INTERESTING(
"ZPL-2.1");
541 else if (
INFILE(_TITLE_ZIMBRA_13)) {
542 INTERESTING(
"Zimbra-1.3");
544 else if (
INFILE(_TITLE_ZIMBRA_12)) {
545 INTERESTING(
"Zimbra-1.2");
548 INTERESTING(
lDebug ?
"Zope(ref)" :
"ZPL");
556 if (
HASTEXT(_PHR_Apache_ref0, REG_EXTENDED) ||
INFILE(_PHR_Apache_ref7) ||
INFILE(_TITLE_Apache)) {
568 if (
INFILE(_TITLE_PHP301)) {
569 INTERESTING(
lDebug ?
"PHP(v3.01#1)" :
"PHP-3.01");
572 else if (
INFILE(_TITLE_PHP30)) {
573 INTERESTING(
lDebug ?
"PHP(v3.0#1)" :
"PHP-3.0");
576 else if (
INFILE(_TITLE_PHP202)) {
577 INTERESTING(
lDebug ?
"PHP(v2.02#1)" :
"PHP-2.02");
581 INTERESTING(
"VSL-1.0");
585 INTERESTING(
"Naumen");
587 else if (
INFILE(_CR_ENTESSA) ||
INFILE(_TITLE_ENTESSA)) {
588 INTERESTING(
"Entessa");
590 else if (
INFILE(_LT_ATTRIB) ||
INFILE(_TITLE_ATTRIBUTION)) {
594 else if (
INFILE(_CR_ZOPE)) {
595 INTERESTING(
lDebug ?
"Zope(bsd)" :
"ZPL");
597 else if (
INFILE(_LT_Oracle_Berkeley_DB)) {
598 INTERESTING(
"Oracle-Berkeley-DB");
600 else if (
INFILE(_CR_SLEEPYCAT) ||
INFILE(_LT_SLEEPYCAT_1)) {
601 MEDINTEREST(
lDebug ?
"Sleepycat(1)" :
"Sleepycat");
603 else if (
INFILE(_TITLE_ZEND_V20)) {
604 INTERESTING(
"Zend-2.0");
606 else if (!lmem[_fOPENLDAP] && !TRYGROUP(
famOPENLDAP)) {
607 if (
HASTEXT(_LT_OPENSSLref5, REG_EXTENDED)) {
608 INTERESTING(
lDebug ?
"OpenSSL(ref)" :
"OpenSSL");
610 else if (
INFILE(_LT_BSD_CLAUSE_0) &&
INFILE(_LT_BSD_CLAUSE_1) &&
INFILE(_LT_BSD_CLAUSE_2)) {
612 INTERESTING(
"BSD-4-Clause-UC");
614 else if (
INFILE(_LT_BSD_CLAUSE_3) && (
INFILE(_LT_BSD_CLAUSE_4) ||
INFILE(_LT_BSD_CLAUSE_4_LONG))) {
615 INTERESTING(
"BSD-4-Clause");
617 else if (
INFILE(_LT_BSD_CLAUSE_4) &&
INFILE(_LT_BSD_CLAUSE_CLEAR)) {
618 INTERESTING(
"BSD-3-Clause-Clear");
620 else if (
INFILE(_LT_BSD_CLAUSE_4) &&
INFILE(_LT_BSD_CLAUSE_OPEN_MPI)) {
621 INTERESTING(
"BSD-3-Clause-Open-MPI");
623 else if (
INFILE(_LT_BSD_CLAUSE_4) &&
HASTEXT(_KW_severability, REG_EXTENDED)) {
624 INTERESTING(
"BSD-3-Clause-Severability");
626 else if (
INFILE(_LT_XML_DB_V10)) {
627 INTERESTING(
"XMLDB-1.0");
629 else if (
INFILE(_LT_BSD_CLAUSE_4) &&
INFILE(_LT_ANT_BSD_RESTRICTION)) {
630 INTERESTING(
"ANT+SharedSource");
632 else if (!lmem[_mAPACHE11] &&
INFILE(_LT_Apache_11_CLAUSE_3) &&
INFILE(_LT_Apache_11_CLAUSE_4) &&
INFILE(_LT_Apache_11_CLAUSE_5)) {
633 INTERESTING(
lDebug ?
"BSD(Apache-1.1)" :
"Apache-1.1-style");
635 else if(
HASTEXT(_LT_Sendmail_823_title, 0)) {
636 INTERESTING(
"Sendmail-8.23");
638 else if (!lmem[_mAPACHE10] && !lmem[_mAPACHE11] &&
INFILE(_LT_BSD_CLAUSE_ATTRIBUTION)) {
639 INTERESTING(
"BSD-3-Clause-Attribution");
641 else if (!lmem[_mAPACHE10] && !lmem[_mAPACHE11] &&
INFILE(_LT_BSD_CLAUSE_4)) {
642 if (
INFILE(_LT_DARPA_COUGAAR_2)) {
643 INTERESTING(
"DARPA-Cougaar");
646 INTERESTING(
"BSD-3-Clause");
649 else if (
INFILE(_LT_SSLEAY)) {
650 INTERESTING(
"SSLeay");
652 else if (
INFILE(_LT_TMATE)) {
653 INTERESTING(
"TMate");
655 else if (
INFILE(_LT_MUP)) {
658 else if (
INFILE(_LT_FREE_BSD)) {
659 INTERESTING(
"BSD-2-Clause-FreeBSD");
661 else if (
INFILE(_LT_BSD_CLAUSE_PATENT)) {
662 INTERESTING(
"BSD-2-Clause-Patent");
664 else if (
INFILE(_CR_NETBSD)) {
665 INTERESTING(
"BSD-2-Clause-NetBSD");
667 else if (
INFILE(_LT_MIT_0)) {
669 INTERESTING(
"Linux-OpenIB");
671 else if (!lmem[_mAPACHE10] && !lmem[_mAPACHE11]) {
672 INTERESTING(
"BSD-2-Clause");
675 else if (
INFILE(_CR_CRYPTOGAMS)) {
676 INTERESTING(
"Cryptogams");
678 else if (
INFILE(_LT_BSD_SHORTENED_CLAUSE_0) &&
INFILE(_LT_BSD_SHORTENED_CLAUSE_1) &&
INFILE(_LT_BSD_SHORTENED_CLAUSE_2) &&
INFILE(_LT_BSD_CLAUSE_3)) {
679 INTERESTING(
"BSD-4-Clause-Shortened");
681 else if (
INFILE(_CR_BSDCAL)) {
682 INTERESTING(
lDebug ?
"BSD(1)" :
"BSD");
684 else if (
HASTEXT(_TEXT_ALTERED_SOURCE, REG_EXTENDED) &&
HASTEXT(_TEXT_ORIGIN, 0)) {
685 if (
INFILE(_PHR_BZIP2_3)) {
686 INTERESTING(
"bzip2-1.0.5");
688 else if (
HASTEXT(_PHR_BZIP2_4, REG_EXTENDED)) {
689 INTERESTING(
"bzip2-1.0.6");
692 INTERESTING(
"bzip2");
695 else if (mCR_CMU()) {
696 INTERESTING(
lDebug ?
"CMU(BSD-ish)" :
"CMU");
698 else if (
INFILE(_LT_MTLL)) {
701 else if (
INFILE(_LT_BSD_CLAUSE_1_DISCLAIMER)) {
702 INTERESTING(
"BSD-1-Clause");
704 else if (
INFILE(_LT_Spencer_99) &&
INFILE(_CR_Spencer)) {
705 INTERESTING(
"Spencer-99");
707 else if (!lmem[_fZPL]) {
708 INTERESTING(
lDebug ?
"BSD-style(1)" :
"BSD-style");
713 else if (
INFILE(_LT_BSD_CLEAR_CLAUSE_0) &&
INFILE(_LT_BSD_CLAUSE_1) &&
INFILE(_LT_BSD_CLAUSE_2)) {
714 INTERESTING(
"BSD-3-Clause-Clear");
716 else if (
INFILE(_PHR_Linux_OpenIB)) {
717 INTERESTING(
"Linux-OpenIB");
719 else if (
INFILE(_LT_BSD_2)) {
726 INTERESTING(
lDebug ?
"Python(3)" : cp);
729 else if (
INFILE(_CR_OSF)) {
730 INTERESTING(
lDebug ?
"OSF(1)" :
"OSF");
733 else if (
INFILE(_CR_UI)) {
734 INTERESTING(
lDebug ?
"UI(1)" :
"Unix-Intl");
736 else if (
INFILE(_CR_XOPEN)) {
737 INTERESTING(
lDebug ?
"XOpen(1)" :
"X/Open");
740 else if (
INFILE(_PHR_HISTORICAL)) {
743 else if (
INFILE(_LT_CMU_7)) {
745 INTERESTING(
"MIT-CMU");
748 INTERESTING(
"MIT-CMU-style");
752 else if (
INFILE(_CR_BSDCAL)) {
753 INTERESTING(
lDebug ?
"BSD(2)" :
"BSD");
755 else if (
INFILE(_LT_NTP)) {
758 else if (
INFILE(_LT_WORDNET))
760 INTERESTING(
"WordNet-3.0");
767 else if (
INFILE(_LT_NOT_ADVERTISING)) {
768 INTERESTING(
lDebug ?
"BSD-style(2)" :
"BSD-style");
770 else if (
INFILE(_PHR_NO_WARRANTY_12)) {
771 INTERESTING(
lDebug ?
"ISC(BSD-style)" :
"ISC-style");
774 INTERESTING(
lDebug ?
"BSD-style(2)-MIT" :
"MIT-style");
780 INTERESTING(
"AMPAS");
782 else if (
INFILE(_CR_BSDCAL)) {
783 INTERESTING(
lDebug ?
"BSD(3)" :
"BSD");
785 else if (
INFILE(_TITLE_OZPLB_10)) {
786 INTERESTING(
"OZPLB-1.0");
792 INTERESTING(
"JPNIC");
795 INTERESTING(
lDebug ?
"BSD-style(3)" :
"BSD-style");
799 else if (
INFILE(_LT_BSD_4)) {
801 INTERESTING(
lDebug ?
"BSD(4)" :
"BSD");
804 INTERESTING(
lDebug ?
"BSD-style(4)" :
"BSD-style");
812 else if (
INFILE(_LT_BSD_5)) {
813 if (!lmem[_mPYTHON] &&
INFILE(_CR_PYTHON)) {
814 INTERESTING(
lDebug ?
"Python(2)" :
"Python");
817 else if (
INFILE(_CR_USL_EUR)) {
818 INTERESTING(
lDebug ?
"USLE(1)" :
"USL-Europe");
820 else if (
INFILE(_CR_BSDCAL)) {
821 INTERESTING(
lDebug ?
"BSD(5)" :
"BSD");
824 INTERESTING(
lDebug ?
"BSD-style(5)" :
"BSD-style");
828 else if (
INFILE(_LT_BSD_6)) {
830 INTERESTING(
lDebug ?
"BSD(6)" :
"BSD");
833 INTERESTING(
lDebug ?
"BSD-style(6)" :
"BSD-style");
837 else if (
INFILE(_LT_BSD_7)) {
839 INTERESTING(
"MakeIndex");
841 else if (
INFILE(_CR_BSDCAL)) {
842 INTERESTING(
lDebug ?
"BSD(7)" :
"BSD");
845 INTERESTING(
lDebug ?
"BSD-style(7)" :
"BSD-style");
849 else if (
INFILE(_LT_BSD_8)) {
851 INTERESTING(
lDebug ?
"BSD(8)" :
"BSD");
854 INTERESTING(
lDebug ?
"BSD-style(8)" :
"BSD-style");
858 else if (
INFILE(_LT_BSD_9)) {
860 INTERESTING(
lDebug ?
"BSD(9)" :
"BSD");
863 INTERESTING(
lDebug ?
"BSD-style(8)" :
"BSD-style");
867 else if (
INFILE(_LT_BSD_10)) {
869 INTERESTING(
lDebug ?
"BSD(10)" :
"BSD");
872 INTERESTING(
lDebug ?
"BSD-style(9)" :
"BSD-style");
876 else if (
INFILE(_LT_BSD_11)) {
878 INTERESTING(
lDebug ?
"BSD(11)" :
"BSD");
881 INTERESTING(
lDebug ?
"BSD-style(10)" :
"BSD-style");
885 else if (
INFILE(_LT_BSD_12)) {
887 INTERESTING(
lDebug ?
"BSD(12)" :
"BSD");
890 INTERESTING(
lDebug ?
"BSD-style(11)" :
"BSD-style");
894 else if (
INFILE(_LT_BSD_13)) {
896 INTERESTING(
lDebug ?
"BSD(13)" :
"BSD");
899 INTERESTING(
lDebug ?
"BSD-style(12)" :
"BSD-style");
903 else if (
INFILE(_LT_BSD_NONC)) {
905 INTERESTING(
lDebug ?
"BSD(NonC)" :
"BSD.non-commercial");
908 INTERESTING(
lDebug ?
"BSD-style(NonC)" :
"Non-commercial");
912 else if (
INFILE(_SPDX_BSD_3_Clause_Clear)) {
913 INTERESTING(
"BSD-3-Clause-Clear");
915 else if (
INFILE(_SPDX_BSD_3_Clause_No_Nuclear_License_2014)) {
916 INTERESTING(
"BSD-3-Clause-No-Nuclear-License-2014");
918 else if (
INFILE(_SPDX_BSD_3_Clause_No_Nuclear_License)) {
919 INTERESTING(
"BSD-3-Clause-No-Nuclear-License");
921 else if (
INFILE(_SPDX_BSD_3_Clause_No_Nuclear_Warranty)) {
922 INTERESTING(
"BSD-3-Clause-No-Nuclear-Warranty");
924 else if (
INFILE(_SPDX_BSD_3_Clause_Attribution)) {
925 INTERESTING(
"BSD-3-Clause-Attribution");
927 else if (
INFILE(_SPDX_BSD_3_Clause_LBNL)) {
928 INTERESTING(
"BSD-3-Clause-LBNL");
930 else if (
INFILE(_SPDX_BSD_3_Clause_Open_MPI)) {
931 INTERESTING(
"BSD-3-Clause-Open-MPI");
933 else if (
INFILE(_SPDX_BSD_3_Clause)) {
934 INTERESTING(
"BSD-3-Clause");
936 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)) {
937 INTERESTING(
lDebug ?
"BSD(phr1/2)" :
"BSD-3-Clause");
939 else if (
INFILE(_SPDX_BSD_2_Clause_FreeBSD)) {
940 INTERESTING(
"BSD-2-Clause-FreeBSD");
942 else if (
INFILE(_SPDX_BSD_2_Clause_NetBSD)) {
943 INTERESTING(
"BSD-2-Clause-NetBSD");
945 else if (
INFILE(_SPDX_BSD_2_Clause_Patent)) {
946 INTERESTING(
"BSD-2-Clause-Patent");
948 else if (
INFILE(_SPDX_BSD_2_Clause_Views)) {
949 INTERESTING(
"BSD-2-Clause-Views");
951 else if (
INFILE(_SPDX_BSD_2_Clause_1)) {
952 INTERESTING(
"BSD-2-Clause");
954 else if (
INFILE(_SPDX_BSD_2_Clause_2)) {
955 INTERESTING(
"BSD-2-Clause");
957 else if (
INFILE(_PHR_BSD_2_CLAUSE_1)
958 ||
INFILE(_PHR_BSD_2_CLAUSE_2)
959 ||
INFILE(_PHR_BSD_2_CLAUSE_3)
960 ||
INFILE(_PHR_BSD_2_CLAUSE_4)
961 ||
INFILE(_PHR_BSD_2_CLAUSE_5)
962 ||
INFILE(_PHR_BSD_2_CLAUSE_6)) {
963 INTERESTING(
lDebug ?
"BSD(phr1/2/3/4/5/6)" :
"BSD-2-Clause");
965 else if (
INFILE(_SPDX_BSD_4_Clause_UC)) {
966 INTERESTING(
"BSD-4-Clause-UC");
968 else if (
INFILE(_SPDX_BSD_4_Clause)) {
969 INTERESTING(
"BSD-4-Clause");
971 else if (
INFILE(_PHR_BSD_4_CLAUSE_1)) {
972 INTERESTING(
lDebug ?
"BSD-4-Clause(phr1)" :
"BSD-4-Clause");
974 else if (
INFILE(_PHR_BSD_CLEAR_1)) {
975 INTERESTING(
lDebug ?
"BSD-Clear(phr1)" :
"BSD-3-Clause-Clear");
977 else if (
INFILE(_PHR_BSD_3_CLAUSE_LBNL)) {
978 INTERESTING(
"BSD-3-Clause-LBNL");
980 else if (
INFILE(_SPDX_BSD_Protection)) {
981 INTERESTING(
"BSD-Protection");
983 else if (
INFILE(_SPDX_BSD_Source_Code)) {
984 INTERESTING(
"BSD-Source-Code");
986 else if (
INFILE(_SPDX_BSD_1_Clause)) {
987 INTERESTING(
"BSD-1-Clause");
989 else if (
INFILE(_PHR_0BSD)) {
992 else if (
INFILE(_LT_BSDref1)) {
993 INTERESTING(
lDebug ?
"BSD(ref1)" :
"BSD");
995 else if (
INFILE(_LT_BSDref2)) {
996 INTERESTING(
lDebug ?
"BSD(ref2)" :
"BSD");
998 else if (
INFILE(_LT_BSDref3)) {
999 INTERESTING(
lDebug ?
"BSD(ref3)" :
"BSD");
1001 else if (
INFILE(_LT_BSDref4)) {
1002 INTERESTING(
lDebug ?
"BSD(ref4)" :
"BSD");
1004 else if (
INFILE(_LT_BSDref5)) {
1005 INTERESTING(
lDebug ?
"BSD(ref5)" :
"BSD");
1007 else if (
INFILE(_LT_BSDref6)) {
1008 INTERESTING(
lDebug ?
"BSD(ref6)" :
"BSD");
1010 else if (
INFILE(_LT_BSDref7)) {
1011 INTERESTING(
lDebug ?
"BSD(ref7)" :
"BSD");
1013 else if (
INFILE(_LT_BSDref8)) {
1014 INTERESTING(
lDebug ?
"BSD(ref8)" :
"BSD");
1016 else if (
INFILE(_LT_BSDref9)) {
1017 INTERESTING(
lDebug ?
"BSD(ref9)" :
"BSD");
1019 else if (
INFILE(_LT_BSDref10)) {
1020 INTERESTING(
lDebug ?
"BSD(ref10)" :
"BSD");
1022 else if (
INFILE(_LT_BSDref11)) {
1023 INTERESTING(
lDebug ?
"BSD(ref11)" :
"BSD");
1025 else if (
INFILE(_LT_BSDref12) ||
HASTEXT(_LT_BSDref13, REG_EXTENDED)) {
1026 INTERESTING(
lDebug ?
"BSD(ref12)" :
"BSD-3-Clause");
1029 INTERESTING(
lDebug ?
"BSD(url)" :
"BSD");
1032 else if (
INFILE(_LT_BSDref14)) {
1033 INTERESTING(
lDebug ?
"BSD(ref14)" :
"BSD");
1036 else if (
INFILE(_LT_BSDref15)) {
1037 INTERESTING(
lDebug ?
"BSD(ref15)" :
"BSD");
1040 else if (
INFILE(_LT_BSDSTYLEref1)) {
1041 INTERESTING(
lDebug ?
"BSD-st(1)" :
"BSD-style");
1044 else if (
INFILE(_LT_BSDSTYLEref2)) {
1045 INTERESTING(
lDebug ?
"BSD-st(2)" :
"BSD-style");
1048 else if (
INFILE(_LT_BSDSTYLEref4)) {
1049 INTERESTING(
lDebug ?
"BSD-st(4)" :
"BSD-style");
1052 else if (
INFILE(_LT_BSDSTYLEref3)) {
1053 INTERESTING(
lDebug ?
"BSD-st(3)" :
"BSD-style");
1056 else if (
INFILE(_LT_BSD_HTMLAREA_1) ||
INFILE(_LT_BSD_HTMLAREA_2)) {
1057 INTERESTING(
lDebug ?
"BSD-htmlArea" :
"BSD-3-Clause");
1061 INTERESTING(
lDebug ?
"BSD(deb)" :
"BSD");
1067 if (
INFILE(_LT_APTANA)) {
1068 if (
INFILE(_TITLE_APTANA_V10)) {
1069 INTERESTING(
"Aptana-1.0");
1072 INTERESTING(
"Aptana");
1080 if (!lmem[_mPHP] &&
INFILE(_LT_PHP)) {
1081 if (
INFILE(_TITLE_PHP301)) {
1082 INTERESTING(
lDebug ?
"PHP(v3.01#2)" :
"PHP-3.01");
1084 else if (
INFILE(_TITLE_PHP30)) {
1085 INTERESTING(
lDebug ?
"PHP(v3.0#2)" :
"PHP-3.0");
1087 else if (
INFILE(_TITLE_PHP202)) {
1088 INTERESTING(
lDebug ?
"PHP(v2.02#3)" :
"PHP-2.02");
1090 else if (
INFILE(_CR_PHP)) {
1091 INTERESTING(
lDebug ?
"PHP(1)" :
"PHP");
1094 INTERESTING(
"PHP-style");
1098 else if (!lmem[_mPHP] &&
INFILE(_LT_PHP_V30_1)) {
1099 INTERESTING(
"PHP-3.0");
1102 else if (!lmem[_mPHP] &&
INFILE(_LT_PHP_V30_2)) {
1103 INTERESTING(
"PHP-3.0");
1106 else if (!lmem[_mPHP] &&
INFILE(_LT_PHPref1)) {
1107 if (
INFILE(_PHR_PHP_V301)) {
1108 INTERESTING(
lDebug ?
"PHP(ref-3.01)" :
"PHP-3.01");
1110 else if (
INFILE(_PHR_PHP_V20)) {
1111 INTERESTING(
lDebug ?
"PHP(ref-2.0)" :
"PHP-2.0");
1114 INTERESTING(
lDebug ?
"PHP(ref)" :
"PHP");
1118 else if (!lmem[_mPHP] &&
URL_INFILE(_URL_PHP)) {
1119 INTERESTING(
lDebug ?
"PHP(url)" :
"PHP");
1122 else if (
INFILE(_LT_PHP_ref)) {
1123 INTERESTING(
lDebug ?
"PHP(2)" :
"PHP");
1132 if (
INFILE(_LT_CUPS_COMMERCIAL)) {
1133 INTERESTING(
"CUPS-EULA");
1136 INTERESTING(
"CUPS");
1141 if (
INFILE(_LT_HACKTIVISMO)) {
1142 INTERESTING(
"Hacktivismo");
1147 INTERESTING(
"NESSUS-EULA");
1155 if (
INFILE(_LT_ORACLE_PROTO) &&
INFILE(_TITLE_ORACLE_PROTO)) {
1156 INTERESTING(
lDebug ?
"Oracle(proto)" :
"Oracle-EULA");
1159 else if (
INFILE(_LT_ORACLE_DEVEL) &&
INFILE(_TITLE_ORACLE_DEVEL)) {
1160 INTERESTING(
lDebug ?
"Oracle(dev)" :
"Oracle-Dev");
1162 else if (
URL_INFILE(_URL_ORACLE_BERKELEY_DB)) {
1163 INTERESTING(
lDebug ?
"URL_ORACLE_BERKELEY_DB" :
"Oracle-Berkeley-DB");
1172 if (
INFILE(_TITLE_CECILL_V11_2) ||
INFILE(_SPDX_CECILL_11)) {
1173 INTERESTING(
lDebug ?
"CeCILL_v1.1(#2)" :
"CECILL-1.1");
1174 lmem[_mGPL] = lmem[_mLGPL] = 1;
1176 else if (
INFILE(_TITLE_CECILL_B) ||
INFILE(_TITLE_CECILL_B1) ||
INFILE(_SPDX_CECILL_B)) {
1177 INTERESTING(
"CECILL-B");
1179 else if (
INFILE(_TITLE_CECILL_C) ||
INFILE(_TITLE_CECILL_C1) ||
INFILE(_SPDX_CECILL_C)) {
1180 INTERESTING(
"CECILL-C");
1182 else if (
INFILE(_LT_CECILL_DUALref)) {
1183 INTERESTING(
"CECILL(dual)");
1184 lmem[_mGPL] = lmem[_mLGPL] = 1;
1186 else if (
INFILE(_SPDX_CECILL_10)) {
1187 INTERESTING(
"CECILL-1.0");
1189 else if (
INFILE(_SPDX_CECILL_21)) {
1190 INTERESTING(
"CECILL-2.1");
1192 else if (
INFILE(_LT_CECILL_2_ref) ||
INFILE(_SPDX_CECILL_20)) {
1193 INTERESTING(
"CECILL-2.0");
1195 else if (
INFILE(_LT_CECILL_ref2)) {
1196 INTERESTING(
"CECILL");
1198 else if (
INFILE(_LT_CECILL_B_ref)) {
1199 INTERESTING(
"CECILL-B");
1201 else if (
INFILE(_LT_CECILL_ref) ||
INFILE(_LT_CECILL_ref1)) {
1203 INTERESTING(
lDebug ?
"CeCILL_v1.1(url)" :
"CECILL-1.1");
1206 INTERESTING(
lDebug ?
"CeCILL_v1(url)" :
"CECILL-1.0");
1209 INTERESTING(
lDebug ?
"CeCILL_v2(url)" :
"CECILL-2.0");
1212 INTERESTING(
lDebug ?
"CeCILL(url)" :
"CECILL");
1215 INTERESTING(
lDebug ?
"CeCILL(#3)" :
"CECILL");
1219 else if (
INFILE(_LT_CECILL_1)) {
1220 if (
INFILE(_TITLE_CECILL_V10)) {
1221 INTERESTING(
lDebug ?
"CeCILL_v1.0(#1)" :
"CECILL-1.0");
1223 else if (
INFILE(_TITLE_CECILL_V20)) {
1224 INTERESTING(
lDebug ?
"CeCILL_v2.0(#1)" :
"CECILL-2.0");
1229 if (
INFILE(_TITLE_CECILL_V10)) {
1230 INTERESTING(
lDebug ?
"CeCILL_v1.0(#2)" :
"CECILL-1.0");
1232 else if (
INFILE(_TITLE_CECILL_V11)) {
1233 INTERESTING(
lDebug ?
"CeCILL_v1.1(#1)" :
"CECILL-1.1");
1235 else if (
INFILE(_TITLE_CECILL_V20)) {
1236 INTERESTING(
lDebug ?
"CeCILL_v2.0(#2)" :
"CECILL-2.0");
1239 INTERESTING(
lDebug ?
"CeCILL(#2)" :
"CECILL");
1248 INTERESTING(
"U-Monash");
1249 if (
INFILE(_PHR_GPL_NO_MORE)) {
1255 if (
INFILE(_LT_OPEN_FONT_V10) ||
INFILE(_LT_OPEN_FONT_V10_1))
1257 INTERESTING(
"OFL-1.0");
1260 else if (
INFILE(_SPDX_OFL_10_no_RFN)) {
1261 INTERESTING(
"OFL-1.0-no-RFN");
1263 else if (
INFILE(_SPDX_OFL_10_RFN)) {
1264 INTERESTING(
"OFL-1.0-RFN");
1266 else if (
INFILE(_SPDX_OFL_10)) {
1267 INTERESTING(
"OFL-1.0");
1269 else if (
INFILE(_PHR_OPEN_FONT_V10_1) ||
INFILE(_PHR_OPEN_FONT_V10_2))
1271 INTERESTING(
"OFL-1.0");
1274 else if (
INFILE(_LT_OPEN_FONT_V11) ||
INFILE(_LT_OPEN_FONT_V11_1))
1276 INTERESTING(
"OFL-1.1");
1279 else if (
INFILE(_SPDX_OFL_11_no_RFN)) {
1280 INTERESTING(
"OFL-1.1-no-RFN");
1282 else if (
INFILE(_SPDX_OFL_11_RFN)) {
1283 INTERESTING(
"OFL-1.1-RFN");
1285 else if (
INFILE(_SPDX_OFL_11)) {
1286 INTERESTING(
"OFL-1.1");
1288 else if (
INFILE(_PHR_OPEN_FONT_V11_1) ||
INFILE(_PHR_OPEN_FONT_V11_2))
1290 INTERESTING(
"OFL-1.1");
1295 if (
INFILE(_TITLE_SimPL_V2)) {
1296 INTERESTING(
"SimPL-2.0");
1302 INTERESTING(
"Leptonica");
1309 if (
INFILE(_TITLE_copyleft_next_030) &&
INFILE(_PHR_copyleft_next_PARA1) &&
INFILE(_PHR_copyleft_next_PARA3)) {
1310 INTERESTING(
"copyleft-next-0.3.0");
1313 else if (
INFILE(_TITLE_copyleft_next_031) &&
INFILE(_PHR_copyleft_next_PARA1) &&
INFILE(_PHR_copyleft_next_PARA3)) {
1314 INTERESTING(
"copyleft-next-0.3.1");
1317 else if (
INFILE(_PHR_copyleft_next_030) ||
INFILE(_SPDX_copyleft_next_030)) {
1318 INTERESTING(
"copyleft-next-0.3.0");
1320 else if (
INFILE(_PHR_copyleft_next_031) ||
INFILE(_SPDX_copyleft_next_031)) {
1321 INTERESTING(
"copyleft-next-0.3.1");
1329 if ((
NOT_INFILE(_LT_FORMER_GNU) && (mCR_FSF() ||
1330 HASTEXT(_TEXT_GNUTERMS, REG_EXTENDED)))) {
1338 INTERESTING(
lDebug ?
"Affero(#1)" : cp);
1341 else if (
INFILE(_LT_AGPLref1)) {
1343 INTERESTING(
lDebug ?
"Affero(#2)" : cp);
1348 INTERESTING(
lDebug ?
"Affero(#3)" : cp);
1351 else if (mCR_FSF() &&
NOT_INFILE(_LT_GPL3_NOT_AGPL)) {
1353 INTERESTING(
lDebug ?
"Affero(CR)" : cp);
1357 else if (
INFILE(_LT_AGPL_NAMED)) {
1359 INTERESTING(
lDebug ?
"AGPL(named)" : cp);
1368 else if (
INFILE(_TITLE_NGPL)) {
1369 INTERESTING(
"NGPL");
1372 else if (
INFILE(_LT_GPL_V1)) {
1373 INTERESTING(
"GPL-1.0-only");
1376 else if (
INFILE(_LT_GPL_1) && !
HASTEXT(_LT_GPL_EXCEPT_0, REG_EXTENDED)) {
1377 if (
INFILE(_PHR_GPL2_OR_LATER_1) && !
HASTEXT(_LT_IGNORE_CLAUSE, REG_EXTENDED))
1379 INTERESTING(
lDebug ?
"PHR(GPL2_OR_LATER#1)" :
"GPL-2.0-or-later");
1382 else if (
INFILE(_TITLE_GPL2)) {
1383 INTERESTING(
lDebug ?
"Title(GPL-2.0-only)" :
"GPL-2.0-only");
1386 else if (
INFILE(_PHR_GPL1_OR_LATER) && !
HASTEXT(_LT_IGNORE_CLAUSE, REG_EXTENDED))
1388 INTERESTING(
"GPL-1.0-or-later");
1391 else if (
INFILE(_TITLE_GPL1)) {
1392 INTERESTING(
"GPL-1.0-only");
1400 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)) {
1401 if (
INFILE(_PHR_GPL2_OR_LATER_1) && !
HASTEXT(_LT_IGNORE_CLAUSE, REG_EXTENDED))
1403 INTERESTING(
lDebug ?
"PHR(GPL2_OR_LATER#2)" :
"GPL-2.0-or-later");
1407 INTERESTING(
lDebug ?
"LT(GPL-V2)" :
"GPL-2.0-only");
1411 else if (
INFILE(_PHR_GPL2_OR_LATER_2))
1413 INTERESTING(
lDebug ?
"PHR(GPL2_OR_LATER#2)" :
"GPL-2.0-or-later");
1416 else if (
INFILE(_LT_GPL3_PATENTS)) {
1417 if (
INFILE(_TITLE_GPL3)) {
1418 INTERESTING(
lDebug ?
"GPL_v3(#1)" :
"GPL-3.0-only");
1422 INTERESTING(
"GPL-3.0-only-possibility");
1426 else if (
INFILE(_TITLE_GPL3_ref3_later)) {
1427 INTERESTING(
"GPL-3.0-or-later");
1430 else if (
INFILE(_TITLE_GPL3_ref4_later)) {
1431 INTERESTING(
"GPL-3.0-or-later");
1434 else if (
INFILE(_TITLE_GPL3_ref3)) {
1435 INTERESTING(
"GPL-3.0-only");
1439 if (
INFILE(_PHR_LGPL21_OR_LATER_1) && !
HASTEXT(_LT_IGNORE_CLAUSE, REG_EXTENDED))
1441 INTERESTING(
"LGPL-2.1-or-later");
1444 else if (
INFILE(_PHR_LGPL2_OR_LATER) && !
HASTEXT(_LT_IGNORE_CLAUSE, REG_EXTENDED))
1446 INTERESTING(
"LGPL-2.0-or-later");
1449 else if (
INFILE(_TITLE_LGPLV21)) {
1450 INTERESTING(
"LGPL-2.1-only");
1453 else if (
INFILE(_TITLE_LGPLV2)) {
1454 INTERESTING(
"LGPL-2.0-only");
1458 INTERESTING(
"LGPL");
1462 else if (
INFILE(_LT_LGPL_3)) {
1463 if ((
INFILE(_PHR_LGPL3_OR_LATER)
1464 ||
INFILE(_PHR_LGPL3_OR_LATER_ref1)
1465 ||
INFILE(_PHR_LGPL3_OR_LATER_ref2))
1466 && !
HASTEXT(_LT_IGNORE_CLAUSE, REG_EXTENDED))
1468 INTERESTING(
"LGPL-3.0-or-later");
1471 else if (
INFILE(_TITLE_LGPL3)) {
1472 INTERESTING(
"LGPL-3.0-only");
1476 INTERESTING(
"LGPL-3.0-only-possibility");
1482 INTERESTING(
lDebug ?
"GFDL(#1)" : cp);
1485 if (!lmem[_mLGPL] &&
NOT_INFILE(_LT_MPL_SECONDARY)) {
1491 INTERESTING(
lDebug ?
"GPL(fonts)" :
"GPL-exception");
1494 else if (
INFILE(_LT_LGPL_ALT)) {
1496 INTERESTING(
lDebug ?
"LGPL(alternate)" : cp);
1499 else if (
INFILE(_LT_LGPL3_ref_later)) {
1500 INTERESTING(
"LGPL-3.0-or-later");
1503 else if (
INFILE(_LT_LGPLref1)) {
1505 INTERESTING(
lDebug ?
"LGPL(ref1)" : cp);
1508 else if (
INFILE(_LT_LGPLref2) &&
1511 INTERESTING(
lDebug ?
"LGPL(ref2#1)" : cp);
1514 else if (
INFILE(_LT_LGPLref3)) {
1516 INTERESTING(
lDebug ?
"LGPL(ref3)" : cp);
1519 else if (
INFILE(_LT_LGPLref4)) {
1521 INTERESTING(
lDebug ?
"LGPL(ref4)" : cp);
1524 else if (
INFILE(_LT_LGPLref5)) {
1526 INTERESTING(
lDebug ?
"LGPL(ref5)" : cp);
1529 else if (
INFILE(_LT_LGPLref6)) {
1531 INTERESTING(
lDebug ?
"LGPL(ref6)" : cp);
1534 else if (!lmem[_mLIBRE] && !lmem[_fREAL] &&
1538 INTERESTING(
lDebug ?
"LGPL(ref7)" : cp);
1541 else if (!lmem[_fREAL] && !lmem[_mAPTANA] &&
1542 !
LVAL(_TEXT_GNU_LIC_INFO) &&
INFILE(_LT_LGPLref8) &&
1545 INTERESTING(
lDebug ?
"LGPL(ref8)" : cp);
1548 else if (
INFILE(_LT_LGPLref9) &&
1551 INTERESTING(
lDebug ?
"LGPL(ref9)" : cp);
1554 else if (
INFILE(_LT_LGPLref10) &&
1557 INTERESTING(
lDebug ?
"LGPL(ref10)" : cp);
1560 else if (
INFILE(_LT_LGPLref11)) {
1562 INTERESTING(
lDebug ?
"LGPL(ref11)" : cp);
1567 INTERESTING(
lDebug ?
"LGPL(deb)" : cp);
1570 else if (!
LVAL(_TEXT_GNU_LIC_INFO) &&
1574 INTERESTING(
lDebug ?
"LGPL(url)" : cp);
1577 else if (lmem[_fREAL] && !
LVAL(_TEXT_GNU_LIC_INFO) &&
1580 INTERESTING(
lDebug ?
"LGPL(or)" : cp);
1583 else if (
INFILE(_PHR_LGPL21_OR_LATER_2)) {
1584 INTERESTING(
lDebug ?
"LGPL-2.1-or-later(_LATER_2)" :
"LGPL-2.1-or-later");
1587 else if (
INFILE(_PHR_LGPL21_ONLY_ref) ||
INFILE(_TITLE_LGPLV21_2)) {
1588 INTERESTING(
"LGPL-2.1-only");
1592 if (!lmem[_mGPL] && !
HASTEXT(_TEXT_GCC, REG_EXTENDED)) {
1595 INTERESTING(
lDebug ?
"GPL(alternate)" : cp);
1600 && !
HASTEXT(_LT_IGNORE_CLAUSE, REG_EXTENDED))
1602 INTERESTING(
"GPL-3.0-or-later");
1606 INTERESTING(
lDebug ?
"GPL_v3(#2)" :
"GPL-3.0-only");
1610 INTERESTING(
"GPL-3.0-only");
1613 else if (!lmem[_mLIBRE] &&
GPL_INFILE(_LT_GPLref1)
1630 if (
INFILE(_PHR_LATEX_GPL_INAPPROPRIATE) ||
1631 INFILE(_PHR_PYTHON_NOTGPL_1) ||
1632 INFILE(_PHR_PYTHON_NOTGPL_2)) {
1635 else if (!
HASTEXT(_TEXT_GCC, REG_EXTENDED)
1642 else if (
INFILE(_LT_GPL_FSF)) {
1644 INTERESTING(
lDebug ?
"GPL(FSF)" : cp);
1649 INTERESTING(
lDebug ?
"GPL(ref2)" : cp);
1654 INTERESTING(
lDebug ?
"GPL(ref3)" : cp);
1657 else if (
INFILE(_LT_GPLref4)) {
1659 INTERESTING(
lDebug ?
"GPL(ref4)" : cp);
1664 INTERESTING(
lDebug ?
"GPL(ref5)" : cp);
1669 INTERESTING(
lDebug ?
"GPL(ref6)" : cp);
1674 INTERESTING(
lDebug ?
"GPL(ref7)" : cp);
1679 INTERESTING(
lDebug ?
"GPL(ref8)" : cp);
1682 else if (
INFILE(_LT_GPLref9)) {
1684 INTERESTING(
lDebug ?
"GPL(ref9)" : cp);
1689 INTERESTING(
lDebug ?
"GPL(ref10)" : cp);
1692 else if (
INFILE(_LT_GPLref11)) {
1694 INTERESTING(
lDebug ?
"GPL(ref11)" : cp);
1697 else if (
INFILE(_LT_GPLref12)) {
1699 INTERESTING(
lDebug ?
"GPL(ref12)" : cp);
1704 INTERESTING(
lDebug ?
"GPL(ref13)" : cp);
1710 INTERESTING(
lDebug ?
"GPL(ref14)" : cp);
1713 else if (
INFILE(_LT_GPLref16)) {
1715 INTERESTING(
lDebug ?
"GPL(ref16)" : cp);
1718 else if (
INFILE(_LT_GPLref18)) {
1720 INTERESTING(
lDebug ?
"GPL(ref18)" : cp);
1723 else if (
INFILE(_LT_GPLref19)) {
1725 INTERESTING(
lDebug ?
"GPL(ref19)" : cp);
1728 else if (
INFILE(_LT_GPLref20)) {
1730 INTERESTING(
lDebug ?
"GPL(ref20)" : cp);
1738 INTERESTING(
lDebug ?
"GPL(url)" : cp);
1743 INTERESTING(
lDebug ?
"Affero(url)" : cp);
1746 else if (!
ltsr[_LT_LGPL_3] &&
INFILE(_LT_GPL_OR)) {
1748 INTERESTING(
lDebug ?
"GPL(or)" : cp);
1751 else if (!lmem[_mGPL] && !lmem[_mLGPL] &&
1755 INTERESTING(
lDebug ?
"GPL(GNU)" : cp);
1758 else if (!lmem[_mGPL] && !lmem[_mLGPL] &&
1761 INTERESTING(
lDebug ?
"GPL(see)" : cp);
1764 else if (!lmem[_mGPL] && !lmem[_mLGPL] &&
1767 INTERESTING(
lDebug ?
"LGPL(see)" : cp);
1771 if (!lmem[_mGFDL] && (
INFILE(_LT_GFDLref1) ||
1774 INTERESTING(
lDebug ?
"GFDL(#2)" : cp);
1781 if (!lmem[_mGPL] &&
INFILE(_PHR_GPL_DESCRIPTIONS)) {
1782 INTERESTING(
lDebug ?
"GPL-kinda" :
"GPL");
1787 INTERESTING(
lDebug ?
"FSF(1)" :
"FSFULLR");
1790 else if (
INFILE(_LT_FSF_2)) {
1791 INTERESTING(
lDebug ?
"FSF(2)" :
"FSF");
1793 else if (
INFILE(_LT_FSF_3)) {
1794 INTERESTING(
lDebug ?
"FSF(3)" :
"FSF");
1796 else if (mCR_FSF() &&
INFILE(_LT_FSF_4)) {
1797 INTERESTING(
lDebug ?
"FSF(4)" :
"FSF");
1799 else if (!lmem[_mGPL] && mCR_FSF() &&
INFILE(_LT_FSF_5)) {
1800 INTERESTING(
lDebug ?
"FSF(5)" :
"FSF");
1802 else if (!lmem[_mGPL] &&
INFILE(_LT_FSFUL)) {
1803 INTERESTING(
"FSFUL");
1805 else if (!lmem[_mGPL] &&
NOT_INFILE(_LT_Autoconf_exception_20) &&
INFILE(_LT_FSFref1)) {
1806 INTERESTING(
lDebug ?
"FSF(ref1)" :
"FSF");
1808 else if (
INFILE(_LT_FSFref2)) {
1809 INTERESTING(
lDebug ?
"FSF(ref2)" :
"FSF");
1811 else if (
INFILE(_LT_LGPLrefFSF) &&
1813 INTERESTING(
lDebug ?
"LGPL(FSF)" :
"LGPL");
1816 if (!lmem[_mGPL] && !lmem[_mLGPL] && !lmem[_mGFDL]) {
1821 if (!lmem[_mCUPS] ) {
1825 INTERESTING(
lDebug ?
"GPL(patt1)" : cp);
1830 INTERESTING(
lDebug ?
"GPL(patt2)" : cp);
1834 INTERESTING(
"GPL(rms)");
1837 else if (
INFILE(_PHR_GPLISH_SAMPLE)) {
1838 INTERESTING(
lDebug ?
"GPLISH" :
"GPL-possibility");
1839 INTERESTING(
lDebug ?
"GPLISH" :
"LGPL-possibility");
1840 lmem[_mLGPL] = lmem[_mGPL] = 1;
1844 else if (
INFILE(_LT_GNU_COPYLEFT)) {
1845 INTERESTING(
"GNU-copyleft");
1848 lmem[_fGPL] = lmem[_mLGPL]+lmem[_mGPL]+lmem[_mGFDL];
1851 if (!lmem[_mGPL] &&
INFILE(_LT_GNU_PROJECTS)) {
1853 INTERESTING(
lDebug ?
"GPL(proj)" : cp);
1857 if (
HASTEXT(_LT_GPL_V2_NAMED_later, REG_EXTENDED) ||
HASTEXT(_TITLE_GPL2_ref1_later, REG_EXTENDED))
1859 INTERESTING(
lDebug ?
"GPLV2+(named)" :
"GPL-2.0-or-later");
1862 else if (
INFILE(_LT_TAPJOY) ||
INFILE(_LT_TAPJOY_ref1)) {
1863 INTERESTING(
"Tapjoy");
1867 else if (!lmem[_mGPL] && !lmem[_mGFDL] && !lmem[_mLGPL] && !lmem[_fZPL]
1868 && (
INFILE(_LT_GPL_NAMED)
1869 ||
INFILE(_LT_GPL_NAMED2)
1870 ||
HASTEXT(_LT_GPL_NAMED3, REG_EXTENDED))
1871 && !
HASTEXT(_PHR_GPL_GHOSTSCRIPT, REG_EXTENDED)
1879 && !
HASTEXT(_LT_GPL_NAMED_COMPATIBLE_1, REG_EXTENDED)
1885 INTERESTING(
lDebug ?
"GPL(named)" : cp);
1888 else if ( !lmem[_mGPL] && !
INFILE(_TITLE_MIROS) && (
INFILE(_LT_GPL_V2_NAMED) ||
INFILE(_LT_GPL_V2_NAMED_ref1)))
1890 INTERESTING(
lDebug ?
"GPLV2(named)" :
"GPL-2.0-only");
1893 else if (!lmem[_mGPL] &&
INFILE(_LT_GPL_V3_NAMED_later))
1895 INTERESTING(
lDebug ?
"GPLV3(named_later)" :
"GPL-3.0-or-later");
1897 else if (!lmem[_mGPL] &&
INFILE(_LT_GPL_V3_NAMED))
1899 INTERESTING(
lDebug ?
"GPLV3(named)" :
"GPL-3.0-only");
1902 if (!lmem[_mLGPL] && (
INFILE(_LT_LGPL_NAMED)
1906 INTERESTING(
lDebug ?
"LGPL(named)" : cp);
1914 INTERESTING(
"JSON");
1918 if (!lmem[_mWORDNET] &&
INFILE(_TITLE_WORDNET))
1920 INTERESTING(
"WordNet-3.0");
1923 if (
INFILE(_CR_XFREE86_V10) ||
INFILE(_LT_XFREE86_V10)) {
1924 INTERESTING(
"XFree86-1.0");
1927 else if (
INFILE(_CR_XFREE86_V11) ||
INFILE(_LT_XFREE86_V11)) {
1928 INTERESTING(
"XFree86-1.1");
1931 else if (
INFILE(_LT_XFREE86)) {
1932 INTERESTING(
lDebug ?
"XFree86(1)" :
"XFree86");
1935 else if (
HASTEXT(_LT_BSD_OR_MIT, REG_EXTENDED)) {
1940 else if (
HASTEXT(_LT_BSD_AND_MIT, REG_EXTENDED)) {
1950 if(
INFILE(_LT_MIT_NO_EVIL)) {
1951 INTERESTING(
lDebug ?
"MIT-style(no evil)" :
"JSON");
1954 else if (
INFILE(_LT_MIT_2)) {
1955 if (mCR_MIT() ||
INFILE(_TITLE_MIT)) {
1956 INTERESTING(
lDebug ?
"MIT(1)" :
"MIT");
1959 else if (
INFILE(_TITLE_XNET)) {
1960 INTERESTING(
"Xnet");
1964 INTERESTING(
lDebug ?
"X11(1)" :
"X11");
1967 else if (
INFILE(_CR_XFREE86)) {
1968 INTERESTING(
lDebug ?
"XFree86(2)" :
"XFree86");
1972 else if (
INFILE(_LT_MIT_ADVERTISING)) {
1973 INTERESTING(
"MIT-advertising");
1977 else if (
INFILE(_LT_MIT_ENNA)) {
1978 INTERESTING(
"MIT-enna");
1982 else if (
INFILE(_LT_MIT_FEH)) {
1983 INTERESTING(
"MIT-feh");
1987 else if (
HASTEXT(_LT_MITNFA, 0)) {
1988 INTERESTING(
"MITNFA");
1992 else if (
INFILE(_LT_Imlib2)) {
1993 INTERESTING(
"Imlib2");
1996 else if (
INFILE(_LT_MIT_13)) {
1997 INTERESTING(
lDebug ?
"MIT(14)" :
"MIT");
2002 INTERESTING(
lDebug ?
"NCSA(1)" :
"NCSA");
2006 else if (
INFILE(_LT_MIT_0)) {
2007 INTERESTING(
"MIT-0");
2011 INTERESTING(
lDebug ?
"MIT-style(1)" :
"MIT-style");
2015 else if (
INFILE(_LT_BITSTREAM_1)) {
2016 INTERESTING(
lDebug ?
"Bitstream(1)" :
"Bitstream");
2019 else if (mCR_X11()) {
2020 INTERESTING(
lDebug ?
"X11(2)" :
"X11");
2022 else if (!lmem[_mMPL] &&
INFILE(_LT_MPL_1)) {
2024 INTERESTING(
lDebug ?
"MPL/NPL#5" : cp);
2027 else if (!lmem[_mMIT] && (mCR_MIT() ||
INFILE(_TITLE_MIT)) &&
NOT_INFILE(_TITLE_MIT_EXHIBIT)) {
2028 INTERESTING(
lDebug ?
"MIT(2)" :
"MIT");
2035 else if (
INFILE(_LT_BOOST_1)) {
2036 if (
INFILE(_TITLE_BOOST10)) {
2037 INTERESTING(
"BSL-1.0");
2039 else if (
INFILE(_CR_NOTREDAME)) {
2040 INTERESTING(
lDebug ?
"Boost(ND)" :
"BSL-1.0");
2042 else if (
INFILE(_TITLE_BOOST)) {
2043 INTERESTING(
"BSL-1.0");
2046 INTERESTING(
"BSL-style");
2049 else if (mCR_MIT()) {
2050 INTERESTING(
lDebug ?
"MIT(3)" :
"MIT");
2053 else if (
INFILE(_TITLE_ICU) ||
HASTEXT(_URL_ICU, REG_EXTENDED)) {
2054 INTERESTING(
lDebug ?
"MIT-style(ICU)" :
"ICU");
2058 INTERESTING(
lDebug ?
"MIT-style(ICU)" :
"ICU");
2061 else if (
INFILE(_TITLE_JasPer_20)) {
2062 INTERESTING(
lDebug ?
"JasPer(title)" :
"JasPer-2.0");
2065 else if (
INFILE(_LT_UNICODE_4)) {
2066 INTERESTING(
lDebug ?
"MIT-style(Unicode)" :
"Unicode");
2067 lmem[_fUNICODE] = 1;
2073 else if (
HASTEXT(_LT_ADOBE_GLYPH_1, REG_EXTENDED) &&
INFILE(_LT_ADOBE_GLYPH_2)) {
2074 INTERESTING(
"Adobe-Glyph");
2079 else if (
INFILE(_LT_UBUNTU_FONT)) {
2080 INTERESTING(
"ubuntu-font-1.0");
2085 else if (!lmem[_fOFL]) {
2086 INTERESTING(
lDebug ?
"MIT-style(2)" :
"MIT-style");
2095 if(
INFILE(_LT_MIT_NO_EVIL)) {
2096 INTERESTING(
lDebug ?
"MIT-style(no evil)" :
"JSON");
2099 else if (
INFILE(_LT_X11_5)) {
2100 if (
INFILE(_CR_XFREE86)) {
2101 INTERESTING(
lDebug ?
"XFree86(3)" :
"XFree86");
2104 INTERESTING(
lDebug ?
"X11(3)" :
"X11");
2108 else if (
INFILE(_LT_Xnet_STYLE)) {
2109 INTERESTING(
"Xnet");
2112 else if (
INFILE(_LT_TAPJOY)) {
2113 INTERESTING(
"Tapjoy");
2122 INTERESTING(
"curl");
2125 INTERESTING(
lDebug ?
"MIT-style(7)" :
"MIT-style");
2130 else if (
INFILE(_LT_MIT_5)) {
2132 INTERESTING(
lDebug ?
"MIT(4)" :
"MIT");
2135 INTERESTING(
lDebug ?
"MIT-style(3)" :
"MIT-style");
2144 if (!lmem[_mMIT] &&
INFILE(_CR_OpenGroup)) {
2145 INTERESTING(
lDebug ?
"OpenGroup(1)" :
"OpenGroup");
2148 else if (!lmem[_mCMU] && mCR_CMU()) {
2149 INTERESTING(
lDebug ?
"CMU(2)" :
"CMU");
2152 else if (!lmem[_mMIT] && mCR_MIT()) {
2153 INTERESTING(
lDebug ?
"MIT(6)" :
"MIT");
2156 else if (!lmem[_mMIT] &&
INFILE(_LT_HPND_1) &&
INFILE(_LT_HPND_2)) {
2157 INTERESTING(
"HPND-sell-variant");
2164 else if (!lmem[_mMIT] &&
INFILE(_LT_CMU_7)) {
2166 INTERESTING(
"MIT-CMU");
2169 INTERESTING(
"MIT-CMU-style");
2173 else if (!lmem[_mMIT]) {
2174 INTERESTING(
lDebug ?
"MIT-style(4)" :
"MIT-style");
2178 else if (
INFILE(_SPDX_MIT_0)) {
2179 INTERESTING(
"MIT-0");
2181 else if (
INFILE(_SPDX_MIT_advertising)) {
2182 INTERESTING(
"MIT-advertising");
2184 else if (
INFILE(_SPDX_MIT_enna)) {
2185 INTERESTING(
"MIT-enna");
2187 else if (
INFILE(_SPDX_MIT_feh)) {
2188 INTERESTING(
"MIT-feh");
2190 else if (!lmem[_mMIT] &&
INFILE(_LT_MIT_7)) {
2191 if (
INFILE(_CR_OpenGroup)) {
2192 INTERESTING(
lDebug ?
"OpenGroup(2)" :
"OpenGroup");
2194 else if (!lmem[_mMIT] && mCR_MIT()) {
2195 INTERESTING(
lDebug ?
"MIT(7)" :
"MIT");
2199 INTERESTING(
lDebug ?
"MIT-style(5)" :
"MIT-style");
2203 else if ((!lmem[_mMIT] || mCR_MIT()) &&
INFILE(_LT_MITref1)) {
2204 INTERESTING(
lDebug ?
"MIT(ref1)" :
"MIT");
2207 else if (!lmem[_mMIT] &&
INFILE(_LT_MITref2)) {
2208 INTERESTING(
lDebug ?
"MIT(ref2)" :
"MIT");
2211 else if (!lmem[_mMIT] &&
INFILE(_LT_MITref6)) {
2212 INTERESTING(
lDebug ?
"MIT(ref6)" :
"MIT");
2215 else if (!lmem[_mMIT] &&
INFILE(_LT_MITref3)) {
2216 INTERESTING(
lDebug ?
"MIT(ref3)" :
"MIT-style");
2219 else if (!lmem[_mMIT] &&
INFILE(_LT_MITref4)) {
2220 INTERESTING(
lDebug ?
"MIT(ref4)" :
"MIT");
2223 else if (!lmem[_mMIT] && (
INFILE(_LT_MITref5) ||
INFILE(_LT_MITref9))) {
2224 INTERESTING(
lDebug ?
"MIT(ref5)" :
"MIT");
2227 else if (
INFILE(_SPDX_MIT_CMU)) {
2228 INTERESTING(
"MIT-CMU");
2230 else if (!lmem[_fREAL] && (
INFILE(_SPDX_MIT))) {
2231 INTERESTING(
lDebug ?
"MIT(SPDX)" :
"MIT");
2233 else if (!lmem[_mMIT] && !lmem[_fREAL] &&
INFILE(_LT_MITref7)) {
2234 INTERESTING(
lDebug ?
"MIT(ref7)" :
"MIT");
2237 else if (!lmem[_mMIT] &&
INFILE(_LT_MITref8)) {
2238 INTERESTING(
lDebug ?
"MIT(ref8/9)" :
"MIT");
2241 else if (
INFILE(_LT_OpenGroup_1)) {
2242 if (
INFILE(_CR_OpenGroup)) {
2243 INTERESTING(
lDebug ?
"OpenGroup(3)" :
"OpenGroup");
2246 INTERESTING(
lDebug ?
"OG-style(3)" :
"OpenGroup-style");
2249 else if (
INFILE(_LT_OpenGroup_3)) {
2250 if (
INFILE(_CR_OpenGroup)) {
2251 INTERESTING(
lDebug ?
"OpenGroup(5)" :
"OpenGroup");
2254 INTERESTING(
lDebug ?
"OG-style(5)" :
"OpenGroup-style");
2257 else if (
INFILE(_LT_OpenGroup_PROP)) {
2258 if (!lmem[_mXOPEN] &&
INFILE(_CR_XOPEN)) {
2259 INTERESTING(
"XOPEN-EULA");
2262 else if (
INFILE(_CR_OpenGroup)) {
2263 INTERESTING(
"OpenGroup-Proprietary");
2266 INTERESTING(
"Proprietary");
2269 else if (
INFILE(_LT_X11_1)) {
2271 INTERESTING(
lDebug ?
"X11(4)" :
"X11");
2274 INTERESTING(
lDebug ?
"X11-style(2)" :
"X11-style");
2277 else if (
INFILE(_LT_X11_2)) {
2279 INTERESTING(
lDebug ?
"X11(5)" :
"X11");
2282 INTERESTING(
lDebug ?
"X11-style(3)" :
"X11-style");
2285 else if (
INFILE(_LT_X11_3)) {
2287 INTERESTING(
lDebug ?
"X11(6)" :
"X11");
2292 else if (
INFILE(_CR_USL_EUR)) {
2293 INTERESTING(
lDebug ?
"USLE(2)" :
"USL-Europe");
2296 INTERESTING(
lDebug ?
"X11-style(4)" :
"X11-style");
2299 else if (
INFILE(_LT_X11_4)) {
2301 INTERESTING(
lDebug ?
"X11(7)" :
"X11");
2304 INTERESTING(
lDebug ?
"X11-style(5)" :
"X11-style");
2308 INTERESTING(
lDebug ?
"PHR(X11)" :
"X11");
2310 else if (
INFILE(_LT_X11_STYLE)) {
2311 INTERESTING(
lDebug ?
"X11-style(6)" :
"X11-style");
2317 INTERESTING(
lDebug ?
"PHR(ISC)" :
"ISC");
2320 else if (
INFILE(_LT_MIT_4) &&
INFILE(_PHR_NO_WARRANTY_12)) {
2321 INTERESTING(
lDebug ?
"ISC(MIT-style(4))" :
"ISC");
2325 INTERESTING(
lDebug ?
"ISC(MIT-style(8))" :
"ISC");
2332 if (
INFILE(_TITLE_NTP)) {
2338 if (
INFILE(_TITLE_MIROS)) {
2339 INTERESTING(
"MirOS");
2344 if (
INFILE(_TITLE_LIBPNG)) {
2345 INTERESTING(
"Libpng");
2347 else if (
INFILE(_LT_W3C_1)) {
2349 INTERESTING(
lDebug ?
"W3C(1)" :
"W3C");
2352 INTERESTING(
lDebug ?
"W3C-style(1)" :
"W3C-style");
2356 else if (!lmem[_mNTP] && !lmem[_mPYTHON] && !lmem[_fBSD] &&
INFILE(_LT_W3C_2)) {
2357 if (
INFILE(_LT_W3C_19980720)) {
2358 INTERESTING(
"W3C-19980720");
2360 else if (
INFILE(_CR_W3C)) {
2361 INTERESTING(
lDebug ?
"W3C(2)" :
"W3C");
2364 INTERESTING(
lDebug ?
"W3C-style(2)" :
"W3C-style");
2368 else if (
INFILE(_LT_W3C_3)) {
2370 if (
INFILE(_LT_W3C_20021231)) {
2373 else if (
INFILE(_LT_W3C_20150513)) {
2374 INTERESTING(
"W3C-20150513");
2377 else if (
INFILE(_CR_W3C)) {
2378 INTERESTING(
lDebug ?
"W3C(3)" :
"W3C");
2380 else if (
INFILE(_LT_W3Cref4)) {
2381 INTERESTING(
lDebug ?
"W3C(ref4)" :
"W3C");
2384 INTERESTING(
lDebug ?
"W3C-style(3)" :
"W3C-style");
2390 INTERESTING(
lDebug ?
"W3C(4)" :
"W3C");
2393 INTERESTING(
lDebug ?
"W3C-style(4)" :
"W3C-style");
2397 else if (
INFILE(_LT_W3C_5)) {
2399 INTERESTING(
lDebug ?
"W3C(5)" :
"W3C");
2402 INTERESTING(
lDebug ?
"W3C-style(5)" :
"W3C-style");
2406 else if (
INFILE(_LT_W3C_6)) {
2408 INTERESTING(
lDebug ?
"W3C(6)" :
"W3C");
2411 INTERESTING(
lDebug ?
"W3C-style(6)" :
"W3C-style");
2415 else if (
INFILE(_LT_W3C_7)) {
2417 INTERESTING(
lDebug ?
"W3C(7)" :
"W3C");
2419 else if (
INFILE(_LT_OGC)) {
2423 INTERESTING(
lDebug ?
"W3C-style(7)" :
"W3C-style");
2427 else if (
INFILE(_LT_W3Cref1)) {
2428 INTERESTING(
lDebug ?
"W3C(ref1)" :
"W3C");
2431 else if (
INFILE(_LT_W3Cref2)) {
2432 INTERESTING(
lDebug ?
"W3C(ref2)" :
"W3C");
2435 else if (
INFILE(_LT_W3Cref3)) {
2436 INTERESTING(
lDebug ?
"W3C(ref3)" :
"W3C");
2439 else if (
INFILE(_LT_W3Cref4)) {
2440 INTERESTING(
lDebug ?
"W3C(ref4)" :
"W3C");
2444 INTERESTING(
lDebug ?
"W3C-20021231(url)" :
"W3C");
2448 INTERESTING(
lDebug ?
"W3C-IP(url)" :
"W3C-IP");
2452 INTERESTING(
lDebug ?
"W3C(url)" :
"W3C");
2455 else if (!lmem[_mMIT] &&
INFILE(_LT_MIT_3)) {
2457 INTERESTING(
"NTP-0");
2459 else if (mCR_MIT()) {
2460 INTERESTING(
lDebug ?
"MIT(8)" :
"MIT");
2463 INTERESTING(
lDebug ?
"MIT-style(6)" :
"MIT-style");
2467 else if (!lmem[_mMIT] &&
INFILE(_LT_MIT_4)) {
2469 INTERESTING(
lDebug ?
"MIT(9)" :
"MIT");
2471 else if (!lmem[_mISC] && mCR_FSF()) {
2472 INTERESTING(
lDebug ?
"FSF(7)" :
"FSF");
2474 else if (!lmem[_mISC]) {
2475 INTERESTING(
lDebug ?
"MIT-style(13)" :
"MIT-style");
2479 else if (!lmem[_mMIT] &&
INFILE(_LT_MIT_8)) {
2481 INTERESTING(
"Vixie");
2483 else if (
INFILE(_LT_0BSD)) {
2484 INTERESTING(
"0BSD");
2486 else if (mCR_MIT()) {
2487 INTERESTING(
lDebug ?
"MIT(10)" :
"MIT");
2489 else if (
HASTEXT(_TEXT_TU_BERLIN, 0) &&
HASTEXT(_LT_FREE_87,0)) {
2490 INTERESTING(
"TU-Berlin-2.0");
2493 INTERESTING(
lDebug ?
"MIT-style(8)" :
"MIT-style");
2497 else if (
INFILE(_LT_MIT_9)) {
2498 if (
INFILE(_CR_SLEEPYCAT)) {
2499 MEDINTEREST(
lDebug ?
"Sleepycat(2)" :
"Sleepycat");
2501 else if (
INFILE(_CR_BSDCAL)) {
2502 INTERESTING(
lDebug ?
"BSD(mit)" :
"BSD");
2505 else if (
INFILE(_CR_SUN)) {
2506 INTERESTING(
lDebug ?
"SUN(mit)" :
"SUN");
2509 else if (!lmem[_mMIT] && mCR_MIT()) {
2510 INTERESTING(
lDebug ?
"MIT(11)" :
"MIT");
2513 else if (!lmem[_mMIT]) {
2522 INTERESTING(
lDebug ?
"MIT-style(9)" :
"MIT-style");
2527 else if (
INFILE(_LT_MIT_10)) {
2528 if (!lmem[_mMIT] && mCR_MIT()) {
2529 INTERESTING(
lDebug ?
"MIT(12)" :
"MIT");
2533 INTERESTING(
lDebug ?
"MIT-style(10)" :
"MIT-style");
2537 else if ((
INFILE(_LT_MIROS_PREAMBLE) ||
INFILE(_TITLE_MIROS)) &&
INFILE(_LT_MIT_11)) {
2538 INTERESTING(
lDebug ?
"MIT-style(MirOS)" :
"MirOS");
2541 else if (
INFILE(_LT_MIT_11)) {
2542 INTERESTING(
lDebug ?
"MIT-style(11)" :
"MIT-style");
2545 else if (!lmem[_mMIT] &&
INFILE(_LT_MITDOC)) {
2547 INTERESTING(
lDebug ?
"MIT(13)" :
"MIT");
2550 INTERESTING(
lDebug ?
"MIT-style(12)" :
"MIT-style");
2555 INTERESTING(
lDebug ?
"MIT(0)" :
"MIT-style");
2558 else if (
INFILE(_LT_MIT_14)) {
2559 INTERESTING(
lDebug ?
"MIT-style(14)" :
"MIT-style");
2562 else if (
INFILE(_LT_MIT_15)) {
2563 INTERESTING(
lDebug ?
"MIT-style(15)" :
"ISC-style");
2566 else if (
INFILE(_LT_MPL_OR_MITX)) {
2569 INTERESTING(
lDebug ?
"MPL(with-MIT)" : cp);
2573 INTERESTING(
lDebug ?
"MIT(with-MPL)" :
"MIT");
2578 INTERESTING(
lDebug ?
"MIT(url)" :
"MIT");
2581 else if (
HASTEXT(_TEXT_TU_BERLIN, 0) &&
HASTEXT(_LT_FREE_87,0)) {
2582 INTERESTING(
"TU-Berlin-1.0");
2585 INTERESTING(
lDebug ?
"NIST" :
"MIT-style");
2587 else if (
INFILE(_LT_FSFAP)) {
2588 INTERESTING(
"FSFAP");
2594 if (
INFILE(_LT_COPYLEFT_1)) {
2595 INTERESTING(
"CopyLeft[1]");
2597 else if (
INFILE(_LT_COPYLEFT_2)) {
2598 INTERESTING(
"CopyLeft[2]");
2604 if (
INFILE(_LT_OPENCONTENT)) {
2605 if (
INFILE(_TITLE_OPENCL10)) {
2606 INTERESTING(
"OCL-1.0");
2608 else if (
INFILE(_TITLE_OPENCL)) {
2612 INTERESTING(
"OCL-style");
2619 if (
INFILE(_TITLE_ZLIB)) {
2620 INTERESTING(
"Zlib");
2622 else if (
INFILE (_LT_TRUECRYPT_30)) {
2623 INTERESTING(
"TrueCrypt-3.0");
2625 else if (
INFILE(_TITLE_LIBPNG)) {
2626 INTERESTING(
"Libpng");
2629 else if (
INFILE(_LT_JPEG_1)) {
2630 INTERESTING(
lDebug ?
"JPEG(1)" :
"IJG");
2634 INTERESTING(
lDebug ?
"JPEG(2)" :
"IJG");
2638 else if (
INFILE(_SPDX_zlib_acknowledgement)) {
2639 INTERESTING(
"zlib-acknowledgement");
2641 else if (!lmem[_fREAL] && (
INFILE(_SPDX_Zlib))) {
2642 INTERESTING(
"Zlib");
2644 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)) {
2645 INTERESTING(
lDebug ?
"ZLIB(1)" :
"Zlib");
2647 else if (
INFILE(_LT_PNG_ZLIBref4) &&
NOT_INFILE(_LT_PNG_ZLIBref4_EXHIBIT)) {
2648 INTERESTING(
lDebug ?
"ZLIB(6)" :
"Zlib");
2650 else if (!lmem[_fW3C] &&
INFILE(_LT_PNG_ZLIB_2)) {
2651 if (
INFILE(_LT_libmng_2007_Clause_1)) {
2652 if (
HASTEXT(_LT_libmng_2007_1, 0)) {
2653 INTERESTING(
"libmng-2007");
2655 else if (
INFILE(_LT_libpng_20_Clause_1)) {
2656 INTERESTING(
"libpng-2.0");
2660 INTERESTING(
lDebug ?
"PNG/ZLIB(2)" :
"Libpng");
2663 else if (
INFILE(_LT_PNG_ZLIBref1)) {
2664 INTERESTING(
lDebug ?
"ZLIB(3)" :
"Zlib");
2666 else if (
INFILE(_LT_PNG_ZLIBref2)) {
2667 INTERESTING(
lDebug ?
"ZLIB(4)" :
"Zlib");
2669 else if (
INFILE(_LT_PNG_ZLIBref3)) {
2670 INTERESTING(
lDebug ?
"ZLIB(5)" :
"Zlib-possibility");
2673 INTERESTING(
lDebug ?
"ZLIB(url)" :
"Zlib");
2677 INTERESTING(
"Info-ZIP");
2689 INTERESTING(
"IETF");
2691 else if (
INFILE(_LT_IETF_5)) {
2692 INTERESTING(
"IETF");
2694 else if (
HASTEXT(_LT_IETF_7, 0)) {
2695 INTERESTING(
"IETF");
2697 else if (
INFILE(_CR_OASIS)) {
2698 INTERESTING(
"OASIS");
2701 INTERESTING(
"IETF-style");
2707 else if (
INFILE(_LT_IETF_6)) {
2708 INTERESTING(
"IETF");
2713 else if (
INFILE(_LT_IETF_7)) {
2714 INTERESTING(
"IETF-contribution");
2720 if (
INFILE(_PHR_CDDL_1) ||
HASTEXT(_PHR_CDDL_2, REG_EXTENDED)) {
2733 INTERESTING(
lDebug ?
"MPL/NPL#2" : cp);
2736 if (
INFILE(_LT_CPALref)) {
2737 if (
INFILE(_TITLE_CPAL10)) {
2738 INTERESTING(
lDebug ?
"CPAL_v1.0(#2)" :
"CPAL-1.0");
2742 else if (
INFILE(_TITLE_CPAL)) {
2743 INTERESTING(
lDebug ?
"CPAL(#2)" :
"CPAL");
2748 else if (
INFILE(_LT_CPAL_V1_ref)) {
2749 INTERESTING(
lDebug ?
"CPAL_v1.0(#3)" :
"CPAL-1.0");
2753 if (!lmem[_mMPL] &&
INFILE(_LT_MPL_2)) {
2754 if (
INFILE(_TITLE_SISSL)) {
2756 INTERESTING(
lDebug ?
"SISSL(MPL)" : cp);
2759 else if (
INFILE(_TITLE_SUN_PL10)) {
2760 INTERESTING(
"SPL-1.0");
2763 else if (
INFILE(_TITLE_SUN_PL)) {
2767 else if (
INFILE(_TITLE_IDPL_V10)) {
2768 INTERESTING(
"IDPL-1.0");
2771 else if (
INFILE(_TITLE_IDPL)) {
2772 INTERESTING(
"IDPL");
2775 else if (
INFILE(_TITLE_INTERBASE)) {
2776 INTERESTING(
"Interbase-1.0");
2779 else if (
INFILE(_TITLE_NETIZEN_V10)) {
2780 INTERESTING(
"NOSL-1.0");
2783 else if (
INFILE(_TITLE_NETIZEN)) {
2784 INTERESTING(
lDebug ?
"NOSL(#1)" :
"NOSL");
2787 else if (
INFILE(_TITLE_TPL10)) {
2788 INTERESTING(
lDebug ?
"TPL(v1.0#1)" :
"MPL.TPL-1.0");
2791 else if (
INFILE(_TITLE_TPL)) {
2792 INTERESTING(
lDebug ?
"TPL(#1)" :
"MPL.TPL");
2795 else if (
INFILE(_TITLE_GSOAP_V13)) {
2796 INTERESTING(
"gSOAP-1.3b");
2799 else if (
INFILE(_TITLE_GSOAP)) {
2800 INTERESTING(
"gSOAP");
2803 else if (
INFILE(_TITLE_FLASH2XML10)) {
2804 INTERESTING(
"Flash2xml-1.0");
2806 else if (
INFILE(_TITLE_NOKIA10A)) {
2807 INTERESTING(
"Nokia");
2810 else if (
INFILE(_LT_NOKIA)) {
2811 INTERESTING(
"Nokia");
2814 else if (
INFILE(_TITLE_OPENPL10)) {
2815 INTERESTING(
"OPL-1.0");
2817 else if (
INFILE(_TITLE_SNIA_V11)) {
2818 INTERESTING(
"SNIA-1.1");
2820 else if (
INFILE(_TITLE_SNIA_V10)) {
2821 INTERESTING(
"SNIA-1.0");
2823 else if (
INFILE(_TITLE_CPAL10)) {
2824 INTERESTING(
lDebug ?
"CPAL_v1.0(#1)" :
"CPAL-1.0");
2828 else if (
INFILE(_TITLE_CPAL)) {
2829 INTERESTING(
lDebug ?
"CPAL(#1)" :
"CPAL");
2833 else if (
HASTEXT(_TEXT_MOZNET, REG_EXTENDED)) {
2834 if (
INFILE(_TITLE_SUGARCRM_PL)) {
2835 INTERESTING(
"SugarCRM-1.1.3");
2839 else if (!lmem[_mMPL] && !lmem[_fREAL] &&
INFILE(_TITLE_MOZNET_PL)) {
2841 INTERESTING(
lDebug ?
"MPL/NPL#1" : cp);
2845 else if (
INFILE(_TITLE_RHeCos_V11)) {
2846 INTERESTING(
"RHeCos-1.1");
2848 else if (
INFILE(_TITLE_CYGNUS_ECOS_V10)) {
2849 INTERESTING(
"Cygnus-eCos-1.0");
2851 else if (
INFILE(_TITLE_H2_V10)) {
2852 INTERESTING(
"H2-1.0");
2855 if (!lmem[_mCDDL]) {
2856 INTERESTING(
"MPL-style");
2861 else if (!lmem[_mMPL] && (
INFILE(_LT_NPLref) ||
INFILE(_LT_NPL_1))) {
2863 INTERESTING(
lDebug ?
"MPL/NPL#3" : cp);
2866 else if (!lmem[_mMPL] &&
INFILE(_LT_MPLref1)) {
2868 INTERESTING(
lDebug ?
"MPL/NPL-ref#1" : cp);
2871 else if (!lmem[_mMPL] &&
INFILE(_LT_IDPLref)) {
2872 if (
INFILE(_TITLE_IDPL_V10)) {
2873 INTERESTING(
lDebug ?
"IDPL-v1(ref)" :
"IDPL-1.0");
2876 INTERESTING(
lDebug ?
"IDPL(ref)" :
"IDPL");
2880 else if (!lmem[_mMPL] && !lmem[_mLIBRE] && !lmem[_fREAL] &&
2881 !
LVAL(_TEXT_GNU_LIC_INFO) &&
INFILE(_LT_MPLref2)) {
2883 INTERESTING(
lDebug ?
"MPL/NPL-ref#2" : cp);
2886 else if (!lmem[_mMPL] && !lmem[_mLIBRE] && !lmem[_fREAL] &&
2887 !
LVAL(_TEXT_GNU_LIC_INFO) &&
INFILE(_TITLE_MOZNET_PL)) {
2889 INTERESTING(
lDebug ?
"MPL/NPL#4" : cp);
2892 else if (!lmem[_mMPL] &&
INFILE(_TITLE_NETSCAPE_EULA)) {
2893 INTERESTING(
"NPL-EULA");
2896 else if (
INFILE(_LT_NPL_2)) {
2897 INTERESTING(
lDebug ?
"NPL(#1)" :
"NPL");
2900 else if (
INFILE(_TITLE_OPENPL)) {
2901 INTERESTING(
lDebug ?
"OPL(title)" :
"OPL-style");
2907 if (
INFILE(_LT_MSCORP_SSLref)) {
2908 INTERESTING(
lDebug ?
"MS-SSL(ref)" :
"MS-SSL");
2911 if (
INFILE(_LT_MSCORP_PL)) {
2912 int ms_l =
INFILE(_LT_MSCORP_LIMITED);
2913 int ms_r =
INFILE(_LT_MSCORP_RL);
2915 INTERESTING(
"MS-LRL");
2918 INTERESTING(
lDebug ?
"MS-RL(#1)" :
"MS-RL");
2921 INTERESTING(
"MS-LPL");
2924 INTERESTING(
lDebug ?
"MS-PL(#1)" :
"MS-PL");
2927 else if (
INFILE(_LT_MSCORP_LIMITEDref1)) {
2928 INTERESTING(
"MS-LPL");
2932 if (
INFILE(_TEXT_MICROSOFT)) {
2933 if (
INFILE(_LT_MSCORP_INDEMNIFY)) {
2934 INTERESTING(
"MS-indemnity");
2937 else if (
INFILE(_LT_MSCORP_IP_1)) {
2938 INTERESTING(
lDebug ?
"MS-IP(1)" :
"MS-IP");
2941 else if (
INFILE(_LT_MSCORP_IP_2)) {
2942 INTERESTING(
lDebug ?
"MS-IP(2)" :
"MS-IP");
2945 else if (
INFILE(_LT_MSCORP_PLref1)) {
2946 INTERESTING(
lDebug ?
"MS-PL(ref1)" :
"MS-PL");
2949 else if (
INFILE(_LT_MSCORP_PLref2)) {
2950 INTERESTING(
lDebug ?
"MS-PL(ref2)" :
"MS-PL");
2953 else if (
INFILE(_LT_MSCORP_PLref3)) {
2954 INTERESTING(
lDebug ?
"MS-PL(ref3)" :
"MS-PL");
2957 else if (
INFILE(_LT_MSCORP_RLref)) {
2958 INTERESTING(
lDebug ?
"MS-RL(ref)" :
"MS-RL");
2961 else if (
INFILE(_LT_MSCORP_REFLIC)) {
2965 else if (
INFILE(_LT_MSCORP_EULA_1) ||
2966 INFILE(_TITLE_MSCORP_EULA)) {
2967 INTERESTING(
lDebug ?
"MS-EULA(1)" :
"MS-EULA");
2970 else if (
INFILE(_LT_MSCORP_EULA_2)) {
2971 INTERESTING(
lDebug ?
"MS-EULA(2)" :
"MS-EULA");
2974 else if (
INFILE(_LT_MSCORP_EULA_3)) {
2975 INTERESTING(
lDebug ?
"MS-EULA(3)" :
"MS-EULA");
2978 else if (
INFILE(_LT_MSCORP_EULA_4)) {
2979 INTERESTING(
lDebug ?
"MS-EULA(4)" :
"MS-EULA");
2982 else if (
INFILE(_LT_MSCORP_EULA_5)) {
2983 INTERESTING(
lDebug ?
"MS-EULA(5)" :
"MS-EULA");
2986 else if (
INFILE(_LT_MSCORP_EULA_6)) {
2987 INTERESTING(
lDebug ?
"MS-EULA(6)" :
"MS-EULA");
2990 else if (
INFILE(_LT_MSCORP_1)) {
2991 INTERESTING(
lDebug ?
"MS(1)" :
"Microsoft");
2994 else if (
INFILE(_LT_MSCORP_2)) {
2995 INTERESTING(
lDebug ?
"MS(2)" :
"Microsoft");
2998 else if (
INFILE(_LT_MSCORP_3)) {
2999 INTERESTING(
lDebug ?
"MS(3)" :
"Microsoft");
3002 else if (
INFILE(_LT_MSCORP_4)) {
3003 INTERESTING(
lDebug ?
"MS(4)" :
"Microsoft");
3006 else if (
INFILE(_LT_MSCORP_5)) {
3007 INTERESTING(
lDebug ?
"MS(5)" :
"Microsoft");
3010 else if (
INFILE(_LT_MSCORPref1)) {
3011 INTERESTING(
"Microsoft");
3020 INTERESTING(
"SCO.commercial");
3026 if (
INFILE(_LT_ZONEALARM) &&
INFILE(_TITLE_ZONEALARM_EULA)) {
3027 INTERESTING(
"ZoneAlarm-EULA");
3033 if (
HASTEXT(_TEXT_XIMIAN, 0)) {
3034 if (
INFILE(_CR_XIMIAN)) {
3035 if (
INFILE(_LT_XIMIAN)) {
3036 if (
INFILE(_TITLE_XIMIANLOGO10)) {
3037 INTERESTING(
"Ximian-1.0");
3039 else if (
INFILE(_TITLE_XIMIANLOGO)) {
3040 INTERESTING(
"Ximian");
3049 if (
HASTEXT(_TEXT_XEROX, 0)) {
3052 INTERESTING(
"Xerox");
3055 INTERESTING(
"Xerox-style");
3064 INTERESTING(
"Artifex");
3071 INTERESTING(
"AGE-Logic");
3077 if (
INFILE(_LT_OPENSSLref1) ||
INFILE(_LT_OPENSSLref2) ||
3080 INFILE(_LT_OPENSSLref8) ) {
3081 INTERESTING(
lDebug ?
"OpenSSL(ref)" :
"OpenSSL");
3083 else if (
INFILE(_SPDX_OpenSSL) ||
INFILE(_URL_OPENSSL)) {
3084 INTERESTING(
lDebug ?
"OpenSSL(phr)" :
"OpenSSL");
3090 if (
INFILE(_LT_COMBINED_OPENSSL_SSLEAY)) {
3091 INTERESTING(
"OpenSSL");
3092 INTERESTING(
"SSLeay");
3101 INTERESTING(
"Ruby");
3104 else if (
INFILE(_LT_RUBYref1)) {
3105 INTERESTING(
lDebug ?
"Ruby(ref1)" :
"Ruby");
3107 else if (
INFILE(_LT_RUBYref2)) {
3108 INTERESTING(
lDebug ?
"Ruby(ref2)" :
"Ruby");
3110 else if (
INFILE(_LT_RUBYref3)) {
3111 INTERESTING(
lDebug ?
"Ruby(ref3)" :
"Ruby");
3113 else if (
INFILE(_LT_RUBYref4)) {
3114 INTERESTING(
lDebug ?
"Ruby(ref4)" :
"Ruby");
3116 else if (
INFILE(_LT_RUBYref5)) {
3117 INTERESTING(
lDebug ?
"Ruby(ref5)" :
"Ruby");
3119 else if (
INFILE(_LT_RUBYref6)) {
3120 INTERESTING(
lDebug ?
"Ruby(ref6)" :
"Ruby");
3127 if (
INFILE(_LT_EGENIX_COM)) {
3128 INTERESTING(
"eGenix");
3130 else if (
INFILE(_LT_PYTHON_4)) {
3131 INTERESTING(
"Python");
3134 else if (!lmem[_mPYTHON] && lmem[_mPYTH_TEXT]) {
3136 if (
INFILE(_LT_CNRI_PYTHON_GPL)) {
3137 INTERESTING(
"CNRI-Python-GPL-Compatible");
3140 else if (
INFILE(_CR_PYTHON) ||
INFILE(_TITLE_PYTHON)) {
3142 INTERESTING(
lDebug ?
"Python(1)" : cp);
3144 else if (
INFILE(_LT_CNRI_PYTHON_1)) {
3145 INTERESTING(
"CNRI-Python");
3147 else if (
INFILE(_LT_CNRI_JYTHON)) {
3148 INTERESTING(
"CNRI-Jython");
3151 INTERESTING(
"Python-style");
3155 else if (
INFILE(_SPDX_CNRI_Python_GPL_Compatible)) {
3156 INTERESTING(
"CNRI-Python-GPL-Compatible");
3158 else if (
INFILE(_SPDX_CNRI_Python)) {
3159 INTERESTING(
"CNRI-Python");
3161 else if (
INFILE(_LT_CNRI_PYTHON_2)) {
3162 INTERESTING(
"CNRI-Python");
3164 else if (
INFILE(_LT_PYTHON_3)) {
3166 INTERESTING(
lDebug ?
"Python(4)" : cp);
3169 else if (
INFILE(_LT_PYTHONSTYLEref)) {
3171 INTERESTING(
lDebug ?
"Python(ref1)" :
"Python-style");
3174 else if (!lmem[_mLIBRE] && (
INFILE(_LT_PYTHONref1) ||
3175 INFILE(_LT_PYTHONref2))) {
3177 INTERESTING(
lDebug ?
"Python(ref2)" : cp);
3180 else if (!lmem[_mLIBRE] && !lmem[_fREAL] &&
3181 !
LVAL(_TEXT_GNU_LIC_INFO) &&
INFILE(_LT_PYTHONref3)) {
3183 INTERESTING(
lDebug ?
"Python(ref3)" : cp);
3186 else if (!lmem[_mPYTHON] &&
URL_INFILE(_URL_PYTHON)) {
3188 INTERESTING(
lDebug ?
"Python(url)" : cp);
3191 else if (!lmem[_mPYTHON] &&
INFILE(_LT_PYTHON22ref)) {
3192 INTERESTING(
lDebug ?
"Python(22ref)" :
"Python-2.2");
3201 INTERESTING(
lDebug ?
"Intel(8)" :
"Intel");
3203 else if (
INFILE(_LT_INTEL_6)) {
3204 INTERESTING(
lDebug ?
"Intel(9)" :
"Intel-other");
3206 else if (
INFILE(_LT_INTEL_7)) {
3207 INTERESTING(
lDebug ?
"Intel(10)" :
"Intel-other");
3209 else if (
INFILE(_LT_INTEL_WLAN)) {
3210 INTERESTING(
"Intel-WLAN");
3212 else if (
INFILE(_LT_INTEL_ACPI)) {
3213 INTERESTING(
"Intel-ACPI");
3215 else if (
INFILE(_SPDX_Intel_ACPI)) {
3216 INTERESTING(
"Intel-ACPI");
3219 INTERESTING(
"ISSL");
3221 else if (!lmem[_fREAL] &&
INFILE(_SPDX_Intel)) {
3222 INTERESTING(
"Intel");
3224 else if (
HASTEXT(_TEXT_INTELCORP, 0)) {
3225 if (
INFILE(_LT_INTEL_1)) {
3226 if (
INFILE(_LT_INTEL_FW)) {
3227 INTERESTING(
lDebug ?
"Intel(2)" :
"Intel-only-FW");
3230 INTERESTING(
lDebug ?
"Intel(3)" :
"Intel");
3233 else if (
INFILE(_LT_INTEL_2)) {
3234 INTERESTING(
lDebug ?
"Intel(4)" :
"Intel");
3236 else if (
INFILE(_LT_INTEL_3)) {
3237 INTERESTING(
lDebug ?
"Intel(5)" :
"Intel");
3239 else if (
INFILE(_LT_INTEL_4)) {
3240 INTERESTING(
lDebug ?
"Intel(6)" :
"Intel");
3242 else if (
INFILE(_LT_INTEL_RESTRICT)) {
3243 INTERESTING(
"Intel.RESTRICTED");
3245 else if (
INFILE(_LT_INTEL_BINARY) &&
HASTEXT(_TEXT_INTELCORPBINARY, 0) &&
HASTEXT(_TEXT_NOMODIFICATION, 0)) {
3246 INTERESTING(
"Intel-Binary");
3249 else if (
INFILE(_LT_INTEL_5)) {
3250 INTERESTING(
lDebug ?
"CPL(Intel)" :
"CPL");
3251 INTERESTING(
lDebug ?
"Intel(7)" :
"Intel");
3253 else if (
INFILE(_LT_INTEL_EULA)) {
3254 INTERESTING(
"Intel-EULA");
3260 if (
INFILE(_LT_BELLCORE)) {
3261 if (
INFILE(_CR_BELLCORE)) {
3262 INTERESTING(
"Bellcore");
3265 INTERESTING(
"Bellcore-style");
3273 INTERESTING(
"Purdue");
3281 if (!lmem[_fPURDUE] &&
INFILE(_LT_CISCO)) {
3282 if (
HASTEXT(_LT_PNG_ZLIB_CLAUSE_1, 0) &&
3283 HASTEXT(_LT_PNG_ZLIB_CLAUSE_2, REG_EXTENDED) &&
3284 HASTEXT(_LT_PNG_ZLIB_CLAUSE_3, 0)) {
3285 if (
INFILE(_LT_Spencer_86_94_CLAUSE_1) &&
INFILE(_LT_Spencer_94_CLAUSE_2)) {
3286 INTERESTING(
"Spencer-94");
3289 INTERESTING(
"Zlib-style");
3292 else if (
INFILE(_CR_CISCO)) {
3293 INTERESTING(
"Cisco");
3296 INTERESTING(
"Cisco-style");
3303 if (
INFILE(_LT_HP_DEC)) {
3305 INTERESTING(
lDebug ?
"HP(8)" :
"HP");
3307 else if (
INFILE(_CR_ADOBE)) {
3308 INTERESTING(
lDebug ?
"Adobe(8)" :
"Adobe");
3310 else if (
INFILE(_LT_GNUPLOT_1) &&
INFILE(_LT_GNUPLOT_2)) {
3311 INTERESTING(
"gnuplot");
3314 INTERESTING(
lDebug ?
"HP-DEC-style(1)" :
"HP-DEC-style");
3317 else if (
HASTEXT(_TEXT_HP, REG_EXTENDED)) {
3319 INTERESTING(
lDebug ?
"HP(2)" :
"HP");
3322 INTERESTING(
lDebug ?
"HP(3)" :
"hp-snmp-pp");
3324 else if (
INFILE(_LT_HP_4)) {
3325 INTERESTING(
lDebug ?
"HP(4)" :
"HP");
3327 else if (
INFILE(_LT_HP_5)) {
3328 INTERESTING(
lDebug ?
"HP(5)" :
"HP");
3330 else if (
INFILE(_LT_HP_6)) {
3331 INTERESTING(
lDebug ?
"HP(6)" :
"HP");
3333 else if (
INFILE(_LT_HP_7)) {
3334 INTERESTING(
lDebug ?
"HP(7)" :
"HP");
3336 else if (
INFILE(_LT_COMPAQ_1)) {
3337 INTERESTING(
lDebug ?
"Compaq(1)" :
"HP-Compaq");
3339 else if (
INFILE(_LT_HP_EULA1)) {
3340 INTERESTING(
lDebug ?
"HP-EULA(1)" :
"HP-EULA");
3342 else if (
INFILE(_LT_HP_EULA2)) {
3343 INTERESTING(
lDebug ?
"HP-EULA(2)" :
"HP-EULA");
3345 else if (
INFILE(_LT_HP_EULA3)) {
3346 INTERESTING(
lDebug ?
"HP-EULA(3)" :
"HP-EULA");
3348 else if (
INFILE(_LT_HP_EULA4)) {
3349 INTERESTING(
lDebug ?
"HP-EULA(4)" :
"HP-EULA");
3351 else if (
INFILE(_LT_COMPAQ_EULA)) {
3352 INTERESTING(
lDebug ?
"Compaq(EULA)" :
"HP-Compaq");
3354 else if (
INFILE(_LT_HP_PROPRIETARY_1)) {
3355 INTERESTING(
lDebug ?
"HP-prop(1)" :
"HP-Proprietary");
3357 else if (
INFILE(_LT_HP_PROPRIETARY_2)) {
3358 INTERESTING(
lDebug ?
"HP-prop(2)" :
"HP-Proprietary");
3360 else if (
INFILE(_LT_HP_PROPRIETARY_3)) {
3361 INTERESTING(
lDebug ?
"HP-prop(3)" :
"HP-Proprietary");
3363 else if (
INFILE(_LT_HP_IBM_1)) {
3364 INTERESTING(
lDebug ?
"HP+IBM(1)" :
"HP+IBM");
3366 else if (
INFILE(_LT_HP_IBM_2)) {
3367 INTERESTING(
lDebug ?
"HP+IBM(2)" :
"HP+IBM");
3369 else if (!lmem[_mHP] &&
INFILE(_CR_DEC) &&
INFILE(_LT_DEC_1)) {
3370 INTERESTING(
lDebug ?
"HP-DEC(3)" :
"HP-DEC");
3373 else if (!lmem[_mHP] &&
INFILE(_CR_DEC) &&
INFILE(_LT_DEC_2)) {
3374 INTERESTING(
lDebug ?
"HP-DEC(4)" :
"HP-DEC");
3378 INTERESTING(
lDebug ?
"HP-EDS(1)" :
"HP");
3381 INTERESTING(
lDebug ?
"HP-EDS(2)" :
"HP");
3384 else if (!lmem[_mHP] &&
INFILE(_LT_DEC_1)) {
3385 INTERESTING(
lDebug ?
"HP-DEC-style(2)" :
"HP-DEC-style");
3387 else if (!lmem[_mHP] &&
INFILE(_LT_DEC_2)) {
3388 INTERESTING(
lDebug ?
"HP-DEC-style(3)" :
"HP-DEC-style");
3390 else if (
INFILE(_LT_HP_4)) {
3391 INTERESTING(
lDebug ?
"HP-style(1)" :
"HP-style");
3393 else if (
INFILE(_LT_COMPAQ_1)) {
3394 INTERESTING(
lDebug ?
"HP-style(2)" :
"HP-style");
3396 else if (
INFILE(_LT_EDS_1)) {
3397 INTERESTING(
lDebug ?
"HP-EDS(1#2)" :
"HP");
3399 else if (
INFILE(_LT_EDS_2)) {
3400 INTERESTING(
lDebug ?
"HP-EDS(2#2)" :
"HP");
3406 if (!lmem[_mSUN] && (
INFILE(_CR_SUN) ||
INFILE(_TEXT_MICROSYSTEMS))) {
3407 if (
INFILE(_LT_SUN_PROPRIETARY) ||
INFILE(_LT_SUN_PROPRIETARY_2) ||
INFILE(_LT_SUN_PROPRIETARY_3)) {
3408 INTERESTING(
lDebug ?
"Sun(Prop)" :
"Sun-Proprietary");
3411 else if (
INFILE(_LT_SUN_RPC)) {
3412 INTERESTING(
"Sun-RPC");
3415 else if (
INFILE(_LT_SUN_1)) {
3416 if (
INFILE(_LT_SUN_FREE)) {
3417 INTERESTING(
lDebug ?
"Sun(Freeware)" :
"Freeware");
3420 INTERESTING(
lDebug ?
"Sun(3)" :
"Sun");
3424 else if (
INFILE(_LT_SUN_2)) {
3425 INTERESTING(
lDebug ?
"Sun(4)" :
"Sun-Proprietary");
3428 else if (
INFILE(_LT_SUN_3)) {
3429 INTERESTING(
lDebug ?
"Sun(5)" :
"Sun");
3432 else if (
INFILE(_LT_SUN_4)) {
3433 INTERESTING(
lDebug ?
"Sun(6)" :
"Sun");
3436 else if (
INFILE(_LT_SUN_5)) {
3437 INTERESTING(
lDebug ?
"Sun(7)" :
"Freeware");
3440 else if (
INFILE(_LT_SUN_6)) {
3441 INTERESTING(
lDebug ?
"Sun(8)" :
"BSD-style");
3444 else if (
INFILE(_LT_SUN_NC)) {
3445 INTERESTING(
"Sun.Non-commercial");
3448 else if (
INFILE(_LT_SUNrestrict)) {
3449 INTERESTING(
"Sun.RESTRICTED");
3452 else if (
INFILE(_LT_SUN_BCLA_1) &&
INFILE(_TITLE_SUN_BCLA)) {
3453 INTERESTING(
lDebug ?
"BCLA(1)" :
"Sun-BCLA");
3456 else if (
INFILE(_LT_SUN_BCLA_2)) {
3457 INTERESTING(
lDebug ?
"BCLA(2)" :
"Sun-BCLA");
3460 else if (
INFILE(_LT_SUN_BCLAref)) {
3461 INTERESTING(
lDebug ?
"BCLA(ref)" :
"Sun-BCLA");
3464 else if (
INFILE(_LT_SUN_ENTITLE)) {
3465 INTERESTING(
lDebug ?
"Sun(entitlement)" :
"Sun");
3468 else if (
INFILE(_LT_SUN_ANYagreement)) {
3469 INTERESTING(
"Sun-EULA");
3472 else if (
INFILE(_LT_SUN_JAVA)) {
3473 INTERESTING(
"Sun-Java");
3476 else if (
INFILE(_LT_SUN_IP)) {
3477 INTERESTING(
"Sun-IP");
3481 else if (
INFILE(_LT_SUN_SCA)) {
3482 INTERESTING(
"Sun-SCA");
3485 else if (
INFILE(_LT_SUN_SCSLref)) {
3486 if (
INFILE(_TITLE_SCSL_V23)) {
3487 INTERESTING(
"SCSL-2.3");
3489 else if (
INFILE(_TITLE_SCSL_V30)) {
3490 INTERESTING(
"SCSL-3.0");
3493 INTERESTING(
"SCSL");
3497 else if (
INFILE(_TITLE_SUN_SCSL_TSA) &&
3498 INFILE(_LT_SUN_SCSL_TSA)) {
3499 if (
INFILE(_TITLE_TSA_10)) {
3500 INTERESTING(
"SCSL-TSA-1.0");
3503 INTERESTING(
"SCSL-TSA");
3507 else if (
INFILE(_LT_SUN_SISSLref1)
3508 ||
INFILE(_LT_SUN_SISSLref2)) {
3510 INTERESTING(
lDebug ?
"SISSL(ref#1)" : cp);
3514 else if (!lmem[_fREAL] &&
INFILE(_LT_SUN_PLref)) {
3515 INTERESTING(
lDebug ?
"Sun-PL(ref)" :
"SPL");
3518 else if (!lmem[_mSUN] &&
URL_INFILE(_URL_SUN_BINARY_V150)) {
3519 INTERESTING(
"Sun-BCLA-1.5.0");
3522 else if (!lmem[_mSUN] &&
URL_INFILE(_URL_SUN_BINARY)) {
3523 INTERESTING(
lDebug ?
"BCLA(url)" :
"Sun-BCLA");
3526 else if (!lmem[_mSUN] &&
INFILE(_LT_SUN_GRAPHICS)) {
3527 INTERESTING(
lDebug ?
"Sun(8)" :
"Sun");
3530 else if (!lmem[_mSUN] &&
INFILE(_LT_SUN_GRAPHICS)) {
3531 INTERESTING(
lDebug ?
"Sun(9)" :
"Sun");
3534 else if ((!lmem[_mSUN] &&
INFILE(_LT_SUN_SISSLref1)) ||
3535 INFILE(_LT_SUN_SISSLref2)) {
3537 INTERESTING(
lDebug ?
"SISSL(ref#2)" : cp);
3540 else if (!lmem[_mSUN] &&
URL_INFILE(_URL_SISSL)) {
3542 INTERESTING(
lDebug ?
"SISSL(url)" : cp);
3546 if (
INFILE(_LT_SUN_PRO)) {
3547 INTERESTING(
lDebug ?
"SunPro" :
"Freeware");
3554 if (
INFILE(_LT_IBM_RECIP)) {
3555 INTERESTING(
"IBM-reciprocal");
3557 else if (
INFILE(_LT_IBM_4)) {
3558 INTERESTING(
lDebug ?
"IBM(4)" :
"IBM-dhcp");
3560 else if (
INFILE(_LT_IBM_1)) {
3561 INTERESTING(
lDebug ?
"IBM(1)" :
"MIT-style");
3563 else if (
INFILE(_LT_IBM_3)) {
3564 INTERESTING(
lDebug ?
"IBM(3)" :
"MIT-style");
3566 else if (
INFILE(_LT_IBM_2)) {
3567 INTERESTING(
lDebug ?
"IBM(2)" :
"IBM");
3569 else if (
INFILE(_LT_IBM_OWNER)) {
3570 INTERESTING(
lDebug ?
"IBM(4)" :
"IBM");
3572 else if (
INFILE(_LT_IBM_JIKES)) {
3573 INTERESTING(
"IBM-JCL");
3575 else if (
INFILE(_LT_IBM_COURIER)) {
3576 INTERESTING(
"IBM-Courier");
3578 else if (
INFILE(_LT_IBM_EULA)) {
3579 INTERESTING(
lDebug ?
"IBM-EULA(1)" :
"IBM-EULA");
3581 else if (
INFILE(_PHR_IBM_EULA)) {
3582 INTERESTING(
lDebug ?
"IBM-EULA(2)" :
"IBM-EULA");
3584 else if (
INFILE(_LT_IBM_PIBS)) {
3585 INTERESTING(
"IBM-pibs");
3587 else if (
INFILE(_LT_IBM_AS_IS)) {
3588 INTERESTING(
"IBM-as-is");
3597 INTERESTING(
lDebug ?
"Motorola(1)" :
"Motorola");
3599 else if (
INFILE(_LT_MOT_2)) {
3600 INTERESTING(
lDebug ?
"Motorola(2)" :
"Motorola");
3603 if (
HASTEXT(_TITLE_MOTOROLA_MOBILE, 0)) {
3604 INTERESTING(
"Motorola-Mobile-SLA");
3610 if (
INFILE(_LT_JAVA_WSDL4J)) {
3611 INTERESTING(
"Java-WSDL4J");
3613 else if (
INFILE(_LT_JAVA_WSDL_SCHEMA)) {
3614 INTERESTING(
"Java-WSDL-Schema");
3616 else if (
INFILE(_LT_JAVA_WSDL_POLICY)) {
3617 INTERESTING(
"Java-WSDL-Policy");
3619 else if (
INFILE(_LT_JAVA_WSDL_ENUM)) {
3620 INTERESTING(
"Java-WSDL-Spec");
3622 else if (
INFILE(_LT_MULTICORP_1)) {
3623 INTERESTING(
lDebug ?
"Java-Multi(1)" :
"Java-Multi-Corp");
3625 else if (
INFILE(_LT_MULTICORP_2)) {
3626 INTERESTING(
lDebug ?
"Java-Multi(2)" :
"Java-Multi-Corp");
3632 if (
INFILE(_LT_MIBBLE)) {
3633 if (
INFILE(_TITLE_MIBBLE_28)) {
3634 INTERESTING(
"Mibble-2.8");
3637 INTERESTING(
"Mibble");
3645 INTERESTING(
"Comtrol");
3652 INTERESTING(
"Trolltech");
3654 else if (
INFILE(_LT_QT_COMMref)) {
3655 INTERESTING(
"Qt.Commercial");
3657 else if (
INFILE(_LT_QT_PROPRIETARY) ||
INFILE(_TITLE_QT_PROPRIETARY)) {
3658 INTERESTING(
"Qt.Commercial");
3664 if (!lmem[_mMPL] && !lmem[_mSUN] &&
INFILE(_LT_SNIA_PL)) {
3665 if (
INFILE(_TITLE_SNIA_V11)) {
3666 INTERESTING(
"SNIA-1.1");
3668 else if (
INFILE(_TITLE_SNIA_V10)) {
3669 INTERESTING(
"SNIA-1.0");
3672 INTERESTING(
"SNIA");
3675 else if (
INFILE(_LT_SNIAref)) {
3676 if (
INFILE(_TITLE_SNIA_V11)) {
3677 INTERESTING(
lDebug ?
"SNIA-1.1(ref)" :
"SNIA-1.1");
3679 else if (
INFILE(_TITLE_SNIA_V10)) {
3680 INTERESTING(
lDebug ?
"SNIA-1.0(ref)" :
"SNIA-1.0");
3683 INTERESTING(
lDebug ?
"SNIA(ref)" :
"SNIA");
3687 INTERESTING(
lDebug ?
"SNIA-1.1(url)" :
"SNIA-1.1");
3690 INTERESTING(
lDebug ?
"SNIA(url)" :
"SNIA");
3696 if (
HASTEXT(_TEXT_BEASYS, 0)) {
3698 INTERESTING(
lDebug ?
"BEA(1)" :
"BEA");
3700 else if (
INFILE(_LT_BEA_2)) {
3701 INTERESTING(
lDebug ?
"BEA(2)" :
"BEA");
3708 if (
HASTEXT(_TEXT_ADOBE_FRAME, REG_EXTENDED)) {
3709 if (
INFILE(_LT_ADOBE_1)) {
3710 INTERESTING(
lDebug ?
"Adobe(1)" :
"Adobe");
3712 else if (!lmem[_mMIT] &&
INFILE(_LT_ADOBE_2)) {
3713 INTERESTING(
lDebug ?
"Adobe(2)" :
"Adobe");
3715 else if (
INFILE(_LT_ADOBE_3)) {
3716 INTERESTING(
lDebug ?
"Adobe(3)" :
"Adobe");
3718 else if (
INFILE(_LT_ADOBE_4)) {
3719 INTERESTING(
lDebug ?
"Adobe(4)" :
"Adobe-EULA");
3721 else if (
INFILE(_LT_ADOBE_5)) {
3722 INTERESTING(
lDebug ?
"Adobe(5)" :
"Adobe-EULA");
3724 else if (
INFILE(_LT_ADOBE_6)) {
3725 INTERESTING(
lDebug ?
"Adobe(6)" :
"Adobe-EULA");
3727 else if (
INFILE(_LT_ADOBE_7)) {
3728 INTERESTING(
lDebug ?
"Adobe(7)" :
"Adobe-EULA");
3730 else if (
INFILE(_LT_FRAME)) {
3731 INTERESTING(
lDebug ?
"Adobe(Frame)" :
"Adobe");
3733 else if (
INFILE(_LT_ADOBE_SRC) ||
INFILE(_TITLE_ADOBE_SRC)) {
3734 INTERESTING(
lDebug ?
"Adobe(src)" :
"Adobe-2006");
3736 else if (
INFILE(_LT_ADOBE_DATA)) {
3737 INTERESTING(
lDebug ?
"Adobe(data)" :
"Adobe");
3739 else if (
INFILE(_LT_ADOBE_EULA)) {
3740 INTERESTING(
"Adobe-EULA");
3742 else if (
INFILE(_LT_ADOBE_AFM)) {
3743 INTERESTING(
"APAFML");
3745 else if (
HASTEXT(_TITLE_ADOBE_DNG, 0)) {
3746 INTERESTING(
"Adobe-DNG");
3748 else if (
INFILE(_LT_ADOBE_AFMPARSE_1) &&
INFILE(_LT_ADOBE_AFMPARSE_2)) {
3749 INTERESTING(
"Afmparse");
3751 else if (
INFILE(_LT_ADOBE_OTHER)) {
3752 INTERESTING(
lDebug ?
"Adobe(other)" :
"Adobe");
3754 else if (
INFILE(_LT_ADOBE_SUB)) {
3755 INTERESTING(
lDebug ?
"Adobe(sub)" :
"Adobe");
3762 if (
INFILE(_LT_DOCBOOK)) {
3763 if (
HASTEXT(_TEXT_DOCBOOK, 0)) {
3764 INTERESTING(
"DOCBOOK");
3766 else if (
HASTEXT(_TEXT_METADATA, 0)) {
3770 INTERESTING(
"DOCBOOK-style");
3778 INTERESTING(
"MPEG3-decoder");
3784 if (
INFILE(_LT_GOOGLE_1)) {
3785 INTERESTING(
lDebug ?
"Google(1)" :
"Google");
3787 else if (
INFILE(_LT_GOOGLE_2)) {
3788 INTERESTING(
lDebug ?
"Google(2)" :
"Google");
3794 if (
INFILE(_LT_MANDRIVA)) {
3795 INTERESTING(
"Mandriva");
3801 if (
INFILE(_LT_IRONDOC)) {
3802 INTERESTING(
"IronDoc");
3808 if (
INFILE(_LT_QUARTERDECK) &&
INFILE(_CR_QUARTERDECK)) {
3809 INTERESTING(
"QuarterDeck");
3819 INTERESTING(
"EBT-style");
3827 INTERESTING(
"SGML");
3833 if (
HASTEXT(_TEXT_LATEX, REG_EXTENDED)) {
3837 INTERESTING(
lDebug ?
"LPPL(1)" : cp);
3839 else if (
INFILE(_LT_LATEX)) {
3841 INTERESTING(
lDebug ?
"LPPL(2)" : cp);
3843 else if (
INFILE(_LT_LATEXPLref1) ||
INFILE(_LT_LATEXPLref2) ||
3844 INFILE(_LT_LATEXPLref3)) {
3846 INTERESTING(
lDebug ?
"LPPL(3)" : cp);
3848 else if (
INFILE(_LT_LATEXref1)) {
3850 INTERESTING(
lDebug ?
"LPPL(4)" : cp);
3852 else if (
INFILE(_LT_LATEXref2)) {
3854 INTERESTING(
lDebug ?
"LPPL(5)" : cp);
3856 else if (
INFILE(_LT_LATEXref3)) {
3858 INTERESTING(
lDebug ?
"LPPL(6)" : cp);
3860 else if (
INFILE(_LT_LATEXref4)) {
3862 INTERESTING(
lDebug ?
"LPPL(7)" : cp);
3864 else if (
INFILE(_LT_LATEXref5)) {
3866 INTERESTING(
lDebug ?
"LPPL(8)" : cp);
3870 INTERESTING(
lDebug ?
"LPPL(url)" : cp);
3878 if (
INFILE(_TITLE_QPL10_1) ||
INFILE(_TITLE_QPL10_2)) {
3879 INTERESTING(
"QPL-1.0");
3882 else if (
INFILE(_TITLE_QPL)) {
3891 if (
HASTEXT(_TEXT_GHOSTSCRIPT, 0)) {
3893 if (
INFILE(_TITLE_GS11)) {
3894 INTERESTING(
"Ghostscript-GPL-1.1");
3897 INTERESTING(
lDebug ?
"GS-GPL(1)" :
"Ghostscript-GPL");
3900 else if (
INFILE(_CR_ALADDIN) ||
INFILE(_CR_ARTOFCODE)) {
3902 INTERESTING(
"GNU-Ghostscript");
3905 INTERESTING(
lDebug ?
"GS-GPL(2)" :
"Ghostscript-GPL");
3907 else if (
INFILE(_LT_FREEPL) ||
INFILE(_LT_FREEPLref)) {
3908 INTERESTING(
lDebug ?
"Aladdin(Closed-Source!)" :
"Aladdin");
3909 if (
INFILE(_PHR_NOT_OPEN)) {
3910 INTERESTING(
lDebug ?
"Aladdin(Closed-Source!)" :
"Aladdin");
3911 lmem[_mALADDIN] = 1;
3914 INTERESTING(
lDebug ?
"Aladdin-Ghostscript" :
"Aladdin");
3917 else if (
INFILE(_LT_ALADDIN_RESTRICT)) {
3918 INTERESTING(
lDebug ?
"Aladdin(RESTRICTED)":
"Aladdin");
3921 else if (
INFILE(_LT_AFPL)) {
3922 INTERESTING(
"AFPL-Ghostscript");
3925 else if (
INFILE(_LT_FREEPLref_1)) {
3926 INTERESTING(
"Aladdin");
3928 else if (
INFILE(_LT_FREEPL) ||
INFILE(_LT_FREEPLref)) {
3929 INTERESTING(
"Free-PL");
3935 INTERESTING(
"IPTC");
3937 else if (
INFILE(_LT_IPTC_1) && mCR_IPTC()) {
3938 INTERESTING(
"IPTC");
3943 else if (
INFILE(_TITLE_MACROMEDIA_EULA)) {
3944 INTERESTING(
"MacroMedia-RPSL");
3949 else if (
INFILE(_LT_ONTOPIA) &&
INFILE(_TITLE_ONTOPIA)) {
3950 INTERESTING(
"Ontopia");
3956 if (
INFILE(_LT_ASCENDER_EULA) &&
INFILE(_TITLE_ASCENDER_EULA)) {
3957 INTERESTING(
"Ascender-EULA");
3963 if (
INFILE(_LT_ADAPTEC_OBJ)) {
3964 INTERESTING(
"Adaptec.RESTRICTED");
3966 else if (
INFILE(_CR_ADAPTEC) &&
INFILE(_LT_ADAPTEC_GPL)) {
3967 INTERESTING(
"Adaptec-GPL");
3973 if (
INFILE(_LT_PERL_1)) {
3974 INTERESTING(
lDebug ?
"Artistic(Perl#1)" :
"Artistic-1.0-Perl");
3976 INTERESTING(
"Dual-license");
3977 INTERESTING(
lDebug ?
"GPL(Perl#1)" :
"GPL-1.0-or-later");
3980 else if (
INFILE(_LT_PERL_2)) {
3981 INTERESTING(
lDebug ?
"Artistic(Perl#2)" :
"Artistic-1.0-Perl");
3983 INTERESTING(
"Dual-license");
3984 INTERESTING(
lDebug ?
"GPL(Perl#2)" :
"GPL-1.0-or-later");
3987 else if (
INFILE(_LT_PERL_3)) {
3988 if (
INFILE(_LT_Spencer_86_94_CLAUSE_1) &&
3989 HASTEXT(_LT_PNG_ZLIB_CLAUSE_1, 0) &&
3990 HASTEXT(_LT_PNG_ZLIB_CLAUSE_2, REG_EXTENDED)) {
3991 INTERESTING(
"Spencer-86");
3993 else if (!lmem[_fOPENLDAP] && !TRYGROUP(
famOPENLDAP)) {
3994 INTERESTING(
lDebug ?
"Artistic(Perl#3)" :
"Artistic-1.0");
4001 else if (
INFILE(_LT_PERLref1)) {
4002 INTERESTING(
lDebug ?
"Artistic(Perl-ref1)" :
"Artistic-1.0-Perl");
4004 INTERESTING(
"Dual-license");
4005 INTERESTING(
lDebug ?
"GPL(Perl-ref1)" :
"GPL-1.0-or-later");
4009 INTERESTING(
lDebug ?
"Artistic(Perl-ref2)" :
"Artistic-1.0-Perl");
4011 INTERESTING(
"Dual-license");
4012 INTERESTING(
lDebug ?
"GPL(Perl-ref2)" :
"GPL-1.0-or-later");
4015 else if (
INFILE(_LT_PERLref3)) {
4016 INTERESTING(
lDebug ?
"Artistic(Perl-ref3)" :
"Artistic-1.0-Perl");
4018 INTERESTING(
"Dual-license");
4019 INTERESTING(
lDebug ?
"GPL(Perl-ref3)" :
"GPL-1.0-or-later");
4022 else if (
INFILE(_LT_PERLref4)) {
4023 INTERESTING(
lDebug ?
"Artistic(Perl-ref4)" :
"Artistic-1.0-Perl");
4025 INTERESTING(
"Dual-license");
4026 INTERESTING(
lDebug ?
"GPL(Perl-ref4)" :
"GPL-1.0-or-later");
4029 else if (
INFILE(_LT_PERLref5)) {
4030 INTERESTING(
lDebug ?
"Artistic(Perl-ref5)" :
"Artistic-1.0-Perl");
4032 INTERESTING(
"Dual-license");
4033 INTERESTING(
lDebug ?
"GPL(Perl-ref5)" :
"GPL-1.0-or-later");
4036 else if (
INFILE(_TITLE_CLARTISTIC)) {
4037 INTERESTING(
"ClArtistic");
4040 else if (!lmem[_fREAL] && !
LVAL(_TEXT_GNU_LIC_INFO) &&
4045 if (
INFILE(_TITLE_OGTSL)) {
4046 INTERESTING(
"OGTSL");
4048 else if (!lmem[_mLIBRE] && !lmem[_fOPENLDAP] &&
4051 INTERESTING(
lDebug ?
"Artistic(v2.0#1)" :
"Artistic-2.0");
4053 else if (
INFILE(_PHR_Artistic_20)) {
4054 INTERESTING(
"Artistic-2.0");
4056 else if (
INFILE(_TITLE_NBPL_V10)) {
4057 INTERESTING(
"NBPL-1.0");
4058 lmem[_fARTISTIC] = 1;
4060 else if(
HASTEXT(_PHR_ARTISTIC_PERL, 0)) {
4061 INTERESTING(
"Artistic-1.0-Perl");
4062 lmem[_fARTISTIC] = 1;
4064 else if (
HASTEXT(_PHR_ARTISTIC_CLAUSE8, 0))
4066 INTERESTING(
"Artistic-1.0-cl8");
4067 lmem[_fARTISTIC] = 1;
4070 INTERESTING(
lDebug ?
"Artistic(v1.0#other)" :
"Artistic-1.0");
4071 lmem[_fARTISTIC] = 1;
4076 INTERESTING(
lDebug ?
"Artistic(v2.0#2)" :
"Artistic-2.0");
4079 INTERESTING(
lDebug ?
"Artistic(deb)" :
"Artistic-1.0");
4082 INTERESTING(
lDebug ?
"Artistic(url)" :
"Artistic-1.0");
4088 if (
INFILE(_TITLE_LDPL20)) {
4089 INTERESTING(
"LDPL-2.0");
4091 else if (
INFILE(_TITLE_LDPL1A)) {
4092 INTERESTING(
"LDPL-1A");
4094 else if (
INFILE(_LT_LDPL)) {
4095 INTERESTING(
lDebug ?
"LDPL(1)" :
"LDPL");
4097 else if (
INFILE(_LT_LDPLref1)) {
4098 INTERESTING(
lDebug ?
"LDPL(ref1)" :
"LDPL");
4100 else if (
INFILE(_LT_LDPLref2)) {
4101 INTERESTING(
lDebug ?
"LDPL(ref2)" :
"LDPL");
4103 else if (
INFILE(_LT_LDPLref3)) {
4104 INTERESTING(
lDebug ?
"LDPL(ref3)" :
"LDPL");
4109 else if (
INFILE(_LT_SPI)) {
4110 if (
INFILE(_LT_MANPAGE)) {
4111 INTERESTING(
"GNU-Manpages");
4113 else if (!lmem[_fGPL]) {
4115 INTERESTING(
"Debian-SPI");
4118 INTERESTING(
"Debian-SPI-style");
4122 else if (
INFILE(_LT_GPDLref)) {
4123 INTERESTING(
lDebug ?
"GPDL(1)" :
"GPDL");
4125 else if (
INFILE(_TITLE_GPDL)) {
4126 INTERESTING(
lDebug ?
"GPDL(2)" :
"GPDL");
4128 else if (
INFILE(_LT_FREEBSD_DOC) &&
INFILE(_TITLE_FREEBSD_DOC)) {
4129 INTERESTING(
"FreeBSD-Doc");
4131 else if (
INFILE(_LT_LINUX_HOWTO)) {
4132 INTERESTING(
"Linux-HOWTO");
4134 else if (
INFILE(_LT_LINUXDOC)) {
4135 INTERESTING(
"LinuxDoc");
4137 else if (
INFILE(_LT_IEEE_DOC)) {
4138 INTERESTING(
"IEEE-Doc");
4145 if (
INFILE(_CR_UWASHINGTON)) {
4146 INTERESTING(
"U-Wash.Free-Fork");
4149 INTERESTING(
lDebug ?
"U-Wash-style(1)" :
"U-Wash-style");
4152 else if (
INFILE(_LT_UW2)) {
4153 if (
INFILE(_CR_UWASHINGTON)) {
4154 INTERESTING(
lDebug ?
"U-Wash(2)" :
"U-Washington");
4157 INTERESTING(
lDebug ?
"U-Wash-style(2)" :
"U-Wash-style");
4160 else if (
INFILE(_LT_UW3)) {
4161 if (
INFILE(_CR_UWASHINGTON)) {
4162 INTERESTING(
lDebug ?
"U-Wash(3)" :
"U-Washington");
4165 INTERESTING(
lDebug ?
"U-Wash-style(3)" :
"U-Wash-style");
4168 else if (
INFILE(_LT_UW4)) {
4169 if (
INFILE(_CR_UWASHINGTON)) {
4170 INTERESTING(
lDebug ?
"U-Wash(4)" :
"U-Washington");
4173 INTERESTING(
lDebug ?
"U-Wash-style(4)" :
"U-Wash-style");
4180 if (
INFILE(_LT_WU_FTPD)) {
4182 INTERESTING(
lDebug ?
"Wash-U(1)" :
"Wash-U-StLouis");
4185 INTERESTING(
"Wash-U-style");
4188 else if (
INFILE(_LT_WU_FTPDref)) {
4189 INTERESTING(
lDebug ?
"Wash-U(ref)" :
"Wash-U-StLouis");
4194 else if (
INFILE(_LT_DELAWARE)) {
4195 if (
INFILE(_CR_DELAWARE)) {
4196 INTERESTING(
"U-Del");
4199 INTERESTING(
"U-Del-style");
4206 if (
INFILE(_CR_PRINCETON)) {
4207 INTERESTING(
"Princeton");
4210 INTERESTING(
"Princeton-style");
4216 else if (
INFILE(_LT_UMICHIGAN_1)) {
4217 if (
INFILE(_CR_MICHIGAN)) {
4218 INTERESTING(
lDebug ?
"U-Mich(1)" :
"U-Michigan");
4221 INTERESTING(
lDebug ?
"U-Mich-style(1)" :
"U-Mich-style");
4224 else if (
INFILE(_LT_UMICHIGAN_2)) {
4225 if (
INFILE(_CR_MICHIGAN)) {
4226 INTERESTING(
lDebug ?
"U-Mich(2)" :
"U-Michigan");
4229 INTERESTING(
lDebug ?
"U-Mich-style(2)" :
"U-Mich-style");
4235 else if (
INFILE(_LT_USC_NC)) {
4237 INTERESTING(
"USC.Non-commercial");
4240 INTERESTING(
lDebug ?
"NonC(5)" :
"Non-commercial");
4243 else if (
INFILE(_LT_USC)) {
4248 INTERESTING(
"USC-style");
4255 INTERESTING(
"UCAR");
4259 INTERESTING(
"UCAR");
4262 INTERESTING(
"UCAR-style");
4268 else if (
INFILE(_LT_STANFORD)) {
4269 if (
INFILE(_CR_STANFORD)) {
4270 INTERESTING(
"Stanford");
4273 INTERESTING(
"Stanford-style");
4279 else if (
INFILE(_LT_CAMBRIDGE)) {
4281 INTERESTING(
"MSNTP");
4283 else if (
INFILE(_CR_CAMBRIDGE_1) ||
INFILE(_CR_CAMBRIDGE_2)) {
4284 INTERESTING(
"U-Cambridge");
4287 INTERESTING(
"U-Cambridge-style");
4293 else if (
INFILE(_CR_COLUMBIA) &&
INFILE(_LT_COLUMBIA)) {
4294 INTERESTING(
"U-Columbia");
4300 if (
INFILE(_CR_NOTREDAME)) {
4301 INTERESTING(
lDebug ?
"ND(1)" :
"NotreDame");
4304 INTERESTING(
lDebug ?
"ND-style(1)" :
"NotreDame-style");
4307 else if (
INFILE(_LT_ND_2)) {
4308 if (
INFILE(_CR_NOTREDAME)) {
4309 INTERESTING(
lDebug ?
"ND(2)" :
"NotreDame");
4312 INTERESTING(
lDebug ?
"ND-style(2)" :
"NotreDame-style");
4315 else if (
INFILE(_LT_ND_3)) {
4316 if (
INFILE(_CR_NOTREDAME)) {
4317 INTERESTING(
lDebug ?
"ND(3)" :
"NotreDame");
4320 INTERESTING(
lDebug ?
"ND-style(3)" :
"NotreDame-style");
4327 if (!lmem[_mMIT] &&
INFILE(_LT_BOOST_2)) {
4329 INTERESTING(
lDebug ?
"Boost(2)" :
"BSL-1.0");
4332 INTERESTING(
lDebug ?
"Boost-style(2)" :
"BSL-style");
4335 else if (
INFILE(_LT_BOOSTref1)) {
4336 if (
INFILE(_TITLE_BOOST10) ||
INFILE(_PHR_BOOST_V10) ||
4338 INTERESTING(
lDebug ?
"Boost1.0(ref)" :
"BSL-1.0");
4341 INTERESTING(
lDebug ?
"Boost(ref)" :
"BSL-1.0");
4344 else if (
INFILE(_LT_BOOST_GRAPH)) {
4345 INTERESTING(
lDebug ?
"Boost(graph)" :
"BSL-1.0");
4347 else if (
INFILE(_LT_BOOST_LAMBDA)) {
4348 INTERESTING(
lDebug ?
"Boost(lambda)" :
"BSL-1.0");
4351 INTERESTING(
lDebug ?
"Boost-1.0(ref)" :
"BSL-1.0");
4356 else if (
INFILE(_LT_SLEEPYCAT_NC)) {
4357 INTERESTING(
"Sleepycat.Non-commercial");
4366 else if (
INFILE(_PHR_Vim)) {
4374 INTERESTING(
"Vixie-license");
4380 if (
INFILE(_LT_YAHOO_1)) {
4381 if (
INFILE(_LT_YAHOO_BINARY)) {
4382 INTERESTING(
"Yahoo-EULA");
4388 if(
INFILE(_TITLE_YPL_V10)) {
4389 INTERESTING(
"YPL-1.0");
4391 else if(
INFILE(_TITLE_YPL_V11)) {
4392 INTERESTING(
"YPL-1.1");
4398 if (
INFILE(_LT_PUBLIC_USE)) {
4399 if (
INFILE(_TITLE_PUBUSE_V10)) {
4400 INTERESTING(
"Public-Use-1.0");
4403 INTERESTING(
"Public-Use");
4410 if (
INFILE(_TEXT_APPLE)) {
4411 if (
INFILE(_LT_MIT_12)) {
4412 INTERESTING(
lDebug ?
"Apple MIT License" :
"AML");
4414 else if (
INFILE(_LT_APPLE_1)) {
4415 INTERESTING(
lDebug ?
"Apple(1)" :
"Apple");
4417 else if (
INFILE(_LT_APPLE_2)) {
4418 INTERESTING(
lDebug ?
"Apple(2)" :
"Apple");
4420 else if (
INFILE(_LT_APPLE_3)) {
4421 INTERESTING(
lDebug ?
"Apple(3)" :
"Apple");
4423 else if (
INFILE(_LT_APPLE_4)) {
4424 INTERESTING(
lDebug ?
"Apple(4)" :
"Apple-EULA");
4426 else if (
INFILE(_LT_APPLE_FONTFORGE)) {
4427 INTERESTING(
"Apple.FontForge");
4429 else if (
INFILE(_LT_APPLE_SAMPLE)) {
4430 INTERESTING(
"Apple.Sample");
4432 else if (
INFILE(_LT_APSLref1) ||
INFILE(_LT_APSLref2) ||
4434 if (
INFILE(_TITLE_APSL20)) {
4435 INTERESTING(
"APSL-2.0");
4437 else if (
INFILE(_TITLE_Ferris)) {
4438 INTERESTING(
lDebug ?
"Ferris-1.2" :
"APSL-style");
4440 else if (
INFILE(_TITLE_APSL_style)) {
4441 INTERESTING(
"APSL-style");
4443 else if (
INFILE(_TITLE_APSL12)) {
4444 INTERESTING(
"APSL-1.2");
4446 else if (
INFILE(_TITLE_APSL11)) {
4447 INTERESTING(
"APSL-1.1");
4449 else if (
INFILE(_TITLE_APSL10)) {
4450 INTERESTING(
"APSL-1.0");
4453 INTERESTING(
"APSL");
4456 else if (
INFILE(_LT_ACDL)) {
4457 INTERESTING(
"ACDL");
4459 else if (
INFILE(_TITLE_APPLE_SLA)) {
4460 INTERESTING(
lDebug ?
"Apple(SLA)" :
"Apple-EULA");
4463 INTERESTING(
lDebug ?
"APSL(url)" :
"APSL");
4466 INTERESTING(
lDebug ?
"ACDL(url)" :
"ACDL");
4473 if (
INFILE(_LT_REDLAND)) {
4474 INTERESTING(
"Redland");
4480 if (
INFILE(_LT_RH_PKGS)) {
4481 if (
INFILE(_LT_RH_NONCOMMERCIAL)) {
4482 INTERESTING(
lDebug ?
"RH(NC)" :
"RedHat.Non-commercial");
4485 else if (
INFILE(_LT_RH_FEDORA)) {
4486 INTERESTING(
lDebug ?
"Fedora(1)" :
"Fedora");
4490 else if (
INFILE(_LT_RH_REDHAT)) {
4491 INTERESTING(
lDebug ?
"RH(2)" :
"RedHat");
4494 else if (
INFILE(_LT_RH_SPECIFIC)) {
4495 INTERESTING(
lDebug ?
"RH(4)" :
"RedHat-specific");
4498 else if (
INFILE(_LT_FEDORA)) {
4499 INTERESTING(
lDebug ?
"Fedora(2)" :
"Fedora");
4502 else if (
INFILE(_LT_FEDORA_CLA) ||
INFILE(_TITLE_FEDORA_CLA)) {
4503 INTERESTING(
"FedoraCLA");
4506 else if (
INFILE(_CR_REDHAT)) {
4508 INTERESTING(
lDebug ?
"RH(1)" :
"RedHat");
4511 else if (
INFILE(_LT_RH_EULA)) {
4512 INTERESTING(
"RedHat-EULA");
4521 INTERESTING(
"YaST.SuSE");
4523 else if (
INFILE(_TITLE_NOVELL_EULA)) {
4524 INTERESTING(
"Novell-EULA");
4526 else if (
INFILE(_TITLE_UL_EULA)) {
4527 INTERESTING(
"UnitedLinux-EULA");
4529 else if (
INFILE(_LT_NOVELL)) {
4530 INTERESTING(
"Novell");
4533 else if (
INFILE(_LT_NOVELL_IP_1)) {
4534 INTERESTING(
lDebug ?
"Novell-IP(1)" :
"Novell-IP");
4537 else if (
INFILE(_LT_NOVELL_IP_2)) {
4538 INTERESTING(
lDebug ?
"Novell-IP(2)" :
"Novell-IP");
4546 INTERESTING(
"Epson-PL");
4548 else if (
INFILE(_LT_EPSON_EULA) &&
INFILE(_TITLE_EPSON_EULA)) {
4549 INTERESTING(
"Epson-EULA");
4555 if (
INFILE(_LT_OPENPUBL_1) ||
INFILE(_LT_OPENPUBL_2)) {
4556 if (
INFILE(_TITLE_OPENPUBL04)) {
4557 INTERESTING(
"Open-PL-0.4");
4560 INTERESTING(
"Open-PL-1.0");
4562 else if (
INFILE(_TITLE_OPENPUBL)) {
4563 INTERESTING(
"Open-PL");
4566 INTERESTING(
"Open-PL-style");
4569 else if (
INFILE(_LT_OPENPUBLref)) {
4570 INTERESTING(
lDebug ?
"Open-PL(ref)" :
"Open-PL");
4576 if (
INFILE(_LT_FREEART_V10)) {
4577 INTERESTING(
"FAL-1.0");
4579 else if (
INFILE(_LT_FREEART_V13)) {
4580 INTERESTING(
"FAL-1.3");
4587 INTERESTING(
lDebug ?
"RSA(4)" :
"RSA-MD");
4589 else if (
INFILE(_LT_RSA_5)) {
4590 INTERESTING(
lDebug ?
"RSA(5)" :
"RSA-DNS");
4592 else if (
INFILE (_LT_RSA_CRYPTOKI_1) &&
INFILE(_LT_RSA_CRYPTOKI_2)){
4593 INTERESTING(
"RSA-Cryptoki");
4595 else if (
INFILE(_LT_RSA_3)) {
4596 INTERESTING(
lDebug ?
"RSA(3)" :
"RSA-Security");
4598 else if (
INFILE(_CR_RSA)) {
4600 INTERESTING(
lDebug ?
"RSA(1)" :
"RSA-Security");
4602 else if (
INFILE(_LT_RSA_2)) {
4603 INTERESTING(
lDebug ?
"RSA(2)" :
"RSA-Security");
4613 INTERESTING(
"AGFA.RESTRICTED");
4615 else if (
INFILE(_LT_AGFA_EULA)) {
4616 INTERESTING(
"AGFA-EULA");
4621 if (
INFILE(_LT_BH_FONT)) {
4623 INTERESTING(
"BH-Font");
4626 INTERESTING(
"BH-Font-style");
4633 if (
INFILE(_LT_BIZNET)) {
4634 if (
INFILE(_CR_BIZNET)) {
4635 INTERESTING(
"BIZNET");
4638 INTERESTING(
"BIZNET-style");
4645 if (
INFILE(_LT_BITSTREAM_1)) {
4646 INTERESTING(
lDebug ?
"Bitstream(2)" :
"Bitstream");
4648 else if (
INFILE(_LT_BITSTREAM_2)) {
4649 INTERESTING(
lDebug ?
"Bitstream(3)" :
"Bitstream");
4655 if (
INFILE(_LT_LARABIE_EULA) &&
INFILE(_TITLE_LARABIE_EULA)) {
4656 INTERESTING(
"Larabie-EULA");
4662 if (
INFILE(_LT_BAEKMUK_1)) {
4663 INTERESTING(
"Baekmuk-Font");
4665 else if (
INFILE(_LT_BAEKMUK_2)) {
4666 INTERESTING(
"Baekmuk.Hwan");
4672 if (
INFILE(_LT_IPA_EULA)) {
4673 INTERESTING(
"IPA-Font-EULA");
4679 if (
INFILE(_LT_ARPHIC)) {
4680 if (
INFILE(_CR_ARPHIC)) {
4681 INTERESTING(
"Arphic-Font-PL");
4684 INTERESTING(
"Arphic-style");
4694 INTERESTING(
lDebug ?
"ATT(1)" :
"ATT");
4697 INTERESTING(
lDebug ?
"ATT-style(1)" :
"ATT-style");
4700 else if (
INFILE(_LT_ATT_2)) {
4701 if (!lmem[_fBSD] &&
INFILE(_CR_BSDCAL)) {
4702 INTERESTING(
lDebug ?
"BSD(14)" :
"BSD");
4706 INTERESTING(
lDebug ?
"ATT(2)" :
"ATT");
4709 INTERESTING(
lDebug ?
"ATT-style(2)" :
"ATT-style");
4712 else if (
INFILE(_LT_ATT_SRC_1) ||
INFILE(_LT_ATT_SRC_2)) {
4713 if (
INFILE(_TITLE_ATT_SRC_12D)) {
4714 INTERESTING(
"ATT-Source-1.2d");
4716 else if (
INFILE(_TITLE_ATT_SRC_10)) {
4717 INTERESTING(
"ATT-Source-1.0");
4720 INTERESTING(
"ATT-Source");
4723 else if (
INFILE(_LT_ATT_NONCOMMERC1) ||
INFILE(_LT_ATT_NONCOMMERC2)) {
4724 INTERESTING(
"ATT.Non-commercial");
4730 if (
INFILE(_TITLE_SGI_V10)) {
4731 INTERESTING(
"SGI-B-1.0");
4733 else if (
INFILE(_TITLE_SGI_V11)) {
4734 INTERESTING(
"SGI-B-1.1");
4736 else if (
INFILE(_TITLE_SGI_V20)) {
4737 INTERESTING(
"SGI-B-2.0");
4739 else if (
INFILE(_LT_SGI_1)) {
4740 if (
HASTEXT(_PHR_SGI_LIBTIFF, REG_EXTENDED)) {
4741 INTERESTING(
"libtiff");
4743 else if (
HASTEXT(_PHR_LIBTIFF_STYLE, REG_EXTENDED)) {
4744 INTERESTING(
"libtiff-style");
4747 else if (
INFILE(_LT_SGI_2)) {
4748 if (
INFILE(_LT_SGI_V10)) {
4749 INTERESTING(
"SGI-B-1.0");
4751 else if (
INFILE(_LT_SGI_V11)) {
4752 INTERESTING(
"SGI-B-1.1");
4754 else if (
INFILE(_LT_SGI_V20)) {
4755 INTERESTING(
"SGI-B-2.0");
4761 else if (
INFILE(_LT_SGI_1)) {
4763 INTERESTING(
"SGI-style");
4766 else if (
INFILE(_LT_SGI_FREEW)) {
4767 INTERESTING(
"SGI-Freeware");
4769 else if (
INFILE(_LT_SGI_GLX)) {
4770 if (
INFILE(_TITLE_SGI_GLX_V10)) {
4771 INTERESTING(
lDebug ?
"SGI_GLX(1.0)" :
"SGI_GLX-1.0");
4774 INTERESTING(
"SGI_GLX");
4778 if (
INFILE(_TITLE_SGI_GLX_V10)) {
4779 INTERESTING(
lDebug ?
"SGI_GLX(10ref)" :
"SGI_GLX-1.0");
4782 INTERESTING(
lDebug ?
"SGI_GLX(ref)" :
"SGI_GLX");
4785 else if (
INFILE(_LT_SGI_PROPRIETARY) &&
INFILE(_CR_SGI)) {
4786 INTERESTING(
"SGI-Proprietary");
4793 if (
INFILE(_LT_GLIDE_3DFX)) {
4794 INTERESTING(
"Glide");
4796 else if (
INFILE(_LT_GLIDE_GPL)) {
4797 INTERESTING(
"3DFX-PL");
4803 else if (
INFILE(_LT_NVIDIA_EULA_3)) {
4804 INTERESTING(
lDebug ?
"Nvidia(1)" :
"Nvidia-EULA-a");
4807 INTERESTING(
lDebug ?
"Nvidia(2)" :
"Nvidia");
4809 else if (
INFILE(_LT_NVIDIA_EULA_2)) {
4810 INTERESTING(
lDebug ?
"Nvidia(3)" :
"Nvidia-EULA-b");
4812 else if (
INFILE(_LT_NVIDIA_EULA_1) ||
INFILE(_TITLE_NVIDIA)) {
4813 INTERESTING(
lDebug ?
"Nvidia(4)" :
"Nvidia-EULA-b");
4815 else if (
INFILE(_LT_NVIDIA_1)) {
4816 INTERESTING(
lDebug ?
"Nvidia(5)" :
"Nvidia");
4821 else if (
INFILE(_TITLE_ATI_EULA) &&
INFILE(_LT_ATI_EULA)) {
4822 INTERESTING(
"ATI-EULA");
4827 else if (
INFILE(_TITLE_AGERE_EULA) &&
INFILE(_LT_AGERE_EULA)) {
4828 INTERESTING(
"Agere-EULA");
4834 if (
INFILE(_TITLE_KDAB_EULA)) {
4835 if (
INFILE(_LT_KDAB_1)) {
4836 INTERESTING(
lDebug ?
"KDAB(1)" :
"KD-Tools-EULA");
4838 if (
INFILE(_LT_KDAB_2)) {
4839 INTERESTING(
lDebug ?
"KDAB(2)" :
"KD-Tools-EULA");
4853 if (
INFILE(_LT_BROADCOM_EULA) &&
INFILE(_CR_BROADCOM)) {
4854 INTERESTING(
"Broadcom-EULA");
4860 if (
INFILE(_LT_DARPA_COUGAAR_1)) {
4861 INTERESTING(
"DARPA-Cougaar");
4863 else if (
INFILE(_LT_DARPA)) {
4864 INTERESTING(
"DARPA");
4870 if (
INFILE(_LT_TEKTRONIX)) {
4871 if (
INFILE(_CR_TEKTRONIX)) {
4872 INTERESTING(
"Tektronix");
4875 INTERESTING(
"Tektronix-style");
4883 INTERESTING(
"Cadence");
4889 if (
INFILE(_LT_OPENMKT)) {
4890 INTERESTING(
"OpenMarket");
4896 if (!lmem[_fUNICODE]) {
4897 if (
INFILE(_TITLE_UNICODE)) {
4898 INTERESTING(
lDebug ?
"Unicode(4)" :
"Unicode");
4900 else if (
INFILE(_LT_UNICODE_1) &&
INFILE(_CR_UNICODE)) {
4901 INTERESTING(
lDebug ?
"Unicode(1)" :
"Unicode");
4903 else if (
INFILE(_LT_UNICODE_2)) {
4904 INTERESTING(
lDebug ?
"Unicode(2)" :
"Unicode");
4906 else if (
INFILE(_LT_UNICODE_3)) {
4907 INTERESTING(
lDebug ?
"Unicode(3)" :
"Unicode");
4909 else if (
INFILE(_LT_UNICODE_4)) {
4910 INTERESTING(
lDebug ?
"Unicode(4)" :
"Unicode-TOU");
4913 INTERESTING(
lDebug ?
"Unicode(5)" :
"Unicode-TOU");
4915 else if (
INFILE(_TITLE_UNICODE_TOU) &&
INFILE(_LT_UNICODE_TOU)) {
4916 INTERESTING(
"Unicode-TOU");
4924 INTERESTING(
"SW-Research");
4930 if (
INFILE(_LT_MITRE_1)) {
4932 INTERESTING(
lDebug ?
"MitreCVW(1)" :
"MitreCVW");
4934 else if (
INFILE(_TITLE_CVW)) {
4935 INTERESTING(
lDebug ?
"MitreCVW(2)" :
"MitreCVW");
4938 INTERESTING(
"MitreCVW-style");
4941 else if (
INFILE(_LT_MITRE_2)) {
4942 INTERESTING(
lDebug ?
"Mitre(2)" :
"Mitre");
4948 if (
INFILE(_LT_JABBER_1)) {
4949 if (
INFILE(_TITLE_MOTOSOTO091)) {
4950 INTERESTING(
"Motosoto");
4952 else if (
INFILE(_TITLE_JABBER)) {
4953 INTERESTING(
"Jabber");
4956 else if (
INFILE(_LT_JABBER_2)) {
4957 if (
INFILE(_TITLE_JABBER_V10)) {
4958 INTERESTING(
lDebug ?
"Jabber(1.0)" :
"Jabber-1.0");
4961 INTERESTING(
lDebug ?
"Jabber(2)" :
"Jabber");
4965 INTERESTING(
lDebug ?
"Jabber(url)" :
"Jabber");
4973 if (
INFILE(_TITLE_IBM_PL20)) {
4974 INTERESTING(
"IPL-2.0");
4976 else if (
INFILE(_TITLE_IBM_PL10)) {
4977 INTERESTING(
"IPL-1.0");
4979 else if (
INFILE(_TITLE_IBM_PL)) {
4982 else if (
INFILE(_TITLE_OpenGroup)) {
4983 INTERESTING(
"OpenGroup");
4985 else if (
INFILE(_TITLE_EPL10)) {
4986 INTERESTING(
lDebug ?
"Eclipse(v.0#1)" :
"EPL-1.0");
4989 else if (
INFILE(_TITLE_EPL20)) {
4990 INTERESTING(
lDebug ?
"Eclipse(v.2#1)" :
"EPL-2.0");
4994 INTERESTING(
lDebug ?
"Eclipse(#1)" :
"EPL");
4997 else if (
INFILE(_TITLE_LUCENT102)) {
4998 INTERESTING(
"LPL-1.02");
5000 else if (
INFILE(_TITLE_LUCENT10)) {
5001 INTERESTING(
"LPL-1.0");
5005 INTERESTING(
lDebug ?
"CPL(#1)" : cp);
5008 else if (
INFILE(_LT_LPL_102)) {
5009 INTERESTING(
"LPL-1.02");
5011 else if (!lmem[_fREAL] &&
INFILE(_LT_CPLref1) &&
NOT_INFILE(_TITLE_EPL10)) {
5013 INTERESTING(
lDebug ?
"CPL(ref)" : cp);
5017 INTERESTING(
lDebug ?
"CPL(url)" : cp);
5019 else if (
INFILE(_PHR_CPL_05)) {
5020 INTERESTING(
lDebug ?
"CPL(0.5)" :
"CPL-0.5");
5022 else if (
INFILE(_PHR_CPL_10)) {
5023 INTERESTING(
lDebug ?
"CPL(0.5)" :
"CPL-1.0");
5025 else if (
INFILE(_LT_IBM_PLref1)) {
5026 INTERESTING(
lDebug ?
"IBM-PL(ref)" :
"IPL");
5029 INTERESTING(
lDebug ?
"IBM-PL(url)" :
"IPL");
5034 if (
INFILE(_LT_EPL20ref_1)) {
5035 INTERESTING(
lDebug ?
"Eclipse(ref#2)" :
"EPL-2.0");
5037 else if (
INFILE(_LT_EPL10ref_1) ||
INFILE(_LT_EPL10ref_2) ||
HASTEXT(_LT_EPL10ref_3, REG_EXTENDED)) {
5038 INTERESTING(
lDebug ?
"Eclipse(ref#2)" :
"EPL-1.0");
5040 else if (
INFILE(_LT_EPLref)) {
5041 if (
INFILE(_TITLE_EPL10)) {
5042 INTERESTING(
lDebug ?
"Eclipse(v.0#2)" :
"EPL-1.0");
5044 else if (
INFILE(_TITLE_EPL20)) {
5045 INTERESTING(
lDebug ?
"Eclipse(v.2#2)" :
"EPL-2.0");
5048 INTERESTING(
lDebug ?
"Eclipse(#2)" :
"EPL");
5051 else if (
INFILE(_LT_EPL10ref_1)) {
5052 INTERESTING(
lDebug ?
"Eclipse(ref#2)" :
"EPL-1.0");
5055 if (
INFILE(_TITLE_EPL10ref_1)) {
5056 INTERESTING(
lDebug ?
"Eclipse(v1.0#2)" :
"EPL-1.0");
5058 if (
INFILE(_TITLE_EPL20ref_1)) {
5059 INTERESTING(
lDebug ?
"Eclipse(v1.0#2)" :
"EPL-2.0");
5067 if (
INFILE(_LT_SYBASE)) {
5068 if (
INFILE(_TITLE_SYBASE10)) {
5069 INTERESTING(
"Watcom-1.0");
5072 INTERESTING(
"Watcom");
5080 if (
INFILE(_TITLE_RICOH10)) {
5081 INTERESTING(
"RSCPL");
5089 if (
INFILE(_TITLE_OCLC20)) {
5090 INTERESTING(
"OCLC-2.0");
5092 else if (
INFILE(_TITLE_OCLC10)) {
5093 INTERESTING(
"OCLC-1.0");
5096 INTERESTING(
"OCLC");
5104 INTERESTING(
"ECL-1.0");
5107 else if (
INFILE(_LT_ECL2)) {
5108 INTERESTING(
"ECL-2.0");
5111 else if (
INFILE(_LT_ECL)) {
5112 INTERESTING(
lDebug ?
"ECL(1)" :
"ECL-1.0");
5120 if (
INFILE(_TITLE_CONDOR_V10)) {
5121 INTERESTING(
"Condor-1.0");
5122 }
else if (
INFILE(_TITLE_CONDOR_V11)) {
5123 INTERESTING(
"Condor-1.1");
5126 INTERESTING(
"EUDatagrid");
5130 INTERESTING(
"EUDatagrid");
5136 if (
INFILE(_LT_ADAPTIVE)) {
5137 if (
INFILE(_TITLE_ADAPTIVE10)) {
5138 INTERESTING(
"APL-1.0");
5149 if (!lmem[_mGSOAP] &&
INFILE(_LT_GSOAPref13)) {
5150 INTERESTING(
"gSOAP-1.3b");
5152 else if (!lmem[_mGSOAP] &&
INFILE(_LT_GSOAPref)) {
5153 INTERESTING(
"gSOAP");
5160 if (
INFILE(_TITLE_CA11)) {
5161 INTERESTING(
"CATOSL-1.1");
5167 else if (
INFILE(_TITLE_CA)) {
5168 INTERESTING(
"CATOSL");
5174 if (
INFILE(_LT_FRAMEWORX)) {
5175 if (
INFILE(_TITLE_FRAMEWORX10)) {
5176 INTERESTING(
"Frameworx-1.0");
5179 INTERESTING(
"Frameworx");
5187 if (
INFILE(_TITLE_NASA13)) {
5188 INTERESTING(
"NASA-1.3");
5191 INTERESTING(
"NASA");
5198 if (
INFILE(_LT_FREETYPE)) {
5199 if (
INFILE(_TITLE_CATHARON)) {
5200 INTERESTING(
lDebug ?
"Catharon(1)" :
"Catharon");
5202 else if (
INFILE(_CR_CATHARON)) {
5203 INTERESTING(
lDebug ?
"Catharon(2)" :
"Catharon");
5205 else if (
INFILE(_TITLE_FREETYPE)) {
5209 INTERESTING(
"FTL-style");
5212 else if (
INFILE(_LT_FTL)) {
5218 else if (
INFILE(_LT_CATHARON)) {
5219 INTERESTING(
lDebug ?
"Catharon(3)" :
"Catharon");
5221 else if (
INFILE(_LT_FREETYPEref)) {
5222 INTERESTING(
lDebug ?
"FTL(ref)" :
"FTL");
5228 if (
INFILE(_LT_EIFFEL)) {
5229 if (
INFILE(_TITLE_EIFFEL2)) {
5230 INTERESTING(
"EFL-2.0");
5232 else if (
INFILE(_TITLE_EIFFEL1)) {
5233 INTERESTING(
"EFL-1.0");
5239 else if (
INFILE(_LT_EIFFEL_20)) {
5240 INTERESTING(
"EFL-2.0");
5242 else if (
INFILE(_LT_EIFFEL_1)) {
5249 if (!lmem[_fGPL] && (
INFILE(_LT_BISON) ||
INFILE(_LT_BISONref))) {
5250 if (
INFILE(_TITLE_NETHACK)) {
5251 INTERESTING(
"NGPL");
5254 INTERESTING(
"BISON");
5261 if (
INFILE(_LT_OSL_BAD)) {
5262 cp = (
INFILE(_TITLE_AFL) ? AFLVERS() : OSLVERS());
5263 INTERESTING(
lDebug?
"OSL(bad)" : cp);
5265 else if (
INFILE(_LT_OSLref1)) {
5267 INTERESTING(
lDebug?
"OSL(ref1)" : cp);
5269 else if (
INFILE(_LT_OSLref2)) {
5271 INTERESTING(
lDebug?
"OSL(ref2)" : cp);
5273 else if (
INFILE(_LT_AFL)) {
5274 cp = (
INFILE(_TITLE_AFL) ? AFLVERS() : OSLVERS());
5275 INTERESTING(
lDebug?
"AFL#1" : cp);
5279 INTERESTING(
lDebug?
"OSL(T2.1)" : cp);
5281 else if (
INFILE(_TITLE_AFL21)) {
5283 INTERESTING(
lDebug?
"AFL(T2.1)" : cp);
5287 INTERESTING(
lDebug?
"OSL(T3.0)" : cp);
5289 else if (
INFILE(_TITLE_AFL30)) {
5291 INTERESTING(
lDebug?
"AFL(T3.0)" : cp);
5294 INTERESTING(
lDebug ?
"OSL_v1.1(url)" :
"OSL-1.1");
5297 INTERESTING(
lDebug ?
"OSL(url)" :
"OSL");
5300 INTERESTING(
lDebug ?
"AFL(url)" :
"AFL");
5307 if (
INFILE(_LT_AFLref1)) {
5309 INTERESTING(
lDebug?
"AFL(ref1)" : cp);
5311 else if (
INFILE(_LT_AFLref2)) {
5313 INTERESTING(
lDebug?
"AFL(ref2)" : cp);
5319 if (
INFILE(_LT_INNERNET)) {
5320 if (
INFILE(_TITLE_INNERNET200)) {
5321 INTERESTING(
"InnerNet-2.00");
5323 else if (
HASTEXT(_TEXT_INNERNET, 0)) {
5324 INTERESTING(
"InnerNet");
5327 INTERESTING(
"InnerNet-style");
5330 else if (
INFILE(_LT_INNERNETref_V2)) {
5331 INTERESTING(
lDebug ?
"InnetNet(v2ref)" :
"InnerNet-2.00");
5337 if (
INFILE(_TITLE_OGL_UK)) {
5338 if (
INFILE(_TITLE_OGL_UK_10)) {
5339 INTERESTING(
"OGL-UK-1.0");
5341 else if (
INFILE(_TITLE_OGL_UK_20)) {
5342 INTERESTING(
"OGL-UK-2.0");
5344 else if (
INFILE(_TITLE_OGL_UK_30)) {
5345 INTERESTING(
"OGL-UK-3.0");
5348 if (
HASTEXT(_LT_CC_ref, REG_EXTENDED)) {
5356 if (!lmem[_fCCBY] &&
HASTEXT(_LT_CC_ref, REG_EXTENDED)) {
5358 INTERESTING(
lDebug ?
"CC(ref)" : cp);
5360 else if (
INFILE(_LT_CCPL)) {
5362 if (
INFILE(_TITLE_RPL15)) {
5363 INTERESTING(
lDebug ?
"RPL-1.5#1" :
"RPL-1.5");
5365 else if (
INFILE(_TITLE_RPL11)) {
5366 INTERESTING(
lDebug ?
"RPL-1.1#1" :
"RPL-1.1");
5368 else if (
INFILE(_TITLE_RPL10)) {
5369 INTERESTING(
lDebug ?
"RPL-1.0#1" :
"RPL-1.0");
5372 INTERESTING(
lDebug ?
"RPL#1" :
"RPL");
5376 else if (
INFILE(_LT_RECIP15)) {
5377 INTERESTING(
"RPL-1.5");
5379 else if (
INFILE(_TITLE_MINDTERM)) {
5380 INTERESTING(
"MindTerm");
5383 if (
INFILE(_TITLE_RPL15)) {
5384 INTERESTING(
lDebug ?
"RPL-1.5#2" :
"RPL-1.5");
5386 else if (
INFILE(_TITLE_RPL11)) {
5387 INTERESTING(
lDebug ?
"RPL-1.1#2" :
"RPL-1.1");
5389 else if (
INFILE(_TITLE_RPL10)) {
5390 INTERESTING(
lDebug ?
"RPL-1.0#2" :
"RPL-1.0");
5393 INTERESTING(
lDebug ?
"RPL#2" :
"RPL");
5400 else if (
INFILE(_LT_CC_BY_SA_30)) {
5401 INTERESTING(
"CC-BY-SA-3.0");
5403 else if (
INFILE(_LT_CC_BY_SA_25)) {
5404 INTERESTING(
"CC-BY-SA-2.5");
5406 else if (
INFILE(_LT_CC_BY_NC_30)) {
5407 INTERESTING(
"CC-BY-NC-3.0");
5409 else if (
INFILE(_LT_CC_BY_ND_30)) {
5410 INTERESTING(
"CC-BY-ND-3.0");
5414 INTERESTING(
lDebug ?
"RPL(url)" :
"RPL");
5418 INTERESTING(
lDebug ?
"CC-LGPL(url)" : cp);
5422 INTERESTING(
lDebug ?
"CC-GPL(url)" : cp);
5428 if (
INFILE(_CR_SPIKESOURCE) &&
INFILE(_LT_SPIKESOURCE)) {
5429 INTERESTING(
"SpikeSource");
5436 INTERESTING(
"Legato");
5443 INTERESTING(
"Paradigm");
5449 if (
INFILE(_LT_WINTERTREE)) {
5450 INTERESTING(
"Wintertree");
5456 if (
INFILE(_LT_GENIVIAref)) {
5457 INTERESTING(
"Genivia.Commercial");
5478 INTERESTING(
"Zveno");
5484 if (
INFILE(_LT_BRAINSTORM_EULA) &&
INFILE(_TITLE_BRAINSTORM_EULA)) {
5485 INTERESTING(
"BrainStorm-EULA");
5491 if (
INFILE(_LT_AOL_EULA)) {
5492 INTERESTING(
"AOL-EULA");
5498 if (
INFILE(_LT_ALGORITHMICS)) {
5499 INTERESTING(
"Algorithmics");
5505 if (
INFILE(_LT_PIXWARE_EULA)) {
5506 INTERESTING(
"Pixware-EULA");
5512 if (
HASTEXT(_TEXT_COMPUSERVE, 0) &&
INFILE(_LT_COMPUSERVE)) {
5513 INTERESTING(
"CompuServe");
5522 else if (
INFILE(_LT_AMD_EULA) &&
INFILE(_TITLE_AMD_EULA)) {
5523 INTERESTING(
"AMD-EULA");
5531 INTERESTING(
lDebug ?
"OMRON(2)" :
"OMRON");
5537 if (
INFILE(_TITLE_METROLINK)) {
5539 if (
INFILE(_LT_METRO_NONFREE)) {
5540 INTERESTING(
"MetroLink-nonfree");
5543 INTERESTING(
"MetroLink");
5547 else if (
INFILE(_LT_METROLINKref)) {
5548 INTERESTING(
lDebug ?
"MetroLink(ref)" :
"MetroLink");
5554 if (
INFILE(_LT_EDINBURGH_1)) {
5556 INTERESTING(
lDebug ?
"CMU(3)" :
"CMU");
5559 else if (mCR_EDIN()) {
5560 INTERESTING(
lDebug ?
"U-Edinburgh(1)" :
"U-Edinburgh");
5563 INTERESTING(
lDebug ?
"UE-style(1)" :
"U-Edinburgh-style");
5566 else if (
INFILE(_LT_EDINBURGH_2)) {
5568 INTERESTING(
lDebug ?
"U-Edinburgh(2)" :
"U-Edinburgh");
5571 INTERESTING(
lDebug ?
"UE-style(2)" :
"U-Edinburgh-style");
5579 if (!lmem[_mCMU] &&
INFILE(_LT_CMU_1)) {
5580 if (!lmem[_mREDHAT] &&
INFILE(_CR_REDHAT)) {
5581 INTERESTING(
lDebug ?
"RH(5)" :
"RedHat");
5584 else if (
INFILE(_CR_NRL)) {
5587 else if (!lmem[_mCMU] && mCR_CMU()) {
5588 INTERESTING(
lDebug ?
"CMU(5)" :
"CMU");
5592 INTERESTING(
"CMU-style");
5596 else if (!lmem[_mCMU] &&
INFILE(_LT_CMU_2) && mCR_CMU()) {
5597 INTERESTING(
lDebug ?
"CMU(6)" :
"CMU");
5600 else if (
INFILE(_LT_CMU_3)) {
5601 INTERESTING(
lDebug ?
"CMU(7)" :
"CMU");
5604 else if (
INFILE(_LT_CMU_4)) {
5605 INTERESTING(
lDebug ?
"CMU(8)" :
"CMU");
5608 else if (
INFILE(_LT_CMU_5)) {
5609 INTERESTING(
lDebug ?
"CMU(9)" :
"CMU");
5612 else if (
INFILE(_LT_CMU_6)) {
5613 INTERESTING(
lDebug ?
"CMU(10)" :
"CMU");
5621 INTERESTING(
"U-Chicago");
5628 INTERESTING(
"U-Utah");
5635 INTERESTING(
"U-BC");
5641 if (
INFILE(_LT_IMAGEMAGICK)) {
5642 if (
INFILE(_CR_IMAGEMAGICK)) {
5643 INTERESTING(
"ImageMagick");
5646 INTERESTING(
"ImageMagick-style");
5650 INTERESTING(
lDebug ?
"ImageMagick(url)" :
"ImageMagick");
5656 if (
INFILE(_LT_RIVERBANK) &&
INFILE(_TITLE_RIVERBANK_EULA)) {
5657 INTERESTING(
"Riverbank-EULA");
5664 INTERESTING(
"Polyserve-CONFIDENTIAL");
5671 INTERESTING(
"Fujitsu");
5678 INTERESTING(
"Cypress-FW");
5684 INTERESTING(
"Keyspan-FW");
5690 INTERESTING(
"ATMEL-FW");
5696 if (
INFILE(_LT_QUEST_EULA) &&
INFILE(_TITLE_QUEST_EULA)) {
5697 INTERESTING(
"Quest-EULA");
5710 if (
INFILE(_LT_GARMIN_EULA) &&
INFILE(_TITLE_GARMIN_EULA)) {
5711 INTERESTING(
"Garmin-EULA");
5719 INTERESTING(
lDebug ?
"AVM(1)" :
"AVM");
5721 else if (
INFILE(_LT_AVM_2)) {
5722 INTERESTING(
lDebug ?
"AVM(2)" :
"AVM");
5725 else if (
INFILE(_LT_AVM_3)) {
5726 INTERESTING(
lDebug ?
"AVM(3)" :
"AVM");
5733 if (
INFILE(_TITLE_FAIR)) {
5734 INTERESTING(
"Fair");
5737 INTERESTING(
"Fair-style");
5745 if (
INFILE(_TITLE_MAJORDOMO11)) {
5746 INTERESTING(
"Majordomo-1.1");
5749 INTERESTING(
"Majordomo");
5759 INTERESTING(
"Zeus");
5765 if (!lmem[_mXOPEN] &&
INFILE(_LT_XOPEN_1)) {
5766 if (!lmem[_mOSF] &&
INFILE(_CR_OSF)) {
5767 INTERESTING(
lDebug ?
"OSF(2)" :
"OSF");
5770 else if (
INFILE(_CR_UI)) {
5771 INTERESTING(
lDebug ?
"UI(2)" :
"Unix-Intl");
5773 else if (
INFILE(_CR_XOPEN)) {
5774 INTERESTING(
lDebug ?
"XOpen(2)" :
"X/Open");
5777 else if (
INFILE(_CR_IPA)) {
5780 else if (!lmem[_mSUN] &&
INFILE(_CR_SUN)) {
5781 INTERESTING(
lDebug ?
"Sun(10)" :
"Sun");
5785 INTERESTING(
"X/Open-style");
5789 else if (!lmem[_mXOPEN] &&
INFILE(_LT_XOPEN_2)) {
5790 INTERESTING(
lDebug ?
"XOpen(3)" :
"X/Open");
5797 if (
INFILE(_LT_INTERLINK_EULA) &&
INFILE(_TITLE_INTERLINK_EULA)) {
5798 INTERESTING(
"Interlink-EULA");
5805 INTERESTING(
"Mellanox");
5812 INTERESTING(
"nCipher");
5819 INTERESTING(
"DPTC");
5824 else if (
HASTEXT(_TEXT_REPRODUCED, 0) &&
INFILE(_CR_DMTF) &&
5826 INTERESTING(
"DMTF");
5834 INTERESTING(
"DSCT");
5841 INTERESTING(
"Epinions");
5848 INTERESTING(
"MITEM");
5854 if ((
INFILE(_LT_CYLINK_ISC_1) ||
INFILE(_LT_CYLINK_ISC_2))) {
5855 INTERESTING(
"Cylink-ISC");
5862 INTERESTING(
"SciTech");
5868 if (
INFILE(_LT_OREILLY_1)) {
5869 if (
INFILE(_CR_OREILLY)) {
5870 INTERESTING(
"OReilly");
5873 INTERESTING(
"OReilly-style");
5876 else if (
INFILE(_LT_OREILLY_2)) {
5877 if (
INFILE(_CR_OREILLY)) {
5878 INTERESTING(
lDebug ?
"OReilly-2" :
"OReilly");
5881 INTERESTING(
lDebug ?
"OReilly-st-2" :
"OReilly-style");
5888 if (
INFILE(_LT_BITTORRENT)) {
5889 if (
INFILE(_TITLE_BITTORRENT11)) {
5890 INTERESTING(
"BitTorrent-1.1");
5892 else if (
INFILE(_TITLE_BITTORRENT10)) {
5893 INTERESTING(
"BitTorrent-1.0");
5896 INTERESTING(
"BitTorrent");
5899 else if (
INFILE(_LT_BITTORRENT_V11)) {
5900 INTERESTING(
"BitTorrent-1.1");
5902 else if (
INFILE(_LT_BITTORRENT_V10)) {
5903 INTERESTING(
"BitTorrent-1.0");
5905 else if (
INFILE(_LT_BITTORRENTref)) {
5906 INTERESTING(
lDebug ?
"BitTorrent(ref)" :
"BitTorrent");
5914 INTERESTING(
lDebug ?
"OSF(3)" :
"OSF");
5918 INTERESTING(
lDebug ?
"OSF-style(1)" :
"OSF-style");
5921 else if (
INFILE(_LT_OSF_2)) {
5923 INTERESTING(
lDebug ?
"OSF(4)" :
"OSF");
5926 else if (
INFILE(_LT_CMU_8)) {
5927 INTERESTING(
lDebug ?
"CMU(11)" :
"CMU");
5930 INTERESTING(
lDebug ?
"OSF-style(2)" :
"OSF-style");
5938 if (!lmem[_fBSD] && lmem[_tOPENLDAP] && !lmem[_fOPENLDAP]) {
5939 if (
INFILE(_LT_OPENLDAP_1)) {
5941 INTERESTING(
"OLDAP-style");
5944 else if (
INFILE(_LT_OPENLDAP_2)) {
5945 INTERESTING(
"OLDAP");
5957 INTERESTING(
lDebug ?
"Knuth(1)" :
"D.E.Knuth");
5959 else if (
INFILE(_LT_KNUTH_2)) {
5960 INTERESTING(
lDebug ?
"Knuth(2)" :
"D.E.Knuth");
5962 else if (
INFILE(_LT_KNUTH_STYLE)) {
5963 INTERESTING(
"Knuth-style");
5965 else if (
INFILE(_LT_LACHMAN_SECRET)) {
5966 INTERESTING(
"Lachman-Proprietary");
5968 else if (
INFILE(_LT_IOSOFT_SRCONLY)) {
5969 INTERESTING(
"IoSoft.COMMERCIAL");
5975 if (
INFILE(_LT_FREE_SW)) {
5976 INTERESTING(
"Free-SW");
5981 else if (
INFILE(_PHR_NOT_FREE_SW)) {
5983 INTERESTING(
"WTI.Not-free");
5986 INTERESTING(
"Not-Free");
5994 if (
HASTEXT(_LT_CPOL_V102, REG_EXTENDED)) {
5995 INTERESTING(
"CPOL-1.02");
5997 INTERESTING(
"CPOL");
6004 if (
INFILE(_LT_MACROV_IA) &&
INFILE(_PHR_MACROVISION)) {
6006 INTERESTING(
"Macrovision-EULA");
6009 INTERESTING(
"Macrovision");
6017 INTERESTING(
"VMware-EULA");
6023 if (
INFILE(_LT_UCWARE_EULA_1) ||
INFILE(_LT_UCWARE_EULA_2)) {
6024 INTERESTING(
"UCWare-EULA");
6031 INTERESTING(
"InfoSeek");
6038 INTERESTING(
"Trident-EULA");
6052 INTERESTING(
"Piriform");
6066 INTERESTING(
"Skype-EULA");
6072 if (
INFILE(_LT_HAUPPAUGE)) {
6073 INTERESTING(
"Hauppauge");
6079 if (
INFILE(_LT_INTRANET_ONLY)) {
6080 if (
INFILE(_CR_PLATFORM_COMP)) {
6081 INTERESTING(
lDebug ?
"Platfm(1)" :
"Platform-Computing(RESTRICTED)");
6083 MEDINTEREST(
"Intranet-only");
6085 }
else if (
INFILE(_LT_NOT_INTERNET)) {
6086 if (
INFILE(_CR_PLATFORM_COMP)) {
6087 INTERESTING(
lDebug ?
"Platfm(2)" :
"Platform-Computing(RESTRICTED)");
6089 MEDINTEREST(
"Not-Internet");
6097 INTERESTING(
lDebug ?
"Curl(URL)" :
"curl");
6103 if (
INFILE(_LT_ID_EULA)) {
6104 INTERESTING(
"ID-EULA");
6111 INTERESTING(
"M-Plus-Project");
6117 if (
INFILE(_LT_POWDER)) {
6118 INTERESTING(
"Powder-Proprietary");
6124 if (
INFILE(_LT_AGAINST_DRM)) {
6125 INTERESTING(
"AgainstDRM");
6131 if (
INFILE(_LT_TEX_EXCEPT)) {
6132 INTERESTING(
lDebug ?
"TeX-except" :
"TeX-exception");
6138 if (
INFILE(_LT_USGOVT_1)) {
6140 MEDINTEREST(
"URA.govt");
6143 MEDINTEREST(
lDebug ?
"Govt-Wk(1)" :
"Govt-work");
6146 else if (
INFILE(_LT_USGOVT_2)) {
6150 if (
INFILE(_LT_MPICH2)) {
6151 INTERESTING(
"mpich2");
6154 MEDINTEREST(
lDebug ?
"Govt-Wk(2)" :
"Govt-work");
6157 else if (
INFILE(_LT_USGOVT_RIGHTS1) &&
INFILE(_LT_PUBLIC)) {
6158 MEDINTEREST(
lDebug ?
"US-Govt(1)" :
"Govt-rights");
6160 else if (
INFILE(_LT_USGOVT_RIGHTS2)) {
6161 MEDINTEREST(
lDebug ?
"US-Govt(2)" :
"Govt-rights");
6168 INTERESTING(
"ACAA");
6175 INTERESTING(
"Zend-2.0");
6177 else if (
INFILE(_LT_ZEND_2)) {
6178 INTERESTING(
"Zend-1.0");
6186 INTERESTING(
lDebug ?
"WebM" :
"BSD-3-Clause");
6194 INTERESTING(
"Dyade");
6199 if (
INFILE(_TITLE_ZIMBRA_13)) {
6200 INTERESTING(
"Zimbra-1.3");
6202 else if (
INFILE(_TITLE_ZIMBRA_12)) {
6203 INTERESTING(
"Zimbra-1.2");
6205 else if (
INFILE(_TITLE_ZIMBRA)) {
6206 INTERESTING(
"Zimbra");
6212 if (
INFILE(_TITLE_ODBL)) {
6213 INTERESTING(
"ODbL-1.0");
6220 if (
INFILE(_LT_MULTICS)) {
6221 INTERESTING(
"Multics");
6228 if (
INFILE(_TITLE_H2_V10)) {
6229 INTERESTING(
"H2-1.0");
6235 if (
INFILE(_LT_CRYPTOGAMS)) {
6236 INTERESTING(
"Cryptogams");
6243 if (
INFILE(_TITLE_CYGNUS_ECOS_V10)) {
6244 INTERESTING(
"Cygnus-eCos-1.0");
6251 if (
INFILE(_TITLE_RHeCos_V11)) {
6252 INTERESTING(
"RHeCos-1.1");
6259 if (
INFILE(_TITLE_TMATE)) {
6260 INTERESTING(
"TMate");
6266 if (
INFILE(_LT_ABSTYLES_1) &&
INFILE(_LT_ABSTYLES_2)) {
6267 INTERESTING(
"Abstyles");
6274 INTERESTING(
"ADSL");
6280 if (
HASTEXT(_LT_CRYSTALSTACKER, REG_EXTENDED)) {
6281 INTERESTING(
"CrystalStacker");
6288 INTERESTING(
"3GPP");
6295 INTERESTING(
"ITU-T");
6301 if (!lmem[_mSUN] && !lmem[_mMPL]) {
6302 if (
INFILE(_TITLE_SUN_PL10)) {
6303 INTERESTING(
"SPL-1.0");
6305 else if (!lmem[_fREAL] &&
INFILE(_TITLE_SUN_PL)) {
6313 if (
INFILE(_PHR_LIBTIFF)) {
6314 INTERESTING(
"libtiff");
6320 if (
INFILE(_PHR_Imlib2)) {
6321 INTERESTING(
"Imlib2");
6335 INTERESTING(
"naist-2003");
6341 if (
INFILE(_TITLE_EDL_V10)) {
6342 INTERESTING(
"EDL-1.0");
6349 INTERESTING(
"HSQLDB");
6355 if (
INFILE(_TITLE_SCEA)) {
6356 INTERESTING(
"SCEA");
6362 if (
INFILE(_TITLE_OPENMAP)) {
6363 INTERESTING(
"OpenMap");
6373 else if (
INFILE(_PHR_ICU_1)) {
6380 if (
INFILE(_TITLE_UBUNTU_FONT)) {
6381 INTERESTING(
"ubuntu-font-1.0");
6389 INTERESTING(
"ODC-By-1.0");
6396 if (
INFILE(_TITLE_CDLA_Permissive_10)) {
6397 INTERESTING(
"CDLA-Permissive-1.0");
6399 else if (
INFILE(_TITLE_CDLA_Sharing_10)) {
6400 INTERESTING(
"CDLA-Sharing-1.0");
6406 if (
INFILE(_TITLE_Toolbar2000) ||
INFILE(_URL_Toolbar2000)) {
6407 INTERESTING(
"Toolbar2000");
6413 if (
INFILE(_TITLE_unboundID_ldap_sdk) ||
INFILE(_LT_unboundID_ldap_sdk)) {
6414 INTERESTING(
"unboundID-ldap-sdk");
6421 INTERESTING(
"BlueOak-1.0.0");
6423 else if (
INFILE(_LT_BlueOak_100_Purpose) &&
INFILE(_LT_BlueOak_100_Acceptance)) {
6424 INTERESTING(
"BlueOak-1.0.0");
6430 if (
INFILE(_TITLE_CERN_OHL_11)) {
6431 INTERESTING(
"CERN-OHL-1.1");
6433 else if (
INFILE(_TITLE_CERN_OHL_12)) {
6434 INTERESTING(
"CERN-OHL-1.2");
6441 INTERESTING(
"MulanPSL-1.0");
6447 if (
INFILE(_LT_FREE_72) &&
HASTEXT(_LT_SSH, REG_EXTENDED)) {
6448 if (
INFILE(_LT_SSH_OpenSSH)) {
6449 INTERESTING(
"SSH-OpenSSH");
6452 INTERESTING(
"SSH-short");
6469 printf(
"... RMS propaganda\n");
6478 if (maxInterest != IL_HIGH) {
6479 for (i = 0; i < NNOWARRANTY; i++) {
6480 if (
INFILE((j = _NO_WARRANTY_first+i))) {
6491 if (!lmem[_fIP] &&
INFILE(_LT_GEN_IP_1)) {
6492 INTERESTING(
lDebug ?
"IP(1)" :
"IP-claim");
6494 else if (!lmem[_fIP] &&
INFILE(_LT_GEN_IP_2) &&
NOT_INFILE(_TITLE_MIROS)) {
6495 INTERESTING(
lDebug ?
"IP(2)" :
"IP-claim");
6497 else if (!lmem[_fIP] &&
INFILE(_LT_GEN_IP_3)) {
6498 INTERESTING(
lDebug ?
"IP(3)" :
"IP-claim");
6505 MEDINTEREST(
lDebug ?
"Dual-license(0)" :
"Dual-license");
6507 else if (
INFILE(_LT_DUAL_LICENSE_22)) {
6508 MEDINTEREST(
lDebug ?
"Dual-license(22)" :
"Dual-license");
6511 MEDINTEREST(
lDebug ?
"Dual-license(1)" :
"Dual-license");
6513 else if (
INFILE(_LT_DUAL_LICENSE_2)) {
6514 MEDINTEREST(
lDebug ?
"Dual-license(2)" :
"Dual-license");
6516 else if (
INFILE(_LT_DUAL_LICENSE_3) &&
NOT_INFILE(_LT_DUAL_LICENSE_3_EXHIBIT)) {
6517 MEDINTEREST(
lDebug ?
"Dual-license(3)" :
"Dual-license");
6519 else if (
INFILE(_LT_DUAL_LICENSE_4)) {
6520 MEDINTEREST(
lDebug ?
"Dual-license(4)" :
"Dual-license");
6522 else if (
INFILE(_LT_DUAL_LICENSE_5)) {
6523 MEDINTEREST(
lDebug ?
"Dual-license(5)" :
"Dual-license");
6525 else if (
INFILE(_LT_DUAL_LICENSE_6)) {
6526 MEDINTEREST(
lDebug ?
"Dual-license(6)" :
"Dual-license");
6528 else if (
INFILE(_LT_DUAL_LICENSE_7)) {
6529 MEDINTEREST(
lDebug ?
"Dual-license(7)" :
"Dual-license");
6531 else if (
INFILE(_LT_DUAL_LICENSE_8)) {
6532 MEDINTEREST(
lDebug ?
"Dual-license(8)" :
"Dual-license");
6534 else if (
INFILE(_LT_DUAL_LICENSE_9)) {
6535 MEDINTEREST(
lDebug ?
"Dual-license(9)" :
"Dual-license");
6537 else if (
INFILE(_LT_DUAL_LICENSE_10)) {
6538 MEDINTEREST(
lDebug ?
"Dual-license(10)" :
"Dual-license");
6540 else if (
INFILE(_LT_DUAL_LICENSE_11)) {
6541 MEDINTEREST(
lDebug ?
"Dual-license(11)" :
"Dual-license");
6543 else if (
INFILE(_LT_DUAL_LICENSE_12)) {
6544 MEDINTEREST(
lDebug ?
"Dual-license(12)" :
"Dual-license");
6546 else if (
INFILE(_LT_DUAL_LICENSE_13)) {
6547 INTERESTING(
lDebug ?
"Dual-license(13)" :
"Dual-license");
6555 if (
INFILE(_LT_DUAL_LICENSE_16)) {
6556 INTERESTING(
lDebug ?
"GPLV2(Dual-license(16))" :
"GPL-2.0-only");
6560 else if (
INFILE(_LT_DUAL_LICENSE_14)) {
6561 INTERESTING(
lDebug ?
"Dual-license(14)" :
"Dual-license");
6567 else if (
INFILE(_LT_DUAL_LICENSE_15)) {
6568 MEDINTEREST(
lDebug ?
"Dual-license(15)" :
"Dual-license");
6570 else if (
INFILE(_LT_DUAL_LICENSE_16)) {
6571 INTERESTING(
lDebug ?
"Dual-license(16)" :
"Dual-license");
6573 INTERESTING(
lDebug ?
"GPLV2(Dual-license(16))" :
"GPL-2.0-only");
6575 else if (
INFILE(_LT_DUAL_LICENSE_17)) {
6576 MEDINTEREST(
lDebug ?
"Dual-license(17)" :
"Dual-license");
6578 else if (
INFILE(_LT_DUAL_LICENSE_18)) {
6579 MEDINTEREST(
lDebug ?
"Dual-license(18)" :
"Dual-license");
6581 else if (
INFILE(_LT_DUAL_LICENSE_19)) {
6582 MEDINTEREST(
lDebug ?
"Dual-license(19)" :
"Dual-license");
6584 else if (
INFILE(_LT_DUAL_LICENSE_20)) {
6585 MEDINTEREST(
lDebug ?
"Dual-license(20)" :
"Dual-license");
6587 else if (
INFILE(_LT_DUAL_LICENSE_21)) {
6588 MEDINTEREST(
lDebug ?
"Dual-license(21)" :
"Dual-license");
6590 else if (
INFILE(_LT_DUAL_LICENSE_23)) {
6591 MEDINTEREST(
lDebug ?
"Dual-license(23)" :
"Dual-license");
6593 else if (
INFILE(_LT_DUAL_LICENSE_24)) {
6594 MEDINTEREST(
lDebug ?
"Dual-license(24)" :
"Dual-license");
6596 else if (
INFILE(_LT_DUAL_LICENSE_25)) {
6597 MEDINTEREST(
lDebug ?
"Dual-license(25)" :
"Dual-license");
6599 else if (
INFILE(_LT_DUAL_LICENSE_26)) {
6600 MEDINTEREST(
lDebug ?
"Dual-license(26)" :
"Dual-license");
6602 else if (
INFILE(_LT_DUAL_LICENSE_27)) {
6603 MEDINTEREST(
lDebug ?
"Dual-license(27)" :
"Dual-license");
6605 else if (
INFILE(_LT_DUAL_LICENSE_28)) {
6606 MEDINTEREST(
lDebug ?
"Dual-license(28)" :
"Dual-license");
6608 else if (
INFILE(_LT_DUAL_LICENSE_29) &&
NOT_INFILE(_LT_MPL_SECONDARY_LICENSE)) {
6609 MEDINTEREST(
lDebug ?
"Dual-license(29)" :
"Dual-license");
6611 else if (
INFILE(_LT_DUAL_LICENSE_30)) {
6612 MEDINTEREST(
lDebug ?
"Dual-license(30)" :
"Dual-license");
6614 else if (
INFILE(_LT_DUAL_LICENSE_31)) {
6615 MEDINTEREST(
lDebug ?
"Dual-license(31)" :
"Dual-license");
6617 else if (
INFILE(_LT_DUAL_LICENSE_32)) {
6618 MEDINTEREST(
lDebug ?
"Dual-license(32)" :
"Dual-license");
6620 else if (
INFILE(_LT_DUAL_LICENSE_33)) {
6621 MEDINTEREST(
lDebug ?
"Dual-license(33)" :
"Dual-license");
6623 else if (
INFILE(_LT_DUAL_LICENSE_34)) {
6624 MEDINTEREST(
lDebug ?
"Dual-license(34)" :
"Dual-license");
6626 else if (
HASTEXT(_LT_DUAL_LICENSE_35, 0)) {
6627 MEDINTEREST(
lDebug ?
"Dual-license(35)" :
"Dual-license");
6633 else if (
INFILE(_LT_DUAL_LICENSE_36)) {
6634 MEDINTEREST(
lDebug ?
"Dual-license(36)" :
"Dual-license");
6636 else if (
INFILE(_LT_DUAL_LICENSE_37)) {
6637 MEDINTEREST(
lDebug ?
"Dual-license(37)" :
"Dual-license");
6639 else if (
INFILE(_LT_DUAL_LICENSE_38)) {
6640 MEDINTEREST(
lDebug ?
"Dual-license(38)" :
"Dual-license");
6642 else if (
INFILE(_LT_DUAL_LICENSE_39)) {
6643 MEDINTEREST(
lDebug ?
"Dual-license(39)" :
"Dual-license");
6645 else if (
INFILE(_LT_DUAL_LICENSE_40)) {
6646 MEDINTEREST(
lDebug ?
"Dual-license(40)" :
"Dual-license");
6648 else if (
INFILE(_LT_DUAL_LICENSE_41)) {
6649 MEDINTEREST(
lDebug ?
"Dual-license(41)" :
"Dual-license");
6651 else if (
INFILE(_LT_DUAL_LICENSE_42)) {
6652 MEDINTEREST(
lDebug ?
"Dual-license(42)" :
"Dual-license");
6654 else if (
INFILE(_LT_DUAL_LICENSE_43)) {
6655 MEDINTEREST(
lDebug ?
"Dual-license(43)" :
"Dual-license");
6657 else if (
HASTEXT(_LT_DUAL_LICENSE_44, 0)) {
6658 MEDINTEREST(
lDebug ?
"Dual-license(44)" :
"Dual-license");
6660 else if (
INFILE(_LT_DUAL_LICENSE_45)) {
6661 MEDINTEREST(
lDebug ?
"Dual-license(45)" :
"Dual-license");
6664 else if (
HASTEXT(_LT_DUAL_LICENSE_46, REG_EXTENDED)) {
6665 MEDINTEREST(
lDebug ?
"Dual-license(46)" :
"Dual-license");
6667 else if (
HASTEXT(_LT_DUAL_LICENSE_47, REG_EXTENDED) &&
NOT_INFILE(_LT_MPL_SECONDARY_LICENSE)) {
6668 MEDINTEREST(
lDebug ?
"Dual-license(47)" :
"Dual-license");
6670 else if (
INFILE(_LT_DUAL_LICENSE_48)) {
6671 MEDINTEREST(
lDebug ?
"Dual-license(48)" :
"Dual-license");
6673 else if (
HASTEXT(_LT_DUAL_LICENSE_49, REG_EXTENDED)) {
6674 MEDINTEREST(
lDebug ?
"Dual-license(49)" :
"Dual-license");
6680 if (
INFILE(_LT_BEERWARE)) {
6681 INTERESTING(
"Beerware");
6688 INTERESTING(
"CMake");
6695 INTERESTING(
"unRAR restriction");
6702 INTERESTING(
"ANTLR-PD");
6709 if (
INFILE(_SPDX_CC0_10)) {
6710 INTERESTING(
"CC0-1.0");
6713 INTERESTING(
"CC0-1.0");
6715 else if (
INFILE(_SPDX_CC0)) {
6722 if (
INFILE(_TITLE_IPA)) {
6730 INTERESTING(
"EUPL-1.0");
6732 else if (
INFILE(_PHR_EUPL_11) ||
INFILE(_TITLE_EUPL_11)) {
6733 INTERESTING(
"EUPL-1.1");
6735 else if (
INFILE(_TITLE_EUPL_12)) {
6736 INTERESTING(
"EUPL-1.2");
6738 else if (
INFILE(_PHR_EUPL)) {
6739 INTERESTING(
"EUPL");
6743 if (!lmem[_fNCSA] &&
INFILE(_TITLE_NCSA) &&
NOT_INFILE(_TITLE_NCSA_EXHIBIT)) {
6744 INTERESTING(
lDebug ?
"NCSA(2)" :
"NCSA");
6746 if (
INFILE(_TITLE_OZPLB_11)) {
6747 INTERESTING(
"OZPLB-1.1");
6754 if (
INFILE(_TITLE_PDDL)) {
6755 INTERESTING(
"PDDL-1.0");
6760 if (
INFILE(_TITLE_POSTGRES) ||
INFILE(_TITLE_POSTGRES_1)) {
6761 INTERESTING(
"PostgreSQL");
6766 if (
INFILE(_LT_SAX_PD)) {
6767 INTERESTING(
"SAX-PD");
6775 INTERESTING(
"WTFPL");
6777 else if (
INFILE(_LT_WTFPLref)) {
6778 INTERESTING(
lDebug ?
"WTFPL(ref)" :
"WTFPL");
6780 else if (
INFILE(_LT_WTFPLref_1)) {
6781 INTERESTING(
lDebug ?
"WTFPL(ref#1)" :
"WTFPL");
6783 else if (
INFILE(_PHR_WTFPL)) {
6784 INTERESTING(
lDebug ?
"WTFPL(phr)" :
"WTFPL");
6789 if (
HASTEXT(_PHR_IJG_1, REG_EXTENDED)) {
6792 else if (
HASTEXT(_PHR_IJG_2, 0)) {
6795 else if (
HASTEXT(_TITLE_IJG_1, 0) && !
HASTEXT(_PHR_IJG_INTERFACE_1, 0) && !
HASTEXT(_PHR_IJG_INTERFACE_2, 0)) {
6799 else if (
HASTEXT(_TITLE_IJG_2, 0) && !
HASTEXT(_PHR_IJG_INTERFACE_1, 0) && !
HASTEXT(_PHR_IJG_INTERFACE_2, 0)) {
6800 INTERESTING(
"IJG-possibility");
6805 if (!lmem[_mMPL] &&
INFILE(_TITLE_NOSL)) {
6806 INTERESTING(
lDebug ?
"NOSL(#2)" :
"NOSL");
6810 if (
INFILE(_TITLE_NBPL_V10)) {
6811 INTERESTING(
"NBPL-1.0");
6815 if (
INFILE(_TITLE_Flora_V10)) {
6816 INTERESTING(
"Flora-1.0");
6818 else if (
INFILE(_TITLE_Flora_V11)) {
6819 INTERESTING(
"Flora-1.1");
6822 INTERESTING(
"Flora");
6826 if (
INFILE(_TITLE_SMLNJ)) {
6827 INTERESTING(
"SMLNJ");
6831 if (!lmem[_mMPL] &&
INFILE(_TEXT_MPLV2) &&
INFILE(_URL_MPL20)) {
6832 INTERESTING(
"MPL-2.0");
6835 else if (!lmem[_mMPL] &&
URL_INFILE(_URL_MPL_LATEST)) {
6836 INTERESTING(
lDebug ?
"MPL(latest)" :
"MPL");
6840 if (
INFILE(_TITLE_CITRIX)) {
6841 INTERESTING(
"Citrix");
6846 if (
INFILE(_TITLE_CUA10)) {
6847 INTERESTING(
"CUA-OPL-1.0");
6851 if (
INFILE(_TITLE_ERLPL_ref)) {
6852 INTERESTING(
"ErlPL-1.1");
6856 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))
6858 INTERESTING(
"D-FSL-1.0");
6863 if (
INFILE(_TITLE_CCLRC)) {
6864 INTERESTING(
"CCLRC");
6869 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)))
6871 INTERESTING(
lDebug ?
"GPL_V2_ref" :
"GPL-2.0-only");
6874 else if (!lmem[_mGPL] &&
INFILE(_LT_GPL_V3_ref))
6876 INTERESTING(
lDebug ?
"GPL_V3_ref" :
"GPL-3.0-only");
6879 else if (!lmem[_mGPL] &&
INFILE(_LT_GPLref22))
6881 INTERESTING(
lDebug ?
"GPLref22" :
"GPL");
6884 else if (!lmem[_mGPL] &&
NOT_INFILE(_LT_IGNORE_CLAUSE_2) &&
INFILE(_LT_GPLref21))
6886 INTERESTING(
lDebug ?
"GPLref21" :
"GPL");
6892 if (
INFILE(_LT_MX4J_V10))
6894 INTERESTING(
"MX4J-1.0");
6896 else if (
INFILE(_LT_MX4J))
6898 INTERESTING(
"MX4J");
6902 if (
INFILE(_TITLE_POSTFIX))
6904 INTERESTING(
"Postfix");
6908 if (
HASTEXT(_LT_PUBDOM_NOTclaim, REG_EXTENDED)) {
6909 if (
INFILE(_LT_PUBDOM_CC)) {
6910 INTERESTING(
lDebug ?
"Pubdom(CC)" :
"CC-PDDC");
6914 INTERESTING(LS_NOT_PD);
6922 INTERESTING(
"LIBGCJ");
6926 if (
INFILE(_TITLE_OPEN_CASCADE))
6928 INTERESTING(
"OpenCASCADE-PL");
6932 if (
INFILE(_LT_KnowledgeTree_V11))
6934 INTERESTING(
"KnowledgeTree-1.1");
6938 if (
INFILE(_LT_Interbase_V10))
6940 INTERESTING(
"Interbase-1.0");
6944 if (
INFILE(_LT_ClearSilver))
6946 INTERESTING(
"ClearSilver");
6953 else if(
INFILE(_LT_FACE)) {
6954 INTERESTING(
"FaCE");
6959 INTERESTING(
"JISP");
6964 INTERESTING(
"Qmail");
6969 INTERESTING(
"Migemo");
6973 if(
INFILE(_LT_Sendmail_title) ) {
6974 INTERESTING(
"Sendmail");
6978 if(
INFILE(_LT_GIFTWARE)) {
6979 INTERESTING(
"Giftware");
6984 INTERESTING(
"Logica-OSL-1.0");
6989 INTERESTING(
"Unidex");
6994 if (
INFILE(_TITLE_TCL)) {
6997 else if (
INFILE(_SPDX_TCL)) {
7000 else if (
INFILE(_LT_TCL)) {
7006 if (
INFILE(_LT_GOOGLE_SDK)) {
7007 INTERESTING(
"AndroidSDK.Commercial");
7011 if (
INFILE(_PHR_Qhull)) {
7012 INTERESTING(
"Qhull");
7016 if (
INFILE(_PHR_OZPLB_10)) {
7017 INTERESTING(
"OZPLB-1.0");
7027 if (
INFILE(_LT_SAME_LICENSE_1)) {
7028 INTERESTING(
lDebug ?
"Same-lic-1" :
"Same-license-as");
7030 }
else if (
INFILE(_LT_SAME_LICENSE_2)) {
7031 INTERESTING(
lDebug ?
"Same-lic-2" :
"Same-license-as");
7036 saveLicenseParagraph(cur.matchBase, isML, isPS,
NO);
7049 for (i = 0; i < NFREECLAIM; i++) {
7050 if (CANSKIP(i, _KW_permission, _FREE_first_perm,
7052 i = _FREE_last_perm;
7055 if (CANSKIP(i, _KW_distribut, _FREE_first_dist,
7057 i = _FREE_last_dist;
7060 if (
INFILE(_FREECLAIM_first+i)) {
7061 (void) strcpy(name,
"Freeware");
7063 (void) sprintf(name+8,
"(%d)", i+1);
7072 if (!lmem[_fANTLR] && !lmem[_fCLA] && !lmem[_mPYTHON] && !lmem[_mGFDL] &&
7073 !lmem[_fODBL] && !lmem[_fPDDL] && !lmem[_fRUBY] && !lmem[_fSAX] && !lmem[_fAPL] && !lmem[_mAPACHE] && !lmem[_mAPACHE10] && !lmem[_mAPACHE11] &&
7074 !lmem[_fARTISTIC] && !lmem[_fCITRIX] && !lmem[_mLGPL] && !lmem[_fBSD]&&
NOT_INFILE(_TITLE_D_FSL_10)
7076 pd = checkPublicDomain(filetext, size, score, kwbm, isML, isPS);
7093 if (maxInterest != IL_HIGH && !HASKW(kwbm, _KW_public_domain) &&
7095 if (
INFILE(_LT_NONCOMMERCIAL_1)) {
7096 INTERESTING(
lDebug ?
"NonC(1)" :
"Non-commercial");
7098 else if (
INFILE(_LT_ZZNON_COMMERC1)) {
7099 INTERESTING(
lDebug ?
"NonC(2)" :
"Non-commercial");
7101 else if (
INFILE(_LT_ZZNON_COMMERC2)) {
7102 INTERESTING(
lDebug ?
"NonC(3)" :
"Non-commercial");
7104 else if (
HASTEXT(_TEXT_COMMERC, 0) &&
7105 INFILE(_PHR_NONCOMMERCIAL)) {
7106 INTERESTING(
lDebug ?
"NonC(4)" :
"Non-commercial");
7109 if (
INFILE(_LT_NOT_OPENSOURCE)) {
7110 INTERESTING(
"Not-OpenSource");
7118 if (maxInterest != IL_HIGH) {
7120 if (
INFILE(_LT_GEN_PROPRIETARY_1)) {
7121 INTERESTING(
lDebug ?
"Prop(1)" :
"COMMERCIAL");
7124 else if (
INFILE(_LT_GEN_PROPRIETARY_2)) {
7125 INTERESTING(
lDebug ?
"Prop(2)" :
"COMMERCIAL");
7128 else if (
INFILE(_LT_GEN_PROPRIETARY_3)) {
7129 INTERESTING(
lDebug ?
"Prop(3)" :
"COMMERCIAL");
7132 else if (
INFILE(_LT_GEN_PROPRIETARY_4)) {
7133 INTERESTING(
lDebug ?
"Prop(4)" :
"COMMERCIAL");
7136 else if (
INFILE(_LT_GEN_PROPRIETARY_5)) {
7137 INTERESTING(
lDebug ?
"Prop(5)" :
"COMMERCIAL");
7140 else if (
INFILE(_LT_GEN_PROPRIETARY_6)) {
7141 INTERESTING(
lDebug ?
"Prop(6)" :
"COMMERCIAL");
7144 else if (
INFILE(_LT_GEN_PROPRIETARY_7)) {
7145 INTERESTING(
lDebug ?
"Prop(7)" :
"COMMERCIAL");
7148 else if (
INFILE(_LT_GEN_PROPRIETARY_8)) {
7149 INTERESTING(
lDebug ?
"Prop(8)" :
"COMMERCIAL");
7167 if (maxInterest != IL_HIGH) {
7168 if (
INFILE(_LT_COMMERCIAL_1)) {
7169 INTERESTING(
lDebug ?
"COMM(1)" :
"COMMERCIAL");
7171 else if (
INFILE(_LT_COMMERCIAL_2)) {
7172 INTERESTING(
lDebug ?
"COMM(2)" :
"COMMERCIAL");
7174 else if (
HASTEXT(_LT_COMMERCIAL_3, REG_EXTENDED)) {
7175 if (
HASTEXT(_LT_COMMERCIAL_Intel, REG_EXTENDED)) {
7176 INTERESTING(
"Intel.Commercial");
7177 }
else if (
HASTEXT(_LT_COMMERCIAL_Broadcom, REG_EXTENDED)) {
7178 INTERESTING(
"Broadcom.Commercial");
7180 INTERESTING(
lDebug ?
"COMM(3)" :
"COMMERCIAL");
7183 else if (
INFILE(_LT_COMMERCIAL_4)) {
7184 if (
HASTEXT(_LT_COMMERCIAL_Android_Fraunhofer, 0)) {
7185 INTERESTING(
"AndroidFraunhofer.Commercial");
7187 INTERESTING(
lDebug ?
"COMM(4)" :
"COMMERCIAL");
7190 else if (
HASTEXT(_TEXT_BOOK, 0) &&
INFILE(_LT_BOOKPURCHASE)) {
7191 INTERESTING(
lDebug ?
"PurchBook" :
"COMMERCIAL");
7193 else if (
INFILE(_LT_COMMERCIAL_5)) {
7194 INTERESTING(
lDebug ?
"COMM(5)" :
"COMMERCIAL");
7196 else if (
INFILE(_LT_COMMERCIAL_6)) {
7197 INTERESTING(
lDebug ?
"COMM(6)" :
"COMMERCIAL");
7199 else if (
INFILE(_LT_COMMERCIAL_7)) {
7200 INTERESTING(
lDebug ?
"COMM(7)" :
"COMMERCIAL");
7202 if (
INFILE(_LT_NONPROFIT_1)) {
7203 MEDINTEREST(
lDebug ?
"NonP(1)" :
"Non-profit");
7205 else if (!lmem[_mPYTH_TEXT] &&
HASTEXT(_TEXT_PROFIT, 0) &&
7206 INFILE(_PHR_NONPROFIT)) {
7207 if (!(lmem[_fIETF] + lmem[_fDOC])) {
7208 MEDINTEREST(
lDebug ?
"NonP(2)" :
"Non-profit");
7211 if (
INFILE(_PHR_NO_SALE)) {
7212 MEDINTEREST(
"Not-for-sale");
7214 if (!lmem[_mALADDIN] &&
INFILE(_PHR_NOT_OPEN)) {
7215 MEDINTEREST(
"NOT-Open-Source");
7217 if (HASKW(kwbm, _KW_patent) &&
INFILE(_PHR_PATENT) &&
NOT_INFILE(_PHR_PATENT_NOT)) {
7218 MEDINTEREST(
"Patent-ref");
7220 if (
INFILE(_PHR_RESTRICT_RIGHTS)) {
7221 if (
INFILE(_PHR_USGOVT_RESTRICT)) {
7222 MEDINTEREST(
"Govt-restrict");
7225 MEDINTEREST(
"Restricted-rights");
7228 if (
INFILE(_LT_EXPORTS_USA)) {
7229 MEDINTEREST(
"US-Export-restrict");
7232 checkPublicDomain(filetext, size, score, kwbm, isML, isPS);
7249 for (i = 0, j = _MINlicense_first; i < NMINlicense; i++, j++) {
7251 cp = strchr(
_REGEX(j),
' ');
7253 Assert(
NO,
"Bad reference[1] %d", j);
7259 (void) sprintf(name,
"%s-possibility",
7270 for (i = 0, j = _MINsource_first; i < NMINsource; i++, j++) {
7272 cp = strchr(
_REGEX(j),
' ');
7274 Assert(
NO,
"Bad reference[2] %d", j);
7280 (void) sprintf(name,
"%s-possibility",
7291 for (i = 0, j = _MINcpyrt_first; i < NMINcpyrt; i++, j++) {
7293 cp = strchr(
_REGEX(j),
' ');
7295 Assert(
NO,
"Bad reference[2] %d", j);
7301 (void) sprintf(name,
"%s-possibility",
7320 if (maxInterest != IL_HIGH && !lmem[_fDOC]) {
7324 strcpy(name, LS_UNCL);
7326 strcat(name,
"(PS)");
7331 #ifdef UNKNOWN_CHECK_DEBUG
7333 printf(
"... NOT an Unclassified license, NW %d PD %d\n",
7344 if (maxInterest != IL_HIGH &&
pd <= 0) {
7349 printf(
"DEBUG: static lists in parseLicenses():\n");
7351 memStats(
"parseLicenses: pre-Free");
7355 memStats(
"parseLicenses: EOP");
7358 showLTCache(
"LTSR-results AFTER:");
7360 #ifdef FLAG_NO_COPYRIGHT
7361 if (!
SEEN(_CR_ZZZANY)) {
7362 (void)
INFILE(_CR_ZZZANY);
7364 if (!
SEEN(_CR_ZZZWRONG_1)) {
7365 (void)
INFILE(_CR_ZZZWRONG_1);
7367 if (
LVAL(_CR_ZZZANY)+
LVAL(_CR_ZZZWRONG_1)+
7368 HASREGEX(_CR_ZZZWRONG_2, filetext) == 0) {
7369 gl.
flags |= FL_NOCOPYRIGHT;
7373 if (whereList.
used) {
7392 traceFunc(
"== sisslVersion()\n");
7395 if (
INFILE(_TITLE_SISSL_V11)) {
7398 else if (
INFILE(_TITLE_SISSL_V12)) {
7419 traceFunc(
"== aslVersion()\n");
7429 else if (
INFILE(_CR_IMAGEMAGICK)) {
7430 lstr =
"ImageMagick(Apache)";
7436 else if (
INFILE(_SPDX_Apache_20)) {
7437 lstr = (
lDebug ?
"Apache-2.0(SPDX)" :
"Apache-2.0");
7440 else if (
INFILE(_TITLE_Apache_20)) {
7441 lstr = (
lDebug ?
"Apache-2(f)" :
"Apache-2.0");
7444 else if (
INFILE(_PHR_Apache_20_ref1) ||
INFILE(_PHR_Apache_20_ref2) ||
INFILE(_PHR_Apache_20_ref3))
7446 lstr = (
lDebug ?
"PHR_Apache_20_ref(1-5)" :
"Apache-2.0");
7450 lstr = (
lDebug ?
"Apache-2.0(u)" :
"Apache-2.0");
7455 lstr = (
lDebug ?
"Apache(2.0#2)" :
"Apache-2.0");
7458 else if (
INFILE(_PHR_Apache_20_ref4) ||
INFILE(_PHR_Apache_20_ref5) ||
INFILE(_PHR_Apache_20_ref6) ||
INFILE(_PHR_Apache_20_ref7)) {
7459 lstr = (
lDebug ?
"Apache(2.0#3)" :
"Apache-2.0");
7462 else if (
INFILE(_TITLE_Apache_20)) {
7463 lstr = (
lDebug ?
"Apache(2.0#4)" :
"Apache-2.0");
7467 lstr = (
lDebug ?
"Apache2(url#1)" :
"Apache-2.0");
7471 lstr = (
lDebug ?
"Apache2(url#2)" :
"Apache-2.0");
7477 else if (
INFILE(_SPDX_Apache_11)) {
7478 lstr = (
lDebug ?
"Apache-1.1(SPDX)" :
"Apache-1.1");
7479 lmem[_mAPACHE11] = 1;
7481 else if (
INFILE(_TITLE_Apache_11)) {
7482 lstr = (
lDebug ?
"Apache-1.1(f)" :
"Apache-1.1");
7483 lmem[_mAPACHE11] = 1;
7486 lstr = (
lDebug ?
"Apache-1.1(u)" :
"Apache-1.1");
7487 lmem[_mAPACHE11] = 1;
7489 else if (
INFILE(_LT_Apache_11_CLAUSE_3) &&
INFILE(_LT_Apache_11_CLAUSE_4) &&
INFILE(_LT_Apache_11_CLAUSE_5)) {
7490 lstr = (
lDebug ?
"Apache-1.1(clauses)" :
"Apache-1.1");
7491 lmem[_mAPACHE11] = 1;
7493 else if (
INFILE(_PHR_Apache_11_ref1)) {
7494 lstr = (
lDebug ?
"Apache(1.1#phr)" :
"Apache-1.1");
7495 lmem[_mAPACHE11] = 1;
7500 else if (
INFILE(_SPDX_Apache_10)) {
7501 lstr = (
lDebug ?
"Apache-1.0(SPDX)" :
"Apache-1.0");
7502 lmem[_mAPACHE10] = 1;
7504 else if (
INFILE(_PHR_Apache_ref2)) {
7505 lstr = (
lDebug ?
"Apache-1.0(f)" :
"Apache-1.0");
7506 lmem[_mAPACHE10] = 1;
7508 else if (
INFILE(_LT_Apache_10_CLAUSE_4)) {
7509 lstr = (
lDebug ?
"Apache-1.0(g)" :
"Apache-1.0");
7510 lmem[_mAPACHE10] = 1;
7513 lstr = (
lDebug ?
"Apache-1.0(u)" :
"Apache-v1.0");
7514 lmem[_mAPACHE10] = 1;
7519 else if (
INFILE(_LT_BSD_1)) {
7521 if (
INFILE(_PHR_Apache_20_ref6)) {
7522 lstr = (
lDebug ?
"Apache-20_ref6" :
"Apache-2.0");
7525 else if (
INFILE(_PHR_Apache_11_ref2)) {
7526 lstr = (
lDebug ?
"Apache(1.1#2)" :
"Apache-1.1");
7527 lmem[_mAPACHE11] = 1;
7529 else if ((
INFILE(_PHR_Apache_ref2) ||
INFILE(_LT_Apache_10_CLAUSE_4))) {
7530 lstr = (
lDebug ?
"Apache(1.0#2)" :
"Apache-1.0");
7531 lmem[_mAPACHE10] = 1;
7534 lstr = (
lDebug ?
"Apache(title)" :
"Apache");
7542 else if (!lmem[_fREAL] &&
INFILE(_SPDX_Apache)) {
7543 lstr = (
lDebug ?
"Apache(SPDX)" :
"Apache");
7546 else if (
INFILE(_PHR_Apache_ref1)) {
7547 INTERESTING(
lDebug ?
"Apache(ref#1)" :
"Apache");
7550 else if (
INFILE(_PHR_Apache_ref4)) {
7551 lstr = (
lDebug ?
"Apache(ref#3)" :
"Apache");
7554 else if (
INFILE(_PHR_Apache_ref3)) {
7555 lstr = (
lDebug ?
"Apache(ref#4)" :
"Apache");
7559 lstr = (
lDebug ?
"Apache(url#1)" :
"Apache");
7563 lstr = (
lDebug ?
"Apache(url#2)" :
"Apache");
7566 else if (
INFILE(_PHR_Apache_ref6)) {
7567 lstr = (
lDebug ?
"Apache(ref#6)" :
"Apache");
7575 else if (
INFILE(_LT_Apache_1)) {
7576 lstr = (
lDebug ?
"Apache(1)" :
"Apache");
7579 else if (
INFILE(_LT_Apache_2)) {
7580 lstr = (
lDebug ?
"Apache(2)" :
"Apache");
7583 else if (
INFILE(_LT_APACHESTYLEref)) {
7584 lstr = (
"Apache-style");
7603 traceFunc(
"== mplNplVersion()\n");
7606 if (
INFILE(_TITLE_MPL11_OR_LATER)) {
7609 else if (
INFILE(_LT_MPL11_ref)) {
7612 else if (
INFILE(_TITLE_NPL11_MPL)) {
7615 else if (
INFILE(_TITLE_MPL11) &&
INFILE(_TITLE_MPL_style)) {
7616 lstr =
"MPL-1.1-style";
7618 else if (
INFILE(_TITLE_SUGARCRM_PL)) {
7619 lstr =
"SugarCRM-1.1.3";
7623 else if (
INFILE(_TITLE_MPL11) && !
HASTEXT(_LT_NP_AME, REG_EXTENDED)) {
7626 else if (
INFILE(_TITLE_MPL20_EXCEPTION)) {
7627 lstr =
"MPL-2.0-no-copyleft-exception";
7632 else if (
INFILE(_TITLE_MPL10) &&
INFILE(_TITLE_ERLPL)) {
7635 else if (
INFILE(_TITLE_MPL10)) {
7638 else if (
INFILE(_TITLE_MPL_EULA_30)) {
7639 lstr =
"MPL-EULA-3.0";
7641 else if (
INFILE(_TITLE_MPL_EULA_20)) {
7642 lstr =
"MPL-EULA-2.0";
7644 else if (
INFILE(_TITLE_MPL_EULA_11)) {
7645 lstr =
"MPL-EULA-1.1";
7648 lstr = (
lDebug ?
"NPL1.0(url)" :
"NPL-1.0");
7651 lstr = (
lDebug ?
"NPL1.1(url)" :
"NPL-1.1");
7654 lstr = (
lDebug ?
"MPL1.0(url)" :
"MPL-1.0");
7657 lstr = (
lDebug ?
"MPL1.1(url)" :
"MPL-1.1");
7659 else if (
INFILE(_FILE_MPL10)) {
7660 lstr = (
lDebug ?
"MPL1.0(file)" :
"MPL-1.0");
7662 else if (
INFILE(_FILE_MPL11)) {
7663 lstr = (
lDebug ?
"MPL1.1(file)" :
"MPL-1.1");
7665 else if (
INFILE(_TITLE_NPL11_OR_LATER)) {
7668 else if (
INFILE(_TITLE_NPL11)) {
7671 else if (
INFILE(_TITLE_NPL10)) {
7675 lstr = (
lDebug ?
"NPL(url)" :
"NPL");
7677 else if (
INFILE(_SPDX_MPL_10)) {
7680 else if (
INFILE(_SPDX_MPL_11)) {
7683 else if (
INFILE(_SPDX_MPL_20_no_copyleft_exception)) {
7684 lstr =
"MPL-2.0-no-copyleft-exception";
7686 else if (
INFILE(_SPDX_MPL_20)) {
7690 lstr = (
lDebug ?
"MPL(latest)" :
"MPL");
7693 lstr = (
lDebug ?
"MPL(url)" :
"MPL");
7695 else if (
INFILE(_TITLE_NPL)) {
7698 else if (
INFILE(_TITLE_MPL)) {
7702 lstr = (
lDebug ?
"MPL(last)" :
"MPL");
7715 char *
realVersion(
char *filetext,
int size,
int isML,
int isPS,
int ref)
7720 traceFunc(
"== realVersion()\n");
7723 if (ref == _TITLE_RPSL) {
7724 if (
INFILE(_TITLE_RPSL_V30)) {
7727 else if (
INFILE(_TITLE_RPSL_V20)) {
7730 else if (
INFILE(_TITLE_RPSL_V10)) {
7733 else if (
INFILE(_TITLE_RPSL)) {
7737 else if (ref == _TITLE_RCSL) {
7738 if (
INFILE(_TITLE_RCSL_V30)) {
7741 else if (
INFILE(_TITLE_RCSL_V20)) {
7744 else if (
INFILE(_TITLE_RCSL_V10)) {
7747 else if (
INFILE(_TITLE_RCSL)) {
7752 lstr =
"RealNetworks-Unknown";
7770 traceFunc(
"== pythonVersion()\n");
7773 if (
INFILE(_TITLE_PYTHON201)) {
7774 lstr =
"Python-2.0.1";
7776 else if (
INFILE(_TITLE_PYTHON202)) {
7777 lstr =
"Python-2.0.2";
7779 else if (
INFILE(_TITLE_PYTHON211)) {
7780 lstr =
"Python-2.1.1";
7782 else if (
INFILE(_TITLE_PYTHON213)) {
7783 lstr =
"Python-2.1.3";
7785 else if (
INFILE(_TITLE_PYTHON223)) {
7786 lstr =
"Python-2.2.3";
7788 else if (
INFILE(_TITLE_PYTHON227)) {
7789 lstr =
"Python-2.2.7";
7791 else if (
INFILE(_TITLE_PYTHON237)) {
7792 lstr =
"Python-2.3.7";
7794 else if (
INFILE(_TITLE_PYTHON244)) {
7795 lstr =
"Python-2.4.4";
7797 else if (
INFILE(_TITLE_PYTHON22)) {
7798 lstr =
"Python-2.2";
7800 else if (
INFILE(_TITLE_PYTHON23)) {
7801 lstr =
"Python-2.3";
7803 else if (
INFILE(_TITLE_PYTHON_20_1) ||
INFILE(_TITLE_PYTHON_20_2)) {
7804 lstr =
"Python-2.0";
7825 traceFunc(
"== aflVersion()\n");
7828 if (
INFILE(_TITLE_AFL30)) {
7829 lstr =
lDebug?
"AFL(v3.0#1)" :
"AFL-3.0";
7831 else if (
INFILE(_TITLE_AFL21)) {
7832 lstr =
lDebug?
"AFL(v2.1#1)" :
"AFL-2.1";
7834 else if (
INFILE(_TITLE_AFL20)) {
7835 lstr =
lDebug?
"AFL(v2.0#1)" :
"AFL-2.0";
7837 else if (
INFILE(_TITLE_AFL12)) {
7838 lstr =
lDebug?
"AFL(v1.2#1)" :
"AFL-1.2";
7840 else if (
INFILE(_TITLE_AFL11)) {
7841 lstr =
lDebug?
"AFL(v1.1#1)" :
"AFL-1.1";
7843 else if (
INFILE(_TITLE_AFL10)) {
7844 lstr =
lDebug?
"AFL(v1.0#1)" :
"AFL-1.0";
7865 traceFunc(
"== oslVersion()\n");
7868 if (
INFILE(_TITLE_NON_PROFIT_OSL30)) {
7871 else if (
INFILE(_TITLE_OSL30)) {
7872 lstr =
lDebug?
"OSL(v3.0#1)" :
"OSL-3.0";
7874 else if (
INFILE(_TITLE_OSL21)) {
7875 lstr =
lDebug?
"OSL(v2.1#1)" :
"OSL-2.1";
7877 else if (
INFILE(_TITLE_OSL20)) {
7878 lstr =
lDebug?
"OSL(v2.0#1)" :
"OSL-2.0";
7880 else if (
INFILE(_TITLE_OSL11)) {
7881 lstr =
lDebug?
"OSL(v1.1#1)" :
"OSL-1.1";
7883 else if (
INFILE(_TITLE_OSL10)) {
7884 lstr =
lDebug?
"OSL(v1.0#1)" :
"OSL-1.0";
7905 traceFunc(
"== cddlVersion()\n");
7908 if (
INFILE(_TITLE_CDDL_10)) {
7911 else if (
INFILE(_SPDX_CDDL_10)) {
7912 INTERESTING(
"CDDL-1.0");
7917 else if (
INFILE(_TITLE_CDDL_11)) {
7920 else if (
INFILE(_SPDX_CDDL_11)) {
7921 INTERESTING(
"CDDL-1.1");
7945 traceFunc(
"== lpplVersion()\n");
7948 if (
INFILE(_PHR_LATEX_PL13A_OR_LATER_1) ||
7949 INFILE(_PHR_LATEX_PL13A_OR_LATER_2)) {
7950 if (
INFILE(_LT_LATEX_PREAMBLE)) {
7951 lstr =
lDebug ?
"LPPL-v1.3a(#1)" :
"LPPL-1.3a";
7954 lstr =
"LPPL-1.3a+";
7957 else if (
INFILE(_TITLE_LATEX_PL13A) ||
INFILE(_PHR_LATEX_PL13A)) {
7958 lstr =
lDebug ?
"LPPL-v1.3a(#2)" :
"LPPL-1.3a";
7960 else if (
INFILE(_PHR_LATEX_PL13B_OR_LATER_1) ||
7961 INFILE(_PHR_LATEX_PL13B_OR_LATER_2)) {
7962 if (
INFILE(_LT_LATEX_PREAMBLE)) {
7963 lstr =
lDebug ?
"LPPL-v1.3b(#1)" :
"LPPL-1.3b";
7966 lstr =
"LPPL-1.3b+";
7969 else if (
INFILE(_TITLE_LATEX_PL13B) ||
INFILE(_PHR_LATEX_PL13B)) {
7970 lstr =
lDebug ?
"LPPL-v1.3b(#2)" :
"LPPL-1.3b";
7972 else if (
INFILE(_PHR_LATEX_PL13C_OR_LATER_1) ||
7973 INFILE(_PHR_LATEX_PL13C_OR_LATER_2)) {
7974 if (
INFILE(_LT_LATEX_PREAMBLE)) {
7975 lstr =
lDebug ?
"LPPL-v1.3c(#1)" :
"LPPL-1.3c";
7978 lstr =
"LPPL-1.3c+";
7981 else if (
INFILE(_TITLE_LATEX_PL13C) ||
INFILE(_PHR_LATEX_PL13C)) {
7982 lstr =
lDebug ?
"LPPL-v1.3c(#2)" :
"LPPL-1.3c";
7984 else if (
INFILE(_PHR_LATEX_PL13_OR_LATER_1) ||
7985 INFILE(_PHR_LATEX_PL13_OR_LATER_2)) {
7986 if (
INFILE(_LT_LATEX_PREAMBLE)) {
7987 lstr =
lDebug ?
"LPPL-v1.3(#1)" :
"LPPL-1.3";
7993 else if (
INFILE(_TITLE_LATEX_PL13) ||
INFILE(_PHR_LATEX_PL13)) {
7994 lstr =
lDebug ?
"LPPL-v1.3(#2)" :
"LPPL-1.3";
7996 else if (
INFILE(_PHR_LATEX_PL12_OR_LATER_1) ||
7997 INFILE(_PHR_LATEX_PL12_OR_LATER_2)) {
7998 if (
INFILE(_LT_LATEX_PREAMBLE)) {
7999 lstr =
lDebug ?
"LPPL-v1.2(#1)" :
"LPPL-1.2";
8005 else if (
INFILE(_TITLE_LATEX_PL12) ||
INFILE(_PHR_LATEX_PL12)) {
8006 lstr =
lDebug ?
"LPPL-v1.2(#2)" :
"LPPL-1.2";
8008 else if (
INFILE(_PHR_LATEX_PL11_OR_LATER_1) ||
8009 INFILE(_PHR_LATEX_PL11_OR_LATER_2)) {
8010 if (
INFILE(_LT_LATEX_PREAMBLE)) {
8011 lstr =
lDebug ?
"LPPL-v1.1(#1)" :
"LPPL-1.1";
8017 else if (
INFILE(_TITLE_LATEX_PL11) ||
INFILE(_PHR_LATEX_PL11)) {
8018 lstr =
lDebug ?
"LPPL-v1.1(#2)" :
"LPPL-1.1";
8020 else if (
INFILE(_PHR_LATEX_PL10_OR_LATER_1) ||
8021 INFILE(_PHR_LATEX_PL10_OR_LATER_2)) {
8022 if (
INFILE(_LT_LATEX_PREAMBLE)) {
8023 lstr =
lDebug ?
"LPPL-v1.0(#1)" :
"LPPL-1.0";
8029 else if (
INFILE(_TITLE_LATEX_PL10) ||
INFILE(_PHR_LATEX_PL10)) {
8030 lstr =
lDebug ?
"LPPL-v1.0(#2)" :
"LPPL-1.0";
8051 traceFunc(
"== agplVersion()\n");
8059 if (
INFILE(_PHR_AGPL_10_or_later)
8060 ||
INFILE(_TITLE_AGPL_10_or_later)
8061 ||
INFILE(_SPDX_AGPL_10_or_later)
8062 ||
HASTEXT(_SPDX_AGPL_10plus, REG_EXTENDED)
8063 ||
HASTEXT(_PHR_AGPL_10plus, REG_EXTENDED))
8065 lstr =
"AGPL-1.0-or-later";
8067 else if (
INFILE(_PHR_FSF_V1_ONLY)
8068 ||
INFILE(_TITLE_AGPL_10_only)
8069 ||
INFILE(_SPDX_AGPL_10))
8071 lstr =
"AGPL-1.0-only";
8073 else if (
INFILE(_PHR_AGPL_30_or_later)
8074 ||
INFILE(_TITLE_AGPL_30_or_later_ref1)
8075 ||
INFILE(_TITLE_AGPL_30_or_later)
8076 ||
INFILE(_SPDX_AGPL_30_or_later)
8077 ||
HASTEXT(_SPDX_AGPL_30plus, REG_EXTENDED)
8078 ||
HASTEXT(_PHR_AGPL_30plus, REG_EXTENDED))
8080 if (
INFILE(_LT_AGPL_30)) {
8081 lstr =
lDebug ?
"Affero-v3(#1)" :
"AGPL-3.0-only";
8084 lstr =
"AGPL-3.0-or-later";
8087 else if (
HASTEXT(_PHR_AGPL_30_1, REG_EXTENDED) ||
INFILE(_SPDX_AGPL_30)) {
8088 lstr =
"AGPL-3.0-only";
8091 if (
INFILE(_TITLE_GPL3)) {
8092 lstr =
lDebug ?
"GPLv3(Affero#1)" :
"GPL-3.0-only";
8094 else if (
INFILE(_LT_GPL3ref3)){
8095 lstr =
lDebug ?
"GPLv3(special)" :
"GPL-3.0-only";
8098 lstr =
lDebug ?
"Affero-v3(#2)" :
"AGPL-3.0-only";
8101 else if (
INFILE(_TITLE_AGPL_30_only)) {
8102 lstr =
lDebug ?
"Affero-v3(#3)" :
"AGPL-3.0-only";
8104 else if (
INFILE(_TITLE_GPL3)) {
8105 lstr =
lDebug ?
"GPLv3(Affero#2)" :
"GPL-3.0-only";
8108 lstr =
lDebug ?
"Affero-v3(url)" :
"AGPL-3.0-only";
8129 traceFunc(
"== gfdlVersion()\n");
8137 if (
INFILE(_TITLE_GFDL_V13_FULL_LICENSE)) {
8140 if (
HASTEXT(_LT_CC_ref, REG_EXTENDED)) {
8144 else if (
INFILE(_TITLE_GFDL_V13_OR_LATER)) {
8145 lstr =
"GFDL-1.3-or-later";
8147 else if (
INFILE(_TITLE_GFDL_V13_ONLY)) {
8148 lstr =
lDebug ?
"GFDL-1.3(#1)" :
"GFDL-1.3";
8150 else if (
INFILE(_TITLE_GFDL_V12_FULL_LICENSE)) {
8151 lstr =
lDebug ?
"GFDL-1.2-only(#1)" :
"GFDL-1.2-only";
8153 else if (
INFILE(_PHR_FSF_V12_OR_LATER) ||
8154 INFILE(_TITLE_GFDL_V12_OR_LATER)) {
8155 lstr =
"GFDL-1.2-or-later";
8157 else if (
INFILE(_TITLE_GFDL_V12_ONLY)) {
8158 lstr =
lDebug ?
"GFDL-1.2-only(#1)" :
"GFDL-1.2-only";
8160 else if (
INFILE(_TITLE_GFDL_V11_FULL_LICENSE)) {
8161 lstr =
lDebug ?
"GFDL-1.1-only(#1)" :
"GFDL-1.1-only";
8163 else if (
INFILE(_PHR_FSF_V11_OR_LATER) ||
8164 INFILE(_TITLE_GFDL_V11_OR_LATER)) {
8165 lstr =
"GFDL-1.1-or-later";
8167 else if (
INFILE(_TITLE_GFDL_V11_ONLY)) {
8168 lstr =
lDebug ?
"GFDL-1.1-only(#1)" :
"GFDL-1.1-only";
8170 else if (
INFILE(_PHR_FSF_V12_ONLY)) {
8171 lstr =
lDebug ?
"GFDL-1.2-only(#2)" :
"GFDL-1.2-only";
8173 else if (
INFILE(_PHR_FSF_V11_ONLY)) {
8174 lstr =
lDebug ?
"GFDL-1.1-only(#2)" :
"GFDL-1.1-only";
8195 traceFunc(
"== lgplVersion()\n");
8198 if ((
INFILE(_PHR_LGPL21_OR_LATER_1)
8199 ||
INFILE(_PHR_LGPL21_OR_LATER_2)
8200 ||
HASTEXT(_PHR_LGPL21_OR_LATER_3, REG_EXTENDED)
8201 ||
HASTEXT(_PHR_LGPL21_OR_LATER_4, REG_EXTENDED))
8202 && !
HASTEXT(_LT_IGNORE_CLAUSE, REG_EXTENDED))
8204 if (
INFILE(_TITLE_LGPL_KDE)) {
8205 lstr =
"LGPL-2.1-or-later-KDE-exception";
8208 lstr =
"LGPL-2.1-or-later";
8211 else if ((
INFILE(_PHR_LGPL3_OR_LATER)
8212 ||
INFILE(_PHR_LGPL3_OR_LATER_ref1)
8213 ||
INFILE(_PHR_LGPL3_OR_LATER_ref2)
8214 ||
HASTEXT(_PHR_LGPL3_OR_LATER_ref3, REG_EXTENDED)
8215 ||
HASTEXT(_SPDX_LGPL_30plus, REG_EXTENDED)
8216 ||
HASTEXT(_PHR_LGPL_30plus, REG_EXTENDED))
8217 && !
HASTEXT(_LT_IGNORE_CLAUSE, REG_EXTENDED))
8219 lstr =
"LGPL-3.0-or-later";
8222 lstr =
"LGPL-3.0-only";
8230 lstr =
"LGPL-3.0-only";
8232 else if (
INFILE(_PHR_LGPL21_ONLY)
8235 ||
INFILE(_PHR_LGPL21_ONLY_ref)
8236 ||
INFILE(_PHR_LGPL21_ONLY_ref2)
8237 ||
INFILE(_PHR_LGPL21_ONLY_ref3)
8238 ||
INFILE(_PHR_LGPL21_ONLY_ref4))
8240 lstr =
"LGPL-2.1-only";
8242 else if ((
INFILE(_PHR_LGPL2_OR_LATER)
8243 ||
HASTEXT(_PHR_LGPL2_OR_LATER_2, REG_EXTENDED)
8244 ||
HASTEXT(_PHR_LGPL2_OR_LATER_3, REG_EXTENDED))
8245 && !
HASTEXT(_LT_IGNORE_CLAUSE, REG_EXTENDED))
8247 lstr =
"LGPL-2.0-or-later";
8250 lstr =
"LGPL-2.0-only";
8252 else if (
INFILE(_PHR_LGPL1_OR_LATER) && !
HASTEXT(_LT_IGNORE_CLAUSE, REG_EXTENDED)) {
8253 lstr =
"LGPL-1.0-or-later";
8255 else if (
INFILE(_PHR_LGPL1_ONLY) ||
INFILE(_PHR_FSF_V1_ONLY)) {
8256 lstr =
"LGPL-1.0-only";
8259 lstr =
lDebug ?
"CC-LGPL-2.1" :
"LGPL-2.1-only";
8261 else if (
INFILE(_LT_CC_GPL) ||
INFILE(_TITLE_CC_LGPL)) {
8265 HASREGEX(_TEXT_LGPLV3, filetext)) {
8266 lstr =
lDebug ?
"LGPL-v3(#2)" :
"LGPL-3.0-only";
8268 else if (
INFILE(_TEXT_LGPLV21) &&
8269 HASREGEX(_TEXT_LGPLV21, filetext)) {
8270 lstr =
lDebug ?
"LGPL-v2.1(#2)" :
"LGPL-2.1-only";
8272 else if (
INFILE(_TEXT_LGPLV2) &&
8273 HASREGEX(_TEXT_LGPLV2, filetext)) {
8274 lstr =
lDebug ?
"LGPL-v2(#2)" :
"LGPL-2.0-only";
8276 else if (
INFILE(_SPDX_LGPL_20)) {
8277 lstr =
"LGPL-2.0-only";
8279 else if (
INFILE(_SPDX_LGPL_21)) {
8280 lstr =
"LGPL-2.1-only";
8282 else if (
INFILE(_SPDX_LGPL_30)) {
8283 lstr =
"LGPL-3.0-only";
8304 traceFunc(
"== gplVersion()\n");
8315 ||
HASTEXT(_SPDX_GPL_30plus, REG_EXTENDED)
8316 ||
HASTEXT(_PHR_GPL_30plus, REG_EXTENDED))
8318 if (!
HASTEXT(_LT_IGNORE_CLAUSE, REG_EXTENDED)) {
8319 lstr =
"GPL-3.0-or-later";
8320 if (
INFILE(_PHR_GPL2_OR_LATER_1)) {
8321 lstr =
"GPL-2.0-or-later,GPL-3.0-or-later";
8330 lstr =
lDebug ?
"GPL-v3(#2)" :
"GPL-3.0-only";
8331 if (
INFILE(_PHR_GPL2_OR_LATER_1))
8333 lstr =
"GPL-2.0-or-later,GPL-3.0-only";
8338 lstr =
lDebug ?
"GPL-v3(#3)" :
"GPL-3.0-only";
8343 else if (
HASTEXT(_LT_GPL_V2_NAMED_later, REG_EXTENDED) ||
INFILE(_TITLE_GPL2_ref1_later)) {
8344 lstr =
lDebug ?
"GPLV2+(named)" :
"GPL-2.0-or-later";
8346 else if (
HASTEXT(_SPDX_GPL_20_or_later, REG_EXTENDED)) {
8347 lstr =
lDebug ?
"GPL-2.0-or-later(SPDX)" :
"GPL-2.0-or-later";
8349 else if (
INFILE(_PHR_GPL2_OR_LATER_1)) {
8350 if (
INFILE(_TITLE_GPL_KDE)) {
8351 lstr =
"GPL-2.0-or-laterKDEupgradeClause";
8353 else if (
INFILE(_PHR_GPL2_ONLY_2) ||
INFILE(_PHR_GPL2_ONLY_3)) {
8354 lstr =
"GPL-2.0-only";
8356 else if (!
HASTEXT(_LT_IGNORE_CLAUSE, REG_EXTENDED)) {
8357 lstr =
lDebug ?
"PHR(GPL2_OR_LATER#3)" :
"GPL-2.0-or-later";
8359 else if (
INFILE(_TITLE_GPL2_ref1) ||
INFILE(_TITLE_GPL2_ref2)) {
8360 lstr =
lDebug ?
"GPL-2.0-only(title)" :
"GPL-2.0-only";
8363 else if (
HASTEXT(_SPDX_GPL_20, REG_EXTENDED)) {
8364 lstr =
lDebug ?
"GPL-2.0-only(SPDX)" :
"GPL-2.0-only";
8366 else if (
INFILE(_PHR_GPL2_ONLY_4)) {
8367 lstr =
"GPL-2.0-only";
8369 else if (
INFILE(_PHR_GPL2_ONLY_5)) {
8370 lstr =
"GPL-2.0-only";
8373 lstr =
"GPL-2.0-only,GPL-3.0-only";
8375 else if (
INFILE(_PHR_FSF_V2_ONLY) ||
INFILE(_PHR_GPL2_ONLY) ||
INFILE(_PHR_GPL2_ONLY_1) ||
8377 lstr =
lDebug ?
"GPL-v2(#2)" :
"GPL-2.0-only";
8379 else if (
INFILE(_LT_GPL_V2_ref5)) {
8380 lstr =
lDebug ?
"GPL-2.0-only(ref5)" :
"GPL-2.0-only";
8383 lstr =
lDebug ?
"GPL-v2(#3)" :
"GPL-2.0-only";
8389 ||
INFILE(_PHR_GPL1_OR_LATER)
8390 ||
HASTEXT(_SPDX_GPL_10plus, REG_EXTENDED)
8391 ||
HASTEXT(_PHR_GPL_10plus, REG_EXTENDED))
8393 if (
INFILE(_TITLE_GPL1)) {
8394 lstr =
lDebug ?
"GPL-v1(#1)" :
"GPL-1.0-only";
8396 else if (!
HASTEXT(_LT_IGNORE_CLAUSE, REG_EXTENDED)) {
8397 lstr =
"GPL-1.0-or-later";
8400 else if (
INFILE(_PHR_FSF_V1_ONLY) ||
INFILE(_PHR_GPL1_ONLY)) {
8401 lstr =
lDebug ?
"GPL-v1(#2)" :
"GPL-1.0-only";
8404 lstr =
"GPL-2.0-only";
8406 else if (
INFILE(_LT_CC_GPL) ||
INFILE(_TITLE_CC_GPL)) {
8407 lstr =
lDebug ?
"GPL(CC_GPL)" :
"GPL";
8411 lstr =
lDebug ?
"GPL-v1(#3)" :
"GPL-1.0-only";
8413 else if (
HASTEXT(_SPDX_GPL_10, REG_EXTENDED)) {
8414 lstr =
lDebug ?
"GPL-1.0-only(SPDX)" :
"GPL-1.0-only";
8416 else if (
HASTEXT(_SPDX_GPL_30, REG_EXTENDED)) {
8417 lstr =
lDebug ?
"GPL-3.0-only(SPDX)" :
"GPL-3.0-only";
8422 else if (
INFILE(_TEXT_GPLV3_CR) && !
HASTEXT(_LT_IGNORE_CLAUSE, REG_EXTENDED)) {
8423 lstr =
"GPL-3.0-only";
8426 lstr =
lDebug ?
"GPL(deb)" :
"GPL";
8435 else if (
INFILE(_TITLE_MODULE_LICENSE_GPL)) {
8436 lstr =
lDebug ?
"GPL(linux-kernel)" :
"GPL";
8441 else if (
INFILE(_PHR_GPL21_OR_LATER) && !
HASTEXT(_LT_IGNORE_CLAUSE, REG_EXTENDED)) {
8442 lstr =
"GPL-2.1+[sic]";
8444 else if (
INFILE(_PHR_FSF_V21_ONLY) ||
INFILE(_PHR_GPL21_ONLY)) {
8445 lstr =
lDebug ?
"GPL-v2.1[sic]" :
"GPL-2.1[sic]";
8455 printf(
"GPL-META-CHECK: base %p, so %d eo %d\n",
8459 if (
HASREGEX(_LT_GPL_META_DEBIAN, cp)) {
8465 lstr =
lDebug ?
"GPL(NULL)" :
"GPL";
8483 traceFunc(
"== cplVersion()\n");
8486 if (
INFILE(_TITLE_CPL_10)) {
8492 else if (
INFILE(_TITLE_CPL_05)) {
8509 char *
ccVersion(
char *filetext,
int size,
int isML,
int isPS)
8514 traceFunc(
"== ccVersion()\n");
8520 lstr =
"CC-BY-SA-1.0";
8523 lstr =
"CC-BY-SA-2.0";
8526 lstr =
"CC-BY-SA-2.5";
8529 lstr =
"CC-BY-SA-3.0";
8531 else if (
INFILE(_PHR_CC_BY_SA_30)) {
8532 lstr =
"CC-BY-SA-3.0";
8535 lstr =
"CC-BY-SA-4.0";
8538 lstr =
"CC-BY-SA-2.0";
8541 lstr =
lDebug ?
"CCA-SA(1)" :
"CC-BY-SA";
8546 else if (
INFILE(_TITLE_CC_BY_NC_SA_40) ||
URL_INFILE(_URL_CC_BY_NC_SA_40)) {
8547 lstr =
"CC-BY-NC-SA-4.0";
8549 else if (
INFILE(_TITLE_CC_BY_NC_SA_30) ||
URL_INFILE(_URL_CC_BY_NC_SA_30)) {
8550 lstr =
"CC-BY-NC-SA-3.0";
8552 else if (
INFILE(_TITLE_CC_BY_NC_SA_25) ||
URL_INFILE(_URL_CC_BY_NC_SA_25)) {
8553 lstr =
"CC-BY-NC-SA-2.5";
8555 else if (
INFILE(_TITLE_CC_BY_NC_SA_20) ||
URL_INFILE(_URL_CC_BY_NC_SA_20)) {
8556 lstr =
"CC-BY-NC-SA-2.0";
8558 else if (
INFILE(_TITLE_CC_BY_NC_SA_10) ||
URL_INFILE(_URL_CC_BY_NC_SA_10)) {
8559 lstr =
"CC-BY-NC-SA-1.0";
8564 else if (
INFILE(_TITLE_CC_BY_NC_ND_40) ||
URL_INFILE(_URL_CC_BY_NC_ND_40)) {
8565 lstr =
"CC-BY-NC-ND-4.0";
8567 else if (
INFILE(_TITLE_CC_BY_NC_ND_30) ||
URL_INFILE(_URL_CC_BY_NC_ND_30)) {
8568 lstr =
"CC-BY-NC-ND-3.0";
8570 else if (
INFILE(_TITLE_CC_BY_NC_ND_25) ||
URL_INFILE(_URL_CC_BY_NC_ND_25)) {
8571 lstr =
"CC-BY-NC-ND-2.5";
8573 else if (
INFILE(_TITLE_CC_BY_NC_ND_20) ||
URL_INFILE(_URL_CC_BY_NC_ND_20)) {
8574 lstr =
"CC-BY-NC-ND-2.0";
8576 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)) {
8577 lstr =
"CC-BY-NC-ND-1.0";
8583 lstr =
"CC-BY-NC-4.0";
8586 lstr =
"CC-BY-NC-3.0";
8589 lstr =
"CC-BY-NC-2.5";
8592 lstr =
"CC-BY-NC-2.0";
8595 lstr =
"CC-BY-NC-1.0";
8601 lstr =
"CC-BY-ND-4.0";
8604 lstr =
"CC-BY-ND-3.0";
8607 lstr =
"CC-BY-ND-2.5";
8610 lstr =
"CC-BY-ND-2.0";
8613 lstr =
"CC-BY-ND-1.0";
8636 else if (
INFILE(_TITLE_CC0_10_2)) {
8637 lstr =
lDebug ?
"CC0(2)" :
"CC0-1.0";
8639 else if (
INFILE(_PHR_CC0_2)) {
8640 lstr =
lDebug ?
"CC0(2)" :
"CC0-1.0";
8643 lstr =
lDebug ?
"CC0(URL)" :
"CC0-1.0";
8646 lstr =
lDebug ?
"CC(PD)" :
"CC-PDDC";
8649 else if (
INFILE(_TITLE_CCPL)) {
8650 INTERESTING(
"CCPL");
8652 else if (
INFILE(_TITLE_CC_BY)) {
8653 lstr =
lDebug ?
"CCA(1)" :
"CC-BY";
8656 lstr =
lDebug ?
"CCA(def)" :
"CC-BY";
8678 int findPhrase(
int index,
char *filetext,
int size,
int isML,
int isPS,
8682 char *q =
ltsr+index;
8697 #ifdef PARSE_STOPWATCH
8702 #if defined(PROC_TRACE) || defined(PHRASE_DEBUG) || defined(DOCTOR_DEBUG)
8703 traceFunc(
"== findPhrase(%d, %p, %d, %d, %d, %d)\n", index, filetext,
8704 size, isML, isPS, qType);
8705 traceFunc(
"... (regex) \"%s\"\n",
_REGEX(index));
8706 traceFunc(
"... (seed) \"%s\"\n",
_SEED(index));
8711 LOG_FATAL(
"Regex #%d not suitable for findPhrase()", index)
8715 #ifdef PARSE_STOPWATCH
8716 (void) sprintf(timerName,
"findPhrase(%03d): ", index);
8720 printf(
"findPhrase: firstword[%d] == \"%s\", used = %d\n", index,
8731 LOG_FATAL(
"search cache")
8734 if (sp->refCount < 0) {
8736 #ifdef PARSE_STOPWATCH
8738 (void) strcat(timerName,
"Cache-NO - ");
8739 (void) strcat(timerName, ltp->
tseed);
8740 PRINT_TIMER(timerName, 0);
8744 else if (sp->refCount == 0) {
8750 if ((cur.nLines) <= 5) {
8753 }
else if ((size / cur.nLines) <= 10) {
8769 #ifdef PARSE_STOPWATCH
8771 (void) strcat(timerName,
"tseed-NO - ");
8772 (void) strcat(timerName, ltp->
tseed);
8773 PRINT_TIMER(timerName, 0);
8779 printf(
"... adding %d bytes (search-lookup: \"%s\")\n",
8780 strlen(sp->
buf), sp->
str);
8787 #ifdef PARSE_STOPWATCH
8791 printf(
" ... doctoring buffer for \"%s\"\n", sp->
str);
8794 #ifdef PARSE_STOPWATCH
8796 (void) sprintf(timerName,
"... doctor(%03d): %s (%d)",
8797 index, ltp->
tseed, strlen(sp->
buf));
8798 PRINT_TIMER(timerName, 0);
8807 if (op->nMatch <= 0) {
8808 LOG_FATAL(
"File-offset list, nMatch(%s): bad entry", sp->
str)
8812 printf(
"matches for key \"%s\": %d\n", sp->
str, op->nMatch);
8814 n = strlen(sp->
buf);
8815 lp = (
list_t *)op->bList;
8816 if ((lp) && (lp->
items[0].bDocLen == 0)) {
8817 if (op->nMatch == 1) {
8818 lp->
items[0].bDocLen = n;
8822 while (
strGrep(
" xyzzy ", ptr, REG_ICASE)) {
8823 lp->
items[i++].bDocLen = j + cur.regm.rm_so;
8824 ptr += cur.regm.rm_eo;
8825 j += (cur.regm.rm_eo + 7);
8827 lp->
items[i].bDocLen = n + 7;
8834 metaKludge = ((qType == 2) && (index == _LT_GPLref1));
8835 if (metaKludge || qType == 4) {
8842 kludge.base = cur.matchBase;
8843 kludge.sso = cur.regm.rm_so;
8844 kludge.seo = cur.regm.rm_eo;
8849 sso = cur.regm.rm_so;
8850 seo = cur.regm.rm_eo;
8851 if (ret && !wordMatch) {
8869 if ((qType > 0) && !wordMatch) {
8870 if ((qType > 4) || (qType < 0)) {
8871 LOG_FATAL(
"Unknown string-search kludge %d", qType)
8887 printf(
"Now, buf %p contains:\n%s\n",
8888 sp->
buf, (
char *)sp->
buf);
8904 printf(
"... \"GPL\" -> LGPL (%d)\n",
8910 }
else if ((qType == 2) &&
8913 printf(
"... \"GPL\" -> GFDL (%d)\n",
8919 }
else if ((index == _LT_GPL3ref) && (qType == 2)) {
8922 printf(
"... \"GPL\" -> QEMU\n");
8927 }
else if (
INFILE(_PHR_SCF_HOWTO)) {
8929 printf(
"... SCF-Howto\n");
8933 }
else if (
HASREGEX(_TEXT_DRBD_NOT_GPL3, sp->
buf)) {
8935 printf(
"... mysgl/DRBD\n");
8941 #ifdef GPLV2_BEATS_GPLV3
8942 else if (
strNbuf(sp->
buf+sso,
"version 2")) {
8943 if (sp->
buf + sso + cur.regm.rm_eo <
8946 printf(
"... v%c!\n", *cp);
8953 }
else if ((index == _PHR_GPL3_OR_LATER) &&
8957 printf(
"... v2 and version 3\"\n");
8961 }
else if ((index == _PHR_GPL3_OR_LATER) &&
8965 printf(
"... exclude \"GPLv3 draft\"\n");
8970 }
else if ((index == _PHR_GPL3_ONLY) &&
8974 printf(
"... exclude libstdc vers\"\n");
8993 else if ((qType == 2) &&
8994 ((index == _PHR_GPL3_ONLY) || (index == _PHR_LGPL3_ONLY))) {
8997 cp = sp->
buf + cur.regm.rm_eo;
9001 for (ptr = sp->
buf+seo; cp < ptr; cp++) {
9002 if (isdigit(*cp) && *cp !=
'3') {
9004 printf(
"... vers %c!\n",
9012 }
else if (index == _PHR_FSF_V3_ONLY && qType == 2) {
9014 #ifdef GPLV2_BEATS_GPLV3
9015 ptr = sp->
buf + sso + cur.regm.rm_so + 7;
9017 cp = strchr(sp->
buf+sso,
'3');
9018 if (strncasecmp(cp,
"3 tlb", 5) == 0) {
9020 printf(
"... v3 tlb\n");
9025 #ifdef GPLV2_BEATS_GPLV3
9026 else if ((*ptr ==
' ') && (*(ptr+1) ==
'2')) {
9028 printf(
"... v2, !v3\n");
9036 cp = sp->
buf + sso + cur.regm.rm_so;
9037 if (strncasecmp(cp-4,
"arm ", 4) == 0) {
9039 printf(
"... arm v3\n");
9043 }
else if (strncasecmp(cp,
"v3020 ",
9046 printf(
"... v3020\n");
9052 }
else if ((index == _LT_LGPL_OR) &&
9053 (strncasecmp(sp->
buf+sso,
"or fitness f", 12) == 0)) {
9055 printf(
"... merch-or-fitness\n");
9059 }
else if ((index == _LT_GPLref1) &&
9061 INFILE(_PHR_LIC_CHANGE)) {
9063 printf(
"... exclude lic-change\"\n");
9067 }
else if ((qType == 2) && (sso > 4)) {
9069 if (strncasecmp(cp,
"not ", 4) == 0) {
9071 printf(
"... NOT l?gpl-ish\n");
9076 }
else if (qType == 3 &&
INFILE(_PHR_ARTISTIC_DESC1)) {
9082 printf(
"... exclude artistic defn\"\n");
9086 }
else if (qType == 4) {
9093 x = cp = cur.matchBase + sso;
9094 ptr = cp - (sso < 100 ? sso : 100);
9095 while (!isdigit(*cp)) {
9098 if (isdigit(*(cp+1)) && isdigit(*(cp+2)) && isdigit(*(cp+3))) {
9100 printf(
"... don't want year\n");
9104 }
else if (
HASREGEX(_TEXT_GNU_HELLO_23, ptr)) {
9106 printf(
"... gnu example\n");
9111 #ifdef GPLV2_BEATS_GPLV3
9112 else if (strncasecmp(x-5,
"v2 or ", 5) == 0) {
9114 printf(
"... v2 or v3\n");
9125 else if (index == _TEXT_GPLV3) {
9126 x = cur.matchBase + seo;
9127 if (isdigit(*x) && *x !=
'0') {
9129 printf(
"... v3#!0\n");
9138 printf(
">>===> \"%s\"\n", ltp->
regex);
9141 #ifdef PARSE_STOPWATCH
9143 (void) sprintf(timerName,
"findPhrase(%03d): RET=%d (%s:%d)", index,
9145 PRINT_TIMER(timerName, 0);
9182 #
if defined(PROC_TRACE) || defined(PHRASE_DEBUG)
9183 traceFunc(
"== locateRegex(%p, %p, %d, %d, %d, %d)\n", text, op, index,
9191 if (
idxGrep(index, text, REG_ICASE|REG_EXTENDED)) {
9193 cur.regm.rm_eo - cur.regm.rm_so,
YES);
9203 printf(
"Doc-buffer match @ %d:%d\n", sso, seo);
9204 printf(
"Possible \"%s\" entries to search: %d (%d)\n", op->
str,
9205 op->nMatch, lp->
used);
9207 printf(
"Ent[%d]: bDocLen %d (len %d) == file %d+%d (%d)\n",
9208 i, sp->bDocLen, (sp->bDocLen)-n, sp->bStart, sp->bLen,
9209 sp->bStart+sp->bLen);
9225 if (sso > sp->bDocLen) {
9232 printf(
"sso(%d), limit(%d), Possible: @%d+%d\n", sso,
9239 LOG_FATAL(
"Cannot map reduced-text to raw file contents (#%d)", index)
9255 printf(
"WINDOW-first: offset %d, len %d\n", off, len);
9261 printf(
"EO-Regex, cp == '%c'\n", *cp);
9264 while (*cp ==
' ') {
9267 while ((n == 1) || ((cp !=
start) && (*cp !=
' ') && (*cp !=
')') &&
9271 }
else if (*cp ==
'[') {
9274 if (cp ==
_REGEX(index)) {
9286 }
else if (*cp ==
')') {
9294 while ((cp !=
start) && (*cp !=
' ') && (*cp !=
'.') && (*cp !=
')')
9295 && (*cp !=
']') && (*cp !=
'}')) {
9300 printf(
"_END_@%ld '%c'\n", cp-
_REGEX(index), *cp);
9307 if ((*cp ==
'?') || (*cp ==
'+')) {
9311 ptr = sp->
buf + sso;
9314 printf(
"SEARCH @foot is now \"%s\"\n", cp);
9316 while (
strGrep(cp, ptr, REG_ICASE|REG_EXTENDED)) {
9318 ptr += cur.regm.rm_eo;
9319 j += cur.regm.rm_eo;
9321 printf(
"Found match (%d bytes) @ offset %d (%d tot)\n",
9322 cur.regm.rm_eo - cur.regm.rm_so, cur.regm.rm_so, j);
9326 printf(
"Total # of matches == %d\n", i);
9331 printf(
"WINDOW-adjst: offset %d, len %d\n", off, len);
9334 Assert(
NO,
"Regex \"%s\" (foot-end) not in raw text", cp);
9345 printf(
"BO-Regex, cp == '%c'\n", *cp);
9347 while (*cp ==
' ') {
9350 while (*cp && (*cp !=
' ') && (*cp !=
'.') && (*cp !=
'(') &&
9353 if (*(cp + 1) ==
'^') {
9356 while (*cp && (*cp !=
']')) {
9359 if (*(cp+1) && (*(cp+1) ==
'?')) {
9371 for (n = 1, cp++; n; cp++) {
9373 if ((*cp ==
'(') && (*(cp-1) !=
'\\')) {
9375 }
else if ((*cp ==
')') && (*(cp-1) !=
'\\')) {
9379 while (*cp && (*cp !=
' ') && (*cp !=
'.') && (*cp !=
'(') &&
9387 ((*cp ==
'.') && (*(cp-1) ==
'\\'))) {
9394 printf(
"SEARCH @head is now \"%s\"\n",
_REGEX(index));
9398 REG_ICASE|REG_EXTENDED)) {
9399 len -= cur.regm.rm_so;
9400 off += cur.regm.rm_so;
9402 LOG_NOTICE(
"Regex \"%s\" (foot-start) not in raw text",
_REGEX(index));
9408 LOG_NOTICE(
"Nothing to trim from the front (*cp == NULL)");
9414 printf(
"Hey, last-word IS the entire regex!\n");
9419 printf(
"WINDOW-FINAL: offset %d, len %d\n", off, len);
9435 if ((off + len) > size) {
9436 LOG_FATAL(
"off %d + len %d (== %d) exceeds filesize %d!", off, len, off + len, size);
9454 #if defined(PROC_TRACE) || defined(PHRASE_DEBUG)
9455 traceFunc(
"== saveRegexLocation(%d, %d, %d, %d)\n", index, offset, length,
9459 (void) sprintf(name,
"reg%04d", index);
9461 sp->bIndex = whereList.
used;
9462 sp->bStart = offset;
9467 ip->bStart = offset;
9474 void saveUnclBufLocation(
int bufNum)
9480 #if defined(PROC_TRACE) || defined(PHRASE_DEBUG)
9481 traceFunc(
"== saveUnclBufLocation(%d, %d, %d, %d)\n", bufNum);
9486 lp = (
list_t *) p->bList;
9487 (
void) sprintf(name,
"buf%05d", bufNum);
9490 bp->bStart = p->bStart;
9506 if(!(str && str[0]))
9510 traceFunc(
"== addRef(\"%s\", %d)\n", str, interest);
9528 Assert(
YES,
"license detected != NULL");
9531 Assert(
YES,
"license string not start with NULL");
9551 if (interest > IL_LOW) {
9552 p->iLevel = interest;
9555 if (interest > maxInterest) {
9556 maxInterest = interest;
9560 listSort(&whereList, SORT_BY_COUNT_ASC);
9561 printf(
"WINDOW for \"%s\": ", str);
9566 printf(
"%d+%d", p->bStart, p->bLen);
9573 printf(
"++ \"%s\" [int=%d]\n", str, interest);
9591 if (lmem[_tOPENLDAP]) {
9592 if (
INFILE(_TITLE_OPENLDAP25)) {
9593 INTERESTING(
"OLDAP-2.5");
9596 else if (
INFILE(_TITLE_OPENLDAP26)) {
9597 INTERESTING(
"OLDAP-2.6");
9600 else if (
INFILE(_TITLE_OPENLDAP27)) {
9601 INTERESTING(
"OLDAP-2.7");
9604 else if (
INFILE(_TITLE_OPENLDAP28)) {
9605 INTERESTING(
"OLDAP-2.8");
9608 else if (
INFILE(_TITLE_OPENLDAP201)) {
9609 INTERESTING(
"OLDAP-2.0.1");
9612 else if (
INFILE(_TITLE_OPENLDAP20)) {
9613 INTERESTING(
"OLDAP-2.0");
9616 else if (
INFILE(_TITLE_OPENLDAP21)) {
9617 INTERESTING(
"OLDAP-2.1");
9620 else if (
INFILE(_TITLE_OPENLDAP221) ||
INFILE(_SPDX_OLDAP_221)) {
9621 INTERESTING(
"OLDAP-2.2.1");
9624 else if (
INFILE(_TITLE_OPENLDAP222) ||
INFILE(_SPDX_OLDAP_222)) {
9625 INTERESTING(
"OLDAP-2.2.2");
9628 else if (
INFILE(_TITLE_OPENLDAP22)) {
9629 INTERESTING(
"OLDAP-2.2");
9632 else if (
INFILE(_TITLE_OPENLDAP11)) {
9633 INTERESTING(
"OLDAP-1.1");
9636 else if (
INFILE(_TITLE_OPENLDAP23)) {
9637 INTERESTING(
"OLDAP-2.3");
9640 else if (
INFILE(_TITLE_OPENLDAP24)) {
9641 INTERESTING(
"OLDAP-2.4");
9644 else if (
INFILE(_TITLE_OPENLDAP12)) {
9645 INTERESTING(
"OLDAP-1.2");
9648 else if (
INFILE(_TITLE_OPENLDAP13)) {
9649 INTERESTING(
"OLDAP-1.3");
9652 else if (
INFILE(_TITLE_OPENLDAP14)) {
9653 INTERESTING(
"OLDAP-1.4");
9656 else if (
INFILE(_CR_OPENLDAP) &&
INFILE(_TITLE_OPENLDAP)) {
9657 INTERESTING(
"OLDAP");
9661 lmem[_fOPENLDAP] = ret;
9690 int isML,
int isPS,
int nw)
9696 #ifdef UNKNOWN_CHECK_DEBUG
9702 traceFunc(
"== checkUnclassified(%p, %d, %d, %d, %d, %d)\n", filetext,
9703 size, score, isML, isPS, nw);
9719 if (
INFILE(_LT_DEB_CONTRACT) ||
INFILE(_LT_DEB_CONTRACTref)){
9720 INTERESTING(
"Debian-social-DFSG");
9723 if (
INFILE(_LT_TROLLTECH)) {
9735 if (cur.licPara ==
NULL_STR && cur.matchBase) {
9736 saveLicenseParagraph(cur.matchBase, isML, isPS,
NO);
9747 #ifdef UNKNOWN_CHECK_DEBUG
9748 printf(
"... first regex: \"%s\"\n",
_REGEX(_LEGAL_first));
9752 #ifdef UNKNOWN_CHECK_DEBUG
9753 printf(
"... getInstances returns NULL\n");
9765 !match3(_LEGAL_first, buf, score,
NO, isML, isPS)) {
9766 #ifdef UNKNOWN_CHECK_DEBUG
9767 printf(
"... first check fails\n");
9779 while (
idxGrep(_UTIL_XYZZY, curptr, 0)) {
9780 cp = curptr + cur.regm.rm_so;
9782 #ifdef UNKNOWN_CHECK_DEBUG
9783 printf(
"DEBUG: paragraph #%d:\n[START-PARA]\n%s\n[END-PARA]\n",
9796 if (match3(_LEGAL_first, curptr, score,
YES, isML, isPS)) {
9797 saveUnclBufLocation(i);
9800 #ifdef UNKNOWN_CHECK_DEBUG
9802 printf(
"DEBUG: match() returns 0, look again\n");
9813 LOG_FATAL(
"Cannot find delimeter!")
9821 #ifdef UNKNOWN_CHECK_DEBUG
9822 printf(
"DEBUG: %s paragraph (#%d):\n[START-PARA]\n%s\n[END-PARA]\n",
9823 pNum == 0 ?
"ONLY" :
"LAST", ++pNum, curptr);
9825 if (match3(_LEGAL_first, curptr, score,
YES, isML, isPS)) {
9826 saveUnclBufLocation(++i);
9842 traceFunc(
"== checkFileReferences(%p, %d, %d, 0x%x, %d, %d)\n", filetext,
9843 size, score, kwbm, isML, isPS);
9845 for (i = 0; i < NSEECOPYING; i++) {
9846 if (
INFILE(_SEECOPYING_first+i)) {
9848 (void) sprintf(name,
"Gen-CPY-%d", ++i);
9851 INTERESTING(
"See-file.COPYING");
9857 for (i = 0; i < NSEELICENSE; i++) {
9858 if (
INFILE(_SEELICENSE_first+i)) {
9860 (void) sprintf(name,
"Gen-CPY-%d", ++i);
9863 INTERESTING(
"See-file.LICENSE");
9869 for (i = 0; i < NSEEREADME; i++) {
9870 if (
INFILE(_SEEREADME_first+i)) {
9872 (void) sprintf(name,
"Gen-CPY-%d", ++i);
9875 INTERESTING(
"See-file.README");
9881 for (i = 0; i < NSEEOTHER; i++) {
9882 if (
INFILE(_SEEOTHER_first+i)) {
9884 (void) sprintf(name,
"Gen-CPY-%d", ++i);
9887 INTERESTING(
"See-doc.OTHER");
9893 if (
INFILE(_LT_SEE_OUTPUT_1)) {
9894 INTERESTING(
lDebug ?
"Gen-EXC-1" :
"GNU-style.EXECUTE");
9897 else if (
INFILE(_LT_SEE_OUTPUT_2)) {
9898 INTERESTING(
lDebug ?
"Gen-EXC-2" :
"Free-SW.run-COMMAND");
9899 }
else if (
INFILE(_LT_SEE_OUTPUT_3)) {
9900 INTERESTING(
lDebug ?
"Gen-EXC-3" :
"Free-SW.run-COMMAND");
9903 if(
HASTEXT(_LT_SEE_COPYING_LICENSE_1, REG_EXTENDED) ||
HASTEXT(_LT_SEE_COPYING_LICENSE_2, REG_EXTENDED)) {
9904 INTERESTING(
"See-file");
9906 else if (
HASTEXT(_LT_SEE_URL, REG_EXTENDED) ||
HASTEXT(_LT_SEE_URL_ref1, REG_EXTENDED) ||
HASTEXT(_LT_SEE_URL_ref2, REG_EXTENDED) ||
HASTEXT(_LT_SEE_URL_ref3, REG_EXTENDED)) {
9907 INTERESTING(
"See-URL");
9912 if (
INFILE(_LT_SEE_COPYING_1)) {
9913 INTERESTING(
lDebug ?
"Gen-CPY-1" :
"See-file.COPYING");
9915 else if (
INFILE(_LT_SEE_COPYING_2)) {
9916 INTERESTING(
lDebug ?
"Gen-CPY-2" :
"See-file.COPYING");
9918 else if (
INFILE(_LT_SEE_COPYING_3)) {
9919 INTERESTING(
lDebug ?
"Gen-CPY-3" :
"See-file.COPYING");
9921 else if (
INFILE(_LT_SEE_COPYING_4)) {
9922 INTERESTING(
lDebug ?
"Gen-CPY-4" :
"See-file.COPYING");
9924 else if (
INFILE(_LT_SEE_COPYING_5)) {
9925 INTERESTING(
lDebug ?
"Gen-CPY-5" :
"See-file.COPYING");
9927 else if (
INFILE(_LT_SEE_COPYING_6)) {
9928 INTERESTING(
lDebug ?
"Gen-CPY-6" :
"See-file.COPYING");
9930 else if (
INFILE(_LT_SEE_COPYING_7)) {
9931 INTERESTING(
lDebug ?
"Gen-CPY-7" :
"See-file.COPYING");
9933 else if (
INFILE(_LT_SEE_COPYING_8)) {
9934 INTERESTING(
lDebug ?
"Gen-CPY-8" :
"See-file.COPYING");
9936 else if (
INFILE(_LT_SEE_COPYING_9)) {
9937 INTERESTING(
lDebug ?
"Gen-CPY-9" :
"See-file.COPYING");
9939 else if (
INFILE(_LT_SEE_COPYING_10)) {
9940 INTERESTING(
lDebug ?
"Gen-CPY-10" :
"See-file.COPYING");
9942 else if (
INFILE(_LT_SEE_COPYING_LAST1)) {
9943 INTERESTING(
lDebug ?
"Gen-CPY-L1" :
"See-file.COPYING");
9945 else if (
INFILE(_LT_SEE_COPYING_LAST2)) {
9946 INTERESTING(
lDebug ?
"Gen-CPY-L2" :
"See-file.COPYING");
9948 else if (
INFILE(_LT_SEE_LICENSE_1)) {
9949 INTERESTING(
lDebug ?
"Gen-LIC-1" :
"See-file.LICENSE");
9951 else if (
INFILE(_LT_SEE_LICENSE_2)) {
9952 INTERESTING(
lDebug ?
"Gen-LIC-2" :
"See-file.LICENSE");
9954 else if (
INFILE(_LT_SEE_LICENSE_3)) {
9955 INTERESTING(
lDebug ?
"Gen-LIC-3" :
"See-file.LICENSE");
9957 else if (
INFILE(_LT_SEE_LICENSE_4)) {
9958 INTERESTING(
lDebug ?
"Gen-LIC-4" :
"See-file.LICENSE");
9960 else if (
INFILE(_LT_SEE_LICENSE_5)) {
9961 INTERESTING(
lDebug ?
"Gen-LIC-5" :
"See-file.LICENSE");
9963 else if (
INFILE(_LT_SEE_LICENSE_6)) {
9964 INTERESTING(
lDebug ?
"Gen-LIC-6" :
"See-file.LICENSE");
9966 else if (
INFILE(_LT_SEE_LICENSE_7)) {
9967 INTERESTING(
lDebug ?
"Gen-LIC-7" :
"See-file.LICENSE");
9969 else if (
INFILE(_LT_SEE_LICENSE_8)) {
9970 INTERESTING(
lDebug ?
"Gen-LIC-8" :
"See-file.LICENSE");
9972 else if (
INFILE(_LT_SEE_LICENSE_9)) {
9973 INTERESTING(
lDebug ?
"Gen-LIC-9" :
"See-file.LICENSE");
9975 else if (
INFILE(_LT_SEE_LICENSE_10)) {
9976 INTERESTING(
lDebug ?
"Gen-LIC-10" :
"See-file.LICENSE");
9978 else if (
INFILE(_LT_SEE_LICENSE_LAST1)) {
9979 INTERESTING(
lDebug ?
"Gen-LIC-L1" :
"See-file.LICENSE");
9981 else if (
INFILE(_LT_SEE_LICENSE_LAST2)) {
9982 INTERESTING(
lDebug ?
"Gen-LIC-L2" :
"See-file.LICENSE");
9984 else if (
INFILE(_LT_SEE_README_1)) {
9985 INTERESTING(
lDebug ?
"Gen-RDM-1" :
"See-file.README");
9987 else if (
INFILE(_LT_SEE_README_2)) {
9988 INTERESTING(
lDebug ?
"Gen-RDM-2" :
"See-file.README");
9990 else if (
INFILE(_LT_SEE_README_3)) {
9991 INTERESTING(
lDebug ?
"Gen-RDM-3" :
"See-file.README");
9993 else if (
INFILE(_LT_SEE_README_4)) {
9994 INTERESTING(
lDebug ?
"Gen-RDM-4" :
"See-file.README");
9996 else if (
INFILE(_LT_SEE_README_5)) {
9997 INTERESTING(
lDebug ?
"Gen-RDM-5" :
"See-file.README");
9999 else if (
INFILE(_LT_SEE_README_6)) {
10000 INTERESTING(
lDebug ?
"Gen-RDM-6" :
"See-file.README");
10002 else if (
INFILE(_LT_SEE_README_7)) {
10003 INTERESTING(
lDebug ?
"Gen-RDM-7" :
"See-file.README");
10005 else if (
INFILE(_LT_SEE_README_LAST1)) {
10006 INTERESTING(
lDebug ?
"Gen-RDM-L1" :
"See-file.README");
10008 else if (
INFILE(_LT_SEE_README_LAST2)) {
10009 INTERESTING(
lDebug ?
"Gen-RDM-L2" :
"See-file.README");
10011 else if (
INFILE(_LT_SEE_OTHER_1)) {
10012 INTERESTING(
lDebug ?
"Gen-OTH-1" :
"See-doc.OTHER");
10014 else if (
INFILE(_LT_SEE_OTHER_2)) {
10015 INTERESTING(
lDebug ?
"Gen-OTH-2" :
"See-doc.OTHER");
10017 else if (
INFILE(_LT_SEE_OTHER_3)) {
10018 INTERESTING(
lDebug ?
"Gen-OTH-3" :
"See-doc.OTHER");
10020 else if (
INFILE(_LT_SEE_OTHER_4)) {
10021 INTERESTING(
lDebug ?
"Gen-OTH-4" :
"See-doc.OTHER");
10023 else if (
INFILE(_LT_SEE_OTHER_5)) {
10024 INTERESTING(
lDebug ?
"Gen-OTH-5" :
"See-doc.OTHER");
10026 else if (
INFILE(_LT_SEE_OTHER_6)) {
10027 INTERESTING(
lDebug ?
"Gen-OTH-6" :
"See-doc.OTHER");
10029 else if (
INFILE(_LT_SEE_OTHER_7)) {
10030 INTERESTING(
lDebug ?
"Gen-OTH-7" :
"See-doc.OTHER");
10032 else if (
INFILE(_LT_SEE_OTHER_8)) {
10033 INTERESTING(
lDebug ?
"Gen-OTH-8" :
"See-doc.OTHER");
10035 else if (
INFILE(_LT_SEE_OTHER_9)) {
10036 INTERESTING(
lDebug ?
"Gen-OTH-9" :
"See-doc.OTHER");
10038 else if (
INFILE(_LT_SEE_OTHER_10)) {
10039 INTERESTING(
lDebug ?
"Gen-OTH-10" :
"See-doc.OTHER");
10041 else if (
INFILE(_LT_SEE_OTHER_11)) {
10042 INTERESTING(
lDebug ?
"Gen-OTH-11" :
"See-doc.OTHER");
10044 else if (
INFILE(_LT_SEE_OTHER_12)) {
10045 INTERESTING(
lDebug ?
"Gen-OTH-12" :
"See-doc.OTHER");
10047 else if (
INFILE(_LT_SEE_OTHER_13)) {
10048 INTERESTING(
lDebug ?
"Gen-OTH-13" :
"See-doc.OTHER");
10050 else if (
INFILE(_LT_SEE_OTHER_14)) {
10051 INTERESTING(
lDebug ?
"Gen-OTH-14" :
"See-doc.OTHER");
10053 else if (
INFILE(_LT_SEE_OTHER_15)) {
10054 INTERESTING(
lDebug ?
"Gen-OTH-15" :
"See-doc.OTHER");
10056 else if (
INFILE(_LT_SEE_OTHER_LAST1)) {
10057 INTERESTING(
lDebug ?
"Gen-OTH-L1" :
"See-doc.OTHER");
10059 else if (
INFILE(_LT_SEE_OTHER_LAST2)) {
10060 INTERESTING(
lDebug ?
"Gen-OTH-L2" :
"See-doc.OTHER");
10062 else if (
INFILE(_LT_SEE_OTHER_LAST3)) {
10063 INTERESTING(
lDebug ?
"Gen-OTH-L3" :
"See-doc.OTHER");
10065 else if (
INFILE(_LT_SEE_OUTPUT_1)) {
10066 INTERESTING(
lDebug ?
"Gen-EXC-1" :
"GNU-style.interactive");
10073 int checkPublicDomain(
char *filetext,
int size,
int score,
int kwbm,
10074 int isML,
int isPS)
10079 traceFunc(
"== checkPublicDomain(%p, %d, %d, 0x%x, %d, %d)\n", filetext,
10080 size, score, kwbm, isML, isPS);
10087 if (
INFILE(_LT_PUBDOM_CC)) {
10088 INTERESTING(
lDebug ?
"Pubdom(CC)" :
"CC-PDDC");
10090 }
else if (
INFILE(_LT_PUBDOM_ODC)) {
10091 INTERESTING(
lDebug ?
"Pubdom(ODC)" : LS_PD_CLM);
10093 }
else if (
INFILE(_LT_PUBDOM_PDD)) {
10094 INTERESTING(
lDebug ?
"Pubdom(PDD)" : LS_PD_CLM);
10096 }
else if (
INFILE(_LT_PUBDOM_USE)) {
10097 INTERESTING(
lDebug ?
"Pubdom(use)" : LS_PD_CLM);
10099 }
else if (
HASTEXT(_LT_PUBDOM_NOTclaim, REG_EXTENDED)) {
10100 INTERESTING(LS_NOT_PD);
10102 }
else if (
INFILE(_CR_PUBDOM)) {
10103 if (
INFILE(_LT_PUBDOMNOTcpyrt)) {
10104 INTERESTING(LS_PD_CLM);
10106 INTERESTING(LS_PD_CPRT);
10109 }
else if (
INFILE(_CR_NONE)) {
10110 INTERESTING(
lDebug ?
"Pubdom(no-CR)" : LS_PD_CLM);
10113 INTERESTING(
"Unlicense");
10115 }
else if (
INFILE(_LT_PUBDOM_1)) {
10116 INTERESTING(
lDebug ?
"Pubdom(1)" : LS_PD_CLM);
10119 INTERESTING(
lDebug ?
"Pubdom(2)" : LS_PD_CLM);
10121 }
else if (
INFILE(_LT_PUBDOM_3)) {
10122 INTERESTING(
lDebug ?
"Pubdom(3)" : LS_PD_CLM);
10124 #ifdef REMOVED_AS_TOO_BROAD
10125 }
else if (
INFILE(_LT_PUBDOM_4)) {
10126 INTERESTING(
lDebug ?
"Pubdom(4)" : LS_PD_CLM);
10128 }
else if (
INFILE(_LT_PUBDOM_5)) {
10129 INTERESTING(
lDebug ?
"Pubdom(5)" : LS_PD_CLM);
10131 }
else if (
INFILE(_LT_PUBDOM_6)) {
10132 INTERESTING(
lDebug ?
"No-more-copyright" : LS_PD_CLM);
10135 }
else if (
INFILE(_LT_PUBDOM_7)) {
10136 INTERESTING(
lDebug ?
"Pubdom(7)" : LS_PD_CLM);
10138 }
else if (
INFILE(_LT_PUBDOM_8)) {
10139 INTERESTING(
lDebug ?
"Pubdom(8)" : LS_PD_CLM);
10141 }
else if (
INFILE(_LT_PUBDOM_9)) {
10142 INTERESTING(
lDebug ?
"Pubdom(9)" : LS_PD_CLM);
10144 }
else if (
INFILE(_LT_PUBDOM_10)) {
10145 if (
INFILE(_LT_blessing)) {
10146 INTERESTING(
lDebug ?
"Pubdom(10)" :
"blessing");
10149 INTERESTING(
lDebug ?
"Pubdom(10)" : LS_PD_CLM);
10152 }
else if (
INFILE(_URL_PUBDOM)) {
10153 INTERESTING(
lDebug ?
"Pubdom(URL)" : LS_PD_CLM);
10155 }
else if (HASKW(kwbm, _KW_public_domain) && score <= 3) {
10156 INTERESTING(LS_PD_ONLY);
10171 int kwbm,
int isML,
int isPS,
int nw,
int force)
10175 traceFunc(
"== checkCornerCases(%p, %d, %d, %d, %d, %d, %d, %d)\n",
10176 filetext, size, score, kwbm, isML, isPS, nw, force);
10182 if (
INFILE(_LT_NOTATT_NOTBSD)) {
10183 LOWINTEREST(
"non-ATT-BSD");
10213 int match3(
int base,
char *buf,
int score,
int save,
int isML,
int isPS)
10220 #ifdef PROC_TRACE_SWITCH
10223 printf(
"== match3(%d, %p, %d, %d, %d, %d)\n", base, buf, score, save,
10226 #ifdef UNKNOWN_CHECK_DEBUG
10227 printf(
"== match3(%d, %p, %d, %d, %d, %d)\n", base, buf, score, save,
10232 for (i = 1; i <= 3; i++) {
10234 #ifdef UNKNOWN_CHECK_DEBUG
10235 printf(
"match3: FAILED regex (%d)!\n", base+i);
10240 #ifdef UNKNOWN_CHECK_DEBUG
10241 printf(
"match3: Success (%s)!\n",
10242 (save ?
"buffer-for-real" :
"file-initial-check"));
10253 for (j = i = 0, cp = buf; *cp; i++, cp++) {
10258 #ifdef UNKNOWN_CHECK_DEBUG
10259 printf(
"DEEBUG: %d bytes, %d 8-bit\n", i, j);
10263 printf(
"... no, >= 50 percent 8-bit characters\n");
10280 if (checknw && !
idxGrep(checknw, cp, REG_ICASE|REG_EXTENDED)) {
10282 printf(
"... no, warranty regex %d\n", checknw);
10297 printf(
"... no, FSF-GNU template\n");
10310 printf(
"... no, GNU-GPL preamble\n");
10316 printf(
"... candidate paragraph analysis:\n");
10318 for (i = j = 0; i < NKEYWORDS; i++) {
10321 printf(
"%s", j ?
", " :
"KEYWORDS: ");
10322 printf(
"%s",
_REGEX(i+_KW_first));
10331 printf(
"SCORES: para %d, file %d == %05.2f%% ", j,
10332 score, 100.0 * (
float) j / (
float) score);
10348 printf(
"(ZERO legal keywords)\n");
10353 if (j >= 3 || (j == 2 && j*2 >= score)) {
10355 printf(
"(LIKELY: para-score >= 2)\n");
10358 printf(
"(MAYBE: local percentage)\n");
10363 printf(
"(NOT LIKELY a license)\n");
10366 printf(
"[FAILED]\n%s\n[/FAILED]\n", buf);
10376 for (i = 0; i < NFILTER; i++) {
10379 printf(
"!! NO-LIC: filter %d\n", ++i);
10386 saveLicenseParagraph(buf, isML, isPS,
YES);
10390 #ifdef UNKNOWN_CHECK_DEBUG
10392 printf(
"match3: Initial-check only (save == %d)\n", save);
10398 void saveLicenseParagraph(
char *mtext,
int isML,
int isPS,
int entireBuf)
10407 LOG_FATAL(
"called saveLicenseParagraph without text")
10411 #ifdef PROC_TRACE_SWITCH
10414 printf(
"== saveLicenseParagraph(%p, %d, %d, %d)\n", mtext, isML, isPS, entireBuf);
10418 cur.licPara =
copyString(mtext, MTAG_TEXTPARA);
10420 if (cur.regm.rm_so < 50) {
10421 len = cur.regm.rm_eo + 80;
10423 len = cur.regm.rm_eo + 130 - cur.regm.rm_so;
10424 index = cur.regm.rm_so - 50;
10426 cur.licPara = memAlloc(len + 9, MTAG_TEXTPARA);
10427 (void) strcpy(cur.licPara,
"... ");
10428 (void) strncpy(cur.licPara + 4,
start + index, len);
10429 (void) strcpy(cur.licPara + len + 4,
" ...");
10436 for (cp = cur.licPara; *cp; cp++) {
10437 if ((*cp ==
'\n' || *cp ==
'\r') &&
10438 (*(cp+1) ==
'\r' || *(cp+1) ==
'\n')) {
10444 printf(
"[PERHAPS] (%p)\n%s\n[/PERHAPS]\n", cur.licPara, cur.licPara);
10459 if (
INFILE(_SPDX_Glide)) {
10460 INTERESTING(
"Glide");
10462 if (
INFILE(_SPDX_Abstyles)) {
10463 INTERESTING(
"Abstyles");
10465 if (
INFILE(_SPDX_AFL_11)) {
10466 INTERESTING(
"AFL-1.1");
10468 if (
INFILE(_SPDX_AFL_12)) {
10469 INTERESTING(
"AFL-1.2");
10471 if (
INFILE(_SPDX_AFL_20)) {
10472 INTERESTING(
"AFL-2.0");
10474 if (
INFILE(_SPDX_AFL_21)) {
10475 INTERESTING(
"AFL-2.1");
10477 if (
INFILE(_SPDX_AFL_30)) {
10478 INTERESTING(
"AFL-3.0");
10480 if (
INFILE(_SPDX_AMPAS)) {
10481 INTERESTING(
"AMPAS");
10483 if (
INFILE(_SPDX_APL_10)) {
10484 INTERESTING(
"APL-1.0");
10486 if (
INFILE(_SPDX_Adobe_Glyph)) {
10487 INTERESTING(
"Adobe-Glyph");
10489 if (
INFILE(_SPDX_APAFML)) {
10490 INTERESTING(
"APAFML");
10492 if (
INFILE(_SPDX_Adobe_2006)) {
10493 INTERESTING(
"Adobe-2006");
10495 if (
INFILE(_SPDX_Afmparse)) {
10496 INTERESTING(
"Afmparse");
10498 if (
INFILE(_SPDX_Aladdin)) {
10499 INTERESTING(
"Aladdin");
10501 if (
INFILE(_SPDX_ADSL)) {
10502 INTERESTING(
"ADSL");
10504 if (
INFILE(_SPDX_AMDPLPA)) {
10505 INTERESTING(
"AMDPLPA");
10507 if (
INFILE(_SPDX_ANTLR_PD)) {
10508 INTERESTING(
"ANTLR-PD");
10510 if (
INFILE(_SPDX_AML)) {
10511 INTERESTING(
"AML");
10513 if (
INFILE(_SPDX_APSL_10)) {
10514 INTERESTING(
"APSL-1.0");
10516 if (
INFILE(_SPDX_APSL_11)) {
10517 INTERESTING(
"APSL-1.1");
10519 if (
INFILE(_SPDX_APSL_12)) {
10520 INTERESTING(
"APSL-1.2");
10522 if (
INFILE(_SPDX_APSL_20)) {
10523 INTERESTING(
"APSL-2.0");
10525 if (
INFILE(_SPDX_Artistic_10_Perl)) {
10526 INTERESTING(
"Artistic-1.0-Perl");
10528 else if (
INFILE(_SPDX_Artistic_10_cl8)) {
10529 INTERESTING(
"Artistic-1.0-cl8");
10531 else if (
INFILE(_SPDX_Artistic_10)) {
10532 INTERESTING(
"Artistic-1.0");
10534 if (
INFILE(_SPDX_Artistic_20)) {
10535 INTERESTING(
"Artistic-2.0");
10537 if (
INFILE(_SPDX_AAL)) {
10538 INTERESTING(
"AAL");
10540 if (
INFILE(_SPDX_Bahyph)) {
10541 INTERESTING(
"Bahyph");
10543 if (
INFILE(_SPDX_Barr)) {
10544 INTERESTING(
"Barr");
10546 if (
INFILE(_SPDX_Beerware)) {
10547 INTERESTING(
"Beerware");
10549 if (
INFILE(_SPDX_BitTorrent_10)) {
10550 INTERESTING(
"BitTorrent-1.0");
10552 else if (
INFILE(_SPDX_BitTorrent_11)) {
10553 INTERESTING(
"BitTorrent-1.1");
10555 if (
INFILE(_SPDX_blessing)) {
10556 INTERESTING(
"blessing");
10558 if (
INFILE(_SPDX_BlueOak_100)) {
10559 INTERESTING(
"BlueOak-1.0.0");
10561 if (
INFILE(_SPDX_BSL_10)) {
10562 INTERESTING(
"BSL-1.0");
10564 if (
INFILE(_SPDX_Borceux)) {
10565 INTERESTING(
"Borceux");
10567 if (
INFILE(_SPDX_0BSD)) {
10568 INTERESTING(
"0BSD");
10570 if (
INFILE(_SPDX_bzip2_105)) {
10571 INTERESTING(
"bzip2-1.0.5");
10573 else if (
INFILE(_SPDX_bzip2_106)) {
10574 INTERESTING(
"bzip2-1.0.6");
10576 if (
INFILE(_SPDX_Caldera)) {
10577 INTERESTING(
"Caldera");
10579 if (
INFILE(_SPDX_CC_PDDC)) {
10580 INTERESTING(
"CC-PDDC");
10582 if (
INFILE(_SPDX_CERN_OHL_P_20)) {
10583 INTERESTING(
"CERN-OHL-P-2.0");
10585 else if (
INFILE(_SPDX_CERN_OHL_S_20)) {
10586 INTERESTING(
"CERN-OHL-S-2.0");
10588 else if (
INFILE(_SPDX_CERN_OHL_W_20)) {
10589 INTERESTING(
"CERN-OHL-W-2.0");
10591 else if (
INFILE(_SPDX_CERN_OHL_12)) {
10592 INTERESTING(
"CERN-OHL-1.2");
10594 else if (
INFILE(_SPDX_CERN_OHL_11)) {
10595 INTERESTING(
"CERN-OHL-1.1");
10597 if (
INFILE(_SPDX_ClArtistic)) {
10598 INTERESTING(
"ClArtistic");
10600 if (
INFILE(_SPDX_CNRI_Jython)) {
10601 INTERESTING(
"CNRI-Jython");
10603 if (
INFILE(_SPDX_CPOL_102)) {
10604 INTERESTING(
"CPOL-1.02");
10606 if (
INFILE(_SPDX_CPAL_10)) {
10607 INTERESTING(
"CPAL-1.0");
10609 if (
INFILE(_SPDX_CPL_10)) {
10610 INTERESTING(
"CPL-1.0");
10612 if (
INFILE(_SPDX_CAL_10_Combined_Work_Exception)) {
10613 INTERESTING(
"CAL-1.0-Combined-Work-Exception");
10615 else if (
INFILE(_SPDX_CAL_10)) {
10616 INTERESTING(
"CAL-1.0");
10618 if (
INFILE(_SPDX_CATOSL_11)) {
10619 INTERESTING(
"CATOSL-1.1");
10621 if (
INFILE(_SPDX_Condor_11)) {
10622 INTERESTING(
"Condor-1.1");
10624 if (
INFILE(_SPDX_CC_BY_10)) {
10625 INTERESTING(
"CC-BY-1.0");
10627 else if (
INFILE(_SPDX_CC_BY_20)) {
10628 INTERESTING(
"CC-BY-2.0");
10630 else if (
INFILE(_SPDX_CC_BY_25)) {
10631 INTERESTING(
"CC-BY-2.5");
10633 else if (
INFILE(_SPDX_CC_BY_30_AT)) {
10634 INTERESTING(
"CC-BY-3.0-AT");
10636 else if (
INFILE(_SPDX_CC_BY_30)) {
10637 INTERESTING(
"CC-BY-3.0");
10639 else if (
INFILE(_SPDX_CC_BY_40)) {
10640 INTERESTING(
"CC-BY-4.0");
10642 if (
INFILE(_SPDX_CC_BY_ND_10)) {
10643 INTERESTING(
"CC-BY-ND-1.0");
10645 else if (
INFILE(_SPDX_CC_BY_ND_20)) {
10646 INTERESTING(
"CC-BY-ND-2.0");
10648 else if (
INFILE(_SPDX_CC_BY_ND_25)) {
10649 INTERESTING(
"CC-BY-ND-2.5");
10651 else if (
INFILE(_SPDX_CC_BY_ND_30)) {
10652 INTERESTING(
"CC-BY-ND-3.0");
10654 else if (
INFILE(_SPDX_CC_BY_ND_40)) {
10655 INTERESTING(
"CC-BY-ND-4.0");
10657 if (
INFILE(_SPDX_CC_BY_NC_10)) {
10658 INTERESTING(
"CC-BY-NC-1.0");
10660 else if (
INFILE(_SPDX_CC_BY_NC_20)) {
10661 INTERESTING(
"CC-BY-NC-2.0");
10663 else if (
INFILE(_SPDX_CC_BY_NC_25)) {
10664 INTERESTING(
"CC-BY-NC-2.5");
10666 else if (
INFILE(_SPDX_CC_BY_NC_30)) {
10667 INTERESTING(
"CC-BY-NC-3.0");
10669 else if (
INFILE(_SPDX_CC_BY_NC_40)) {
10670 INTERESTING(
"CC-BY-NC-4.0");
10672 if (
INFILE(_SPDX_CC_BY_NC_ND_10)) {
10673 INTERESTING(
"CC-BY-NC-ND-1.0");
10675 else if (
INFILE(_SPDX_CC_BY_NC_ND_20)) {
10676 INTERESTING(
"CC-BY-NC-ND-2.0");
10678 else if (
INFILE(_SPDX_CC_BY_NC_ND_25)) {
10679 INTERESTING(
"CC-BY-NC-ND-2.5");
10681 else if (
INFILE(_SPDX_CC_BY_NC_ND_30_IGO)) {
10682 INTERESTING(
"CC-BY-NC-ND-3.0-IGO");
10684 else if (
INFILE(_SPDX_CC_BY_NC_ND_30)) {
10685 INTERESTING(
"CC-BY-NC-ND-3.0");
10687 else if (
INFILE(_SPDX_CC_BY_NC_ND_40)) {
10688 INTERESTING(
"CC-BY-NC-ND-4.0");
10690 if (
INFILE(_SPDX_CC_BY_NC_SA_10)) {
10691 INTERESTING(
"CC-BY-NC-SA-1.0");
10693 else if (
INFILE(_SPDX_CC_BY_NC_SA_20)) {
10694 INTERESTING(
"CC-BY-NC-SA-2.0");
10696 else if (
INFILE(_SPDX_CC_BY_NC_SA_25)) {
10697 INTERESTING(
"CC-BY-NC-SA-2.5");
10699 else if (
INFILE(_SPDX_CC_BY_NC_SA_30)) {
10700 INTERESTING(
"CC-BY-NC-SA-3.0");
10702 else if (
INFILE(_SPDX_CC_BY_NC_SA_40)) {
10703 INTERESTING(
"CC-BY-NC-SA-4.0");
10705 if (
INFILE(_SPDX_CC_BY_SA_10)) {
10706 INTERESTING(
"CC-BY-SA-1.0");
10708 else if (
INFILE(_SPDX_CC_BY_SA_20)) {
10709 INTERESTING(
"CC-BY-SA-2.0");
10711 else if (
INFILE(_SPDX_CC_BY_SA_25)) {
10712 INTERESTING(
"CC-BY-SA-2.5");
10714 else if (
INFILE(_SPDX_CC_BY_SA_30_AT)) {
10715 INTERESTING(
"CC-BY-SA-3.0-AT");
10717 else if (
INFILE(_SPDX_CC_BY_SA_30)) {
10718 INTERESTING(
"CC-BY-SA-3.0");
10720 else if (
INFILE(_SPDX_CC_BY_SA_40)) {
10721 INTERESTING(
"CC-BY-SA-4.0");
10723 if (
INFILE(_SPDX_CDLA_Permissive_10)) {
10724 INTERESTING(
"CDLA-Permissive-1.0");
10726 if (
INFILE(_SPDX_CDLA_Sharing_10)) {
10727 INTERESTING(
"CDLA-Sharing-1.0");
10729 if (
INFILE(_SPDX_Crossword)) {
10730 INTERESTING(
"Crossword");
10732 if (
INFILE(_SPDX_CrystalStacker)) {
10733 INTERESTING(
"CrystalStacker");
10735 if (
INFILE(_SPDX_CUA_OPL_10)) {
10736 INTERESTING(
"CUA-OPL-1.0");
10738 if (
INFILE(_SPDX_Cube)) {
10739 INTERESTING(
"Cube");
10741 if (
INFILE(_SPDX_curl)) {
10742 INTERESTING(
"curl");
10744 if (
INFILE(_SPDX_D_FSL_10)) {
10745 INTERESTING(
"D-FSL-1.0");
10747 if (
INFILE(_SPDX_diffmark)) {
10748 INTERESTING(
"diffmark");
10750 if (
INFILE(_SPDX_WTFPL)) {
10751 INTERESTING(
"WTFPL");
10753 if (
HASTEXT(_SPDX_DOC, REG_EXTENDED) ||
HASTEXT(_PHR_DOC, REG_EXTENDED)) {
10754 INTERESTING(
"DOC");
10756 if (
INFILE(_SPDX_Dotseqn)) {
10757 INTERESTING(
"Dotseqn");
10759 if (
INFILE(_SPDX_DSDP)) {
10760 INTERESTING(
"DSDP");
10762 if (
INFILE(_SPDX_dvipdfm)) {
10763 INTERESTING(
"dvipdfm");
10765 if (
INFILE(_SPDX_EPL_10)) {
10766 INTERESTING(
"EPL-1.0");
10768 else if (
INFILE(_SPDX_EPL_20)) {
10769 INTERESTING(
"EPL-2.0");
10771 if (
INFILE(_SPDX_ECL_10)) {
10772 INTERESTING(
"ECL-1.0");
10774 if (
INFILE(_SPDX_ECL_20)) {
10775 INTERESTING(
"ECL-2.0");
10777 if (
INFILE(_SPDX_eGenix)) {
10778 INTERESTING(
"eGenix");
10780 if (
INFILE(_SPDX_EFL_10)) {
10781 INTERESTING(
"EFL-1.0");
10783 if (
INFILE(_SPDX_EFL_20)) {
10784 INTERESTING(
"EFL-2.0");
10786 if (
INFILE(_SPDX_Entessa)) {
10787 INTERESTING(
"Entessa");
10789 if (
INFILE(_SPDX_EPICS)) {
10790 INTERESTING(
"EPICS");
10792 if (
INFILE(_SPDX_ErlPL_11)) {
10793 INTERESTING(
"ErlPL-1.1");
10795 if (
INFILE(_SPDX_etalab_20)) {
10796 INTERESTING(
"etalab-2.0");
10798 if (
INFILE(_SPDX_EUDatagrid)) {
10799 INTERESTING(
"EUDatagrid");
10801 if (
INFILE(_SPDX_EUPL_10)) {
10802 INTERESTING(
"EUPL-1.0");
10804 else if (
INFILE(_SPDX_EUPL_11)) {
10805 INTERESTING(
"EUPL-1.1");
10807 else if (
INFILE(_SPDX_EUPL_12)) {
10808 INTERESTING(
"EUPL-1.2");
10810 if (
INFILE(_SPDX_Eurosym)) {
10811 INTERESTING(
"Eurosym");
10813 if (
HASTEXT(_SPDX_Fair, REG_EXTENDED) ||
HASTEXT(_PHR_Fair, REG_EXTENDED)) {
10814 INTERESTING(
"Fair");
10816 if (
INFILE(_SPDX_Frameworx_10)) {
10817 INTERESTING(
"Frameworx-1.0");
10819 if (
INFILE(_SPDX_FreeImage)) {
10820 INTERESTING(
"FreeImage");
10822 if (
INFILE(_SPDX_FSFAP)) {
10823 INTERESTING(
"FSFAP");
10825 if (
INFILE(_SPDX_FSFULLR)) {
10826 INTERESTING(
"FSFULLR");
10828 else if (
INFILE(_SPDX_FSFUL)) {
10829 INTERESTING(
"FSFUL");
10831 if (
INFILE(_SPDX_Giftware)) {
10832 INTERESTING(
"Giftware");
10834 if (
INFILE(_SPDX_GL2PS)) {
10835 INTERESTING(
"GL2PS");
10837 if (
INFILE(_SPDX_Glulxe)) {
10838 INTERESTING(
"Glulxe");
10840 if (
INFILE(_SPDX_GFDL_11_invariants_or_later)) {
10841 INTERESTING(
"GFDL-1.1-invariants-or-later");
10843 else if (
INFILE(_SPDX_GFDL_11_no_invariants_or_later)) {
10844 INTERESTING(
"GFDL-1.1-no-invariants-or-later");
10846 else if (
INFILE(_SPDX_GFDL_11_invariants_only)) {
10847 INTERESTING(
"GFDL-1.1-invariants-only");
10849 else if (
INFILE(_SPDX_GFDL_11_no_invariants_only)) {
10850 INTERESTING(
"GFDL-1.1-no-invariants-only");
10852 else if (
INFILE(_SPDX_GFDL_11_or_later)
10853 ||
HASTEXT(_SPDX_GFDL_11plus, REG_EXTENDED)
10854 ||
HASTEXT(_PHR_GFDL_11plus, REG_EXTENDED))
10856 INTERESTING(
"GFDL-1.1-or-later");
10858 else if (
INFILE(_SPDX_GFDL_11)) {
10859 INTERESTING(
"GFDL-1.1-only");
10861 else if (
INFILE(_SPDX_GFDL_12_invariants_or_later)) {
10862 INTERESTING(
"GFDL-1.2-invariants-or-later");
10864 else if (
INFILE(_SPDX_GFDL_12_no_invariants_or_later)) {
10865 INTERESTING(
"GFDL-1.2-no-invariants-or-later");
10867 else if (
INFILE(_SPDX_GFDL_12_invariants_only)) {
10868 INTERESTING(
"GFDL-1.2-invariants-only");
10870 else if (
INFILE(_SPDX_GFDL_12_no_invariants_only)) {
10871 INTERESTING(
"GFDL-1.2-no-invariants-only");
10873 else if (
INFILE(_SPDX_GFDL_12_or_later)
10874 ||
HASTEXT(_SPDX_GFDL_12plus, REG_EXTENDED)
10875 ||
HASTEXT(_PHR_GFDL_12plus, REG_EXTENDED))
10877 INTERESTING(
"GFDL-1.2-or-later");
10879 else if (
INFILE(_SPDX_GFDL_12)) {
10880 INTERESTING(
"GFDL-1.2-only");
10882 else if (
INFILE(_SPDX_GFDL_13_invariants_or_later)) {
10883 INTERESTING(
"GFDL-1.3-invariants-or-later");
10885 else if (
INFILE(_SPDX_GFDL_13_no_invariants_or_later)) {
10886 INTERESTING(
"GFDL-1.3-no-invariants-or-later");
10888 else if (
INFILE(_SPDX_GFDL_13_invariants_only)) {
10889 INTERESTING(
"GFDL-1.3-invariants-only");
10891 else if (
INFILE(_SPDX_GFDL_13_no_invariants_only)) {
10892 INTERESTING(
"GFDL-1.3-no-invariants-only");
10894 else if (
INFILE(_SPDX_GFDL_13_or_later)
10895 ||
HASTEXT(_SPDX_GFDL_13plus, REG_EXTENDED)
10896 ||
HASTEXT(_PHR_GFDL_13plus, REG_EXTENDED))
10898 INTERESTING(
"GFDL-1.3-or-later");
10900 else if (
INFILE(_SPDX_GFDL_13)) {
10901 INTERESTING(
"GFDL-1.3");
10903 if (
INFILE(_SPDX_GLWTPL)) {
10904 INTERESTING(
"GLWTPL");
10906 if (
INFILE(_SPDX_gnuplot)) {
10907 INTERESTING(
"gnuplot");
10909 if (
INFILE(_SPDX_gSOAP_13b)) {
10910 INTERESTING(
"gSOAP-1.3b");
10912 if (
INFILE(_SPDX_HaskellReport)) {
10913 INTERESTING(
"HaskellReport");
10915 if (
INFILE(_SPDX_Hippocratic_21)) {
10916 INTERESTING(
"Hippocratic-2.1");
10918 if (
INFILE(_SPDX_HPND_sell_variant)) {
10919 INTERESTING(
"HPND-sell-variant");
10921 else if (
INFILE(_SPDX_HPND)) {
10922 INTERESTING(
"HPND");
10924 if (
INFILE(_SPDX_IBM_pibs)) {
10925 INTERESTING(
"IBM-pibs");
10927 if (
INFILE(_SPDX_IPL_10)) {
10928 INTERESTING(
"IPL-1.0");
10930 if (
INFILE(_SPDX_ImageMagick)) {
10931 INTERESTING(
"ImageMagick");
10933 if (
INFILE(_SPDX_iMatix)) {
10934 INTERESTING(
"iMatix");
10936 if (
INFILE(_SPDX_Imlib2)) {
10937 INTERESTING(
"Imlib2");
10939 if (
INFILE(_SPDX_IJG)) {
10940 INTERESTING(
"IJG");
10942 if (
INFILE(_SPDX_Info_ZIP)) {
10943 INTERESTING(
"Info-ZIP");
10945 if (
INFILE(_SPDX_Interbase_10)) {
10946 INTERESTING(
"Interbase-1.0");
10948 if (
INFILE(_SPDX_IPA)) {
10949 INTERESTING(
"IPA");
10951 if (
INFILE(_SPDX_ISC)) {
10952 INTERESTING(
"ISC");
10954 if (
INFILE(_SPDX_JasPer_20)) {
10955 INTERESTING(
"JasPer-2.0");
10957 if (
INFILE(_SPDX_JPNIC)) {
10958 INTERESTING(
"JPNIC");
10960 if (
INFILE(_SPDX_JSON)) {
10961 INTERESTING(
"JSON");
10963 if (
INFILE(_SPDX_Latex2e)) {
10964 INTERESTING(
"Latex2e");
10966 if (
INFILE(_SPDX_Leptonica)) {
10967 INTERESTING(
"Leptonica");
10969 if (
INFILE(_SPDX_LGPLLR)) {
10970 INTERESTING(
"LGPLLR");
10972 if (
INFILE(_SPDX_libpng_20)) {
10973 INTERESTING(
"libpng-2.0");
10975 else if (
INFILE(_SPDX_Libpng)) {
10976 INTERESTING(
"Libpng");
10978 if (
INFILE(_SPDX_libselinux_10)) {
10979 INTERESTING(
"libselinux-1.0");
10981 if (
INFILE(_SPDX_libtiff)) {
10982 INTERESTING(
"libtiff");
10984 if (
INFILE(_SPDX_LAL_12)) {
10985 INTERESTING(
"LAL-1.2");
10987 if (
INFILE(_SPDX_LAL_13)) {
10988 INTERESTING(
"LAL-1.3");
10990 if (
INFILE(_SPDX_LiLiQ_P_11)) {
10991 INTERESTING(
"LiLiQ-P-1.1");
10993 if (
INFILE(_SPDX_LiLiQ_Rplus_11)) {
10994 INTERESTING(
"LiLiQ-Rplus-1.1");
10996 if (
INFILE(_SPDX_LiLiQ_R_11)) {
10997 INTERESTING(
"LiLiQ-R-1.1");
10999 if (
INFILE(_SPDX_Linux_OpenIB)) {
11000 INTERESTING(
"Linux-OpenIB");
11002 if (
INFILE(_SPDX_LPL_102)) {
11003 INTERESTING(
"LPL-1.02");
11005 else if (
INFILE(_SPDX_LPL_10)) {
11006 INTERESTING(
"LPL-1.0");
11008 if (
INFILE(_SPDX_LPPL_10)) {
11009 INTERESTING(
"LPPL-1.0");
11011 if (
INFILE(_SPDX_LPPL_11)) {
11012 INTERESTING(
"LPPL-1.1");
11014 if (
INFILE(_SPDX_LPPL_12)) {
11015 INTERESTING(
"LPPL-1.2");
11017 if (
INFILE(_SPDX_LPPL_13a)) {
11018 INTERESTING(
"LPPL-1.3a");
11020 if (
INFILE(_SPDX_LPPL_13c)) {
11021 INTERESTING(
"LPPL-1.3c");
11023 if (
INFILE(_SPDX_MakeIndex)) {
11024 INTERESTING(
"MakeIndex");
11026 if (
INFILE(_SPDX_MTLL)) {
11027 INTERESTING(
"MTLL");
11029 if (
INFILE(_SPDX_MS_PL)) {
11030 INTERESTING(
"MS-PL");
11032 if (
INFILE(_SPDX_MS_RL)) {
11033 INTERESTING(
"MS-RL");
11035 if (
INFILE(_SPDX_MirOS)) {
11036 INTERESTING(
"MirOS");
11038 if (
INFILE(_SPDX_MITNFA)) {
11039 INTERESTING(
"MITNFA");
11041 if (!lmem[_fREAL] &&
INFILE(_SPDX_Motosoto)) {
11042 INTERESTING(
"Motosoto");
11044 if (
INFILE(_SPDX_mpich2)) {
11045 INTERESTING(
"mpich2");
11047 if (
INFILE(_SPDX_MulanPSL_20)) {
11048 INTERESTING(
"MulanPSL-2.0");
11050 else if (
INFILE(_SPDX_MulanPSL_10)) {
11051 INTERESTING(
"MulanPSL-1.0");
11053 if (
INFILE(_SPDX_Multics)) {
11054 INTERESTING(
"Multics");
11056 if (
INFILE(_SPDX_Mup)) {
11057 INTERESTING(
"Mup");
11059 if (
INFILE(_SPDX_NASA_13)) {
11060 INTERESTING(
"NASA-1.3");
11062 if (
INFILE(_SPDX_Naumen)) {
11063 INTERESTING(
"Naumen");
11065 if (
INFILE(_SPDX_NBPL_10)) {
11066 INTERESTING(
"NBPL-1.0");
11068 if (
INFILE(_SPDX_NCGL_UK_20)) {
11069 INTERESTING(
"NCGL-UK-2.0");
11071 if (
INFILE(_SPDX_Net_SNMP)) {
11072 INTERESTING(
"Net-SNMP");
11074 if (
INFILE(_SPDX_NetCDF)) {
11075 INTERESTING(
"NetCDF");
11077 if (
INFILE(_SPDX_NGPL)) {
11078 INTERESTING(
"NGPL");
11080 if (
INFILE(_SPDX_NIST_PD_fallback)) {
11081 INTERESTING(
"NIST-PD-fallback");
11083 else if (
INFILE(_SPDX_NIST_PD)) {
11084 INTERESTING(
"NIST-PD");
11086 if (
INFILE(_SPDX_NOSL)) {
11087 INTERESTING(
"NOSL");
11089 if (
INFILE(_SPDX_NPL_10)) {
11090 INTERESTING(
"NPL-1.0");
11092 if (
INFILE(_SPDX_NPL_11)) {
11093 INTERESTING(
"NPL-1.1");
11095 if (
INFILE(_SPDX_Newsletr)) {
11096 INTERESTING(
"Newsletr");
11098 if (
INFILE(_SPDX_NLPL)) {
11099 INTERESTING(
"NLPL");
11102 INTERESTING(
"Nokia");
11104 if (
INFILE(_SPDX_NPOSL_30)) {
11105 INTERESTING(
"NPOSL-3.0");
11107 if (
INFILE(_SPDX_NLOD_10)) {
11108 INTERESTING(
"NLOD-1.0");
11110 if (
INFILE(_SPDX_Noweb)) {
11111 INTERESTING(
"Noweb");
11113 if (
INFILE(_SPDX_NRL)) {
11114 INTERESTING(
"NRL");
11116 if (
INFILE(_SPDX_NTP_0)) {
11117 INTERESTING(
"NTP-0");
11119 else if (
INFILE(_SPDX_NTP)) {
11120 INTERESTING(
"NTP");
11122 if (
INFILE(_SPDX_Nunit)) {
11123 INTERESTING(
"Nunit");
11125 if (
INFILE(_SPDX_O_UDA_10)) {
11126 INTERESTING(
"O-UDA-1.0");
11128 if (
INFILE(_SPDX_OCLC_20)) {
11129 INTERESTING(
"OCLC-2.0");
11131 if (
INFILE(_SPDX_ODbL_10)) {
11132 INTERESTING(
"ODbL-1.0");
11134 if (
INFILE(_SPDX_OGC_10)) {
11135 INTERESTING(
"OGC-1.0");
11137 if (
INFILE(_SPDX_PDDL_10)) {
11138 INTERESTING(
"PDDL-1.0");
11140 if (
INFILE(_SPDX_OCCT_PL)) {
11141 INTERESTING(
"OCCT-PL");
11143 if (
INFILE(_SPDX_ODC_By_10)) {
11144 INTERESTING(
"ODC-By-1.0");
11146 if (
INFILE(_SPDX_OGL_Canada_20)) {
11147 INTERESTING(
"OGL-Canada-2.0");
11149 if (
INFILE(_SPDX_OGL_UK_10)) {
11150 INTERESTING(
"OGL-UK-1.0");
11152 else if (
INFILE(_SPDX_OGL_UK_20)) {
11153 INTERESTING(
"OGL-UK-2.0");
11155 else if (
INFILE(_SPDX_OGL_UK_30)) {
11156 INTERESTING(
"OGL-UK-3.0");
11158 if (
INFILE(_SPDX_OGTSL)) {
11159 INTERESTING(
"OGTSL");
11161 if (
INFILE(_SPDX_OLDAP_11)) {
11162 INTERESTING(
"OLDAP-1.1");
11164 else if (
INFILE(_SPDX_OLDAP_12)) {
11165 INTERESTING(
"OLDAP-1.2");
11167 else if (
INFILE(_SPDX_OLDAP_13)) {
11168 INTERESTING(
"OLDAP-1.3");
11170 else if (
INFILE(_SPDX_OLDAP_14)) {
11171 INTERESTING(
"OLDAP-1.4");
11173 else if (
INFILE(_SPDX_OLDAP_201)) {
11174 INTERESTING(
"OLDAP-2.0.1");
11176 else if (
INFILE(_SPDX_OLDAP_20)) {
11177 INTERESTING(
"OLDAP-2.0");
11179 else if (
INFILE(_SPDX_OLDAP_21)) {
11180 INTERESTING(
"OLDAP-2.1");
11182 else if (
INFILE(_SPDX_OLDAP_221)) {
11183 INTERESTING(
"OLDAP-2.2.1");
11185 else if (
INFILE(_SPDX_OLDAP_222)) {
11186 INTERESTING(
"OLDAP-2.2.2");
11188 else if (
INFILE(_SPDX_OLDAP_22)) {
11189 INTERESTING(
"OLDAP-2.2");
11191 else if (
INFILE(_SPDX_OLDAP_23)) {
11192 INTERESTING(
"OLDAP-2.3");
11194 else if (
INFILE(_SPDX_OLDAP_24)) {
11195 INTERESTING(
"OLDAP-2.4");
11197 else if (
INFILE(_SPDX_OLDAP_25)) {
11198 INTERESTING(
"OLDAP-2.5");
11200 else if (
INFILE(_SPDX_OLDAP_26)) {
11201 INTERESTING(
"OLDAP-2.6");
11203 else if (
INFILE(_SPDX_OLDAP_27)) {
11204 INTERESTING(
"OLDAP-2.7");
11206 else if (
INFILE(_SPDX_OLDAP_28)) {
11207 INTERESTING(
"OLDAP-2.8");
11209 if (
INFILE(_SPDX_OML)) {
11210 INTERESTING(
"OML");
11212 if (
INFILE(_SPDX_OPL_10)) {
11213 INTERESTING(
"OPL-1.0");
11215 if (
INFILE(_SPDX_OSL_10)) {
11216 INTERESTING(
"OSL-1.0");
11218 if (
INFILE(_SPDX_OSL_11)) {
11219 INTERESTING(
"OSL-1.1");
11221 if (
INFILE(_SPDX_OSL_20)) {
11222 INTERESTING(
"OSL-2.0");
11224 if (
INFILE(_SPDX_OSL_21)) {
11225 INTERESTING(
"OSL-2.1");
11227 if (
INFILE(_SPDX_OSL_30)) {
11228 INTERESTING(
"OSL-3.0");
11230 if (
INFILE(_SPDX_OSET_PL_21)) {
11231 INTERESTING(
"OSET-PL-2.1");
11233 if (
INFILE(_SPDX_Parity_700)) {
11234 INTERESTING(
"Parity-7.0.0");
11236 else if (
INFILE(_SPDX_Parity_600)) {
11237 INTERESTING(
"Parity-6.0.0");
11239 if (
INFILE(_SPDX_PHP_301)) {
11240 INTERESTING(
"PHP-3.01");
11242 else if (
INFILE(_SPDX_PHP_30)) {
11243 INTERESTING(
"PHP-3.0");
11245 if (
INFILE(_SPDX_Plexus)) {
11246 INTERESTING(
"Plexus");
11248 if (
INFILE(_SPDX_PolyForm_Noncommercial_100)) {
11249 INTERESTING(
"PolyForm-Noncommercial-1.0.0");
11251 else if (
INFILE(_SPDX_PolyForm_Small_Business_100)) {
11252 INTERESTING(
"PolyForm-Small-Business-1.0.0");
11254 if (
INFILE(_SPDX_PostgreSQL)) {
11255 INTERESTING(
"PostgreSQL");
11257 if (
INFILE(_SPDX_PSF_20)) {
11258 INTERESTING(
"PSF-2.0");
11260 if (
INFILE(_SPDX_psfrag)) {
11261 INTERESTING(
"psfrag");
11263 if (
INFILE(_SPDX_psutils)) {
11264 INTERESTING(
"psutils");
11266 if (
INFILE(_SPDX_Python_20)) {
11267 INTERESTING(
"Python-2.0");
11269 if (
INFILE(_SPDX_QPL_10)) {
11270 INTERESTING(
"QPL-1.0");
11272 if (
INFILE(_SPDX_Qhull)) {
11273 INTERESTING(
"Qhull");
11275 if (
INFILE(_SPDX_Rdisc)) {
11276 INTERESTING(
"Rdisc");
11278 if (
INFILE(_SPDX_RPSL_10)) {
11279 INTERESTING(
"RPSL-1.0");
11281 if (
INFILE(_SPDX_RPL_11)) {
11282 INTERESTING(
"RPL-1.1");
11284 if (
INFILE(_SPDX_RPL_15)) {
11285 INTERESTING(
"RPL-1.5");
11287 if (
INFILE(_SPDX_RHeCos_11)) {
11288 INTERESTING(
"RHeCos-1.1");
11290 if (
INFILE(_SPDX_RSCPL)) {
11291 INTERESTING(
"RSCPL");
11293 if (
INFILE(_SPDX_RSA_MD)) {
11294 INTERESTING(
"RSA-MD");
11296 if (
INFILE(_SPDX_Ruby)) {
11297 INTERESTING(
"Ruby");
11299 if (
INFILE(_SPDX_SAX_PD)) {
11300 INTERESTING(
"SAX-PD");
11302 if (
INFILE(_SPDX_Saxpath)) {
11303 INTERESTING(
"Saxpath");
11305 if (
INFILE(_SPDX_SHL_051)) {
11306 INTERESTING(
"SHL-0.51");
11308 else if (
INFILE(_SPDX_SHL_05)) {
11309 INTERESTING(
"SHL-0.5");
11311 if (
INFILE(_SPDX_SCEA)) {
11312 INTERESTING(
"SCEA");
11314 if (
INFILE(_SPDX_SWL)) {
11315 INTERESTING(
"SWL");
11317 if (
INFILE(_SPDX_SMPPL)) {
11318 INTERESTING(
"SMPPL");
11320 if (
INFILE(_SPDX_Sendmail_823)) {
11321 INTERESTING(
"Sendmail-8.23");
11323 else if (
INFILE(_SPDX_Sendmail)) {
11324 INTERESTING(
"Sendmail");
11326 if (
INFILE(_SPDX_SGI_B_10)) {
11327 INTERESTING(
"SGI-B-1.0");
11329 if (
INFILE(_SPDX_SGI_B_11)) {
11330 INTERESTING(
"SGI-B-1.1");
11332 if (
INFILE(_SPDX_SGI_B_20)) {
11333 INTERESTING(
"SGI-B-2.0");
11335 if (
INFILE(_SPDX_SimPL_20)) {
11336 INTERESTING(
"SimPL-2.0");
11338 if (
INFILE(_SPDX_Sleepycat)) {
11339 INTERESTING(
"Sleepycat");
11341 if (
INFILE(_SPDX_SNIA)) {
11342 INTERESTING(
"SNIA");
11344 if (
INFILE(_SPDX_Spencer_86)) {
11345 INTERESTING(
"Spencer-86");
11347 if (
INFILE(_SPDX_Spencer_94)) {
11348 INTERESTING(
"Spencer-94");
11350 if (
INFILE(_SPDX_Spencer_99)) {
11351 INTERESTING(
"Spencer-99");
11353 if (
INFILE(_SPDX_SMLNJ)) {
11354 INTERESTING(
"SMLNJ");
11356 if (
INFILE(_SPDX_SSH_OpenSSH)) {
11357 INTERESTING(
"SSH-OpenSSH");
11359 if (
INFILE(_SPDX_SSH_short)) {
11360 INTERESTING(
"SSH-short");
11362 if (
INFILE(_SPDX_SSPL_10)) {
11363 INTERESTING(
"SSPL-1.0");
11365 if (
INFILE(_SPDX_SugarCRM_113)) {
11366 INTERESTING(
"SugarCRM-1.1.3");
11368 if (
INFILE(_SPDX_SISSL_12)) {
11369 INTERESTING(
"SISSL-1.2");
11371 else if (!lmem[_fREAL] &&
INFILE(_SPDX_SISSL)) {
11372 INTERESTING(
"SISSL");
11374 if (
INFILE(_SPDX_SPL_10)) {
11375 INTERESTING(
"SPL-1.0");
11377 if (
INFILE(_SPDX_Watcom_10)) {
11378 INTERESTING(
"Watcom-1.0");
11380 if (
INFILE(_SPDX_TAPR_OHL_10)) {
11381 INTERESTING(
"TAPR-OHL-1.0");
11383 if (
INFILE(_SPDX_TCP_wrappers)) {
11384 INTERESTING(
"TCP-wrappers");
11386 if (
INFILE(_SPDX_Unlicense)) {
11387 INTERESTING(
"Unlicense");
11389 if (
INFILE(_SPDX_TMate)) {
11390 INTERESTING(
"TMate");
11392 if (
INFILE(_SPDX_TORQUE_11)) {
11393 INTERESTING(
"TORQUE-1.1");
11395 if (
INFILE(_SPDX_TOSL)) {
11396 INTERESTING(
"TOSL");
11398 if (
INFILE(_SPDX_TU_Berlin_10)) {
11399 INTERESTING(
"TU-Berlin-1.0");
11401 else if (
INFILE(_SPDX_TU_Berlin_20)) {
11402 INTERESTING(
"TU-Berlin-2.0");
11404 if (
INFILE(_SPDX_UCL_10)) {
11405 INTERESTING(
"UCL-1.0");
11407 if (
INFILE(_SPDX_Unicode_DFS_2015)) {
11408 INTERESTING(
"Unicode-DFS-2015");
11410 if (
INFILE(_SPDX_Unicode_DFS_2016)) {
11411 INTERESTING(
"Unicode-DFS-2016");
11413 if (
INFILE(_SPDX_Unicode_TOU)) {
11414 INTERESTING(
"Unicode-TOU");
11416 if (
INFILE(_SPDX_UPL_10)) {
11417 INTERESTING(
"UPL-1.0");
11419 if (
INFILE(_SPDX_NCSA)) {
11420 INTERESTING(
"NCSA");
11422 if (
INFILE(_SPDX_Vim)) {
11423 INTERESTING(
"Vim");
11425 if (
INFILE(_SPDX_VOSTROM)) {
11426 INTERESTING(
"VOSTROM");
11428 if (
INFILE(_SPDX_VSL_10)) {
11429 INTERESTING(
"VSL-1.0");
11431 if (
INFILE(_SPDX_W3C_20150513)) {
11432 INTERESTING(
"W3C-20150513");
11434 else if (
INFILE(_SPDX_W3C_19980720)) {
11435 INTERESTING(
"W3C-19980720");
11437 else if (
INFILE(_SPDX_W3C)) {
11438 INTERESTING(
"W3C");
11440 if (
INFILE(_SPDX_Wsuipa)) {
11441 INTERESTING(
"Wsuipa");
11443 if (!lmem[_fREAL] &&
INFILE(_SPDX_Xnet)) {
11444 INTERESTING(
"Xnet");
11446 if (
INFILE(_SPDX_X11)) {
11447 INTERESTING(
"X11");
11449 if (
INFILE(_SPDX_Xerox)) {
11450 INTERESTING(
"Xerox");
11452 if (
INFILE(_SPDX_XFree86_11)) {
11453 INTERESTING(
"XFree86-1.1");
11455 if (
INFILE(_SPDX_xinetd)) {
11456 INTERESTING(
"xinetd");
11458 if (
INFILE(_SPDX_xpp)) {
11459 INTERESTING(
"xpp");
11461 if (
INFILE(_SPDX_XSkat)) {
11462 INTERESTING(
"XSkat");
11464 if (
INFILE(_SPDX_YPL_10)) {
11465 INTERESTING(
"YPL-1.0");
11467 if (
INFILE(_SPDX_YPL_11)) {
11468 INTERESTING(
"YPL-1.1");
11470 if (
INFILE(_SPDX_Zed)) {
11471 INTERESTING(
"Zed");
11473 if (
INFILE(_SPDX_Zend_20)) {
11474 INTERESTING(
"Zend-2.0");
11476 if (
INFILE(_SPDX_Zimbra_13)) {
11477 INTERESTING(
"Zimbra-1.3");
11479 if (
INFILE(_SPDX_Zimbra_14)) {
11480 INTERESTING(
"Zimbra-1.4");
11491 if (
INFILE(_SPDX_389_exception)) {
11492 INTERESTING(
"389-exception");
11494 if (
INFILE(_SPDX_Autoconf_exception_20)) {
11495 INTERESTING(
"Autoconf-exception-2.0");
11497 if (
INFILE(_SPDX_Autoconf_exception_30)) {
11498 INTERESTING(
"Autoconf-exception-3.0");
11500 if (
INFILE(_SPDX_Bison_exception_22)) {
11501 INTERESTING(
"Bison-exception-2.2");
11503 if (
INFILE(_SPDX_Bootloader_exception)) {
11504 INTERESTING(
"Bootloader-exception");
11506 if (
INFILE(_SPDX_Classpath_exception_20)) {
11507 INTERESTING(
"Classpath-exception-2.0");
11509 if (
INFILE(_SPDX_CLISP_exception_20)) {
11510 INTERESTING(
"CLISP-exception-2.0");
11512 if (
INFILE(_SPDX_DigiRule_FOSS_exception)) {
11513 INTERESTING(
"DigiRule-FOSS-exception");
11515 if (
INFILE(_SPDX_eCos_exception_20)) {
11516 INTERESTING(
"eCos-exception-2.0");
11518 if (
INFILE(_SPDX_Fawkes_Runtime_exception)) {
11519 INTERESTING(
"Fawkes-Runtime-exception");
11521 if (
INFILE(_SPDX_FLTK_exception)) {
11522 INTERESTING(
"FLTK-exception");
11524 if (
INFILE(_SPDX_Font_exception_20)) {
11525 INTERESTING(
"Font-exception-2.0");
11527 if (
INFILE(_SPDX_freertos_exception_20)) {
11528 INTERESTING(
"freertos-exception-2.0");
11530 if (
INFILE(_SPDX_GCC_exception_20)) {
11531 INTERESTING(
"GCC-exception-2.0");
11533 if (
INFILE(_SPDX_GCC_exception_31)) {
11534 INTERESTING(
"GCC-exception-3.1");
11536 if (
INFILE(_SPDX_gnu_javamail_exception)) {
11537 INTERESTING(
"gnu-javamail-exception");
11539 if (
INFILE(_SPDX_i2p_gpl_java_exception)) {
11540 INTERESTING(
"i2p-gpl-java-exception");
11542 if (
INFILE(_SPDX_Libtool_exception)) {
11543 INTERESTING(
"Libtool-exception");
11545 if (
INFILE(_SPDX_Linux_syscall_note)) {
11546 INTERESTING(
"Linux-syscall-note");
11548 if (
INFILE(_SPDX_LLVM_exception)) {
11549 INTERESTING(
"LLVM-exception");
11551 if (
INFILE(_SPDX_LZMA_exception)) {
11552 INTERESTING(
"LZMA-exception");
11554 if (
INFILE(_SPDX_mif_exception)) {
11555 INTERESTING(
"mif-exception");
11557 if (
INFILE(_SPDX_Nokia_Qt_exception_11)) {
11558 INTERESTING(
"Nokia-Qt-exception-1.1");
11560 if (
INFILE(_SPDX_OCCT_exception_10)) {
11561 INTERESTING(
"OCCT-exception-1.0");
11563 if (
INFILE(_SPDX_OpenJDK_assembly_exception_10)) {
11564 INTERESTING(
"OpenJDK-assembly-exception-1.0");
11566 if (
INFILE(_SPDX_openvpn_openssl_exception)) {
11567 INTERESTING(
"openvpn-openssl-exception");
11569 if (
INFILE(_SPDX_Qwt_exception_10)) {
11570 INTERESTING(
"Qwt-exception-1.0");
11572 if (
INFILE(_SPDX_u_boot_exception_20)) {
11573 INTERESTING(
"u-boot-exception-2.0");
11575 if (
INFILE(_SPDX_WxWindows_exception_31)) {
11576 INTERESTING(
"WxWindows-exception-3.1");
11583 if (
INFILE(_LT_389_exception)) {
11584 INTERESTING(
"389-exception");
11586 else if (
INFILE(_LT_Autoconf_exception_20)) {
11587 INTERESTING(
"Autoconf-exception-2.0");
11589 else if (
INFILE(_LT_GPL_EXCEPT_5) &&
INFILE(_LT_Autoconf_exception_30)) {
11590 INTERESTING(
"Autoconf-exception-3.0");
11592 else if (
INFILE(_PHR_Autoconf_exception_30)) {
11593 INTERESTING(
"Autoconf-exception-3.0");
11595 else if (
INFILE(_LT_Autoconf_exception_3)) {
11596 INTERESTING(
"Autoconf-exception");
11598 else if (
INFILE(_LT_Bison_exception_22)) {
11599 INTERESTING(
"Bison-exception-2.2");
11601 else if (
INFILE(_LT_Bison_exception_1) ||
INFILE(_LT_Bison_exception_2)) {
11602 INTERESTING(
"Bison-exception");
11604 else if (
INFILE(_LT_Bootloader_exception)) {
11605 INTERESTING(
"Bootloader-exception");
11608 else if (
INFILE(_LT_OpenJDK_assembly_exception_10_1) ||
HASTEXT(_LT_OpenJDK_assembly_exception_10_2, 0)) {
11609 INTERESTING(
"OpenJDK-assembly-exception-1.0");
11611 else if (
INFILE(_LT_GPL_EXCEPT_6)) {
11612 if (
INFILE(_LT_mif_exception)) {
11613 INTERESTING(
"Fawkes-Runtime-exception");
11616 INTERESTING(
"Classpath-exception-2.0");
11619 else if (
INFILE(_LT_classpath_exception_1)) {
11620 INTERESTING(
"Classpath-exception-2.0");
11622 else if (
HASTEXT(_LT_CLISP_exception_20_1, 0) &&
INFILE(_LT_CLISP_exception_20_2)) {
11623 INTERESTING(
"CLISP-exception-2.0");
11625 else if (
HASTEXT(_TITLE_DigiRule_FOSS_exception, 0) ||
INFILE(_LT_DigiRule_FOSS_exception)) {
11626 INTERESTING(
"DigiRule-FOSS-exception");
11628 else if (
INFILE(_LT_eCos_exception) &&
INFILE(_LT_GPL_EXCEPT_7)) {
11629 INTERESTING(
"eCos-exception-2.0");
11631 else if (
HASTEXT(_LT_FLTK_exception, 0)) {
11632 INTERESTING(
"FLTK-exception");
11634 else if (
HASTEXT(_TEXT_FONT, REG_EXTENDED) ||
INFILE(_LT_FONT_EXCEPTION_20)) {
11635 INTERESTING(
"Font-exception-2.0");
11637 else if (
HASTEXT(_LT_freertos_exception_20, 0)) {
11638 INTERESTING(
"freertos-exception-2.0");
11640 else if (
INFILE(_LT_freertos_exception_1) ||
INFILE(_LT_freertos_exception_2)) {
11641 INTERESTING(
"freertos-exception");
11643 else if (
INFILE(_LT_GCC_exception_31_1) ||
INFILE(_LT_GCC_exception_31_2)) {
11644 INTERESTING(
"GCC-exception-3.1");
11646 else if (
INFILE(_LT_GCC_exception_20)) {
11647 INTERESTING(
"GCC-exception-2.0");
11650 else if (
INFILE(_LT_linking_exception_1)) {
11651 INTERESTING(
"linking-exception");
11653 else if (
HASTEXT(_TEXT_GCC, REG_EXTENDED)) {
11654 INTERESTING(
"GCC-exception");
11656 else if (
INFILE(_LT_gnu_javamail_exception_1) ||
INFILE(_LT_gnu_javamail_exception_2)) {
11657 INTERESTING(
"gnu-javamail-exception");
11659 else if (
INFILE(_LT_i2p_gpl_java_exception)) {
11660 INTERESTING(
"i2p-gpl-java-exception");
11662 else if (
INFILE(_LT_GPL_EXCEPT_1) ||
INFILE(_LT_GPL_EXCEPT_2)) {
11663 if (
HASTEXT(_LT_Libtool_exception, 0)) {
11664 INTERESTING(
"Libtool-exception");
11666 if (
HASTEXT(_LT_Autoconf_exception_2, REG_EXTENDED) ||
INFILE(_LT_Autoconf_exception_1)) {
11667 INTERESTING(
"Autoconf-exception");
11670 else if (
INFILE(_LT_Linux_syscall_note)) {
11671 INTERESTING(
"Linux-syscall-note");
11673 else if (
HASTEXT(_LT_LLVM_exception_1, 0) ||
HASTEXT(_LT_LLVM_exception_2, 0)) {
11674 INTERESTING(
"LLVM-exception");
11676 else if (
INFILE(_LT_LZMA_exception)) {
11677 INTERESTING(
"LZMA-exception");
11679 else if (
INFILE(_LT_mif_exception)) {
11680 INTERESTING(
"mif-exception");
11682 else if (
HASTEXT(_LT_OCCT_exception_10_1, REG_EXTENDED) ||
INFILE(_LT_OCCT_exception_10_2)) {
11683 INTERESTING(
"OCCT-exception-1.0");
11685 else if (
INFILE(_LT_openvpn_openssl_exception)) {
11686 INTERESTING(
"openvpn-openssl-exception");
11688 else if (
HASTEXT(_TITLE_QT_GPL_EXCEPTION_10, 0)) {
11689 INTERESTING(
"Qt-GPL-exception-1.0");
11691 else if (
HASTEXT(_LT_QT_GPL_EXCEPTION_10_1, 0) &&
INFILE(_LT_QT_GPL_EXCEPTION_10_2)) {
11692 INTERESTING(
"Qt-GPL-exception-1.0");
11694 else if (
HASTEXT(_LT_QT_GPL_EXCEPTION, 0) &&
HASTEXT(_LT_QT_GPL_EXCEPTION_10_3, 0)) {
11695 INTERESTING(
"Qt-GPL-exception-1.0");
11697 else if (
INFILE(_TITLE_Nokia_Qt_LGPL_exception_11)) {
11698 INTERESTING(
"Nokia-Qt-exception-1.1");
11700 else if (
INFILE(_TITLE_QT_LGPL_EXCEPTION_11)) {
11701 INTERESTING(
"Qt-LGPL-exception-1.1");
11703 else if (
INFILE(_LT_Qwt_exception_10_1)) {
11704 INTERESTING(
"Qwt-exception-1.0");
11706 else if (
HASTEXT(_LT_Qwt_exception_10_2, 0)) {
11707 INTERESTING(
"Qwt-exception-1.0");
11709 else if (
INFILE(_LT_WxWindows_exception_31)) {
11710 INTERESTING(
"WxWindows-exception-3.1");
11716 else if (
INFILE(_PHR_WXWINDOWS_31)) {
11717 INTERESTING(
"WxWindows-exception-3.1");
11718 INTERESTING(
"LGPL-2.0-or-later");
11724 else if (
INFILE(_PHR_WXWINDOWS)) {
11725 INTERESTING(
"WxWindows");
11727 else if (
HASTEXT(_LT_u_boot_exception_20, REG_EXTENDED)) {
11728 INTERESTING(
"u-boot-exception-2.0");
11730 else if (
HASTEXT(_LT_GPL_EXCEPT_Trolltech, REG_EXTENDED)) {
11731 INTERESTING(
"trolltech-exception");
11733 else if (
INFILE(_LT_OpenSSL_exception_1) ||
INFILE(_LT_OpenSSL_exception_2)) {
11734 INTERESTING(
"OpenSSL-exception");
11736 else if (
INFILE(_LT_GPL_UPX_EXCEPT) && !
HASTEXT(_LT_IGNORE_CLAUSE, REG_EXTENDED)) {
11737 INTERESTING(
"UPX-exception");
11739 else if (
INFILE(_URL_mysql_floss_exception) ||
HASTEXT(_TITLE_mysql_floss_exception, 0)) {
11740 INTERESTING(
lDebug ?
"mysql-floss-exception(URL)" :
"mysql-floss-exception");
11742 else if (
INFILE(_TITLE_Oracle_foss_exception) ||
INFILE(_LT_Oracle_foss_exception)) {
11743 INTERESTING(
"Oracle-foss-exception");
11745 else if (
INFILE(_LT_linking_exception_2) || (
INFILE(_LT_linking_exception_3) &&
INFILE(_LT_GPL_EXCEPT_7))) {
11746 INTERESTING(
"linking-exception");
11748 else if (
HASTEXT(_TITLE_universal_foss_exception_10, 0)
11749 ||
URL_INFILE(_URL_universal_foss_exception_10)
11750 ||
INFILE(_LT_universal_foss_exception_10)) {
11751 INTERESTING(
"universal-foss-exception-1.0");
11753 else if (
INFILE(_LT_GPL_EXCEPT_1)) {
11754 INTERESTING(
lDebug ?
"GPL-except-1" :
"GPL-exception");
11756 else if (
INFILE(_LT_GPL_EXCEPT_2)) {
11757 INTERESTING(
lDebug ?
"GPL-except-2" :
"GPL-exception");
11759 else if (
INFILE(_LT_GPL_EXCEPT_3)) {
11760 INTERESTING(
lDebug ?
"GPL-except-3" :
"GPL-exception");
11762 else if (
INFILE(_LT_GPL_EXCEPT_4)) {
11763 INTERESTING(
lDebug ?
"GPL-except-4" :
"GPL-exception");
11765 else if (
INFILE(_LT_GPL_EXCEPT_7)) {
11766 INTERESTING(
"linking-exception");
11768 else if (
INFILE(_LT_GPL_SWI_PROLOG_EXCEPT)) {
11769 INTERESTING(
lDebug ?
"GPL-swi-prolog" :
"GPL-exception");
11776 #define LT_TARGET 1299
11777 void showLTCache(
char *msg)
11783 printf(
"%s\n", msg);
11784 if (LT_TARGET >= 0) {
11785 printf(
"... tracking string #%d\n", LT_TARGET);
11787 while (i < NFOOTPRINTS) {
11789 printf(i == LT_TARGET ?
"x" :
".");
11795 printf(i == LT_TARGET ?
"0" :
":");
11798 if ((++i % 75) == 0) {
11799 printf(
"|%04d\n", i);
11802 printf(
"\nLTSR-matches: %d, Cached: %d\n", nMatch, nCached);
11807 #ifdef DOCTOR_DEBUG
11811 void dumpMatch(
char *text,
char *label)
11813 char *x = text + cur.regm.rm_so;
11814 char *cp = text + cur.regm.rm_eo;
11817 printf(
"%s ", label);
11819 printf(
"@ %d [", cur.regm.rm_so);
11820 for (; x < cp; x++) {
void doctorBuffer(char *buf, int isML, int isPS, int isCR)
Convert a buffer of multiple stuff to text-only, separated by spaces.
void listDump(list_t *l, int verbose)
print the passed in list
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.
void listIterationReset(list_t *l)
Rest list ix to -1.
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).
item_t * listIterate(list_t *l)
return a pointer to listitem, returns a NULL_ITEM when no more items to return.
void listSort(list_t *l, int sortType)
Sort the list as per the sortType passed.
void listClear(list_t *l, int deallocFlag)
Destroy list_t.
if(!preg_match("/\s$projectGroup\s/", $groups) &&(posix_getgid() !=$gInfo[ 'gid']))
get monk license list of one specified uploadtree_id
void printRegexMatch(int n, int cached)
CDB – Need to review this code, particularly for the use of an external file (Nomos....
char * getInstances(char *textp, int size, int nBefore, int nAfter, char *regex, int recordOffsets)
Get occurrence of a regex in a given string pointer.
char * copyString(char *s, char *label)
Create a copy of a string.
void Assert(int fatalFlag, const char *fmt,...)
Raise an assert.
char * findEol(char *s)
Find first ROL in a string.
#define NULL_ITEM
NULL item.
#define NULL_STR
NULL string.
#define isEOL(x)
Check if x points to a EOL character.
void Bail(int exitval)
Close connections and exit.
#define NULL_CHAR
NULL character.
int optionIsSet(int val)
Check if an CLI option is set.
int idxGrep_recordPosition(int index, char *data, int flags)
compile a regex, perform the search and record findings
int idxGrep(int index, char *data, int flags)
compile a regex, and perform the search (on data?)
int strGrep(char *regex, char *data, int flags)
General-purpose grep function, used for one-time-only searches.
int idxGrep_recordPositionDoctored(int index, char *data, int flags)
compile a regex, perform the search and record findings
int strNbuf(char *data, char *str)
Check if a string exists in buffer (case insensitive)
void cleanLicenceBuffer()
Clean the license buffer.
FUNCTION void addLicence(GArray *theMatches, char *licenceName)
Add a license to the matches array.
#define NY_INFILE(x)
Calls fileHasPatt() with qType 4.
#define URL_INFILE(x)
Check in file with qType 0|1.
char * aslVersion(char *, int, int, int)
Check for ASL Apache versions.
static char licStr[myBUFSIZ]
#define RM_INFILE(x)
Calls fileHasPatt() with qType 1.
void addRef(char *, int)
This function fills in a character-buffer for a license of a CURRENT file being evaluated,...
char * pythonVersion(char *, int, int, int)
Check for python versions.
char * gfdlVersion(char *, int, int, int)
Check for GFDL versions.
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 HASREGEX(x, cp)
Calls idxGrep()
#define PARSE_ARGS
Arguments to parse.
#define SEEN(x)
Check LTSR_SMASK on lstr[x].
char * cplVersion(char *, int, int, int)
Check for CPL versions.
#define NOT_INFILE(x)
Calls fileHasPatt()
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.
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 * sisslVersion(char *, int, int, int)
Check for SISSL versions.
static char * gplVersion(char *, int, int, int)
Check for GPL versions.
char * lpplVersion(char *, int, int, int)
Check for LPPL versions.
#define HASTEXT(x, fl)
Calls idxGrep_recordIndex()
char * oslVersion(char *, int, int, int)
Check for OSL versions.
void checkFileReferences(char *, int, int, int, int, int)
Generic license-phrases referring to other files or running commands.
static int dbgIdxGrep(int, char *, int)
Debugging call for idxGrep()
void saveRegexLocation(int, int, int, int)
Save a regex in whereList.
#define INFILE(x)
Calls fileHasPatt()
int checkUnclassified(char *, int, int, int, int, int)
This function is called when all the above license-checks don't turn up anything useful....
void locateRegex(char *, item_t *, int, int, int, int)
Locate a regex in a given file.
#define HASREGEX_RI(x, cp)
Calls idxGrep_recordIndex()
char * cddlVersion(char *, int, int, int)
Check for CDDL versions.
int famOPENLDAP(char *, int, int, int)
Utility function to search for OpenLDAP licenses. So many different footprints are used by OpenLDAP,...
char * lgplVersion(char *, int, int, int)
Check for LGPL versions.
static int fileHasPatt(int licTextIdx, char *filetext, int size, int isML, int isPS, int qType)
Checks for a phrase in a file.
static char ltsr[NFOOTPRINTS]
char * aflVersion(char *, int, int, int)
Check for AFL versions.
void spdxReference(char *, int, int, int)
void copyleftExceptions(char *, int, int, int)
char * ccVersion(char *, int, int, int)
Check for CC_BY-X versions.
char * agplVersion(char *, int, int, int)
Check for AGPL versions.
char * mplNplVersion(char *, int, int, int)
Check for MPL|NPL versions.
#define PERL_INFILE(x)
Calls fileHasPatt() with qType 3.
static char * realVersion(char *, int, int, int, int)
Check for RPSL versions.
#define GPL_INFILE(x)
Calls fileHasPatt() with qType 2.
#define LVAL(x)
Check LTSR_RMASK on lstr[x].
start($application)
start the application Assumes application is restartable via /etc/init.d/<script>....
char progName[64]
Program name.
searchString_t text
License text.
char * regex
License regex.
char * tseed
unencrypted license text
list_t type structure used to keep various lists. (e.g. there are multiple lists).
tricky data structure used for a list of 'items'
int score
License match score.