mirror of
https://bitbucket.org/theswgsource/src-1.2.git
synced 2026-10-10 00:12:56 -04:00
more sequence/order of operations stuff
This commit is contained in:
+6
-2
@@ -19,10 +19,14 @@ class CTServiceCustomer
|
||||
target[0] = 0;
|
||||
return;
|
||||
}
|
||||
|
||||
int offset = 0;
|
||||
while (offset < length && (target[offset++] = source[offset]));
|
||||
target[length-1] = 0;
|
||||
while (offset < length && (target[(offset+1)] = source[offset])){
|
||||
target[length-1] = 0;
|
||||
offset++;
|
||||
}
|
||||
}
|
||||
|
||||
public:
|
||||
enum { SHORT_NAME_SIZE=64, SHORT_NAME_BUFFER,
|
||||
PHONE_SIZE=32, PHONE_BUFFER,
|
||||
|
||||
+5
-2
@@ -22,9 +22,12 @@ class CTServiceDBOrder
|
||||
target[0] = 0;
|
||||
return;
|
||||
}
|
||||
|
||||
int offset = 0;
|
||||
while (offset < length && (target[offset++] = source[offset]));
|
||||
target[length-1] = 0;
|
||||
while (offset < length && (target[(offset+1)] = source[offset])){
|
||||
target[length-1] = 0;
|
||||
offset++;
|
||||
}
|
||||
}
|
||||
|
||||
public:
|
||||
|
||||
+5
-2
@@ -21,9 +21,12 @@ class CTServiceTransaction
|
||||
target[0] = 0;
|
||||
return;
|
||||
}
|
||||
|
||||
int offset = 0;
|
||||
while (offset < length && (target[offset++] = source[offset]));
|
||||
target[length-1] = 0;
|
||||
while (offset < length && (target[(offset+1)] = source[offset])){
|
||||
target[length-1] = 0;
|
||||
offset++;
|
||||
}
|
||||
}
|
||||
|
||||
public:
|
||||
|
||||
+5
-2
@@ -21,9 +21,12 @@ class CTServiceWebAPITransaction
|
||||
target[0] = 0;
|
||||
return;
|
||||
}
|
||||
|
||||
int offset = 0;
|
||||
while (offset < length && (target[offset++] = source[offset]));
|
||||
target[length-1] = 0;
|
||||
while (offset < length && (target[(offset+1)] = source[offset])) {
|
||||
target[length-1] = 0;
|
||||
offset++;
|
||||
}
|
||||
}
|
||||
typedef unsigned short uchar_t;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user