src/main.c, whitespace cleanup
This commit is contained in:
parent
8369732e7b
commit
f8df1a7b2f
18
src/main.c
18
src/main.c
|
|
@ -270,6 +270,7 @@ if_inpdeck(struct line *deck, INPtables **tab)
|
||||||
{
|
{
|
||||||
NG_IGNORE(tab);
|
NG_IGNORE(tab);
|
||||||
NG_IGNORE(deck);
|
NG_IGNORE(deck);
|
||||||
|
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -305,6 +306,7 @@ char *
|
||||||
if_errstring(int code)
|
if_errstring(int code)
|
||||||
{
|
{
|
||||||
NG_IGNORE(code);
|
NG_IGNORE(code);
|
||||||
|
|
||||||
return "spice error";
|
return "spice error";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -354,6 +356,7 @@ com_snload(wordlist *wl)
|
||||||
{
|
{
|
||||||
NG_IGNORE(wl);
|
NG_IGNORE(wl);
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
com_snsave(wordlist *wl)
|
com_snsave(wordlist *wl)
|
||||||
{
|
{
|
||||||
|
|
@ -388,50 +391,59 @@ spice_destroy_devices(void)
|
||||||
#ifdef XSPICE
|
#ifdef XSPICE
|
||||||
/* saj to get nutmeg to compile, not nice but necessary */
|
/* saj to get nutmeg to compile, not nice but necessary */
|
||||||
Ipc_Tiein_t g_ipc;
|
Ipc_Tiein_t g_ipc;
|
||||||
|
|
||||||
Ipc_Status_t
|
Ipc_Status_t
|
||||||
ipc_send_errchk(void)
|
ipc_send_errchk(void)
|
||||||
{
|
{
|
||||||
Ipc_Status_t x = IPC_STATUS_OK;
|
Ipc_Status_t x = IPC_STATUS_OK;
|
||||||
return x;
|
return x;
|
||||||
}
|
}
|
||||||
|
|
||||||
Ipc_Status_t
|
Ipc_Status_t
|
||||||
ipc_get_line(char *str, int *len, Ipc_Wait_t wait)
|
ipc_get_line(char *str, int *len, Ipc_Wait_t wait)
|
||||||
{
|
{
|
||||||
Ipc_Status_t x = IPC_STATUS_OK;
|
Ipc_Status_t x = IPC_STATUS_OK;
|
||||||
|
|
||||||
NG_IGNORE(str);
|
NG_IGNORE(str);
|
||||||
NG_IGNORE(len);
|
NG_IGNORE(len);
|
||||||
NG_IGNORE(wait);
|
NG_IGNORE(wait);
|
||||||
|
|
||||||
return x;
|
return x;
|
||||||
}
|
}
|
||||||
|
|
||||||
struct line *
|
struct line *
|
||||||
ENHtranslate_poly(struct line *deck)
|
ENHtranslate_poly(struct line *deck)
|
||||||
{
|
{
|
||||||
NG_IGNORE(deck);
|
NG_IGNORE(deck);
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
int
|
int
|
||||||
load_opus(char *name)
|
load_opus(char *name)
|
||||||
{
|
{
|
||||||
NG_IGNORE(name);
|
NG_IGNORE(name);
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
char *
|
char *
|
||||||
MIFgettok(char **s)
|
MIFgettok(char **s)
|
||||||
{
|
{
|
||||||
NG_IGNORE(s);
|
NG_IGNORE(s);
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
EVTprint(wordlist *wl)
|
EVTprint(wordlist *wl)
|
||||||
{
|
{
|
||||||
NG_IGNORE(wl);
|
NG_IGNORE(wl);
|
||||||
}
|
}
|
||||||
|
|
||||||
struct dvec *
|
struct dvec *
|
||||||
EVTfindvec(char *node) {
|
EVTfindvec(char *node) {
|
||||||
NG_IGNORE(node);
|
NG_IGNORE(node);
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif /* XSPICE */
|
#endif /* XSPICE */
|
||||||
|
|
||||||
#endif /* SIMULATOR */
|
#endif /* SIMULATOR */
|
||||||
|
|
@ -456,6 +468,7 @@ int DEVmaxnum = 0;
|
||||||
- Spice3
|
- Spice3
|
||||||
- all compatibility stuff
|
- all compatibility stuff
|
||||||
*/
|
*/
|
||||||
|
|
||||||
COMPATMODE_T
|
COMPATMODE_T
|
||||||
ngspice_compat_mode(void)
|
ngspice_compat_mode(void)
|
||||||
{
|
{
|
||||||
|
|
@ -471,6 +484,7 @@ ngspice_compat_mode(void)
|
||||||
if (strcasecmp(behaviour, "spice3") == 0)
|
if (strcasecmp(behaviour, "spice3") == 0)
|
||||||
return COMPATMODE_SPICE3;
|
return COMPATMODE_SPICE3;
|
||||||
}
|
}
|
||||||
|
|
||||||
return COMPATMODE_ALL;
|
return COMPATMODE_ALL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -535,8 +549,10 @@ prompt(void)
|
||||||
return NULL; /* NULL means no prompt */
|
return NULL; /* NULL means no prompt */
|
||||||
|
|
||||||
s = get_alt_prompt();
|
s = get_alt_prompt();
|
||||||
|
|
||||||
if (!s)
|
if (!s)
|
||||||
s = cp_promptstring;
|
s = cp_promptstring;
|
||||||
|
|
||||||
if (!s)
|
if (!s)
|
||||||
s = "->";
|
s = "->";
|
||||||
|
|
||||||
|
|
@ -554,7 +570,9 @@ prompt(void)
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
*p = '\0';
|
*p = '\0';
|
||||||
|
|
||||||
return pbuf;
|
return pbuf;
|
||||||
}
|
}
|
||||||
#endif /* HAVE_GNUREADLINE || HAVE_BSDEDITLINE */
|
#endif /* HAVE_GNUREADLINE || HAVE_BSDEDITLINE */
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue