Commit 212455a1 authored by Michael Beck's avatar Michael Beck
Browse files

- more -f combo tests

[r21058]
parent 0baec171
/*$ -f combo $*/
#include <stdlib.h>
char *test(char *name) {
......@@ -5,13 +6,11 @@ char *test(char *name) {
int plen;
int min_part = 3;
do {
p = strrchr(name, '.');
p = p ? p+1 : name;
p = name;
while (*p) {
plen = strcspn(p, '.');
plen = 3;
p += plen;
if (plen > min_part) trunc = p-1;
if (*p) p++;
}
} while (trunc == NULL && --min_part != 0);
return p;
......
/*$ -f combo $*/
int *zptr;
#define swap(lv1, lv2) \
......
/*$ -f combo $*/
static int bi_valid;
static int bi_buf = 0;
int outbuf;
#define Buf_size (8 * 2*sizeof(char))
#define put_byte(c) {outbuf=(unsigned char)(c); }
#define put_short(w) \
{ if (outcnt > 0) { \
outbuf = (unsigned char) (w); \
}\
}
void send_bits(int value) {
if (bi_valid > 0) {
bi_buf |= bi_valid;
if (outbuf > 0) {
outbuf = bi_buf;
}
bi_buf = value;
}
}
int main() {
return 0;
}
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment