Skip to content

Commit

Permalink
test clarification
Browse files Browse the repository at this point in the history
  • Loading branch information
DavidMorano committed Jun 19, 2024
1 parent 97ccdf7 commit 7cb6f0b
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 35 deletions.
33 changes: 0 additions & 33 deletions src/testmisc/TGCmake

This file was deleted.

16 changes: 14 additions & 2 deletions src/testmisc/testinit.cc
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,12 @@
#include <clanguage.h>


using std::cout ;
#ifndef eol
#define eol '\n'
#endif

using std::cout ; /* variable */
using std::cerr ; /* variable */

typedef const char *const *mainv ;

Expand All @@ -44,10 +49,17 @@ int main(int argc,const char **argv,const char **envv) {
int rs ;
int ex = 0 ;
if ((rs = srs) >= 0) {
if ((argc > 0) && argv[0]) {
cout << "argz=" << argv[0] << eol ;
}
printf("aa.a=%08x aa.b=%08x\n",aa.a,aa.b) ;
{
cchar *pn = getprogname() ;
cout << "pn=" << pn << '\n' ;
if (pn) {
cout << "pn=" << pn << eol ;
} else {
cerr << "pn=NULL" << eol ;
}
} /* end block */
} /* end if */
if (rs < 0) ex = 1 ;
Expand Down

0 comments on commit 7cb6f0b

Please sign in to comment.