forked from enlightenment/efl
parent
b32105bea5
commit
86821f881e
|
@ -178,7 +178,7 @@ collections {
|
||||||
new buf[100];
|
new buf[100];
|
||||||
|
|
||||||
snprintf(buf, sizeof(buf), "MESSAGE STRING ID: %i", id);
|
snprintf(buf, sizeof(buf), "MESSAGE STRING ID: %i", id);
|
||||||
snprintf(str, sizeof(str), "%s", getarg (2));
|
getsarg(2, str, sizeof(str));
|
||||||
emit(buf, str);
|
emit(buf, str);
|
||||||
}
|
}
|
||||||
else if (type == MSG_INT_SET)
|
else if (type == MSG_INT_SET)
|
||||||
|
|
|
@ -25,11 +25,7 @@ collections {
|
||||||
new buf[100];
|
new buf[100];
|
||||||
|
|
||||||
snprintf(buf, sizeof(buf), "MESSAGE STRING ID: %i", id);
|
snprintf(buf, sizeof(buf), "MESSAGE STRING ID: %i", id);
|
||||||
for (new j = 0; j < (sizeof(str) - 1); j++)
|
getsarg(2, str, sizeof(str));
|
||||||
{
|
|
||||||
str[j] = getarg(2, j);
|
|
||||||
if (str[j] == 0) break;
|
|
||||||
}
|
|
||||||
emit(buf, str);
|
emit(buf, str);
|
||||||
send_message(type, id + 1000, "A Test Reply");
|
send_message(type, id + 1000, "A Test Reply");
|
||||||
}
|
}
|
||||||
|
@ -65,11 +61,7 @@ collections {
|
||||||
snprintf(buf, sizeof(buf), "MESSAGE STRING SET ID: %i", id);
|
snprintf(buf, sizeof(buf), "MESSAGE STRING SET ID: %i", id);
|
||||||
for (new i = 2; i < numargs(); i++)
|
for (new i = 2; i < numargs(); i++)
|
||||||
{
|
{
|
||||||
for (new j = 0; j < (sizeof(str) - 1); j++)
|
getsarg(i, str, sizeof(str));
|
||||||
{
|
|
||||||
str[j] = getarg(i, j);
|
|
||||||
if (str[j] == 0) break;
|
|
||||||
}
|
|
||||||
emit(buf, str);
|
emit(buf, str);
|
||||||
}
|
}
|
||||||
send_message(type, id + 1000, "Alpha", "Beta", "Gamma", "Delta");
|
send_message(type, id + 1000, "Alpha", "Beta", "Gamma", "Delta");
|
||||||
|
@ -113,11 +105,7 @@ collections {
|
||||||
new val;
|
new val;
|
||||||
|
|
||||||
snprintf(buf, sizeof(buf), "MESSAGE STRING INT ID: %i", id);
|
snprintf(buf, sizeof(buf), "MESSAGE STRING INT ID: %i", id);
|
||||||
for (new j = 0; j < (sizeof(str) - 1); j++)
|
getsarg(2, str, sizeof(str));
|
||||||
{
|
|
||||||
str[j] = getarg(2, j);
|
|
||||||
if (str[j] == 0) break;
|
|
||||||
}
|
|
||||||
emit(buf, str);
|
emit(buf, str);
|
||||||
val = getarg(3);
|
val = getarg(3);
|
||||||
snprintf(str, sizeof(str), "V = %i", val);
|
snprintf(str, sizeof(str), "V = %i", val);
|
||||||
|
@ -131,11 +119,7 @@ collections {
|
||||||
new Float:val;
|
new Float:val;
|
||||||
|
|
||||||
snprintf(buf, sizeof(buf), "MESSAGE STRING INT ID: %i", id);
|
snprintf(buf, sizeof(buf), "MESSAGE STRING INT ID: %i", id);
|
||||||
for (new j = 0; j < (sizeof(str) - 1); j++)
|
getsarg(2, str, sizeof(str));
|
||||||
{
|
|
||||||
str[j] = getarg(2, j);
|
|
||||||
if (str[j] == 0) break;
|
|
||||||
}
|
|
||||||
emit(buf, str);
|
emit(buf, str);
|
||||||
val = getfarg(3);
|
val = getfarg(3);
|
||||||
snprintf(str, sizeof(str), "V = %f", val);
|
snprintf(str, sizeof(str), "V = %f", val);
|
||||||
|
@ -149,11 +133,7 @@ collections {
|
||||||
new val;
|
new val;
|
||||||
|
|
||||||
snprintf(buf, sizeof(buf), "MESSAGE STRING INT SET ID: %i", id);
|
snprintf(buf, sizeof(buf), "MESSAGE STRING INT SET ID: %i", id);
|
||||||
for (new j = 0; j < (sizeof(str) - 1); j++)
|
getsarg(2, str, sizeof(str));
|
||||||
{
|
|
||||||
str[j] = getarg(2, j);
|
|
||||||
if (str[j] == 0) break;
|
|
||||||
}
|
|
||||||
emit(buf, str);
|
emit(buf, str);
|
||||||
for (new i = 3; i < numargs(); i++)
|
for (new i = 3; i < numargs(); i++)
|
||||||
{
|
{
|
||||||
|
@ -170,11 +150,7 @@ collections {
|
||||||
new Float:val;
|
new Float:val;
|
||||||
|
|
||||||
snprintf(buf, sizeof(buf), "MESSAGE STRING INT SET ID: %i", id);
|
snprintf(buf, sizeof(buf), "MESSAGE STRING INT SET ID: %i", id);
|
||||||
for (new j = 0; j < (sizeof(str) - 1); j++)
|
getsarg(2, str, sizeof(str));
|
||||||
{
|
|
||||||
str[j] = getarg(2, j);
|
|
||||||
if (str[j] == 0) break;
|
|
||||||
}
|
|
||||||
emit(buf, str);
|
emit(buf, str);
|
||||||
for (new i = 3; i < numargs(); i++)
|
for (new i = 3; i < numargs(); i++)
|
||||||
{
|
{
|
||||||
|
|
|
@ -80,7 +80,7 @@ collections
|
||||||
new buf[100];
|
new buf[100];
|
||||||
|
|
||||||
snprintf(buf, sizeof(buf), "MESSAGE STRING ID: %i", id);
|
snprintf(buf, sizeof(buf), "MESSAGE STRING ID: %i", id);
|
||||||
snprintf(str, 100, "%s", getarg(2));
|
getsarg(2, str, 100);
|
||||||
emit(buf, str);
|
emit(buf, str);
|
||||||
}
|
}
|
||||||
else if (type == MSG_INT_SET)
|
else if (type == MSG_INT_SET)
|
||||||
|
|
|
@ -131,11 +131,7 @@ vargs(a, b, ...)
|
||||||
printf(" GET ARG... %i\n", i);
|
printf(" GET ARG... %i\n", i);
|
||||||
if (i < 4)
|
if (i < 4)
|
||||||
{
|
{
|
||||||
for (new j = 0; j < (sizeof(str) - 1); j++)
|
getsarg(i, str, sizeof(str));
|
||||||
{
|
|
||||||
str[j] = getarg(i, j);
|
|
||||||
if (str[j] == 0) break;
|
|
||||||
}
|
|
||||||
printf(" ARG: %s [max %i]\n", str, sizeof(str));
|
printf(" ARG: %s [max %i]\n", str, sizeof(str));
|
||||||
}
|
}
|
||||||
else if (i < 6)
|
else if (i < 6)
|
||||||
|
|
Loading…
Reference in New Issue