build/wince/tools/arm-wince-link.c
author Ehsan Akhgari <ehsan@mozilla.com>
Mon, 01 Feb 2010 23:00:06 -0500
changeset 40683 3dcfd44195d691654cf868e38fe4521f633aa079
parent 29329 4a17b48c2b9ce568e511084dee83bfe15dfa6082
permissions -rw-r--r--
Bug 542919 - Refactor the plain text editor initialization to facilitate lazy initialization; r=bzbarsky sr=roc

#include "toolspath.h"
#include "linkargs.h"

int
main(int argc, char **argv)
{
  int iRetVal;
  char* args[1000];
  int i = 0;
  int j = 0;
  int k = 0;
  int s = 0;

  // if -DLL is not passed, then change the entry to 'main'
  while(argv[j]) {
    checkLinkArgs(&k, &s, &i, &j, args, argv);
    j++;
  }
  args[i++] = LINK_PATH;
  addLinkArgs(k, s, &i, &j, args, argv);

  argpath_conv(&argv[1], &args[i]);

  return run(args);
}