Back to index

cell-binutils  2.17cvs20070401
Defines | Functions | Variables
sh1.c File Reference

Go to the source code of this file.

Defines

#define const

Functions

int shlib_mainvar ()
int shlib_overriddenvar ()
int shlib_shlibvar1 ()
int shlib_shlibvar2 ()
int shlib_shlibcalled ()
int shlib_shlibcall ()
int shlib_overriddencall2 ()
int shlib_shlibcall2 ()
int main_called ()
int shlib_maincall ()
int shlib_checkfunptr1 (int(*)() p)
int shlib_checkfunptr2 (int(*)() p)
int shlib_check ()

Variables

int mainvar
int overriddenvar = -1
int shlibvar1 = 3
int shlibvar2
int(*)() shlib_getfunptr1 ()
int(*)() shlib_getfunptr2 ()
static int i = 6
static const char * str = "Hello, world\n"

Define Documentation

#define const

Definition at line 138 of file sh1.c.


Function Documentation

Definition at line 140 of file main.c.

{
  return 6;
}

Here is the caller graph for this function:

Definition at line 145 of file sh1.c.

{
  const char *s1, *s2;

  if (i != 6)
    return 0;

  /* To isolate the test, don't rely on any external functions, such
     as strcmp.  */
  s1 = "Hello, world\n";
  s2 = str;
  while (*s1 != '\0')
    if (*s1++ != *s2++)
      return 0;
  if (*s2 != '\0')
    return 0;

  if (shlib_shlibvar1 () != 3)
    return 0;

  return 1;
}

Here is the call graph for this function:

Here is the caller graph for this function:

int shlib_checkfunptr1 ( int (*) ()  p)

Definition at line 98 of file sh1.c.

{
  return p == shlib_shlibvar1;
}

Here is the call graph for this function:

int shlib_checkfunptr2 ( int (*) ()  p)

Definition at line 109 of file sh1.c.

{
  return p == main_called;
}

Here is the call graph for this function:

Definition at line 88 of file sh1.c.

{
  return main_called ();
}

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 26 of file sh1.c.

{
  return mainvar;
}

Here is the caller graph for this function:

Definition at line 148 of file main.c.

{
  return 8;
}

Definition at line 34 of file sh1.c.

{
  return overriddenvar;
}

Here is the caller graph for this function:

Definition at line 58 of file sh1.c.

{
  return shlib_shlibcalled ();
}

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 70 of file sh1.c.

{
  return shlib_overriddencall2 ();
}

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 15 of file sh2.c.

{
  return 5;
}

Definition at line 41 of file sh1.c.

{
  return shlibvar1;
}

Here is the caller graph for this function:

Definition at line 47 of file sh1.c.

{
  return shlibvar2;
}

Here is the caller graph for this function:


Variable Documentation

int i = 6 [static]

Definition at line 141 of file sh1.c.

Definition at line 22 of file main.c.

Definition at line 12 of file sh1.c.

Definition at line 119 of file sh1.c.

{
  return shlib_shlibvar1;
}

Definition at line 128 of file sh1.c.

{
  return main_called;
}

Definition at line 16 of file sh1.c.

Definition at line 6 of file sh2.c.

const char* str = "Hello, world\n" [static]

Definition at line 142 of file sh1.c.