Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,14 +43,14 @@ jobs:
exit 1;
fi
${GITHUB_WORKSPACE}/ci/fail-on-warning.sh build.log
- name: Test
- name: Run integration tests
shell: bash
working-directory: ${{runner.workspace}}/build
run: |
git clone --single-branch https://github.com/SacBase/sac-examples.git
cd sac-examples
make all
./test.sh
MT=4 ./test.sh

build-macos-x86:
runs-on: macos-13
Expand Down Expand Up @@ -92,14 +92,14 @@ jobs:
exit 1;
fi
${GITHUB_WORKSPACE}/ci/fail-on-warning.sh build.log
- name: Test
- name: Run integration tests
shell: bash
working-directory: ${{runner.workspace}}/build
run: |
git clone --single-branch https://github.com/SacBase/sac-examples.git
cd sac-examples
make all
./test.sh
MT=3 ./test.sh

build-macos-arm:
runs-on: macos-15
Expand Down Expand Up @@ -141,11 +141,11 @@ jobs:
exit 1;
fi
${GITHUB_WORKSPACE}/ci/fail-on-warning.sh build.log
- name: Test
- name: Run integration tests
shell: bash
working-directory: ${{runner.workspace}}/build
run: |
git clone --single-branch https://github.com/SacBase/sac-examples.git
cd sac-examples
make all
./test.sh
MT=3 ./test.sh
14 changes: 7 additions & 7 deletions src/stdio/ArrayIO.xsac
Original file line number Diff line number Diff line change
Expand Up @@ -64,32 +64,32 @@ external void showarray(TermFile &stream, int d, int[.] s, char[*] a);
/******************************************************************************/

#define PRINT(typ, _postfix, _fmt, _zero, _one) \
inline void fprint(TermFile &stream, string fmt, typ[d:shp] arr) \
void fprint(TermFile &stream, string fmt, typ[d:shp] arr) \
{ \
printarray(stream, fmt, d, shp, arr); \
} \
\
inline void fprint(TermFile &stream, typ[d:shp] arr) \
void fprint(TermFile &stream, typ[d:shp] arr) \
{ \
printarray(stream, d, shp, arr); \
} \
\
inline void fprint(File &stream, string fmt, typ[d:shp] arr) \
void fprint(File &stream, string fmt, typ[d:shp] arr) \
{ \
printarray(stream, fmt, d, shp, arr); \
} \
\
inline void fprint(File &stream, typ[d:shp] arr) \
void fprint(File &stream, typ[d:shp] arr) \
{ \
printarray(stream, d, shp, arr); \
} \
\
inline void print(string fmt, typ[d:shp] arr) \
void print(string fmt, typ[d:shp] arr) \
{ \
printarray(stdout, fmt, d, shp, arr); \
} \
\
inline void print(typ[d:shp] arr) \
void print(typ[d:shp] arr) \
{ \
printarray(stdout, d, shp, arr); \
}
Expand All @@ -99,7 +99,7 @@ BUILT_IN(PRINT)
/******************************************************************************/

#define SHOW(typ) \
inline void show(typ[+] arr) \
void show(typ[+] arr) \
{ \
carr = format(arr); \
showarray(stdout, dim(carr), shape(carr), carr); \
Expand Down
36 changes: 18 additions & 18 deletions src/stdio/ComplexIO.sac
Original file line number Diff line number Diff line change
Expand Up @@ -44,15 +44,15 @@ external void printarray( TermFile &stream, string format, int d, int[.] s, com

/*****************************************************************/

inline void fprint(File &stream, complex c)
void fprint(File &stream, complex c)
{
File::fprintf(stream, "(%g,%g)", real(c), imag(c));
}


/*****************************************************************/

inline void fprint(File &stream, complex c, int mode)
void fprint(File &stream, complex c, int mode)
{
if (mode==2)
{
Expand All @@ -74,7 +74,7 @@ inline void fprint(File &stream, complex c, int mode)

/*****************************************************************/

inline void fprint(File &stream, complex c, int mode, int prec)
void fprint(File &stream, complex c, int mode, int prec)
{
if (mode==2)
{
Expand All @@ -98,15 +98,15 @@ inline void fprint(File &stream, complex c, int mode, int prec)
/*****************************************************************/


inline void fprint(TermFile &stream, complex c)
void fprint(TermFile &stream, complex c)
{
TermFile::fprintf(stream, "(%g,%g)", real(c), imag(c));
}


/*****************************************************************/

inline void fprint(TermFile &stream, complex c, int mode)
void fprint(TermFile &stream, complex c, int mode)
{
if (mode==2)
{
Expand All @@ -128,7 +128,7 @@ inline void fprint(TermFile &stream, complex c, int mode)

/*****************************************************************/

inline void fprint(TermFile &stream, complex c, int mode, int prec)
void fprint(TermFile &stream, complex c, int mode, int prec)
{
if (mode==2)
{
Expand All @@ -151,37 +151,37 @@ inline void fprint(TermFile &stream, complex c, int mode, int prec)
/*****************************************************************/
/*****************************************************************/

inline void print(complex c)
void print(complex c)
{
fprint(TermFile::stdout, c);
}


/*****************************************************************/

inline void print(complex c, int mode)
void print(complex c, int mode)
{
fprint(TermFile::stdout, c, mode);
}


/*****************************************************************/

inline void print(complex c, int mode, int prec)
void print(complex c, int mode, int prec)
{
fprint(TermFile::stdout, c, mode, prec);
}

/*****************************************************************/

inline void print(complex[+] arr)
void print(complex[+] arr)
{
printarray(TermFile::stdout, dim( arr), shape( arr), arr);
}

/*****************************************************************/

inline void print(complex[+] arr, int mode)
void print(complex[+] arr, int mode)
{
string format;
if (mode==2)
Expand All @@ -204,7 +204,7 @@ inline void print(complex[+] arr, int mode)

/*****************************************************************/

inline void print(complex[+] arr, int mode, int prec)
void print(complex[+] arr, int mode, int prec)
{
string format;
if (mode==2)
Expand All @@ -228,7 +228,7 @@ inline void print(complex[+] arr, int mode, int prec)
/*****************************************************************/
/*****************************************************************/

inline bool, complex fscancomplex(File &stream)
bool, complex fscancomplex(File &stream)
{
double re;
double im;
Expand All @@ -245,7 +245,7 @@ inline bool, complex fscancomplex(File &stream)
/*****************************************************************/


inline bool, complex fscancomplex(File &stream, int mode)
bool, complex fscancomplex(File &stream, int mode)
{
double re;
double im;
Expand Down Expand Up @@ -278,7 +278,7 @@ inline bool, complex fscancomplex(File &stream, int mode)
/*****************************************************************/


inline bool, complex fscancomplex(TermFile &stream)
bool, complex fscancomplex(TermFile &stream)
{
double re;
double im;
Expand All @@ -295,7 +295,7 @@ inline bool, complex fscancomplex(TermFile &stream)
/*****************************************************************/


inline bool, complex fscancomplex(TermFile &stream, int mode)
bool, complex fscancomplex(TermFile &stream, int mode)
{
double re;
double im;
Expand Down Expand Up @@ -328,7 +328,7 @@ inline bool, complex fscancomplex(TermFile &stream, int mode)
/*****************************************************************/


inline bool, complex scancomplex()
bool, complex scancomplex()
{
double re;
double im;
Expand All @@ -345,7 +345,7 @@ inline bool, complex scancomplex()
/*****************************************************************/


inline bool, complex scancomplex(int mode)
bool, complex scancomplex(int mode)
{
double re;
double im;
Expand Down
Loading
Loading