fty_generic.c (262629) | fty_generic.c (262685) |
---|---|
1/**************************************************************************** | 1/**************************************************************************** |
2 * Copyright (c) 2008-2009,2010 Free Software Foundation, Inc. * | 2 * Copyright (c) 2008-2010,2012 Free Software Foundation, Inc. * |
3 * * 4 * Permission is hereby granted, free of charge, to any person obtaining a * 5 * copy of this software and associated documentation files (the * 6 * "Software"), to deal in the Software without restriction, including * 7 * without limitation the rights to use, copy, modify, merge, publish, * 8 * distribute, distribute with modifications, sublicense, and/or sell * 9 * copies of the Software, and to permit persons to whom the Software is * 10 * furnished to do so, subject to the following conditions: * --- 18 unchanged lines hidden (view full) --- 29/*************************************************************************** 30* * 31* Author : Juergen Pfeifer * 32* * 33***************************************************************************/ 34 35#include "form.priv.h" 36 | 3 * * 4 * Permission is hereby granted, free of charge, to any person obtaining a * 5 * copy of this software and associated documentation files (the * 6 * "Software"), to deal in the Software without restriction, including * 7 * without limitation the rights to use, copy, modify, merge, publish, * 8 * distribute, distribute with modifications, sublicense, and/or sell * 9 * copies of the Software, and to permit persons to whom the Software is * 10 * furnished to do so, subject to the following conditions: * --- 18 unchanged lines hidden (view full) --- 29/*************************************************************************** 30* * 31* Author : Juergen Pfeifer * 32* * 33***************************************************************************/ 34 35#include "form.priv.h" 36 |
37MODULE_ID("$Id: fty_generic.c,v 1.5 2010/01/23 21:14:36 tom Exp $") | 37MODULE_ID("$Id: fty_generic.c,v 1.6 2012/06/10 00:27:49 tom Exp $") |
38 39/* 40 * This is not a full implementation of a field type, but adds some 41 * support for higher level languages with some restrictions to interop 42 * with C language. Especially the collection of arguments for the 43 * various fieldtypes is not based on the vararg C mechanism, but on a 44 * iterator based callback mechanism that allowes the high level language 45 * to provide the arguments as a structure. Most languages have mechanisms --- 68 unchanged lines hidden (view full) --- 114 115 if (field_check || char_check) 116 { 117 res = typeMalloc(FIELDTYPE, 1); 118 119 if (res) 120 { 121 *res = *_nc_Default_FieldType; | 38 39/* 40 * This is not a full implementation of a field type, but adds some 41 * support for higher level languages with some restrictions to interop 42 * with C language. Especially the collection of arguments for the 43 * various fieldtypes is not based on the vararg C mechanism, but on a 44 * iterator based callback mechanism that allowes the high level language 45 * to provide the arguments as a structure. Most languages have mechanisms --- 68 unchanged lines hidden (view full) --- 114 115 if (field_check || char_check) 116 { 117 res = typeMalloc(FIELDTYPE, 1); 118 119 if (res) 120 { 121 *res = *_nc_Default_FieldType; |
122 res->status |= (_HAS_ARGS | _GENERIC); | 122 SetStatus(res, (_HAS_ARGS | _GENERIC)); |
123 res->fieldcheck.gfcheck = field_check; 124 res->charcheck.gccheck = char_check; 125 res->genericarg = Generic_This_Type; 126 res->freearg = freecallback; 127 res->enum_next.gnext = next; 128 res->enum_prev.gprev = prev; 129 code = E_OK; 130 } --- 167 unchanged lines hidden --- | 123 res->fieldcheck.gfcheck = field_check; 124 res->charcheck.gccheck = char_check; 125 res->genericarg = Generic_This_Type; 126 res->freearg = freecallback; 127 res->enum_next.gnext = next; 128 res->enum_prev.gprev = prev; 129 code = E_OK; 130 } --- 167 unchanged lines hidden --- |