Back to index

cell-binutils  2.17cvs20070401
Classes | Defines | Typedefs | Functions
binemul.h File Reference
#include "bfd.h"
#include "bucomm.h"
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  bin_emulation_xfer_struct

Defines

#define AR_EMUL_USAGE_PRINT_OPTION_HEADER(fp)
#define AR_EMUL_ELEMENT_CHECK(abfd, file_name)   do { if ((abfd) == NULL) bfd_fatal (file_name); } while (0)
#define AR_EMUL_APPEND_PRINT_VERBOSE(verbose, file_name)   do { if (verbose) printf ("a - %s\n", file_name); } while (0)
#define AR_EMUL_REPLACE_PRINT_VERBOSE(verbose, file_name)   do { if (verbose) printf ("r - %s\n", file_name); } while (0)

Typedefs

typedef struct
bin_emulation_xfer_struct 
bin_emulation_xfer_type

Functions

void ar_emul_usage (FILE *)
void ar_emul_default_usage (FILE *)
bfd_boolean ar_emul_append (bfd **, char *, bfd_boolean)
bfd_boolean ar_emul_default_append (bfd **, char *, bfd_boolean)
bfd_boolean ar_emul_replace (bfd **, char *, bfd_boolean)
bfd_boolean ar_emul_default_replace (bfd **, char *, bfd_boolean)
bfd_boolean ar_emul_parse_arg (char *)
bfd_boolean ar_emul_default_parse_arg (char *)

Define Documentation

#define AR_EMUL_APPEND_PRINT_VERBOSE (   verbose,
  file_name 
)    do { if (verbose) printf ("a - %s\n", file_name); } while (0)

Definition at line 45 of file binemul.h.

#define AR_EMUL_ELEMENT_CHECK (   abfd,
  file_name 
)    do { if ((abfd) == NULL) bfd_fatal (file_name); } while (0)

Definition at line 42 of file binemul.h.

#define AR_EMUL_REPLACE_PRINT_VERBOSE (   verbose,
  file_name 
)    do { if (verbose) printf ("r - %s\n", file_name); } while (0)

Definition at line 48 of file binemul.h.

Value:
/* xgettext:c-format */                     \
  fprintf (fp, _(" emulation options: \n"))

Definition at line 38 of file binemul.h.


Typedef Documentation


Function Documentation

bfd_boolean ar_emul_append ( bfd **  ,
char *  ,
bfd_boolean   
)

Definition at line 41 of file binemul.c.

Here is the caller graph for this function:

bfd_boolean ar_emul_default_append ( bfd **  ,
char *  ,
bfd_boolean   
)

Definition at line 50 of file binemul.c.

{
  bfd *temp;

  temp = *after_bfd;
  *after_bfd = bfd_openr (file_name, NULL);

  AR_EMUL_ELEMENT_CHECK (*after_bfd, file_name);
  AR_EMUL_APPEND_PRINT_VERBOSE (verbose, file_name);

  (*after_bfd)->next = temp;

  return TRUE;
}

Here is the call graph for this function:

bfd_boolean ar_emul_default_replace ( bfd **  ,
char *  ,
bfd_boolean   
)

Definition at line 76 of file binemul.c.

{
  bfd *temp;

  temp = *after_bfd;
  *after_bfd = bfd_openr (file_name, NULL);

  AR_EMUL_ELEMENT_CHECK (*after_bfd, file_name);
  AR_EMUL_REPLACE_PRINT_VERBOSE (verbose, file_name);

  (*after_bfd)->next = temp;

  return TRUE;
}

Here is the call graph for this function:

void ar_emul_default_usage ( FILE *  )

Definition at line 33 of file binemul.c.

{
  AR_EMUL_USAGE_PRINT_OPTION_HEADER (fp);
  /* xgettext:c-format */
  fprintf (fp, _("  No emulation specific options\n"));
}

Here is the call graph for this function:

Definition at line 93 of file binemul.c.

bfd_boolean ar_emul_replace ( bfd **  ,
char *  ,
bfd_boolean   
)

Definition at line 67 of file binemul.c.

Here is the caller graph for this function:

void ar_emul_usage ( FILE *  )

Definition at line 26 of file binemul.c.

Here is the caller graph for this function: