[SOLVED] How can I extract c/c++ standard headers for ctags?

Note. I mean to treat c/c++ separately below. The final objective is to get two tag files which are generated by ctags, one for c and one for c++.
1. Where are the c/c++ headers in Arch Linux distribution? I just know /usr/include/, but nowhere else. If there are other places, please tell me.
2. How can I use ctags to make tags just for these standard headers but not others? If I use ctags -R /usr/include/, all the files in /usr/include/ will be included. This is not I want. I just want the standard, necessary files.
3. If you know other methods to get the two tags mentioned above, please tell me.
Thanks very much~~
Last edited by cyker (2010-07-25 20:29:57)

One way to pinpoint it is to use pacman's query functions.
Something like this:
pacman -Ql glibc | awk '/include\//{print $2}'
will give you the list of all the header files glibc provides, some of them are the C standard library, there are not that many of them so you can pick them out. (list of them here: http://en.wikipedia.org/wiki/C_standard_library )
C++ STL headers reside in /usr/include/c++/4.5.0/ and they belong to the gcc package:
pacman -Ql gcc | awk '/\/usr\/include/{print $2}'

Similar Messages

  • How can I extract the full SQL script for a schema?

    Hi,
    How can I extract the full SQL script for a schema?
    I am looking for some method that needs jus SQL*Plus and preferably doesn’t need any extra tool.
    Thank you,
    Alan

    How can I extract the full SQL script for a schema?What are you looking for? PL/SQL code? DDL for objects?

  • How can I extract the list of fields for every view of the material master?

    Hello SAPients,
    Is there a table or a FM where I can extract the list of fields that every view of material master have?
    I need to create a dynamic selection-screen with something like this:
    Basic Data
        mara-matnr
        makt-maktx
        mara-meins
    Sales: Sales Organization Data
        mara-matnr
        makt-maktx
    Thank you in advance.

    Hi
    Try to run the trx OMT3B: this the customizing where the dynpro for the views are defined: perhaps u can find something can help you.
    Max

  • How can I download Adobe Acrobat Standard XI?

    I purchased a Fujitsu scanner that came with a CD of Acrobat Standard XI with a Full Serial Number; however, the laptop I have does not have an optical drive. How can I download Adobe Acrobat Standard XI for use on my laptop?
    I can only find trials of Pro and nothing indicating that Standard is able to be downloaded...please help

    Acrobat XI Standard for Windows can be downloaded from
    http://helpx.adobe.com/acrobat/kb/acrobat-downloads.html
    There is no Mac download available that I'm aware of.

  • How can I extract the data from Xstring .

    Hi Gurus ,
    How can I extract the data from a XSTRING  .
    I have to get the data which is filled in the survey form the data is getting saved in form of xstring .
    Someone told me that there is a standard FM for that . but I am not able to find .
    Please reply with the FM in case some one knows about it .
    Thanks in advance .

    The following code works as of 7.0 (in any SAP system):
    FORM XSTRING_TO_STRING USING input TYPE xstring CHANGING output TYPE string.
    TYPES : BEGIN OF ty_struc,
              line TYPE c LENGTH 100,
            END OF ty_struc.
    DATA lt_char TYPE TABLE OF ty_struc.
    DATA length TYPE i.
    length = xstrlen( input ) / cl_abap_char_utilities=>charsize.
    CALL FUNCTION 'SCMS_XSTRING_TO_BINARY'
      EXPORTING
        buffer                = input
      tables
        binary_tab            = lt_char.
    CONCATENATE LINES OF lt_char INTO output RESPECTING BLANKS.
    output = output(length).
    ENDFORM.
    Edited by: Sandra Rossi on Mar 30, 2010 12:24 AM

  • How can I extract ? Please help me.........

    First of all, I am very new user to XML and also Java. If my question is nonsense, forgive me, please.
    I would like to test that the string in the node are equal with some string that I want to search. I use DOM API.
    The following code are ok for the node is directly included text CDATA. The program gives the true value. In the following simple code, I tried to search the string "ACTI".
    for example; the node, <LABEL>Problem in Activity</LABEL> , I got "true".
    But I would like to match also the node ,
    <SLOT label="slot" kind="a/o" role="occurs in" class_constraint="Activity" >
    There is also "Activity" string value in class_constraint.
    So how can I extract and match that string data?
    Help me please!
    case Node.CDATA_SECTION_NODE:
    System.out.println(node.getNodeValue());
    if (node.getNodeValue() != null) {
         String aa = (node.getNodeValue().toUpperCase());
         if ( (aa.indexOf("ACTI") >= 0))
         System.out.println("true");
         else
         System.out.println("false");
    <CONCEPT>
    <LABEL>Problem in Activity</LABEL>
    <SLOTS>
    <SLOT label="slot" kind="a/o" role="occurs in" class_constraint="Activity" >
    </SLOT>
    </SLOTS>
    </CONCEPT>

    Thank you very much for your help.
    I do appreciate your reply.
    As I gave my code example in my first post, I parse the XML document and I checked each node whether it is CDATA Node or Document Node, Element Node, and so on.. I used CASE statement.
    If it is CDATA node, I compare Node value and the string I want to search.
    At that time, I faced the problem that you solved already, I didn't know how to compare in attribute node.
    With your suggestion, I can compare now.
    But the problem now is that... when I extract element by tag name, it cannot test node by node.
    So, how can I combine these two code?
    Actually, what I am going to do is that if node is not match (in anywhere) with the string what I want to search starting from parent node to all child nodes, I want to delete that node starting from parent node and it's childs. And I want to create a new XML document by deleating unmatched nodes.
    For example, in the following XML, I would like to delete the second <CONCEPT> node while I search for "Acti" string. There is no "Acti" in the second.
    <CONCEPT>
    <LABEL>Problem in Activity</LABEL>
    <SLOTS>
    <SLOT label="slot" kind="a/o" role="occurs in" class_constraint="Design" >
    <SUB_L label="" def="" role_name="" class_const="Activity" />
    </SLOT>
    <SLOT label="slot" kind="a/o" role="occurs in" class_constraint="Const" >
    <SUB_L class_const="Activity" />
    </SLOT>
    </SLOTS>
    </CONCEPT>
    <CONCEPT>
    <LABEL>Problem in REQ</LABEL>
    <SLOTS>
    <SLOT label="slot" kind="a/o" role="occurs in" class_constraint="Req" >
    <SUB_L class_const="Change" />
    </SLOT>
    </SLOTS>
    </CONCEPT>

  • How can I extract certain pages from my document and save as another file?

    How can I extract certain pages from my document and save as another file?

    You would need Adobe Acrobat to do that, not Adobe Reader.

  • How can I extract only the audio as an aiff file?

    Using a Sony DSC-N2 Cybershot Camera I recorded video that was saved as “MOV01606.MPG”. The video plays back with sound in Quicktime Pro and iTunes but how can I extract only the audio as an aiff file?

    Use MPEG Streamclip (free) to convert your .mpg files to QuickTime formats.
    QuickTime can't extract audio from muxed file formats.

  • How can i extract just documents from time machine backup?

    How can I extract just my documents from a time machine backup?   I had to re-install Lion after the update screwed things up, the Genius Bar guy told me to re-install each App, and then transfer just my data (documents) back but didn't tell me how.   I only see how you can restore the entire snapshot of what was on my MacBook that day, I don't see how to select specifics. 

    Hi,
    Install a fresh Lion OS on your Mac. After this is done, then connect your time capsule. Click on the time machine icon in the dock bar so you will enter in time machine. Select the document folder and any document or all you need. The same thing you can do with iPhoto, Emails, etc.
    Let me know
    Claudio

  • How can I extract a bent CD from an Apple Superdrive?

    A bent CD has jammed in my Apple Superdrive. How can I extract it?

    Here's a list of generally accepted approaches:
    http://www.macyourself.com/2009/05/01/the-ultimate-guide-to-ejecting-a-stuck-dis c-from-mac-superdrive/
    Depending on the Mac model you have, there may be other approaches, and there is always the Final Solution of cracking the case, pulling out the superdrive, and mucking with it directly. But don't go there unless you have to and/or are feeling a bit crazy.

  • How can I extract the two channels from a stereo track?

    Hi,
    I am writing a class that is able to draw an audio signal. It seems to be working well but I have a question. If I load a mono audio file I am able to draw it on a graph by using the byte[] array and everything is ok until now. That's the code:
    void Draw(byte[] x)
                Graphics g=getGraphics();
                Graphics2D g2=(Graphics2D)g;
                g2.setRenderingHint(RenderingHints.KEY_ANTIALIASING,                     RenderingHints.VALUE_ANTIALIAS_ON);
                for(int i=0; i<x.length-6; i++)
                    g2.draw(new Line2D.Float(((i*(getWidth()-6))/x.length)+5, (getHeight()/2)-          ((x*(getWidth()-6))/x.length), (((i+1)*(getWidth()-6))/x.length)+5, (getHeight()/2)-     ((x[i+1]*(getWidth()-6))/x.length)));
    The results is correct only if I have a mono track. Obviously when I get a stereo track the array becomes very large so here the question. How can I extract the two audio channels from a stereo track?
    Thanks in advance.
    Maurizio Di Vitto                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

    A mono audio stream is stored [sample, sample, sample, sample], so just a list of samples in an array.
    A stereo sample is interleaved in the same manner, so you get [left-sample, right-sample, left-sample, right-sample]
    So every nth sample is the 1st channel, every nth+1 is the 2nd channel...

  • How can I extract all attachments together in office365 email?

    How can I extract all attachments together in office365 email?

    There is no build-in feature in Outlook 2013. However, we can accomplish that via coding VBA.
    Here is a simple I may provide:
    http://stackoverflow.com/questions/15531093/outlook-vba-macro-to-save-attachments-to-a-folder-and-rename-them
    Programming/Code related questions should really be posed in one of the following forums:
    Outlook for Developers
    http://social.msdn.microsoft.com/Forums/en-US/outlookdev
    Microsoft Office Programming
    http://answers.microsoft.com/en-us/office/forum/customize?page=1&tab=all&tm=1361680524815
    Tony Chen
    TechNet Community Support

  • HT4628 How can I set up a standard account to auto disconnect from the wireless network upon logging out (Using Mavericks)?  There used to be a setting for this in previous versions of OSX but I can't find it in the new version.

    How can I set up a standard account to auto disconnect from the wireless network upon logging out (Using Mavericks)?  There used to be a setting for this in previous versions of OSX but I can't find it in the new version.

    How can I set up a standard account to auto disconnect from the wireless network upon logging out (Using Mavericks)?  There used to be a setting for this in previous versions of OSX but I can't find it in the new version.

  • How can I extract the results of my squence?

    Hello, I'm a beginer of test Stand.
    I've created a main squence with LabView & TestStand, and works well, when it finish TestStand automatically creates my report. I need to extract these results of my sequence in order to create a custom document automatically, creating an action with LabView that works with these results, without any action of an operator.
    How can I extract these results? Thanks you very much.

    Hello,
    you've got several options here, although it seems you might want to go with the first option:
    1) After running your sequence, you'll find all the results needed for creating a report on the variable Locals.ResultList, which is an array of objects (of the Result type). You can pass this array to external code for it to use the information (i.e. create a report)
    2) You can override the report generation callback on your process model (Test Report callback)and create your own LabVIEW-based report generation sequence/routine
    3) You can modify the report generation sequences on the process model to suit your needs (always make backup copies and place your modifications on the /Components/User folder !)
    I would also recommend you to assist National Instruments Training Courses, as these things can be seen in detail and provide you a better understanding of all the options TestStand has.
    Regards,
    Jorge M.Mensaje editado por Jorge M.

  • How can I extract part of a PDF file and copy it to a new PDF file?

    How can I extract part of a PDF file and copy it to another PDF file?

    You will need Adobe Acrobat for this.

Maybe you are looking for

  • Video podcasts won't sync to iPhone

    Got a confusing problem here, with a MacBook Pro (up to date on all software) and a new iPhone 3GS. I can download and play video podcasts within iTunes on my Mac. However, they will not sync from iTunes to my iPhone, even after I use the "Create iPh

  • Horizontal Scroll Bar does not show

    I have a method which creates a table with values and displays it in a dialog. However, the horizontal scroll bars do not appear, even though there is are columns that are not seen in the view. Here is my code:      private void setTable()           

  • How can I easily create a lightbox from a thumbnail slideshow widget?

    I have already created a slideshow using the slideshow widget with thumbnails. I have 9 images loaded into it with the thumbnails remaining next to them when the thumbnail is clicked so that I can click any thumbnail OR click through them with an arr

  • Having installed culturealley (learning spanish) from Itunes Store, how do I get it to play on my Windows p.c.?

    having installed "culturealley" I.e. learning Spanish lessons from ITunes Store, how do I get this to play on my Windows p.c.?

  • Sharing m4a file to windows xp

    I created a podcast that I would like to share with my daughter whose iTunes is on our PC/Windows Xp. For the life of me I cannot figure out how to do this. I'm fairly new to the Mac World and still getting the hand of things.