]> git.sur5r.net Git - cc65/blobdiff - src/ld65/library.h
Merge remote-tracking branch 'upstream/master' into pcenginetarget
[cc65] / src / ld65 / library.h
index 6360106c9f8a274cc8b23a6e06d497e37f57215c..abf75675aa66932dc70b244751c54632f870817a 100644 (file)
@@ -1,15 +1,15 @@
 /*****************************************************************************/
 /*                                                                           */
-/*                                library.h                                 */
+/*                                 library.h                                 */
 /*                                                                           */
-/*         Library data structures and helpers for the ld65 linker          */
+/*          Library data structures and helpers for the ld65 linker          */
 /*                                                                           */
 /*                                                                           */
 /*                                                                           */
-/* (C) 1998-2005 Ullrich von Bassewitz                                       */
-/*               Römerstraße 52                                              */
-/*               D-70794 Filderstadt                                         */
-/* EMail:        uz@cc65.org                                                 */
+/* (C) 1998-2011, Ullrich von Bassewitz                                      */
+/*                Roemerstrasse 52                                           */
+/*                D-70794 Filderstadt                                        */
+/* EMail:         uz@cc65.org                                                */
 /*                                                                           */
 /*                                                                           */
 /* This software is provided 'as-is', without any expressed or implied       */
 
 
 /*****************************************************************************/
-/*                                  Code                                    */
+/*                                   Data                                    */
+/*****************************************************************************/
+
+
+
+/* Opaque structure */
+struct Library;
+
+
+
+/*****************************************************************************/
+/*                                   Code                                    */
 /*****************************************************************************/
 
 
 
 void LibAdd (FILE* F, const char* Name);
 /* Add files from the library to the list if there are references that could
- * be satisfied.
- */
+** be satisfied.
+*/
 
 void LibStartGroup (void);
 /* Start a library group. Objects within a library group may reference each
- * other, and libraries are searched repeatedly until all references are
- * satisfied.
- */
+** other, and libraries are searched repeatedly until all references are
+** satisfied.
+*/
 
 void LibEndGroup (void);
 /* End a library group and resolve all open references. Objects within a
- * library group may reference each other, and libraries are searched
- * repeatedly until all references are satisfied.
- */
+** library group may reference each other, and libraries are searched
+** repeatedly until all references are satisfied.
+*/
 
 void LibCheckGroup (void);
 /* Check if there are open library groups */
 
+const char* GetLibFileName (const struct Library* L);
+/* Get the name of a library */
 
+unsigned GetLibId (const struct Library* L);
+/* Get the id of a library file. */
 
-/* End of library.h */
+unsigned LibraryCount (void);
+/* Return the total number of libraries */
 
-#endif
+void PrintDbgLibraries (FILE* F);
+/* Output the libraries to a debug info file */
 
 
 
+/* End of library.h */
+
+#endif