Warnings and spelling fixes.
Correct a variety of spelling errors, and eliminate a variety of compile time warnings.
This commit is contained in:
parent
e67b6d2b4b
commit
752cf21790
|
|
@ -114,7 +114,7 @@ NetEBinary* PEBinary::elaborate_expr(Design*des, NetScope*scope,
|
|||
void PEBinary::surpress_operand_sign_if_needed_(NetExpr*lp, NetExpr*rp)
|
||||
{
|
||||
// If either operand is unsigned, then treat the whole
|
||||
// expression as unsigned. This test needs to be done hear
|
||||
// expression as unsigned. This test needs to be done here
|
||||
// instead of in *_expr_base_ because it needs to be done
|
||||
// ahead of any subexpression evaluation (because they need to
|
||||
// know their signedness to evaluate) and because there are
|
||||
|
|
|
|||
|
|
@ -77,11 +77,11 @@ install: all installdirs $(libdir)/ivl/stub.tgt \
|
|||
$(libdir)/ivl/stub.tgt: ./stub.tgt
|
||||
$(INSTALL_PROGRAM) ./stub.tgt $(libdir)/ivl/stub.tgt
|
||||
|
||||
$(libdir)/ivl/stub.conf: ./stub.conf
|
||||
$(INSTALL_DATA) ./stub.conf $(libdir)/ivl/stub.conf
|
||||
$(libdir)/ivl/stub.conf: stub.conf
|
||||
$(INSTALL_DATA) $< $(libdir)/ivl/stub.conf
|
||||
|
||||
$(libdir)/ivl/stub-s.conf: ./stub-s.conf
|
||||
$(INSTALL_DATA) ./stub-s.conf $(libdir)/ivl/stub-s.conf
|
||||
$(libdir)/ivl/stub-s.conf: stub-s.conf
|
||||
$(INSTALL_DATA) $< $(libdir)/ivl/stub-s.conf
|
||||
|
||||
installdirs: ../mkinstalldirs
|
||||
$(srcdir)/../mkinstalldirs $(includedir) $(bindir) $(libdir)/ivl
|
||||
|
|
|
|||
|
|
@ -1709,7 +1709,7 @@ static unsigned int get_format_char(char **rtn, int ljust, int plus,
|
|||
break;
|
||||
}
|
||||
free(fmtb);
|
||||
/* We can't use strdup her since %u and %z can insert NULL
|
||||
/* We can't use strdup here since %u and %z can insert NULL
|
||||
* characters into the stream. */
|
||||
*rtn = malloc(size*sizeof(char));
|
||||
memcpy(*rtn, result, size);
|
||||
|
|
|
|||
|
|
@ -279,7 +279,6 @@ PLI_INT32 sys_dumpfile_compiletf(PLI_BYTE8 *name)
|
|||
{
|
||||
vpiHandle callh = vpi_handle(vpiSysTfCall, 0);
|
||||
vpiHandle argv = vpi_iterate(vpiArgument, callh);
|
||||
vpiHandle file;
|
||||
|
||||
/* Check that there is an argument and that it is a string. */
|
||||
if (argv == 0) {
|
||||
|
|
|
|||
|
|
@ -1595,7 +1595,7 @@ void compile_fork(char*label, struct symb_s dest, struct symb_s scope)
|
|||
code_label_lookup(code, dest.text);
|
||||
|
||||
/* Figure out the target SCOPE. */
|
||||
compile_vpi_lookup((vpiHandle*)&code->scope, scope.text);
|
||||
compile_vpi_lookup(&code->handle, scope.text);
|
||||
}
|
||||
|
||||
void compile_vpi_call(char*label, char*name, unsigned argc, vpiHandle*argv)
|
||||
|
|
|
|||
|
|
@ -348,7 +348,7 @@ extern void compile_codelabel(char*label);
|
|||
* The parser uses these functions to compile .scope statements.
|
||||
* The implementations of these live in the vpi_scope.cc file.
|
||||
*/
|
||||
extern void compile_scope_decl(char*typ, char*lab, char*nam,char*tnam,char*par);
|
||||
extern void compile_scope_decl(char*typ, char*lab, char*nam,const char*tnam,char*par);
|
||||
extern void compile_scope_recall(char*sym);
|
||||
|
||||
/*
|
||||
|
|
|
|||
|
|
@ -58,14 +58,14 @@ static FILE* logfile;
|
|||
void vpi_mcd_init(FILE *log)
|
||||
{
|
||||
mcd_table[0].fp = stdout;
|
||||
mcd_table[0].filename = "stdout";
|
||||
mcd_table[0].filename = strdup("stdout");
|
||||
|
||||
fd_table[0].fp = stdin;
|
||||
fd_table[0].filename = "stdin";
|
||||
fd_table[0].filename = strdup("stdin");
|
||||
fd_table[1].fp = stdout;
|
||||
fd_table[1].filename = "stdout";
|
||||
fd_table[1].filename = strdup("stdout");
|
||||
fd_table[2].fp = stderr;
|
||||
fd_table[2].filename = "stderr";
|
||||
fd_table[2].filename = strdup("stderr");
|
||||
|
||||
logfile = log;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -886,8 +886,8 @@ vpiHandle vpi_handle_by_name(const char *name, vpiHandle scope)
|
|||
|
||||
|
||||
/*
|
||||
We Increment the tow vpi methods to enable the
|
||||
read/write SDF delay values from/into
|
||||
We increment the two vpi methods to enable the
|
||||
read/write of SDF delay values from/into
|
||||
the modpath vpiHandle
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -316,7 +316,7 @@ static void attach_to_scope_(struct __vpiScope*scope, vpiHandle obj)
|
|||
* symbol table and the name is used to construct the actual object.
|
||||
*/
|
||||
void
|
||||
compile_scope_decl(char*label, char*type, char*name, char*tname, char*parent)
|
||||
compile_scope_decl(char*label, char*type, char*name, const char*tname, char*parent)
|
||||
{
|
||||
struct __vpiScope*scope = new struct __vpiScope;
|
||||
count_vpi_scopes += 1;
|
||||
|
|
|
|||
Loading…
Reference in New Issue