Annotation of 43BSDReno/contrib/emacs-18.55/gdb/initialize.h, revision 1.1.1.1

1.1       root        1: /* Macros to enable automatic execution of an initialization function
                      2:    in each object file without having to include a list of all object files
                      3:    anywhere in the source code.  This goes with firstfile.c and lastfile.c.
                      4: 
                      5:    Copyright (C) 1986 Free Software Foundation, Inc.
                      6: 
                      7:                       NO WARRANTY
                      8: 
                      9:   BECAUSE THIS PROGRAM IS LICENSED FREE OF CHARGE, WE PROVIDE ABSOLUTELY
                     10: NO WARRANTY, TO THE EXTENT PERMITTED BY APPLICABLE STATE LAW.  EXCEPT
                     11: WHEN OTHERWISE STATED IN WRITING, FREE SOFTWARE FOUNDATION, INC,
                     12: RICHARD M. STALLMAN AND/OR OTHER PARTIES PROVIDE THIS PROGRAM "AS IS"
                     13: WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
                     14: BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
                     15: FITNESS FOR A PARTICULAR PURPOSE.  THE ENTIRE RISK AS TO THE QUALITY
                     16: AND PERFORMANCE OF THE PROGRAM IS WITH YOU.  SHOULD THE PROGRAM PROVE
                     17: DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR OR
                     18: CORRECTION.
                     19: 
                     20:  IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW WILL RICHARD M.
                     21: STALLMAN, THE FREE SOFTWARE FOUNDATION, INC., AND/OR ANY OTHER PARTY
                     22: WHO MAY MODIFY AND REDISTRIBUTE THIS PROGRAM AS PERMITTED BELOW, BE
                     23: LIABLE TO YOU FOR DAMAGES, INCLUDING ANY LOST PROFITS, LOST MONIES, OR
                     24: OTHER SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE
                     25: USE OR INABILITY TO USE (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR
                     26: DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY THIRD PARTIES OR
                     27: A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS) THIS
                     28: PROGRAM, EVEN IF YOU HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH
                     29: DAMAGES, OR FOR ANY CLAIM BY ANY OTHER PARTY.
                     30: 
                     31:                GENERAL PUBLIC LICENSE TO COPY
                     32: 
                     33:   1. You may copy and distribute verbatim copies of this source file
                     34: as you receive it, in any medium, provided that you conspicuously and
                     35: appropriately publish on each copy a valid copyright notice "Copyright
                     36: (C) 1986 Free Software Foundation, Inc."; and include following the
                     37: copyright notice a verbatim copy of the above disclaimer of warranty
                     38: and of this License.  You may charge a distribution fee for the
                     39: physical act of transferring a copy.
                     40: 
                     41:   2. You may modify your copy or copies of this source file or
                     42: any portion of it, and copy and distribute such modifications under
                     43: the terms of Paragraph 1 above, provided that you also do the following:
                     44: 
                     45:     a) cause the modified files to carry prominent notices stating
                     46:     that you changed the files and the date of any change; and
                     47: 
                     48:     b) cause the whole of any work that you distribute or publish,
                     49:     that in whole or in part contains or is a derivative of this
                     50:     program or any part thereof, to be licensed at no charge to all
                     51:     third parties on terms identical to those contained in this
                     52:     License Agreement (except that you may choose to grant more extensive
                     53:     warranty protection to some or all third parties, at your option).
                     54: 
                     55:     c) You may charge a distribution fee for the physical act of
                     56:     transferring a copy, and you may at your option offer warranty
                     57:     protection in exchange for a fee.
                     58: 
                     59: Mere aggregation of another unrelated program with this program (or its
                     60: derivative) on a volume of a storage or distribution medium does not bring
                     61: the other program under the scope of these terms.
                     62: 
                     63:   3. You may copy and distribute this program (or a portion or derivative
                     64: of it, under Paragraph 2) in object code or executable form under the terms
                     65: of Paragraphs 1 and 2 above provided that you also do one of the following:
                     66: 
                     67:     a) accompany it with the complete corresponding machine-readable
                     68:     source code, which must be distributed under the terms of
                     69:     Paragraphs 1 and 2 above; or,
                     70: 
                     71:     b) accompany it with a written offer, valid for at least three
                     72:     years, to give any third party free (except for a nominal
                     73:     shipping charge) a complete machine-readable copy of the
                     74:     corresponding source code, to be distributed under the terms of
                     75:     Paragraphs 1 and 2 above; or,
                     76: 
                     77:     c) accompany it with the information you received as to where the
                     78:     corresponding source code may be obtained.  (This alternative is
                     79:     allowed only for noncommercial distribution and only if you
                     80:     received the program in object code or executable form alone.)
                     81: 
                     82: For an executable file, complete source code means all the source code for
                     83: all modules it contains; but, as a special exception, it need not include
                     84: source code for modules which are standard libraries that accompany the
                     85: operating system on which the executable file runs.
                     86: 
                     87:   4. You may not copy, sublicense, distribute or transfer this program
                     88: except as expressly provided under this License Agreement.  Any attempt
                     89: otherwise to copy, sublicense, distribute or transfer this program is void and
                     90: your rights to use the program under this License agreement shall be
                     91: automatically terminated.  However, parties who have received computer
                     92: software programs from you with this License Agreement will not have
                     93: their licenses terminated so long as such parties remain in full compliance.
                     94: 
                     95:   5. If you wish to incorporate parts of this program into other free
                     96: programs whose distribution conditions are different, write to the Free
                     97: Software Foundation at 675 Mass Ave, Cambridge, MA 02139.  We have not yet
                     98: worked out a simple rule that can be stated here, but we will often permit
                     99: this.  We will be guided by the two goals of preserving the free status of
                    100: all derivatives of our free software and of promoting the sharing and reuse of
                    101: software.
                    102: 
                    103: 
                    104: In other words, you are welcome to use, share and improve this program.
                    105: You are forbidden to forbid anyone else to use, share and improve
                    106: what you give them.   Help stamp out software-hoarding!  */
                    107: 
                    108: 
                    109: /* Here a machine-specific header file must be included to define
                    110:    the macro FILEADDR_ROUND which we use to round up from the address
                    111:    of the end of one object file's text to the start of the next
                    112:    object file's text.  */
                    113: 
                    114: #include "m-init.h"
                    115: 
                    116: /* This is used to make a file's initialization function.
                    117:    It calls another function named `initialize', which must
                    118:    appear later in the file.  */
                    119: 
                    120: #define START_FILE   \
                    121:   static initialize (), initialize_next_file ();   \
                    122:   static initialize_1 (offset)  \
                    123:   { initialize (); initialize_next_file (offset); }
                    124: 
                    125: /* The argument OFFSET is the size of this function.
                    126:    By adding it to the address of this function,
                    127:    we find the next function, which is the next file's
                    128:    initialization function.  */
                    129: 
                    130: #define END_FILE    \
                    131:   static initialize_next_file (offset)   \
                    132:      int offset;   \
                    133:   { long addr = FILEADDR_ROUND ((int) initialize_next_file + offset);   \
                    134:     (*(void (*) ()) addr) (offset);  }

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.