Project
People
Skill
Log In
|
Get Help
Home
My Page
Projects
Code Snippets
Project Openings
Mareframe
Summary
Activity
Forums
Tracker
Lists
Tasks
Docs
Surveys
News
SCM
Files
[mareframe] Diff of /trunk/gadget/strstack.cc
[mareframe]
/
trunk
/
gadget
/
strstack.cc
Repository:
Repository Listing
mareframe
Diff of /trunk/gadget/strstack.cc
Parent Directory
|
Revision Log
|
Patch
revision 1, Mon Feb 10 17:09:07 2014 UTC
revision 20, Fri Apr 7 09:20:55 2017 UTC
#
Line 1
Line 1
1
#include "strstack.h"
#include "strstack.h"
2
#include "gadget.h"
#include "gadget.h"
3
#include "omp.h"
4
5
StrStack::~StrStack() {
StrStack::~StrStack() {
6
int i;
int i;
#
Line 8
Line 9
9
}
}
10
11
void StrStack::clearString() {
void StrStack::clearString() {
12
#pragma omp critical
13
if (size > 0)
if (size > 0)
14
size--;
size--;
15
}
}
16
17
void StrStack::storeString(const char* str) {
void StrStack::storeString(const char* str) {
18
#pragma omp critical
19
{
20
if (size == v.Size()) {
if (size == v.Size()) {
21
v.resize(new char[MaxStrLength]);
v.resize(new char[MaxStrLength]);
22
strncpy(v[size], "", MaxStrLength);
strncpy(v[size], "", MaxStrLength);
#
Line 20
Line 24
24
strcpy(v[size], str);
strcpy(v[size], str);
25
size++;
size++;
26
}
}
27
}
28
29
char* StrStack::sendAll() const {
char* StrStack::sendAll() const {
30
int i, len;
int i, len;
Colored Diff
Long Colored Diff
Unidiff
Context Diff
Side by Side
Legend:
Removed from v.1
changed lines
Added in v.20
root@forge.cesga.es
ViewVC Help
Powered by
ViewVC 1.0.0