Obtain top scope

ss_file_topscope is a function defined in ssfile.c.

Synopsis:

ss_scope_t * ss_file_topscope(ss_file_t *file, ss_scope_t *buf)

Formal Arguments:

  • file: File for which to obtain a link to a top scope.
  • buf: Optional buffer in which to store the resulting link.

Description: Given a file, return a link to the top scope of that file. This is really just a convenience function for ss_pers_topscope that exists mostly for compile-time type checking since this is an exceedingly common operation.

Return Value: Returns a pointer to a top-scope link on success (buf if that was non-null); null on failure.

Parallel Notes: Independent

See Also: