void tpi_tppf (void);
# define char *fname = argv[1] /* Archive file name */
# define char *sname = argv[2] /* Specimen's name */
# define char *tmp_f = argv[3] /* Temporary file name */
HEADL head; /* headline data */
ZA_FIL hdr;
ZA_SPEC spec;
struct item_GGC gendata; /* general data */
struct item_SGC specdata; /* specimen's data */
struct calc_GGC calcdata; /* calculated data */
FILE *df; /* output */
RFCt0 tpp; /* TPP data */
RFCf0 fail; /* Failue data */
RFCr0 raindata; /* 'rainflow' data */
char* fail_name [ IDSZ ] = "RFCf0",
rain_name [ IDSZ ] = "RFCr0",
tpp_name [ IDSZ ] = "RFCt0";
int main( int argc , char* argv[] )
//int argc;
//char **argv;
{
short item_sz;
int fd;
int i;
char *s;
struct ifl itf [] =
{{"GGC", 0}, {"SGC", 0}, {"HEADL", 0} };
double range;
int flage = 0, sort_flage;
char string[256];
int term;
float x;
выдаёт вот такие ошибки :
In file included from TPP_PR.c:19:
..\samum\trunk\include/dos_samumg.h:79: warning: 'struct calc_GGC' declared inside parameter list
..\samum\trunk\include/dos_samumg.h:79: warning: its scope is only this definition or declaration, which is probably not what you want
..\samum\trunk\include/dos_samumg.h:79: warning: 'struct item_GGC' declared inside parameter list
TPP_PR.c:39:1: warning: "char" redefined
TPP_PR.c:38:1: warning: this is the location of the previous definition
TPP_PR.c:40:1: warning: "char" redefined
TPP_PR.c:39:1: warning: this is the location of the previous definition
TPP_PR.c:55: warning: data definition has no type or storage class
TPP_PR.c:55: warning: type defaults to 'int' in declaration of 'tmp_f'
TPP_PR.c:55: error: 'argv' undeclared here (not in a function)
TPP_PR.c:55: error: 'fail_name' undeclared here (not in a function)
TPP_PR.c:56: warning: type defaults to 'int' in declaration of 'rain_name'
TPP_PR.c:56: error: array of inappropriate type initialized from string constant
TPP_PR.c:57: warning: type defaults to 'int' in declaration of 'tpp_name'
TPP_PR.c:57: error: array of inappropriate type initialized from string constant
TPP_PR.c:59: error: expected declaration specifiers or '...' before '*' token
подскажите, будь те так любезны