projects
/
h316.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
ldc: Small fixes (includes, less warnings etc.)
[h316.git]
/
pc-tools
/
ldc
/
process.c
diff --git
a/pc-tools/ldc/process.c
b/pc-tools/ldc/process.c
index 9dd71be48aab208836e620c6e7e3872d2eedee92..a21ac7ed3fbb254e185cdedcb8790f329edab78e 100644
(file)
--- a/
pc-tools/ldc/process.c
+++ b/
pc-tools/ldc/process.c
@@
-3,7
+3,7
@@
#include "hw_helpers.h"
#include "process.h"
#include "hw_helpers.h"
#include "process.h"
-
+#include "ldc.h"
//#define DEBUG_DATA
/**********************************************************************/
//#define DEBUG_DATA
/**********************************************************************/
@@
-41,7
+41,7
@@
void block_dispose(datablock * victim){
char ** extract_labels0(datablock * blockp){
char ** result=(char **) malloc (sizeof(char **));
char ** extract_labels0(datablock * blockp){
char ** result=(char **) malloc (sizeof(char **));
- result[0]
==
NULL;
+ result[0]
=
NULL;
if (get_blocktype(blockp)!=0) return NULL;
datablock block;
if (get_blocktype(blockp)!=0) return NULL;
datablock block;
@@
-65,7
+65,6
@@
char ** extract_labels0(datablock * blockp){
strncpy (aktres,akt+dd,strlen(akt+dd));
result=(char **)realloc(result, (c+1)* sizeof(char**));
result[c]=aktres;
strncpy (aktres,akt+dd,strlen(akt+dd));
result=(char **)realloc(result, (c+1)* sizeof(char**));
result[c]=aktres;
-// printf("akt: %s\n",result[c]);
}
result=(char **)realloc(result, (c+1)* sizeof(char**));
result[c]=NULL;
}
result=(char **)realloc(result, (c+1)* sizeof(char**));
result[c]=NULL;
@@
-75,7
+74,6
@@
char ** extract_labels0(datablock * blockp){
}
void dispose_labels(char ** labels){
}
void dispose_labels(char ** labels){
- char * akt;
if (labels==NULL) return;
int c=0;
do {
if (labels==NULL) return;
int c=0;
do {