User Profile

Collapse

Profile Sidebar

Collapse
amitbern
amitbern
Last Activity: Mar 19 '09, 01:07 PM
Joined: Oct 19 '06
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • amitbern
    replied to Makefile with flags
    tried.. not working.. :(
    See more | Go to post

    Leave a comment:


  • amitbern
    started a topic Makefile with flags

    Makefile with flags

    Hi,
    Small question regarding makefiles:
    I want to add a new target: release
    that will compile my driver with additional flag
    (EXTRA_CFLAGS += -Drelease_flag)

    how can i do that on this example:


    KERNELPATH := /home/kernel-2.6.24/

    .PHONY: all clean
    EXTRA_CFLAGS += -Werror
    EXTRA_CFLAGS += -I$(src)/dir1
    EXTRA_CFLAGS += -I$(src)/dir2

    all: modules...
    See more | Go to post

  • amitbern
    started a topic enum Question
    in C

    enum Question

    Hi, a little Q:
    typedef enum
    {
    NUM0 = 0,
    NUM1 = 1,
    NUM2 = 2,
    NUM3 = 3,
    } NUMBER;

    NUMBER test=NUM0;

    when i'm writing:
    test++
    i get an error, how can i do the ++ without the need to do casting like:
    test=(NUMBER)(t est+1);
    thanks
    See more | Go to post

  • amitbern
    started a topic Address increment
    in C

    Address increment

    Hi,
    When I take an address and increment it, it jumps to address+4 bytes..
    for example
    int * buffer = 0x100;
    buffer++; // &buffer = 0x104

    why?
    See more | Go to post

  • amitbern
    replied to Structs in C
    in C
    templates in C?
    See more | Go to post

    Leave a comment:


  • amitbern
    started a topic Structs in C
    in C

    Structs in C

    Hi,
    I am trying to do the following:
    Code:
    typedef struct _STRUCT1
    {
            integer var1[SIZE];
    
    } STRUCT1
    
    typedef struct _STRUCT2
    {
           STRUCT1 var2(100);
           STRUCT1 var3(200);
    } STRUCT2
    I want that var2.var1 will have the array size=100
    and var3.var1 will have the array size=200;
    is it posible, or must i do this:

    Code:
    typedef
    ...
    See more | Go to post
No activity results to display
Show More
Working...