Lines Matching defs:code

73 	int numx;	/* number of digits (also called X's) in code */
75 int sizeval; /* value encoded into "size" field of code */
100 char *code, size_t maxcode, char *debugstr);
101 static bitv *code2dictval(fm_dc_handle_t *dhp, const char *code);
298 * (note we use "1" here and not FM_DC_VERSION because this code
378 const char *key[], char *code, size_t maxcode)
424 return (buildcode(dhp, rhsp, code, maxcode, debugstr));
437 fm_dc_code2key(fm_dc_handle_t *dhp, const char *code,
449 "fm_dc_code2key: dhp 0x%p code \"%s\" maxkey %d: ",
450 (void *)dhp, code, maxkey);
454 /* convert code back to bit vector */
455 if ((dictval = code2dictval(dhp, code)) == NULL) {
701 char *code, size_t maxcode, char *debugstr)
703 char *codebegin = code; /* remember start of code buffer */
726 *code++ = *ptr;
753 /* determine which format of code we're using */
756 /* subtract off the offset appropriate for format of code */
762 * this "cannot happen" since code format was chosen
787 * - 2 bit code type, set to 01
789 * - the databits of the dictionary code itself
813 *code++ = '-';
814 *code++ = Alphabet[bitv_chunk(allbits, limbit, limbit - 5)];
818 *code = '\0';
823 (void) fprintf(stderr, "code \"%s\"\n", codebegin);
831 code2dictval(fm_dc_handle_t *dhp, const char *code)
838 unsigned long ocsum; /* original checksum in code */
844 /* check dictname part of code */
845 if (strncasecmp(code, dhp->dictname, len) ||
846 code[len] != '-') {
851 /* convert code back to a bit vector */
858 code = &code[len + 1];
861 for (; *code; code++)
862 if (*code == '-')
868 if (*code == Alphabet[val])
908 /* code looks okay, just return dictval portion */
922 /* add in the offset appropriate for the length of code being used */
926 * a given number of bits from the code and the offset
1097 * of time allows for simpler code and we know the max that will
1463 /* CRC code... */