Splint cleanups, including const change.

svn path=/trunk/yasm/; revision=605
0.3
Peter Johnson 23 years ago
parent 6033703a64
commit 590fc49113
  1. 4
      libyasm/objfmt.h
  2. 4
      src/objfmt.h

@ -70,7 +70,7 @@ struct objfmt {
* be the section name. Returns NULL if something's wrong, otherwise * be the section name. Returns NULL if something's wrong, otherwise
* returns the new section. * returns the new section.
*/ */
/*@dependent@*/ /*@null@*/ section * /*@observer@*/ /*@null@*/ section *
(*sections_switch)(sectionhead *headp, valparamhead *valparams, (*sections_switch)(sectionhead *headp, valparamhead *valparams,
/*@null@*/ valparamhead *objext_valparams); /*@null@*/ valparamhead *objext_valparams);
@ -89,7 +89,7 @@ struct objfmt {
* is an enum not a bitmask). * is an enum not a bitmask).
*/ */
/*@only@*/ void * /*@only@*/ void *
(*declare_data_copy)(SymVisibility vis, /*@only@*/ void *data); (*declare_data_copy)(SymVisibility vis, const void *data);
void (*declare_data_delete)(SymVisibility vis, /*@only@*/ void *data); void (*declare_data_delete)(SymVisibility vis, /*@only@*/ void *data);
void (*declare_data_print)(FILE *f, SymVisibility vis, void (*declare_data_print)(FILE *f, SymVisibility vis,
/*@null@*/ void *data); /*@null@*/ void *data);

@ -70,7 +70,7 @@ struct objfmt {
* be the section name. Returns NULL if something's wrong, otherwise * be the section name. Returns NULL if something's wrong, otherwise
* returns the new section. * returns the new section.
*/ */
/*@dependent@*/ /*@null@*/ section * /*@observer@*/ /*@null@*/ section *
(*sections_switch)(sectionhead *headp, valparamhead *valparams, (*sections_switch)(sectionhead *headp, valparamhead *valparams,
/*@null@*/ valparamhead *objext_valparams); /*@null@*/ valparamhead *objext_valparams);
@ -89,7 +89,7 @@ struct objfmt {
* is an enum not a bitmask). * is an enum not a bitmask).
*/ */
/*@only@*/ void * /*@only@*/ void *
(*declare_data_copy)(SymVisibility vis, /*@only@*/ void *data); (*declare_data_copy)(SymVisibility vis, const void *data);
void (*declare_data_delete)(SymVisibility vis, /*@only@*/ void *data); void (*declare_data_delete)(SymVisibility vis, /*@only@*/ void *data);
void (*declare_data_print)(FILE *f, SymVisibility vis, void (*declare_data_print)(FILE *f, SymVisibility vis,
/*@null@*/ void *data); /*@null@*/ void *data);

Loading…
Cancel
Save