MCPcopy Create free account
hub / github.com/FirebirdSQL/firebird / write_section

Function write_section

extern/btyacc/output.c:1291–1315  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1289
1290
1291void write_section(char *section_name)
1292{
1293 char **section;
1294 FILE *fp;
1295 int i;
1296 struct section *sl;
1297
1298 for(sl=&section_list[0]; sl->name; sl++) {
1299 if(strcmp(sl->name,section_name)==0) {
1300 break;
1301 }
1302 }
1303 if(sl->name==0) {
1304 fprintf(stderr, "Cannot find section '%s' in your skeleton file\n", section_name);
1305 exit(1);
1306 }
1307
1308 section = sl->ptr;
1309 fp = code_file;
1310 for (i = lflag ? 1 : 0; section[i]; ++i)
1311 {
1312 ++outline;
1313 fprintf(fp, "%s\n", section[i]);
1314 }
1315}

Callers 2

readerFunction · 0.85
outputFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected