28 #define PATCH_CHAR '_' 37 for(
int i = pos; i < 80; i++)
46 while((beg <= end) && (buf[end] ==
BLANK))
49 while((beg <= end) && (buf[beg] ==
BLANK))
52 for(
int i = beg; i <= end; i++)
80 <<
" " <<
m_buf << std::endl;)
89 len = int(strlen(
m_buf));
91 for(
int i = 0; i < len; i++)
101 len = int(strlen(
m_buf));
106 assert(strlen(
m_buf) >= 80);
116 m_f1 = strtok(0,
" ");
127 else if((
m_buf[39] ==
'$') && (
m_buf[38] ==
' '))
138 if(space ==
BLANK || len < 13)
144 bool number = isdigit(
m_buf[24]) || isdigit(
m_buf[25])
154 if(number || len < 13)
188 if(0 == (
m_f1 = strtok(s,
" ")))
191 if((0 == (
m_f2 = strtok(0,
" "))) || (*
m_f2 ==
'$'))
197 if(!strcmp(
m_f2,
"'MARKER'"))
200 if((0 == (
m_f3 = strtok(0,
" "))) || (*
m_f3 ==
'$'))
208 if(!strcmp(
m_f3,
"'INTORG'"))
210 else if(!strcmp(
m_f3,
"'INTEND'"))
216 if(!strcmp(
m_f3,
"'MARKER'"))
219 if((0 == (
m_f4 = strtok(0,
" "))) || (*
m_f4 ==
'$'))
227 if(!strcmp(
m_f4,
"'INTORG'"))
229 else if(!strcmp(
m_f4,
"'INTEND'"))
235 if((0 == (
m_f5 = strtok(0,
" "))) || (*
m_f5 ==
'$'))
243 <<
"DMPSIN02 -----------------------------------------------" 245 <<
"DMPSIN03 f0=" << ((
m_f0 == 0) ?
"nil" :
m_f0) << std::endl
246 <<
"DMPSIN04 f1=" << ((
m_f1 == 0) ?
"nil" :
m_f1) << std::endl
247 <<
"DMPSIN05 f2=" << ((
m_f2 == 0) ?
"nil" :
m_f2) << std::endl
248 <<
"DMPSIN06 f3=" << ((
m_f3 == 0) ?
"nil" :
m_f3) << std::endl
249 <<
"DMPSIN07 f4=" << ((
m_f4 == 0) ?
"nil" :
m_f4) << std::endl
250 <<
"DMPSIN08 f5=" << ((
m_f5 == 0) ?
"nil" :
m_f5) << std::endl
251 <<
"DMPSIN09 -----------------------------------------------"
Wrapper for different output streams and verbosity levels.
Debugging, floating point type and parameter definitions.
Everything should be within this namespace.
static void patch_field(char *buf, int beg, int end)
change all blanks inside a field to PATCH_CHAR.
static void clear_from(char *buf, int pos)
fill the line from pos up to column 80 with blanks.