1
0
mirror of https://github.com/cc65/cc65.git synced 2025-02-07 20:30:49 +00:00

Refer to recently static drivers recently added to the C library and harmonized typing of static driver addresses with recent additions of static standard drivers to header files.

git-svn-id: svn://svn.cc65.org/cc65/trunk@5893 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
ol.sc 2012-11-01 20:25:23 +00:00
parent 4983688bd5
commit 1317caa08e

View File

@ -5113,7 +5113,7 @@ be used in presence of a prototype.
<verb> <verb>
#include <serial.h> #include <serial.h>
extern char comlynx[]; extern void lynx_comlynx[];
static void initialize(){ static void initialize(){
struct ser_params params = { struct ser_params params = {
@ -5123,7 +5123,7 @@ static void initialize(){
SER_PAR_MARK, SER_PAR_MARK,
SER_HS_NONE SER_HS_NONE
}; };
ser_install(&amp;comlynx); // This will activate the ComLynx ser_install(lynx_comlynx); // This will activate the ComLynx
CLI(); CLI();
ser_open(&amp;params); ser_open(&amp;params);
} }
@ -5179,9 +5179,9 @@ used in presence of a prototype.
<ref id="ser_uninstall" name="ser_uninstall">, <ref id="ser_uninstall" name="ser_uninstall">,
<ref id="ser_unload" name="ser_unload"> <ref id="ser_unload" name="ser_unload">
<tag/Example/<verb> <tag/Example/<verb>
extern char lynxser[]; //Include the driver statically instead of loading it. extern void lynx_comlynx[]; //Include the driver statically instead of loading it.
ser_install(&amp;lynxser); ser_install(lynx_comlynx);
</verb> </verb>
</descrip> </descrip>
</quote> </quote>
@ -5246,7 +5246,7 @@ be used in presence of a prototype.
<verb> <verb>
#include <serial.h> #include <serial.h>
extern char comlynx[]; extern void lynx_comlynx[];
static void initialize(){ static void initialize(){
struct ser_params params = { struct ser_params params = {
@ -5256,7 +5256,7 @@ static void initialize(){
SER_PAR_MARK, SER_PAR_MARK,
SER_HS_NONE SER_HS_NONE
}; };
ser_install(&amp;comlynx); // This will activate the ComLynx ser_install(lynx_comlynx); // This will activate the ComLynx
CLI(); CLI();
ser_open(&amp;params); ser_open(&amp;params);
} }
@ -6611,8 +6611,7 @@ name="tgi_clear">/ after <tt/tgi_init/.
<tag/Availability/cc65 <tag/Availability/cc65
<tag/See also/Other tgi functions. <tag/See also/Other tgi functions.
<tag/Example/<verb> <tag/Example/<verb>
extern char lynxtgi[]; //Include the driver statically instead of loading it. tgi_install(tgi_static_stddrv); //Include the driver statically instead of loading it.
tgi_install(&amp;lynxtgi);
tgi_init(); //Set up the default palette and clear the screen. tgi_init(); //Set up the default palette and clear the screen.
</verb> </verb>
</descrip> </descrip>
@ -6639,9 +6638,7 @@ used in presence of a prototype.
<ref id="tgi_uninstall" name="tgi_uninstall">, <ref id="tgi_uninstall" name="tgi_uninstall">,
<ref id="tgi_unload" name="tgi_unload"> <ref id="tgi_unload" name="tgi_unload">
<tag/Example/<verb> <tag/Example/<verb>
extern char lynxtgi[]; //Include the driver statically instead of loading it. tgi_install(tgi_static_stddrv); //Include the driver statically instead of loading it.
tgi_install(&amp;lynxtgi);
tgi_init(); //Set up the default palette and clear the screen. tgi_init(); //Set up the default palette and clear the screen.
</verb> </verb>
</descrip> </descrip>