Move hashtab onto the heap. Add new wsprd_exp with stack decoder option (jelinek.c)

git-svn-id: svn+ssh://svn.code.sf.net/p/wsjt/wsjt/branches/wsjtx@5721 ab8295b8-cf94-4d9e-aec4-7959e3be5d79
This commit is contained in:
Steven Franke
2015-07-25 23:48:53 +00:00
parent 46b2deb3c1
commit 88a7ab5f95
10 changed files with 194 additions and 164 deletions
+3 -3
View File
@@ -163,7 +163,7 @@ void interleave(unsigned char *sym)
}
}
int get_wspr_channel_symbols(char* rawmessage, unsigned char* symbols) {
int get_wspr_channel_symbols(char* rawmessage, char* hashtab, unsigned char* symbols) {
int m=0, n=0, ntype=0;
int i, j, ihash;
unsigned char pr3[162]=
@@ -285,8 +285,8 @@ int get_wspr_channel_symbols(char* rawmessage, unsigned char* symbols) {
// make sure that the 11-byte data vector is unpackable
// unpack it with the routine that the decoder will use and display
// the result. let the operator decide whether it worked.
char hashtab[32768][13];
memset(hashtab,0,sizeof(char)*32768*13);
// char hashtab[32768][13];
// memset(hashtab,0,sizeof(char)*32768*13);
char *check_call_loc_pow, *check_callsign;
check_call_loc_pow=malloc(sizeof(char)*23);