add: documented pasm_run_script function
This commit is contained in:
@@ -2,4 +2,9 @@
|
|||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
|
||||||
|
/* filename: path of the pasm script, will use file argument if NULL */
|
||||||
|
/* file: char** containing the lines of a pasm script, will be used if filename is NULL */
|
||||||
|
/* lines: number of lines in the file argument, will be used if filename is NULL */
|
||||||
|
/* _fstream: file descriptor for the output (can be a socket), default: stderr */
|
||||||
|
/* return value: nonzero if an error occurred */
|
||||||
int pasm_run_script(const char *filename, char **file, size_t lines, int _fstream);
|
int pasm_run_script(const char *filename, char **file, size_t lines, int _fstream);
|
||||||
|
|||||||
@@ -66,6 +66,11 @@ int check_errors(char *line) {
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* filename: path of the pasm script, will use file argument if NULL */
|
||||||
|
/* file: char** containing the lines of a pasm script, will be used if filename is NULL */
|
||||||
|
/* lines: number of lines in the file argument, will be used if filename is NULL */
|
||||||
|
/* _fstream: file descriptor for the output (can be a socket), default: stderr */
|
||||||
|
/* return value: nonzero if an error occurred */
|
||||||
int pasm_run_script(const char *filename, char **file, size_t lines, int _fstream) {
|
int pasm_run_script(const char *filename, char **file, size_t lines, int _fstream) {
|
||||||
fstream = _fstream;
|
fstream = _fstream;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user