Back to index

cell-binutils  2.17cvs20070401
Functions | Variables
dlltool.h File Reference
#include "ansidecl.h"
#include <stdio.h>
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

void def_code (int)
void def_data (int)
void def_description (const char *)
void def_exports (const char *, const char *, int, int, int, int, int)
void def_heapsize (int, int)
void def_import (const char *, const char *, const char *, const char *, int)
void def_library (const char *, int)
void def_name (const char *, int)
void def_section (const char *, int)
void def_stacksize (int, int)
void def_version (int, int)
int yyparse (void)
int yyerror (const char *)
int yylex (void)

Variables

int yydebug
FILE * yyin
int linenumber

Function Documentation

void def_code ( int  )

Definition at line 1154 of file dlltool.c.

{

  def_section ("CODE", attr);
}

Here is the call graph for this function:

void def_data ( int  )

Definition at line 1161 of file dlltool.c.

{
  def_section ("DATA", attr);
}

Here is the call graph for this function:

void def_description ( const char *  )

Definition at line 994 of file dlltool.c.

{
  dlist_type *d = (dlist_type *) xmalloc (sizeof (dlist_type));
  d->text = xstrdup (desc);
  d->next = d_list;
  d_list = d;
}

Here is the call graph for this function:

void def_exports ( const char *  ,
const char *  ,
int  ,
int  ,
int  ,
int  ,
int   
)

Definition at line 928 of file dlltool.c.

{
  struct export *p = (struct export *) xmalloc (sizeof (*p));

  p->name = name;
  p->internal_name = internal_name ? internal_name : name;
  p->import_name = name;
  p->ordinal = ordinal;
  p->constant = constant;
  p->noname = noname;
  p->private = private;
  p->data = data;
  p->next = d_exports;
  d_exports = p;
  d_nfuncs++;

  if ((internal_name != NULL)
      && (strchr (internal_name, '.') != NULL))
    p->forward = ++d_nforwards;
  else
    p->forward = 0; /* no forward */
}

Here is the call graph for this function:

Here is the caller graph for this function:

void def_heapsize ( int  ,
int   
)

Definition at line 1012 of file dlltool.c.

{
  char b[200];
  if (commit > 0)
    sprintf (b, "-heap 0x%x,0x%x ", reserve, commit);
  else
    sprintf (b, "-heap 0x%x ", reserve);
  new_directive (xstrdup (b));
}

Here is the call graph for this function:

void def_import ( const char *  ,
const char *  ,
const char *  ,
const char *  ,
int   
)

Definition at line 1101 of file dlltool.c.

{
  const char *application_name;
  char *buf;

  if (entry != NULL)
    application_name = entry;
  else
    {
      if (app_name != NULL)
       application_name = app_name;
      else
       application_name = "";
    }

  if (dllext != NULL)
    {
      buf = (char *) alloca (strlen (module) + strlen (dllext) + 2);
      sprintf (buf, "%s.%s", module, dllext);
      module = buf;
    }

  append_import (application_name, module, ord_val);
}

Here is the call graph for this function:

void def_library ( const char *  ,
int   
)

Definition at line 979 of file dlltool.c.

{
  /* xgettext:c-format */
  inform (_("LIBRARY: %s base: %x"), name, base);

  if (d_is_exe)
    non_fatal (_("Can't have LIBRARY and NAME"));

  /* If --dllname not provided, use the one in the DEF file.  */
  if (! dll_name)
    set_dll_name_from_def (name);
  d_is_dll = 1;
}

Here is the call graph for this function:

void def_name ( const char *  ,
int   
)

Definition at line 963 of file dlltool.c.

{
  /* xgettext:c-format */
  inform (_("NAME: %s base: %x"), name, base);

  if (d_is_dll)
    non_fatal (_("Can't have LIBRARY and NAME"));

  /* If --dllname not provided, use the one in the DEF file.
     FIXME: Is this appropriate for executables?  */
  if (! dll_name)
    set_dll_name_from_def (name);
  d_is_exe = 1;
}

Here is the call graph for this function:

void def_section ( const char *  ,
int   
)

Definition at line 1134 of file dlltool.c.

{
  char buf[200];
  char atts[5];
  char *d = atts;
  if (attr & 1)
    *d++ = 'R';

  if (attr & 2)
    *d++ = 'W';
  if (attr & 4)
    *d++ = 'X';
  if (attr & 8)
    *d++ = 'S';
  *d++ = 0;
  sprintf (buf, "-attr %s %s", name, atts);
  new_directive (xstrdup (buf));
}

Here is the call graph for this function:

Here is the caller graph for this function:

void def_stacksize ( int  ,
int   
)

Definition at line 1023 of file dlltool.c.

{
  char b[200];
  if (commit > 0)
    sprintf (b, "-stack 0x%x,0x%x ", reserve, commit);
  else
    sprintf (b, "-stack 0x%x ", reserve);
  new_directive (xstrdup (b));
}

Here is the call graph for this function:

void def_version ( int  ,
int   
)

Definition at line 1128 of file dlltool.c.

{
  printf ("VERSION %d.%d\n", major, minor);
}

Here is the call graph for this function:

int yyerror ( const char *  )

Definition at line 519 of file resrc.c.

{
  fatal ("%s:%d: %s", rc_filename, rc_lineno, msg);
}
int yylex ( void  )
int yyparse ( void  )

Variable Documentation

FILE* yyin