User forums > Nightly builds
The 16 November 2013 build (9455) is out.
oBFusCATed:
--- Quote from: ToApolytoXaos on November 25, 2013, 02:30:00 pm ---Is this normal, or I hit a bug?
--- End quote ---
Yes, I think it is normal, but I don't know if this is a good behaviour.
ToApolytoXaos:
Currently compiled svn9468 on Windows 7 machine (at work) and auto-completion does not work properly.
As soon as I insert (*prd->st_info)->, instead of seeing the desired variables, I see whatever prd
has in it.
See the entire sample below:
--- Code: (C) ---/*
* Placed in Public Domain where applicable permitted by law.
* USE IT AT YOUR OWN RISK!
*/
#include <stdio.h>
#include <stdlib.h>
#define nil ((void *)0)
typedef struct {
int postal_code;
const char *address;
} street_info_t;
typedef struct {
street_info_t **st_info;
const char *company_name;
} generic_t;
street_info_t * str_constructor(void) {
street_info_t *tmp = (street_info_t *) malloc(sizeof(street_info_t));
if (tmp == nil) {
return nil;
}
return tmp;
}
void str_destructor(street_info_t **self) {
if (*self != nil) {
free(*self);
*self = nil;
}
return;
}
generic_t * constructor(void) {
generic_t *tmp = (generic_t *) malloc(sizeof(generic_t));
if (tmp == nil) {
return nil;
}
return tmp;
}
void destructor(generic_t **self) {
if (*self != nil) {
free(*self);
*self = nil;
}
return;
}
int main(void)
{
generic_t *prd = constructor();
street_info_t *street = str_constructor();
prd->st_info = &street;
prd->company_name = "Disney Land";
(*prd->st_info)->address = "Mikey Mouse avenue, Neverland";
(*prd->st_info)->postal_code = 1010;
printf("Company Name: %s\n", prd->company_name);
printf("Address: %s\n", (*prd->st_info)->address);
printf("Postal code: %d\n", (*prd->st_info)->postal_code);
str_destructor(&street);
prd->st_info = nil;
destructor(&prd);
return 0;
}
--- End code ---
oBFusCATed:
Is this a regression in this build?
ollydbg:
@ToApolytoXaos, If I remember correctly, we don't handle the parentheses correctly in CC. (It need some kind of operator precedence parsing of the statement, but currently we don't have this feature)
ToApolytoXaos:
Ah OK, no worries. So it's not a bug, but a lack of feature :) nice. Also, should not be logical to offer only C keywords if you use a project as C, unless it's used in C++ as extern C? Most of the times I get full list of unnecessary keyword tags.
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version