Welcome, Guest. Please login or register.

Author Topic: lha, linux version  (Read 761 times)

Description:

0 Members and 1 Guest are viewing this topic.

Offline orangeTopic starter

  • Hero Member
  • *****
  • Join Date: Dec 2003
  • Posts: 2797
lha, linux version
« on: September 15, 2015, 01:51:05 PM »
I've been looking for a way to modify 'huffman buffer size' in linux version of lha. (unfortunately there is no such option as in Amiga version).
think I've finally found it defined in 'lha_macro.h' file (from 'lha-114i.tar.gz' ):
Code: [Select]

/* slide.c */
#ifdef SUPPORT_LH7
#define MAX_DICBIT 16      /* lh7 use 16bits */
#endif

#ifndef SUPPORT_LH7
#define MAX_DICBIT 15      /* lh6 use 15bits */
#endif

Can someone help me make it an option, instead of compiling a new version for each value?
thanks.
( C is not my first language)


edit: I've modified source code, so that lha takes 'method' (-lh1- for eg.) and 'huffman buffer' size as input parameters now, if anyone needs it, send me PM.
« Last Edit: September 16, 2015, 09:37:55 AM by orange »
Better sorry than worry.