ack/util/ceg/defaults/pseudo/C_insertpart.c

54 lines
543 B
C
Raw Permalink Normal View History

1988-09-12 13:59:43 +00:00
#define CODE_EXPANDER
#include <em.h>
#include "back.h"
1993-11-10 15:07:12 +00:00
void
1988-09-12 13:59:43 +00:00
C_insertpart( d)
int d;
{
1988-10-31 16:03:44 +00:00
char *s;
1988-09-12 13:59:43 +00:00
swtxt();
C_jump(extnd_part( d));
1988-10-31 16:03:44 +00:00
symbol_definition( s = extnd_cont( d));
set_local_visible( s);
1988-09-12 13:59:43 +00:00
}
1993-11-10 15:07:12 +00:00
void
1988-09-12 13:59:43 +00:00
C_beginpart( d)
int d;
{
1988-10-31 16:03:44 +00:00
char *s;
1988-09-12 13:59:43 +00:00
swtxt();
C_jump(extnd_main( d));
1988-10-31 16:03:44 +00:00
symbol_definition(s = extnd_part( d));
1988-11-02 16:33:56 +00:00
set_local_visible(s);
1988-09-12 13:59:43 +00:00
}
1993-11-10 15:07:12 +00:00
void
1988-09-12 13:59:43 +00:00
C_endpart( d)
int d;
{
char *s;
1988-09-12 13:59:43 +00:00
swtxt();
C_jump(extnd_cont( d));
symbol_definition(s = extnd_main( d));
set_local_visible(s);
1988-09-12 13:59:43 +00:00
}
1993-11-10 15:07:12 +00:00
int
1988-09-12 13:59:43 +00:00
C_getid()
{
static int id = 0;
return ++id;
}