Skip to content

Commit b7af761

Browse files
Version 10.0.01-pre
1 parent c8369a0 commit b7af761

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

76 files changed

+1863
-1740
lines changed

Src/Db/BEXTQRY.CPP

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -211,10 +211,7 @@ int SLAPI BExtQuery::nextIteration()
211211
}
212212
else {
213213
if(++Cur < ActCount) {
214-
ok = 1;
215-
if(State & stSqlProvider) {
216-
ok = P_Stmt ? P_Stmt->GetData(Cur) : 0;
217-
}
214+
ok = (State & stSqlProvider) ? (P_Stmt ? P_Stmt->GetData(Cur) : 0) : 1;
218215
}
219216
else if(!(State & stEOF)) {
220217
Cur = 0;
@@ -245,13 +242,11 @@ long SLAPI BExtQuery::countIterations(int reverse, void * pInitKey, int initSpMo
245242
int SLAPI BExtQuery::search_first(const char * pInitKey, int initSpMode, int spMode)
246243
{
247244
EXCEPTVAR(BtrError);
248-
249245
ActCount = 0;
250246
RecSize = 0;
251247
Cur = 0;
252248
State &= ~stEOF;
253249
P_Tbl->setIndex(index);
254-
255250
int ok = 1, sp;
256251
const uint fields_count = Fields.GetCount();
257252
BExtTail * p_tail = 0;

Src/Db/bdb.cpp

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -200,14 +200,9 @@ int BDbDatabase::Helper_SetConfig(const char * pHomeDir, Config & rCfg)
200200
return ok;
201201
}
202202

203-
BDbDatabase::BDbDatabase(const char * pHomeDir, Config * pCfg, long options)
203+
BDbDatabase::BDbDatabase(const char * pHomeDir, Config * pCfg, long options) : State(0), E(0), P_SeqT(0), P_SCtx(new SSerializeContext), HomePathPos(0)
204204
{
205205
int r = 0;
206-
State = 0;
207-
E = 0;
208-
P_SeqT = 0;
209-
P_SCtx = new SSerializeContext;
210-
HomePathPos = 0;
211206
StrPool.add("$"); // zero index - is empty string
212207
SString temp_buf = pHomeDir;
213208
if(temp_buf.NotEmptyS())

Src/Doc/VERSION.TXT

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15202,6 +15202,10 @@ Ver 1.2 Date 13/09/96
1520215202
-FIX: {�����} ������ ��� �������� ������ �� ������������ ��������� (WayBillAct_v3)
1520315203
-FIX: {DL600} ������, ����������� ������ � �������� ���������� ����� � ������ ������� ��� ���������
1520415204
� ������������ ������� UniformFileTransm()
15205-
11/04/2018 v10.0.1
15205+
13/04/2018 v10.0.1
15206+
- {���������� �������� ����} ������� �������� ������� ����� ������������ ����.
1520615207
-FIX: {UI} ������ ��� ������ ������ � ���������� ���������.
15208+
-FIX: {���������� �������� ����} �� ���������������� ������, ������� ������������ �� ������� ����������� ���������.
15209+
-FIX: {�������� ������ �����} ��������� � ������� ������ ��������������� ���������.
15210+
1520715211

Src/Include/PPDEFS.H

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10335,6 +10335,12 @@
1033510335
#define CTL_GSFILT_HRFLAGS (12 + WINDOWS_ID_BIAS)
1033610336
#define CTL_GSFILT_ISFLAGS (13 + WINDOWS_ID_BIAS)
1033710337
#define CTL_GSFILT_IRFLAGS (14 + WINDOWS_ID_BIAS)
10338+
#define DLG_SELOBJBYPHN 1336
10339+
#define CTL_SELOBJBYPHN_WHAT (1 + WINDOWS_ID_BIAS)
10340+
#define CTL_SELOBJBYPHN_INFO (2 + WINDOWS_ID_BIAS)
10341+
#define CTL_SELOBJBYPHN_EXT (3 + WINDOWS_ID_BIAS)
10342+
#define CTLSEL_SELOBJBYPHN_EXT (4 + WINDOWS_ID_BIAS)
10343+
#define CTL_SELOBJBYPHN_SRCH (5 + WINDOWS_ID_BIAS)
1033810344
//
1033910345
// Win32 Dialog Identifiers
1034010346
//

Src/Include/Pp.h

Lines changed: 23 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8171,6 +8171,7 @@ class PersonCore : public PersonTbl {
81718171

81728172
static int SLAPI PutELinks(PPID id, PPELinkArray *, int use_ta);
81738173
static int SLAPI GetELinks(PPID id, PPELinkArray *);
8174+
static int SLAPI GetELinkList(int elnkrt, StrAssocArray & rList);
81748175

81758176
PersonKindTbl Kind;
81768177
//
@@ -8308,6 +8309,7 @@ class LocationCore : public LocationTbl {
83088309
int SLAPI GetAddress_(PPID locID, uint flags, SString & rBuf);
83098310
int SLAPI IndexPhone(const char * pPhone, const PPObjID * pObjId, int doRemove, int use_ta);
83108311
int SLAPI SearchPhoneIndex(const char * pPhone, long options, PPIDArray & rResultList);
8312+
int SLAPI SearchPhoneObjList(const char * pPhone, long options, PPObjIDArray & rList);
83118313
int SLAPI GetEAddr(PPID id, EAddrTbl::Rec * pRec);
83128314
int SLAPI SearchEAddrByLink(PPID objType, PPID objID, PPIDArray & rResultList);
83138315
int SLAPI SearchEAddrMaxLikePhone(const char * pPhonePattern, long options, LongArray & rResult);
@@ -10112,7 +10114,7 @@ class PPBillPacket : public PPBill {
1011210114
void SLAPI destroy();
1011310115
int FASTCALL Copy(const PPBillPacket & rS);
1011410116
int SLAPI CreateBlank(PPID opID, PPID linkBill, PPID locID, int use_ta);
10115-
int SLAPI CreateBlank_WithoutCode(PPID oprKind, PPID linkBill, PPID locID, int use_ta);
10117+
int SLAPI CreateBlank_WithoutCode(PPID opID, PPID linkBill, PPID locID, int use_ta);
1011610118
int SLAPI CreateBlank2(PPID opID, LDATE dt, PPID locID, int use_ta);
1011710119
//
1011810120
// Descr: пытается из элементов массива ShLots создать теневой пакет. Если ей удается это сделать,
@@ -17519,10 +17521,10 @@ class PPObjCashNode : public PPObjReference {
1751917521
int SLAPI ResolveList(const PPIDArray * pSrcList, PPIDArray & rDestList);
1752017522
//
1752117523
// Descr: Выясняет статус продавца, использующего кассовый узел id как
17522-
// освобожденного от НДС.
17524+
// освобожденного от НДС.
1752317525
// Порядок идентификации статуса следующий:
1752417526
// Если id != 0 и склад, ассоциированный с этим узлом имеет признак особожденного от НДС,
17525-
// то продавец особожден от НДС. В противном случае проверяет признак PSNF_NOVATAX у
17527+
// то продавец особожден от НДС. В противном случае проверяет признак PSNF_NOVATAX у
1752617528
// персоналии, являющейся текущей главной организацией.
1752717529
// Returns:
1752817530
// >0 - продавец освобожден от НДС
@@ -19326,6 +19328,7 @@ struct PhnSvcChannelStatus {
1932619328
SString EffConnectedLineName;
1932719329
SString Application;
1932819330
SString Data;
19331+
SString IdentifiedCallerName; // @v10.0.01
1932919332
};
1933019333

1933119334
class PhnSvcChannelStatusPool : SVector, SStrGroup { // @v9.8.11 SArray-->SVector
@@ -19334,6 +19337,7 @@ class PhnSvcChannelStatusPool : SVector, SStrGroup { // @v9.8.11 SArray-->SVecto
1933419337
uint GetCount() const;
1933519338
int FASTCALL Add(const PhnSvcChannelStatus & rStatus);
1933619339
int FASTCALL Get(uint idx, PhnSvcChannelStatus & rStatus) const;
19340+
int SLAPI SetIdentifiedCallerName(uint idx, const char * pName);
1933719341
PhnSvcChannelStatusPool & Clear();
1933819342
private:
1933919343
struct Item_ { // @flat
@@ -19358,8 +19362,8 @@ class PhnSvcChannelStatusPool : SVector, SStrGroup { // @v9.8.11 SArray-->SVecto
1935819362
uint EffConnectedLineNameP;
1935919363
uint ApplicationP;
1936019364
uint DataP;
19365+
uint IdentifiedCallerNameP; // @v10.0.01 Позиция строки имени, идентифицированного вне телефонного сервера
1936119366
};
19362-
//StringSet Pool;
1936319367
};
1936419368

1936519369
class AsteriskAmiClient {
@@ -19426,12 +19430,14 @@ class PhoneServiceEventResponder {
1942619430
SLAPI PhoneServiceEventResponder();
1942719431
SLAPI ~PhoneServiceEventResponder();
1942819432
int SLAPI IdentifyCaller(const char * pCaller, PPObjIDArray & rList);
19433+
const StrAssocArray * SLAPI GetInternalPhoneList();
1942919434
private:
1943019435
static int AdviseCallback(int kind, const PPNotifyEvent * pEv, void * procExtPtr);
1943119436

1943219437
long AdvCookie_Ringing;
1943319438
long AdvCookie_Up;
1943419439
PPObjPerson * P_PsnObj;
19440+
StrAssocArray * P_InternalPhoneList; // Список персоналий, ассоциированных со внутренними телефонными номерами
1943519441
};
1943619442
//
1943719443
// @ModuleDecl(PPViewJobPool)
@@ -19469,6 +19475,7 @@ class PPViewPhnSvcMonitor : public PPView {
1946919475
PhnSvcChannelStatusPool List;
1947019476
PhnSvcMonitorFilt Filt;
1947119477
AsteriskAmiClient * P_Cli;
19478+
PPObjPerson * P_PsnObj;
1947219479
PhnSvcChannelStatus TempStatusEntry; // @fastreuse
1947319480
};
1947419481
//
@@ -24080,6 +24087,8 @@ struct PPPsnEventPacket {
2408024087

2408124088
class PersonEventCore : public PersonEventTbl {
2408224089
public:
24090+
friend class PPTblEnum <PersonEventCore>;
24091+
2408324092
SLAPI PersonEventCore();
2408424093
int SLAPI Search(PPID id, PersonEventTbl::Rec * pRec = 0);
2408524094
//
@@ -24106,6 +24115,11 @@ class PersonEventCore : public PersonEventTbl {
2410624115
int SLAPI Update(PPID id, PersonEventTbl::Rec *, int use_ta);
2410724116
int SLAPI Remove(PPID id, int use_ta);
2410824117
int SLAPI CalcCountForPeriod(PPID opID, PPID personID, const STimeChunk & rTc, uint * pCount);
24118+
SEnumImp * SLAPI EnumByPerson(PPID prmrPesonID, const DateRange * pPeriod);
24119+
private:
24120+
int SLAPI InitEnum(PPID prmrPersonID, const DateRange * pPeriod, long * pHandle);
24121+
24122+
PPTblEnumList EnumList;
2410924123
};
2411024124
//
2411124125
//
@@ -24466,7 +24480,7 @@ struct PersonFilt : public PPBaseFilt {
2446624480
};
2446724481

2446824482
SLAPI PersonFilt();
24469-
int SLAPI Setup();
24483+
void SLAPI Setup();
2447024484
//
2447124485
// IsEmpty calls PersonFilt::Setup, than this is not const
2447224486
//
@@ -25366,6 +25380,8 @@ struct RetailGoodsInfo { // @transient
2536625380
#define RTLPF_USEMINEXTQVAL 0x0010L // Если задан RetailPriceExtractor::ExtQuotBlock,
2536725381
// то из указанных там котировок применять минимально возможное значение.
2536825382
#define RTLPF_USEOUTERPRICE 0x0020L // @v8.0.12 Использовать цену RetailExtrItem::OuterPrice, заданную извне
25383+
#define RTLPF_IGNCONDQUOTS 0x0040L // @v10.0.10 Игнорировать условные котировки (для которых заданы условия применимости).
25384+
// Опция важна при экспорте данных, когда получатель самостоятельно определяет применимость котировок.
2536925385

2537025386
struct RetailExtrItem { // @transient
2537125387
SLAPI RetailExtrItem();
@@ -48576,8 +48592,8 @@ class CPosProcessor {
4857648592
CardState();
4857748593
~CardState();
4857848594
void Reset();
48579-
PPID GetID() const;
48580-
const char * GetCode() const;
48595+
PPID GetID() const { return SCardID; }
48596+
const char * GetCode() const { return Code; }
4858148597
void SetID(PPID id, const char * pCode);
4858248598
double GetDiscount(double ccAmount) const;
4858348599

Src/Include/Private/VERDATA.INC

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
//
22
// ..\INCLUDE\PRIVATE\VERDATA.INC
3-
// 2018-04-11T17:06:31
3+
// 2018-04-14T17:59:05
44
// Automaticaly generated file
55
// Don't modify!
66
//
77
0x24, 0x00, 0x00, 0x00, 0x33, 0x30, 0x79, 0x61, 0x52, 0x42, 0x44, 0x33, 0x44, 0x4f, 0x57, 0x45, 0x68, 0x31, 0x52, 0x66, 0x56, 0x32, 0x70, 0x74, 0x74, 0x7a, 0x51, 0x4a, 0x50, 0x59, 0x7a, 0x44,
8-
0x4a, 0x00, 0xba, 0xcb, 0x00, 0x01, 0x00, 0x00, 0x21, 0xb3, 0x60, 0x0c, 0xca, 0x1c, 0x55, 0xdb, 0xbc, 0xd5, 0xcb, 0x06, 0x3e, 0xda, 0x8f, 0x0f, 0x5d, 0xff, 0x13, 0x69, 0xc2, 0xa2, 0x06, 0x70,
9-
0xef, 0xda, 0x49, 0xf1, 0x90, 0xbb, 0xa3, 0x33, 0x3f, 0xdf, 0x79, 0x93, 0xac, 0xf8, 0xbb, 0x9d, 0xac, 0xef, 0x55, 0xaa, 0x75, 0x6d, 0xde, 0x72, 0xc3, 0x20, 0x85, 0x5e, 0xc2, 0x4a, 0xe4, 0x90,
10-
0x34, 0xb7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x9f, 0x52, 0xbf, 0x1b, 0x09, 0x0f, 0x89, 0xa4, 0x6a, 0xee, 0x03, 0xcb, 0x1c, 0xc0, 0xda, 0x72, 0x3a, 0xb0, 0x67

Src/Include/sartre.h

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -423,7 +423,7 @@ class SrWordAssocTbl : public BDbTable {
423423
class SrNGram {
424424
public:
425425
SLAPI SrNGram();
426-
void SLAPI Z();
426+
SrNGram & SLAPI Z();
427427

428428
NGID ID;
429429
int32 Ver;
@@ -510,7 +510,8 @@ class SrConcept {
510510
public:
511511
enum {
512512
surrsymbsrcUndef = 0, // Не определен
513-
surrsymbsrcFIAS = 1 // База данных ФИАС (российский классификатор адресов)
513+
surrsymbsrcFIAS = 1, // База данных ФИАС (российский классификатор адресов)
514+
surrsymbsrcGBIF = 2 // База данных GBIF (биологическая таксономия)
514515
};
515516
//
516517
// Descr: Создает суррогатный символ концепции, на опираясь на "естественный" уникальный идентификатор,

Src/OSF/lua/lauxlib.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -58,9 +58,9 @@ LUALIB_API int(luaL_execresult) (lua_State *L, int stat);
5858
#define LUA_NOREF (-2)
5959
#define LUA_REFNIL (-1)
6060

61-
LUALIB_API int(luaL_ref) (lua_State *L, int t);
62-
LUALIB_API void(luaL_unref) (lua_State *L, int t, int ref);
63-
LUALIB_API int(luaL_loadfilex) (lua_State *L, const char * filename, const char * mode);
61+
LUALIB_API int(luaL_ref)(lua_State *L, int t);
62+
LUALIB_API void(luaL_unref)(lua_State *L, int t, int ref);
63+
LUALIB_API int(luaL_loadfilex)(lua_State *L, const char * filename, const char * mode);
6464

6565
#define luaL_loadfile(L, f) luaL_loadfilex(L, f, NULL)
6666

0 commit comments

Comments
 (0)