version 1.3, 2017/07/12 15:42:23
|
version 1.6, 2017/07/30 21:59:41
|
Line 8 declareTypeExtension(dup)
|
Line 8 declareTypeExtension(dup)
|
|
|
oObject = (*((structObject **) arg)); |
oObject = (*((structObject **) arg)); |
|
|
if (nullified(nObject = allocation(s_etat_processus, EXT))) |
if (subType(oObject) == APPCONTEXT) |
{ |
{ |
typeSystemError; |
if (nullified(nObject = allocation(s_etat_processus, EXT))) |
} |
{ |
|
typeSystemError; |
|
} |
|
|
initializeObject(nObject, oObject); |
initializeObject(nObject, oObject); |
|
|
if (subType(oObject) == APPCONTEXT) |
if (nullified(objectOf(nObject) = |
{ |
|
if (nullified(objectContainer(nObject) = |
|
malloc(sizeof(XtAppContext)))) |
malloc(sizeof(XtAppContext)))) |
{ |
{ |
typeSystemError; |
typeSystemError; |
} |
} |
|
|
target((sXtAppContext *) objectContainer(nObject)).widget = |
target(objectContainer(sXtAppContext, nObject)).widget = |
target((sXtAppContext *) objectContainer(oObject)).widget; |
target(objectContainer(sXtAppContext, oObject)).widget; |
target((sXtAppContext *) objectContainer(nObject)).context = |
target(objectContainer(sXtAppContext, nObject)).context = |
target((sXtAppContext *) objectContainer(oObject)).context; |
target(objectContainer(sXtAppContext, oObject)).context; |
|
} |
|
else if (subType(oObject) == CALLBACK) |
|
{ |
|
typeError; |
} |
} |
else if (subType(oObject) == WIDGET) |
else if (subType(oObject) == WIDGET) |
{ |
{ |
if (nullified(objectContainer(nObject) = |
if (nullified(nObject = allocation(s_etat_processus, EXT))) |
|
{ |
|
typeSystemError; |
|
} |
|
|
|
initializeObject(nObject, oObject); |
|
|
|
if (nullified(objectOf(nObject) = |
malloc(sizeof(sXtAppContext)))) |
malloc(sizeof(sXtAppContext)))) |
{ |
{ |
typeSystemError; |
typeSystemError; |
} |
} |
|
|
target((Widget *) objectContainer(nObject)) = |
target(objectContainer(Widget, nObject)) = |
target((Widget *) objectContainer(oObject)); |
target(objectContainer(Widget, oObject)); |
} |
} |
else |
else |
{ |
{ |
Line 55 declareTypeExtension(drop)
|
Line 66 declareTypeExtension(drop)
|
|
|
if (subType(oObject) == APPCONTEXT) |
if (subType(oObject) == APPCONTEXT) |
{ |
{ |
free(objectContainer(oObject)); |
free(objectOf(oObject)); |
|
} |
|
else if (subType(oObject) == CALLBACK) |
|
{ |
|
free(objectOf(oObject)); |
} |
} |
else if (subType(oObject) == WIDGET) |
else if (subType(oObject) == WIDGET) |
{ |
{ |
free(objectContainer(oObject)); |
free(objectOf(oObject)); |
} |
} |
else |
else |
{ |
{ |
Line 84 declareTypeExtension(disp)
|
Line 99 declareTypeExtension(disp)
|
} |
} |
|
|
sprintf(s, "XtAppContext $ %016llX", |
sprintf(s, "XtAppContext $ %016llX", |
(long long unsigned int) objectContainer(oObject)); |
(long long unsigned int) objectOf(oObject)); |
|
} |
|
else if (subType(oObject) == CALLBACK) |
|
{ |
|
if ((s = malloc(28 * sizeof(unsigned char))) == NULL) |
|
{ |
|
typeSystemError; |
|
} |
|
|
|
sprintf(s, "Callback $ %016llX", |
|
(long long unsigned int) objectOf(oObject)); |
} |
} |
else if (subType(oObject) == WIDGET) |
else if (subType(oObject) == WIDGET) |
{ |
{ |
Line 94 declareTypeExtension(disp)
|
Line 119 declareTypeExtension(disp)
|
} |
} |
|
|
sprintf(s, "Widget $ %016llX", |
sprintf(s, "Widget $ %016llX", |
(long long unsigned int) objectContainer(oObject)); |
(long long unsigned int) objectOf(oObject)); |
} |
} |
else |
else |
{ |
{ |