Deleted Added
full compact
aoutx.h (60484) aoutx.h (61843)
1/* BFD semi-generic back-end for a.out binaries.
1/* BFD semi-generic back-end for a.out binaries.
2 Copyright 1990, 91, 92, 93, 94, 95, 96, 97, 98, 1999
2 Copyright 1990, 91, 92, 93, 94, 95, 96, 97, 98, 99, 2000
3 Free Software Foundation, Inc.
4 Written by Cygnus Support.
5
6This file is part of BFD, the Binary File Descriptor library.
7
8This program is free software; you can redistribute it and/or modify
9it under the terms of the GNU General Public License as published by
10the Free Software Foundation; either version 2 of the License, or

--- 2806 unchanged lines hidden (view full) ---

2817 done:
2818 if (*line_ptr != 0)
2819 {
2820 main_file_name = line_file_name;
2821 directory_name = line_directory_name;
2822 }
2823
2824 if (main_file_name == NULL
3 Free Software Foundation, Inc.
4 Written by Cygnus Support.
5
6This file is part of BFD, the Binary File Descriptor library.
7
8This program is free software; you can redistribute it and/or modify
9it under the terms of the GNU General Public License as published by
10the Free Software Foundation; either version 2 of the License, or

--- 2806 unchanged lines hidden (view full) ---

2817 done:
2818 if (*line_ptr != 0)
2819 {
2820 main_file_name = line_file_name;
2821 directory_name = line_directory_name;
2822 }
2823
2824 if (main_file_name == NULL
2825 || main_file_name[0] == '/'
2825 || IS_ABSOLUTE_PATH (main_file_name)
2826 || directory_name == NULL)
2827 filelen = 0;
2828 else
2829 filelen = strlen (directory_name) + strlen (main_file_name);
2830 if (func == NULL)
2831 funclen = 0;
2832 else
2833 funclen = strlen (bfd_asymbol_name (func));

--- 7 unchanged lines hidden (view full) ---

2841 buf = (char *) bfd_malloc (filelen + funclen + 3);
2842 adata (abfd).line_buf = buf;
2843 if (buf == NULL)
2844 return false;
2845 }
2846
2847 if (main_file_name != NULL)
2848 {
2826 || directory_name == NULL)
2827 filelen = 0;
2828 else
2829 filelen = strlen (directory_name) + strlen (main_file_name);
2830 if (func == NULL)
2831 funclen = 0;
2832 else
2833 funclen = strlen (bfd_asymbol_name (func));

--- 7 unchanged lines hidden (view full) ---

2841 buf = (char *) bfd_malloc (filelen + funclen + 3);
2842 adata (abfd).line_buf = buf;
2843 if (buf == NULL)
2844 return false;
2845 }
2846
2847 if (main_file_name != NULL)
2848 {
2849 if (main_file_name[0] == '/' || directory_name == NULL)
2849 if (IS_ABSOLUTE_PATH (main_file_name) || directory_name == NULL)
2850 *filename_ptr = main_file_name;
2851 else
2852 {
2853 sprintf (buf, "%s%s", directory_name, main_file_name);
2854 *filename_ptr = buf;
2855 buf += filelen + 1;
2856 }
2857 }

--- 2860 unchanged lines hidden ---
2850 *filename_ptr = main_file_name;
2851 else
2852 {
2853 sprintf (buf, "%s%s", directory_name, main_file_name);
2854 *filename_ptr = buf;
2855 buf += filelen + 1;
2856 }
2857 }

--- 2860 unchanged lines hidden ---