X-Git-Url: https://git.jankratochvil.net/?p=gnokii.git;a=blobdiff_plain;f=gnokii%2Fgnokii.c;h=d9030f78b7e7a77b8c464a6952bc7d233fbeab2c;hp=82b2b8b17a8004044d7ea5db7a6535d5d7b74823;hb=f2cfd49e920cfff5a15ea44fc82d002306d07cb1;hpb=c7dcdfd34d2bed9cc64c5c9603e51ef8c8271951 diff --git a/gnokii/gnokii.c b/gnokii/gnokii.c index 82b2b8b..d9030f7 100644 --- a/gnokii/gnokii.c +++ b/gnokii/gnokii.c @@ -97,9 +97,9 @@ char *SynchronizeTime; /* If we set date and time from computer to phone (from . #endif /* UCLINUX */ static char *BinDir; /* Binaries directory from .gnokiirc file - not used here yet */ -#ifdef DEBUG +#ifndef UCLINUX static GSM_SMSMessage SMS[4]; -#endif +#endif /* UCLINUX */ #ifndef UCLINUX @@ -560,8 +560,6 @@ int GSM_SendMultiPartSMSOnConsole(GSM_MultiSMSMessage *MultiSMS, int argnum, int return 0; } -#endif /* UCLINUX */ - static int GSM_SaveMultiPartSMSOnConsole(GSM_MultiSMSMessage *MultiSMS, int argnum, int argc, char *argv[], bool inter, bool unicode, bool profile, bool scale) { @@ -688,8 +686,6 @@ static int GSM_SaveMultiPartSMSOnConsole(GSM_MultiSMSMessage *MultiSMS, int argn return 0; } -#ifndef UCLINUX - void GSM_PlayRingtoneOnConsole(GSM_Ringtone *ringtone) { int i; @@ -737,8 +733,17 @@ static int usage(void) )); #endif /* UCLINUX */ +#ifndef UCLINUX fprintf(stdout, _( " gnokii --getmemory memory_type [start [end]] [-short|-v30|-v21|-v]\n" + )); +#else /* UCLINUX */ + fprintf(stdout, _( +" gnokii --getmemory memory_type [start [end]] [-short]\n" + )); +#endif /* UCLINUX */ + + fprintf(stdout, _( " gnokii --writephonebook [-i]\n" )); @@ -747,17 +752,9 @@ static int usage(void) " gnokii --sendphonebookentry destination memory_type location\n" " [--smsc message_center_number] [--smscno message_center_index]\n" " [-s] [-v n] [-d]\n" - )); -#endif /* UCLINUX */ - - fprintf(stdout, _( " gnokii --savephonebookentry memory_type location\n" " [--smsc message_center_number] [--smscno message_center_index]\n" " [-r] [-i] [-s] [-a] [--name name]\n" - )); - -#ifndef UCLINUX - fprintf(stdout, _( " gnokii --getvoicemailbox\n" )); #endif /* UCLINUX */ @@ -1085,9 +1082,7 @@ int main(int argc, char *argv[]) { "sendcalendarnote", required_argument, NULL, OPT_SENDCALENDARNOTE }, { "savecalendarnote", required_argument, NULL, OPT_SAVECALENDARNOTE }, { "sendphonebookentry", required_argument, NULL, OPT_SENDPHONEBOOKENTRY}, -#endif /* UCLINUX */ { "savephonebookentry", required_argument, NULL, OPT_SAVEPHONEBOOKENTRY}, -#ifndef UCLINUX { "deletecalendarnote", required_argument, NULL, OPT_DELCALENDARNOTE },// Delete calendar note mode #endif /* UCLINUX */ { "getmemory", required_argument, NULL, OPT_GETMEMORY },// Get memory mode @@ -1346,9 +1341,7 @@ int main(int argc, char *argv[]) case OPT_DELCALENDARNOTE: rc = deletecalendarnote(optarg);break; case OPT_SAVECALENDARNOTE: rc = savecalendarnote(nargc, nargv);break; case OPT_SENDCALENDARNOTE: rc = sendcalendarnote(nargc, nargv);break; -#endif /* UCLINUX */ case OPT_SAVEPHONEBOOKENTRY: rc = savephonebookentry(nargc, nargv);break; -#ifndef UCLINUX case OPT_SENDPHONEBOOKENTRY: rc = sendphonebookentry(nargc, nargv);break; case OPT_WRITECALENDARNOTE: rc = writecalendarnote(nargv); break; #endif /* UCLINUX */ @@ -4726,6 +4719,7 @@ static int getmemory(int argc, char *argv[]) i_used++; else if (do_all) break; +#ifndef UCLINUX if (output_opt && !strcmp( output_opt,"-v30")) { semicolon_pipe_substitution( &entry, 0 ); fprintf(stdout,_("%s"),GSM_GetVCARD(&entry,30)); @@ -4741,6 +4735,7 @@ static int getmemory(int argc, char *argv[]) fprintf(stdout,_("%s"),GSM_GetVCARD(&entry,10)); formatdone=true; } +#endif /* UCLINUX */ if (output_opt && !strcmp(output_opt,"-short")) { semicolon_pipe_substitution( &entry, 0 ); fprintf(stdout, "%s;%s;%s;%d;%d;", entry.Name, entry.Number, memory_type_string, entry.Location, entry.Group); @@ -8859,9 +8854,7 @@ int divert(int argc, char *argv[]) return 0; } -#endif /* UCLINUX */ - -static int savephonebookentry(int argc, char *argv[]) +int savephonebookentry(int argc, char *argv[]) { GSM_MultiSMSMessage MultiSMS; GSM_PhonebookEntry entry; @@ -8909,8 +8902,6 @@ static int savephonebookentry(int argc, char *argv[]) return 0; } -#ifndef UCLINUX - int sendphonebookentry(int argc, char *argv[]) { GSM_MultiSMSMessage MultiSMS;