Skip to content

Commit

Permalink
Fixed manual.
Browse files Browse the repository at this point in the history
  • Loading branch information
spotlessmind1975 committed Oct 11, 2023
1 parent 29929f3 commit 69d201c
Show file tree
Hide file tree
Showing 98 changed files with 22 additions and 586 deletions.
3 changes: 0 additions & 3 deletions ugbc/src/targets/atari/put_image.c
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,6 @@ extern char DATATYPE_AS_STRING[][16];
* @param _x Abscissa of the point to draw
* @param _y Ordinate of the point
*/
/* <usermanual>
@keyword PUT IMAGE
</usermanual> */
void put_image( Environment * _environment, char * _image, char * _x, char * _y, char * _frame, char * _sequence, int _flags ) {

Variable * image = variable_retrieve( _environment, _image );
Expand Down
4 changes: 0 additions & 4 deletions ugbc/src/targets/atari/randomize.c
Original file line number Diff line number Diff line change
Expand Up @@ -45,10 +45,6 @@
*
* @param _environment Current calling environment
*/
/* <usermanual>
@keyword RANDOMIZE
@target atari
</usermanual> */
void randomize( Environment * _environment, char * _ext_seed ) {

Variable * seed = variable_retrieve( _environment, "CPURANDOM_SEED" );
Expand Down
3 changes: 0 additions & 3 deletions ugbc/src/targets/c128/put_image.c
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,6 @@ extern char DATATYPE_AS_STRING[][16];
* @param _x Abscissa of the point to draw
* @param _y Ordinate of the point
*/
/* <usermanual>
@keyword PUT IMAGE
</usermanual> */
void put_image( Environment * _environment, char * _image, char * _x, char * _y, char * _frame, char * _sequence, int _flags ) {

MAKE_LABEL
Expand Down
31 changes: 2 additions & 29 deletions ugbc/src/targets/c128/random.c
Original file line number Diff line number Diff line change
Expand Up @@ -65,40 +65,13 @@ This function allows you to calculate a random number, in the range
that can be represented by the type of data indicated as a parameter,
or as data type conversion.
The supported data types are as follows:
^ DATA TYPE ^ MINIMUM ^ MAXIMUM ^
| ''BYTE'' | 0 | 255 |
| ''SIGNED BYTE'' | -127 | 127 |
| ''COLOR'' | 0 | ''COLOR COUNT'' |
| ''WORD'' | 0 | 65.535 |
| ''SIGNED WORD'' | -32.767 | 32.767 |
| ''ADDRESS'' | 0 | 65.535 |
| ''POSITION'' | 0 | 65.535 |
| ''DWORD'' | 0 | 4.294.967.295 |
| ''SIGNED DWORD''| -2.147.483.647 | 2.147.483.647 |
@italian
Questa funzione permette di calcolare un numero casuale, compreso tra 0 e
il massimo numero rappresentabile dal tipo di dato indicato come parametro,
or come conversione di tipo.
I tipi di dato supportati sono:
^ DATA TYPE ^ MINIMUM ^ MAXIMUM ^
| ''BYTE'' | 0 | 255 |
| ''SIGNED BYTE'' | -127 | 127 |
| ''COLOR'' | 0 | ''COLOR COUNT'' |
| ''WORD'' | 0 | 65.535 |
| ''SIGNED WORD'' | -32.767 | 32.767 |
| ''ADDRESS'' | 0 | 65.535 |
| ''POSITION'' | 0 | 65.535 |
| ''DWORD'' | 0 | 4.294.967.295 |
| ''SIGNED DWORD''| -2.147.483.647 | 2.147.483.647 |
@syntax = RANDOM [datatype]
@syntax = ([datatype]) RANDOM
@syntax = RANDOM type
@syntax = (type) RANDOM
@example randomScore = RANDOM BYTE
@example randomColor = (COLOR) RANDOM
Expand Down
2 changes: 1 addition & 1 deletion ugbc/src/targets/c128/random_heigth.c
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ Calcola un valore di altezza casuale.
@example POINT AT (RANDOM WIDTH, RANDOM HEIGHT)
@target c128
@target all
</usermanual> */
Variable * random_height( Environment * _environment ) {

Expand Down
2 changes: 1 addition & 1 deletion ugbc/src/targets/c128/random_width.c
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ Calcola un valore di larghezza casuale.
@example POINT AT (RANDOM WIDTH, RANDOM HEIGHT)
@target c128
@target all
</usermanual> */
Variable * random_width( Environment * _environment ) {

Expand Down
2 changes: 1 addition & 1 deletion ugbc/src/targets/c128/randomize.c
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ Initialize the random seed.
@italian
Inizializza il seme casuale.
@syntax RANDOMIZE {[seed]}
@syntax RANDOMIZE seed
@example RANDOMIZE
Expand Down
15 changes: 0 additions & 15 deletions ugbc/src/targets/c128z/get_image.c
Original file line number Diff line number Diff line change
Expand Up @@ -50,21 +50,6 @@ extern char DATATYPE_AS_STRING[][16];
* @param _x Abscissa of the point to draw
* @param _y Ordinate of the point
*/
/* <usermanual>
@keyword PUT IMAGE
@english
This function draws an image at a specific position on the screen.
@italian
Questa funzione disegna una immagine in una specifica posizione dello schermo.
@syntax PUT IMAGE [image] AT [x],[y]
@example PUT IMAGE airplane AT 10,10
@target all
</usermanual> */
void get_image( Environment * _environment, char * _image, char * _x, char * _y, int _palette ) {

Variable * image = variable_retrieve( _environment, _image );
Expand Down
3 changes: 0 additions & 3 deletions ugbc/src/targets/c128z/put_image.c
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,6 @@ extern char DATATYPE_AS_STRING[][16];
* @param _x Abscissa of the point to draw
* @param _y Ordinate of the point
*/
/* <usermanual>
@keyword PUT IMAGE
</usermanual> */
void put_image( Environment * _environment, char * _image, char * _x, char * _y, char * _frame, char * _sequence, int _flags ) {

Variable * image = variable_retrieve( _environment, _image );
Expand Down
5 changes: 0 additions & 5 deletions ugbc/src/targets/c128z/random.c
Original file line number Diff line number Diff line change
Expand Up @@ -57,11 +57,6 @@
* @param _type Type of random number to generate
* @return Variable* The random value calculated
*/
/* <usermanual>
@keyword RANDOM
@target c128z
</usermanual> */
Variable * random_value( Environment * _environment, VariableType _type ) {

Variable * seed = variable_retrieve( _environment, "CPURANDOM_SEED" );
Expand Down
5 changes: 0 additions & 5 deletions ugbc/src/targets/c128z/random_height.c
Original file line number Diff line number Diff line change
Expand Up @@ -46,11 +46,6 @@
* @param _environment Current calling environment
* @return Variable* The random value calculated
*/
/* <usermanual>
@keyword RANDOM HEIGHT
@target c128z
</usermanual> */
Variable * random_height( Environment * _environment ) {

Variable * result = random_value( _environment, VT_POSITION );
Expand Down
5 changes: 0 additions & 5 deletions ugbc/src/targets/c128z/random_width.c
Original file line number Diff line number Diff line change
Expand Up @@ -46,11 +46,6 @@
* @param _environment Current calling environment
* @return Variable* The random value calculated
*/
/* <usermanual>
@keyword RANDOM WIDTH
@target c128z
</usermanual> */
Variable * random_width( Environment * _environment ) {

Variable * result1 = random_value( _environment, VT_POSITION );
Expand Down
5 changes: 0 additions & 5 deletions ugbc/src/targets/c128z/randomize.c
Original file line number Diff line number Diff line change
Expand Up @@ -45,11 +45,6 @@
*
* @param _environment Current calling environment
*/
/* <usermanual>
@keyword RANDOMIZE
@target c128z
</usermanual> */
void randomize( Environment * _environment, char * _other_seed ) {

Variable * seed = variable_retrieve( _environment, "CPURANDOM_SEED" );
Expand Down
6 changes: 3 additions & 3 deletions ugbc/src/targets/c64/put_image.c
Original file line number Diff line number Diff line change
Expand Up @@ -67,9 +67,9 @@ Il programmatore può disegnare sullo schermo una singola immagine
un frame di una posa di una sequenza di immagini (''SEQUENCES'').
In tutti i casi la sintassi cambia leggermente.
@syntax PUT IMAGE [image] AT [x],[y]
@syntax PUT IMAGE [image] FRAME [frame] AT [x],[y]
@syntax PUT IMAGE [image] SEQUENCE [sequence] FRAME [frame] AT [x],[y]
@syntax PUT IMAGE resource AT [x],[y]
@syntax PUT IMAGE resource FRAME frame AT [x],[y]
@syntax PUT IMAGE resource SEQUENCE sequence FRAME frame AT [x],[y]
@example PUT IMAGE airplane AT 10,10
Expand Down
50 changes: 0 additions & 50 deletions ugbc/src/targets/c64/random.c
Original file line number Diff line number Diff line change
Expand Up @@ -57,56 +57,6 @@
* @param _type Type of random number to generate
* @return Variable* The random value calculated
*/
/* <usermanual>
@keyword RANDOM
@english
This function allows you to calculate a random number, in the range
that can be represented by the type of data indicated as a parameter,
or as data type conversion.
The supported data types are as follows:
^ DATA TYPE ^ MINIMUM ^ MAXIMUM ^
| ''BYTE'' | 0 | 255 |
| ''SIGNED BYTE'' | -127 | 127 |
| ''COLOR'' | 0 | ''COLOR COUNT'' |
| ''WORD'' | 0 | 65.535 |
| ''SIGNED WORD'' | -32.767 | 32.767 |
| ''ADDRESS'' | 0 | 65.535 |
| ''POSITION'' | 0 | 65.535 |
| ''DWORD'' | 0 | 4.294.967.295 |
| ''SIGNED DWORD''| -2.147.483.647 | 2.147.483.647 |
@italian
Questa funzione permette di calcolare un numero casuale, compreso tra 0 e
il massimo numero rappresentabile dal tipo di dato indicato come parametro,
or come conversione di tipo.
I tipi di dato supportati sono:
^ DATA TYPE ^ MINIMUM ^ MAXIMUM ^
| ''BYTE'' | 0 | 255 |
| ''SIGNED BYTE'' | -127 | 127 |
| ''COLOR'' | 0 | ''COLOR COUNT'' |
| ''WORD'' | 0 | 65.535 |
| ''SIGNED WORD'' | -32.767 | 32.767 |
| ''ADDRESS'' | 0 | 65.535 |
| ''POSITION'' | 0 | 65.535 |
| ''DWORD'' | 0 | 4.294.967.295 |
| ''SIGNED DWORD''| -2.147.483.647 | 2.147.483.647 |
@syntax = RANDOM [datatype]
@syntax = ([datatype]) RANDOM
@example randomScore = RANDOM BYTE
@example randomColor = (COLOR) RANDOM
@seeAlso RND
@target all
</usermanual> */
Variable * random_value( Environment * _environment, VariableType _type ) {

Variable * seed = variable_retrieve( _environment, "CPURANDOM_SEED" );
Expand Down
15 changes: 0 additions & 15 deletions ugbc/src/targets/c64/random_heigth.c
Original file line number Diff line number Diff line change
Expand Up @@ -42,21 +42,6 @@
* @param _environment Current calling environment
* @return Variable* The random value calculated
*/
/* <usermanual>
@keyword RANDOM HEIGHT
@english
Calculate a random height.
@italian
Calcola un valore di altezza casuale.
@syntax = RANDOM HEIGHT
@example POINT AT (RANDOM WIDTH, RANDOM HEIGHT)
@target c64
</usermanual> */
Variable * random_height( Environment * _environment ) {

Variable * result = random_value( _environment, VT_POSITION );
Expand Down
15 changes: 0 additions & 15 deletions ugbc/src/targets/c64/random_width.c
Original file line number Diff line number Diff line change
Expand Up @@ -46,21 +46,6 @@
* @param _environment Current calling environment
* @return Variable* The random value calculated
*/
/* <usermanual>
@keyword RANDOM WIDTH
@english
Calculate a random width.
@italian
Calcola un valore di larghezza casuale.
@syntax = RANDOM WIDTH
@example POINT AT (RANDOM WIDTH, RANDOM HEIGHT)
@target c64
</usermanual> */
Variable * random_width( Environment * _environment ) {

Variable * result1 = random_value( _environment, VT_POSITION );
Expand Down
15 changes: 0 additions & 15 deletions ugbc/src/targets/c64/randomize.c
Original file line number Diff line number Diff line change
Expand Up @@ -45,21 +45,6 @@
*
* @param _environment Current calling environment
*/
/* <usermanual>
@keyword RANDOMIZE
@english
Initialize the random seed.
@italian
Inizializza il seme casuale.
@syntax RANDOMIZE {[seed]}
@example RANDOMIZE
@target c64
</usermanual> */
void randomize( Environment * _environment, char * _ext_seed ) {

Variable * seed = variable_retrieve( _environment, "CPURANDOM_SEED" );
Expand Down
3 changes: 0 additions & 3 deletions ugbc/src/targets/coco/put_image.c
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,6 @@ extern char DATATYPE_AS_STRING[][16];
* @param _x Abscissa of the point to draw
* @param _y Ordinate of the point
*/
/* <usermanual>
@keyword PUT IMAGE
</usermanual> */
void put_image( Environment * _environment, char * _image, char * _x, char * _y, char * _frame, char * _sequence, int _flags ) {

MAKE_LABEL
Expand Down
5 changes: 0 additions & 5 deletions ugbc/src/targets/coco/random.c
Original file line number Diff line number Diff line change
Expand Up @@ -57,11 +57,6 @@
* @param _type Type of random number to generate
* @return Variable* The random value calculated
*/
/* <usermanual>
@keyword RANDOM
@target coco
</usermanual> */
Variable * random_value( Environment * _environment, VariableType _type ) {

Variable * result = variable_temporary( _environment, _type, "(random value)" );
Expand Down
5 changes: 0 additions & 5 deletions ugbc/src/targets/coco/random_heigth.c
Original file line number Diff line number Diff line change
Expand Up @@ -42,11 +42,6 @@
* @param _environment Current calling environment
* @return Variable* The random value calculated
*/
/* <usermanual>
@keyword RANDOM HEIGHT
@target coco
</usermanual> */
Variable * random_height( Environment * _environment ) {

Variable * result = random_value( _environment, VT_POSITION );
Expand Down
5 changes: 0 additions & 5 deletions ugbc/src/targets/coco/random_width.c
Original file line number Diff line number Diff line change
Expand Up @@ -46,11 +46,6 @@
* @param _environment Current calling environment
* @return Variable* The random value calculated
*/
/* <usermanual>
@keyword RANDOM WIDTH
@target coco
</usermanual> */
Variable * random_width( Environment * _environment ) {

Variable * result = random_value( _environment, VT_POSITION );
Expand Down
5 changes: 0 additions & 5 deletions ugbc/src/targets/coco/randomize.c
Original file line number Diff line number Diff line change
Expand Up @@ -45,11 +45,6 @@
*
* @param _environment Current calling environment
*/
/* <usermanual>
@keyword RANDOMIZE
@target coco
</usermanual> */
void randomize( Environment * _environment, char * _ext_seed ) {

Variable * seed = variable_retrieve( _environment, "CPURANDOM_SEED" );
Expand Down
3 changes: 0 additions & 3 deletions ugbc/src/targets/coco3/put_image.c
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,6 @@ extern char DATATYPE_AS_STRING[][16];
* @param _x Abscissa of the point to draw
* @param _y Ordinate of the point
*/
/* <usermanual>
@keyword PUT IMAGE
</usermanual> */
void put_image( Environment * _environment, char * _image, char * _x, char * _y, char * _frame, char * _sequence, int _flags ) {

MAKE_LABEL
Expand Down
5 changes: 0 additions & 5 deletions ugbc/src/targets/coco3/random.c
Original file line number Diff line number Diff line change
Expand Up @@ -57,11 +57,6 @@
* @param _type Type of random number to generate
* @return Variable* The random value calculated
*/
/* <usermanual>
@keyword RANDOM
@target coco3
</usermanual> */
Variable * random_value( Environment * _environment, VariableType _type ) {

Variable * result = variable_temporary( _environment, _type, "(random value)" );
Expand Down
Loading

0 comments on commit 69d201c

Please sign in to comment.