equal
deleted
inserted
replaced
|
1 /* |
|
2 * Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). |
|
3 * All rights reserved. |
|
4 * This component and the accompanying materials are made available |
|
5 * under the terms of "Eclipse Public License v1.0" |
|
6 * which accompanies this distribution, and is available |
|
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
8 * |
|
9 * Initial Contributors: |
|
10 * Nokia Corporation - initial contribution. |
|
11 * |
|
12 * Contributors: |
|
13 * |
|
14 * Description: string Macro include. |
|
15 * |
|
16 */ |
|
17 |
|
18 #include <stdio.h> |
|
19 #include <stdarg.h> |
|
20 #include <stdlib.h> |
|
21 |
|
22 |
|
23 #define QS_INTERNAL_BUFFER_SIZE 20 |
|
24 #define QS_INTERNAL_BUFFER_CHARS QS_INTERNAL_BUFFER_SIZE-1 |
|
25 |
|
26 |
|
27 #define malloc_good_size(size) size |
|
28 |
|
29 //#define ALLOC_QCHAR_GOOD_SIZE(X) (malloc_good_size(X*sizeof(AlfChar))/sizeof(AlfChar)) |
|
30 #define ALLOC_CHAR_GOOD_SIZE(X) (malloc_good_size(X)) |
|
31 |
|
32 //#ifndef __OOM__ |
|
33 #define ALLOC_CHAR( N ) (char*) malloc(N) |
|
34 #define REALLOC_CHAR( P, N ) (char *) realloc(P,N) |
|
35 //#define ALLOC_QCHAR( N ) (AlfChar*) malloc(sizeof(AlfChar)*( N )) |
|
36 //#define REALLOC_QCHAR( P, N ) (AlfChar *) realloc(P,sizeof(AlfChar)*( N )) |
|
37 #define DELETE_CHAR( P ) free(P) |
|
38 #define DELETE_QCHAR( P ) free( P ) |
|
39 |
|
40 |
|
41 #define QS_INTERNAL_BUFFER_UCHARS QS_INTERNAL_BUFFER_SIZE/2 |
|
42 |
|
43 |